2006-08-16, 06:44
Hi Guys,
Ok, i got a button scroller in MCE, what i would like to create is a horizontal scroller (id 1007) that has a conditional visibility based on the focus button selected from the main menu Buttonscroller (id 300). Now the code below works for me however, on right from the main button scroller i get the horizontal one with a TON of list options and then after holding the scroller down the focus images appear.
Yes there a bits missing as the mainscroller right goes to id1000 which exists.. just not in this post.
Example screenshot.
The images to the right of the main buttonscroller would be the conditional horizontal scroller.
Any ideas? if needed i can post the whole code but it is big.
Hades_666
<controlgroup>
<control>
<description>Home Buttons</description>
<type>buttonscroller</type>
<id>1006</id>
<posx>417</posx>
<posy>205</posy>
<width>62</width>
<height>62</height>
<visible>true</visible>
<texturefocus>button-focus.png</texturefocus>
<texturenofocus>button-nofocus.png</texturenofocus>
<font>font13</font>
<textcolor>FFEEEEFF</textcolor>
<align>right</align>
<aligny>center</aligny>
<textoffsetx>12</textoffsetx>
<textoffsety>50</textoffsety>
<pulseonselect>true</pulseonselect>
<onup>1006</onup>
<ondown>1006</ondown>
<onleft>300</onleft>
<onright>96</onright>
<numbuttons>3</numbuttons>
<buttongap>15</buttongap>
<defaultbutton>12</defaultbutton>
<orientation>horizontal</orientation>
<movement>2</movement>
<alpha>0</alpha>
<wraparound>no</wraparound>
<smoothscrolling>yes</smoothscrolling>
<visible>[ButtonScroller.HasFocus(2)] | [Control.HasFocus(1006)]</visible>
<buttons>
<button id="10">
<label>0</label>
<onclick>ActivateWindow(MyPrograms)</onclick>
<texturefocus>button-settings-programs.png</texturefocus>
<texturenofocus>button-settings-programs.png</texturenofocus>
</button>
<button id="11">
<label>2</label>
<onclick>ActivateWindow(MyMusic)</onclick>
<texturefocus>button-settings-programs.png</texturefocus>
<texturenofocus>button-settings-programs.png</texturenofocus>
</button>
<button id="12">
<label>3</label>
<onclick>ActivateWindow(MyVideos)</onclick>
<texturefocus>button-settings-programs.png</texturefocus>
<texturenofocus>button-settings-programs.png</texturenofocus>
</button>
</buttons>
</control>
</controlgroup>
..........................
<controlgroup>
<control>
<description>Home Buttons</description>
<type>buttonscroller</type>
<id>300</id>
<posx>210</posx>
<posy>117</posy>
<width>185</width>
<height>34</height>
<visible>true</visible>
<texturefocus>button-focus.png</texturefocus>
<texturenofocus>-</texturenofocus>
<font>font13</font>
<textcolor>FFEEEEFF</textcolor>
<align>right</align>
<aligny>center</aligny>
<textoffsetx>12</textoffsetx>
<textoffsety>0</textoffsety>
<pulseonselect>true</pulseonselect>
<onup>300</onup>
<ondown>300</ondown>
<onleft>98</onleft>
<onright>1000</onright>
<numbuttons>7</numbuttons>
<buttongap>0</buttongap>
<orientation>vertical</orientation>
<defaultbutton>4</defaultbutton>
<movement>0</movement>
<alpha>2</alpha>
<wraparound>yes</wraparound>
<smoothscrolling>yes</smoothscrolling>
<animation effect="zoom" start="10" center="395,320" time="400" acceleration="-1" reversible="false" condition="!Skin.HasSetting(animated)">WindowOpen</animation>
<animation effect="fade" time="200" condition="!Skin.HasSetting(animated)">WindowClose</animation>
<buttons>
<button id="1">
<label>0</label>
<onclick>ActivateWindow(MyPrograms)</onclick>
</button>
<button id="2">
<label>2</label>
<onclick>ActivateWindow(MyMusic)</onclick>
</button>
<button id="3">
<label>3</label>
<onclick>ActivateWindow(MyVideos)</onclick>
</button>
<button id="4">
<label>1</label>
<onclick>ActivateWindow(MyPictures)</onclick>
</button>
<button id="5">
<label>7</label>
<onclick>ActivateWindow(MyFiles)</onclick>
</button>
<button id="6">
<label>8</label>
<onclick>ActivateWindow(Weather)</onclick>
</button>
<button id="7">
<label>5</label>
<onclick>ActivateWindow(Settings)</onclick>
<visible>![ButtonScroller.HasFocus(301)]</visible>
</button>
<button id="8">
<label>999</label>
<onclick>ActivateWindow(XlinkKai)</onclick>
</button>
<!-- <button id="9">
<label>Game Save Manager</label>
<onclick>XBMC.RunScript(Q:\skin\Media Center 2006 v.6\extras\gamesavemanager.py)</onclick>
</button>
-->
</buttons>
</control>
<!--<control>
<description>ButtonScrollerFade</description>
<type>image</type>
<id>1</id>
<posx>210</posx>
<posy>117</posy>
<height>238</height>
<width>185</width>
<texture>scroll_overlay.png</texture>
</control>-->
</controlgroup>
Ok, i got a button scroller in MCE, what i would like to create is a horizontal scroller (id 1007) that has a conditional visibility based on the focus button selected from the main menu Buttonscroller (id 300). Now the code below works for me however, on right from the main button scroller i get the horizontal one with a TON of list options and then after holding the scroller down the focus images appear.
Yes there a bits missing as the mainscroller right goes to id1000 which exists.. just not in this post.
Example screenshot.
The images to the right of the main buttonscroller would be the conditional horizontal scroller.
Any ideas? if needed i can post the whole code but it is big.
Hades_666
<controlgroup>
<control>
<description>Home Buttons</description>
<type>buttonscroller</type>
<id>1006</id>
<posx>417</posx>
<posy>205</posy>
<width>62</width>
<height>62</height>
<visible>true</visible>
<texturefocus>button-focus.png</texturefocus>
<texturenofocus>button-nofocus.png</texturenofocus>
<font>font13</font>
<textcolor>FFEEEEFF</textcolor>
<align>right</align>
<aligny>center</aligny>
<textoffsetx>12</textoffsetx>
<textoffsety>50</textoffsety>
<pulseonselect>true</pulseonselect>
<onup>1006</onup>
<ondown>1006</ondown>
<onleft>300</onleft>
<onright>96</onright>
<numbuttons>3</numbuttons>
<buttongap>15</buttongap>
<defaultbutton>12</defaultbutton>
<orientation>horizontal</orientation>
<movement>2</movement>
<alpha>0</alpha>
<wraparound>no</wraparound>
<smoothscrolling>yes</smoothscrolling>
<visible>[ButtonScroller.HasFocus(2)] | [Control.HasFocus(1006)]</visible>
<buttons>
<button id="10">
<label>0</label>
<onclick>ActivateWindow(MyPrograms)</onclick>
<texturefocus>button-settings-programs.png</texturefocus>
<texturenofocus>button-settings-programs.png</texturenofocus>
</button>
<button id="11">
<label>2</label>
<onclick>ActivateWindow(MyMusic)</onclick>
<texturefocus>button-settings-programs.png</texturefocus>
<texturenofocus>button-settings-programs.png</texturenofocus>
</button>
<button id="12">
<label>3</label>
<onclick>ActivateWindow(MyVideos)</onclick>
<texturefocus>button-settings-programs.png</texturefocus>
<texturenofocus>button-settings-programs.png</texturenofocus>
</button>
</buttons>
</control>
</controlgroup>
..........................
<controlgroup>
<control>
<description>Home Buttons</description>
<type>buttonscroller</type>
<id>300</id>
<posx>210</posx>
<posy>117</posy>
<width>185</width>
<height>34</height>
<visible>true</visible>
<texturefocus>button-focus.png</texturefocus>
<texturenofocus>-</texturenofocus>
<font>font13</font>
<textcolor>FFEEEEFF</textcolor>
<align>right</align>
<aligny>center</aligny>
<textoffsetx>12</textoffsetx>
<textoffsety>0</textoffsety>
<pulseonselect>true</pulseonselect>
<onup>300</onup>
<ondown>300</ondown>
<onleft>98</onleft>
<onright>1000</onright>
<numbuttons>7</numbuttons>
<buttongap>0</buttongap>
<orientation>vertical</orientation>
<defaultbutton>4</defaultbutton>
<movement>0</movement>
<alpha>2</alpha>
<wraparound>yes</wraparound>
<smoothscrolling>yes</smoothscrolling>
<animation effect="zoom" start="10" center="395,320" time="400" acceleration="-1" reversible="false" condition="!Skin.HasSetting(animated)">WindowOpen</animation>
<animation effect="fade" time="200" condition="!Skin.HasSetting(animated)">WindowClose</animation>
<buttons>
<button id="1">
<label>0</label>
<onclick>ActivateWindow(MyPrograms)</onclick>
</button>
<button id="2">
<label>2</label>
<onclick>ActivateWindow(MyMusic)</onclick>
</button>
<button id="3">
<label>3</label>
<onclick>ActivateWindow(MyVideos)</onclick>
</button>
<button id="4">
<label>1</label>
<onclick>ActivateWindow(MyPictures)</onclick>
</button>
<button id="5">
<label>7</label>
<onclick>ActivateWindow(MyFiles)</onclick>
</button>
<button id="6">
<label>8</label>
<onclick>ActivateWindow(Weather)</onclick>
</button>
<button id="7">
<label>5</label>
<onclick>ActivateWindow(Settings)</onclick>
<visible>![ButtonScroller.HasFocus(301)]</visible>
</button>
<button id="8">
<label>999</label>
<onclick>ActivateWindow(XlinkKai)</onclick>
</button>
<!-- <button id="9">
<label>Game Save Manager</label>
<onclick>XBMC.RunScript(Q:\skin\Media Center 2006 v.6\extras\gamesavemanager.py)</onclick>
</button>
-->
</buttons>
</control>
<!--<control>
<description>ButtonScrollerFade</description>
<type>image</type>
<id>1</id>
<posx>210</posx>
<posy>117</posy>
<height>238</height>
<width>185</width>
<texture>scroll_overlay.png</texture>
</control>-->
</controlgroup>