2014-10-30, 17:27
you can already "fake" spincontrols by using pure xml.
Example:
Will see if it is worth it to expose "native" spincontrols to skinners. I´m not a big fan of them though, even for 3 items i would prefer a selectdialog.
(In general I don´t like buttons those more complex buttons. In my opinion pressing left/right/up/down should always move the focus to the next control)
I won´t create a separate add-on for one or two functions, but if more stuff like this is needed I will create a separate add-on.
Example:
Code:
<control type="button" id="1635">
<label>$LOCALIZE[31674]</label>
<label2>$INFO[Skin.String(TriPanelPosition)]</label2>
<include>ViewtypeSettingsButton</include>
<onclick condition="Stringcompare(Skin.String(TriPanelPosition),1)">Skin.SetString(TriPanelPosition,2)</onclick>
<onclick condition="Stringcompare(Skin.String(TriPanelPosition),4)">Skin.SetString(TriPanelPosition,1)</onclick>
<onclick condition="Stringcompare(Skin.String(TriPanelPosition),3)">Skin.SetString(TriPanelPosition,4)</onclick>
<onclick condition="Stringcompare(Skin.String(TriPanelPosition),2)">Skin.SetString(TriPanelPosition,3)</onclick>
<onclick condition="Stringcompare(Skin.String(TriPanelPosition),1)">Skin.SetString(TriPanelPosition,2)</onclick>
</control>
Will see if it is worth it to expose "native" spincontrols to skinners. I´m not a big fan of them though, even for 3 items i would prefer a selectdialog.
(In general I don´t like buttons those more complex buttons. In my opinion pressing left/right/up/down should always move the focus to the next control)
I won´t create a separate add-on for one or two functions, but if more stuff like this is needed I will create a separate add-on.