2014-05-04, 02:46
Hello,
I need your help.
I created a new menu, but it do not want to work. This is a custom menu with selection addon or folder or playlist !
thx
Cheers
HOMEMENU.XML
VARIABLE.XML
----------------------------
<variable name="home_SubIndicatorCustomNew">
<value condition="!IsEmpty(Skin.String(customitem.customnew1.label))">›</value>
</variable>
CUSTOM_HOMEMENUSETTING.XML
I need your help.
I created a new menu, but it do not want to work. This is a custom menu with selection addon or folder or playlist !
thx
Cheers
HOMEMENU.XML
PHP Code:
<!--My Menu-->
<control type="button" id="908">
<label>$INFO[Skin.String(CustomNew.label]</label>
<label2>$VAR[home_SubIndicatorCustomNew]</label2>
<!--submenu items disabled-->
<onclick condition="IsEmpty(Skin.String(customitem.customnew1.label)">ActivateWindow(Videos,return)</onclick>
<!--submenu items enabled-->
<onclick condition="!IsEmpty(Skin.String(customitem.customnew1.label)">SetFocus(1111)</onclick>
<include>home_MenuButton</include>
<visible>Skin.HasSetting(homemenu.customnew.enable)</visible>
</control>
VARIABLE.XML
PHP Code:
<variable name="home_CustomSelectionCustomNew">
<value condition="!IsEmpty(Skin.String(customitem.customnew1.label)) + StringCompare(Window(Home).Property(customitem.customnew.number),1)">$INFO[Skin.String(customitem.customnew1.label)] $INFO[Skin.String(customitem.customnew1.type),(,)]</value>
<value>$LOCALIZE[231]</value>
</variable>
----------------------------
<variable name="home_SubIndicatorCustomNew">
<value condition="!IsEmpty(Skin.String(customitem.customnew1.label))">›</value>
</variable>
CUSTOM_HOMEMENUSETTING.XML
PHP Code:
<!--customNew submenu-->
<control type="grouplist" id="500">
<left>250</left>
<width>484</width>
<height>520</height>
<onleft>10</onleft>
<onright>70</onright>
<onup>500</onup>
<ondown>600</ondown>
<itemgap>0</itemgap>
<pagecontrol>70</pagecontrol>
<include>global_ListScroll</include>
<visible>Skin.String(Section,CustomNew)</visible>
<!--label-->
<control type="radiobutton" id="501">
<label>Label: $INFO[Skin.String(CustomNew.label)]</label>
<width>484</width>
<onclick>Skin.Reset(CustomNew.label)</onclick>
<onclick>Skin.SetString(CustomNew.label)</onclick>
<selected>!IsEmpty(Skin.String(CustomNew.label))</selected>
<include>dialog_Radio-alt</include>
</control>
<!--custom New Menu items-->
<control type="button" id="513">
<width>484</width>
<label>Custom Item 1</label>
<label2>$INFO[Skin.String(customitem.customnew1.label)]</label2>
<!--(re)set category-->
<onclick>ClearProperty(customitem.category,Home)</onclick>
<onclick>SetProperty(customitem.category,customnew,Home)</onclick>
<!--reset previous item values-->
<onclick>Skin.Reset(customitem.customnew1.path)</onclick>
<onclick>Skin.Reset(customnewmenu.type1)</onclick>
<!--set up new item value-->
<onclick>SetProperty(customitem.customnew.number,1,Home)</onclick>
<onclick>ActivateWindow(96)</onclick>
<include>dialog_Radio-alt</include>
</control>