2014-06-14, 11:27
hello communauty
I have a small problem, I coded this to enable or disable the background of the menu ( Refocus or Refocus Glass )
Everything works fine, but what I lack is, remove the ability to disable the buttons. !
If you onclick on Menu Refocus Glass, it disables the toggle property to refocus original, but if i disable also button refocus Glass , then it not have nothing on-screen , no visible menu on screen .
Can you help me on this problem. ?
Cheers
into Homemenu.xml
(for code refocus Glass)
<visible>!Skin.HasSetting(homemenuglass.enable)</visible>
and
(for code refocus original
<visible>Skin.HasSetting(homemenurefocus.enable)</visible>
Setting Skin :
I have a small problem, I coded this to enable or disable the background of the menu ( Refocus or Refocus Glass )
Everything works fine, but what I lack is, remove the ability to disable the buttons. !
If you onclick on Menu Refocus Glass, it disables the toggle property to refocus original, but if i disable also button refocus Glass , then it not have nothing on-screen , no visible menu on screen .
Can you help me on this problem. ?
Cheers
into Homemenu.xml
(for code refocus Glass)
<visible>!Skin.HasSetting(homemenuglass.enable)</visible>
and
(for code refocus original
<visible>Skin.HasSetting(homemenurefocus.enable)</visible>
Setting Skin :
PHP Code:
<!--Menu Background -->
<control type="radiobutton" id="1009">
<label>Refocus Glass Menu</label>
<onclick>Skin.ToggleSetting(homemenuglass.enable)</onclick>
<onclick condition="Skin.HasSetting(homemenurefocus.enable)">Skin.ToggleSetting(homemenurefocus.enable)</onclick>
<selected>!Skin.HasSetting(homemenuglass.enable)</selected>
<offclick>Skin.ToggleSetting(homemenurefocus.enable)</offclick>
<include>settings_Radiobutton</include>
</control>
<control type="radiobutton" id="1010">
<label>Refocus Menu</label>
<onclick>Skin.ToggleSetting(homemenurefocus.enable)</onclick>
<onclick condition="!Skin.HasSetting(homemenuglass.enable)">Skin.ToggleSetting(homemenuglass.enable)</onclick>
<selected>Skin.HasSetting(homemenurefocus.enable)</selected>
<offclick>Skin.ToggleSetting(homemenurefocus.enable)</offclick>
<include>settings_Radiobutton</include>
</control>