2010-03-29, 08:27
This is probably obvious to the old hands but I can't for the life of me figure out why my 'repeat' button will not show that it is focused. This is the code that I am currently using:
I can get the button to display and I can step thru the visible buttons, but when I click on button id=907 the button retains focus but does not show the focused image. What the hell am I doing wrong? And more importantly, how can I fix it?
Wyrm (xTV SAF)
Code:
<!-- Player buttons -->
<control type="grouplist" id="999">
<description>Group OSD Button</description>
<posx>685r</posx>
<posy>60</posy>
<width>650</width>
<height>32</height>
<itemgap>6</itemgap>
<scrolltime>200</scrolltime>
<orientation>horizontal</orientation>
<align>center</align>
<usecontrolcoords>false</usecontrolcoords>
<onleft>999</onleft>
<onright>999</onright>
<onup>999</onup>
<ondown>999</ondown>
<visible>true</visible>
<control type="togglebutton" id="908">
<width>32</width>
<height>32</height>
<texturefocus>osd-btn-playthru-focus.png</texturefocus>
<texturenofocus>osd-btn-playthru.png</texturenofocus>
<usealttexture>Playlist.IsRandom</usealttexture>
<alttexturefocus>osd-btn-random-focus.png</alttexturefocus>
<alttexturenofocus>osd-btn-random.png</alttexturenofocus>
<onclick>XBMC.PlayerControl(Random)</onclick>
</control>
<control type="group" id="907">
<width>32</width>
<height>32</height>
<control type="button">
<description>repeat button</description>
<width>32</width>
<height>32</height>
<texturefocus>osd-btn-repeat-focus.png</texturefocus>
<texturenofocus>osd-btn-repeat.png</texturenofocus>
<onclick>XBMC.PlayerControl(Repeat)</onclick>
<visible>!Playlist.IsRepeat + !Playlist.IsRepeatOne</visible>
</control>
<control type="button">
<description>repeatall button</description>
<width>32</width>
<height>32</height>
<texturefocus>osd-btn-repeatall-focus.png</texturefocus>
<texturenofocus>osd-btn-repeatall.png</texturenofocus>
<onclick>XBMC.PlayerControl(Repeat)</onclick>
<visible>Playlist.IsRepeat</visible>
</control>
<control type="button">
<description>repeatone button</description>
<width>32</width>
<height>32</height>
<texturefocus>osd-btn-repeatone-focus.png</texturefocus>
<texturenofocus>osd-btn-repeatone.png</texturenofocus>
<onclick>XBMC.PlayerControl(Repeat)</onclick>
<visible>Playlist.IsRepeatOne</visible>
</control>
</control>
<control type="button" id="918">
<description>playlist button</description>
<width>32</width>
<height>32</height>
<texturefocus>osd-btn-playlist-focus.png</texturefocus>
<texturenofocus>osd-btn-playlist.png</texturenofocus>
<onclick>XBMC.ActivateWindow(500)</onclick>
</control>
<control type="image" id="930">
<description>Dummy</description>
<width>32</width>
<height>32</height>
<texture>-</texture>
<texturenofocus>-</texturenofocus>
</control>
<control type="button" id="217">
<description>Eject Disk</description>
<width>32</width>
<height>32</height>
<texturefocus>osd-btn-eject-focus.png</texturefocus>
<texturenofocus>osd-btn-eject.png</texturenofocus>
<onclick>XBMC.EjectTray()</onclick>
<visible>System.HasMediadvd</visible>
</control>
<control type="button" id="210">
<description>Skip Bwd</description>
<width>32</width>
<height>32</height>
<texturefocus>osd-btn-skipback-focus.png</texturefocus>
<texturenofocus>osd-btn-skipback.png</texturenofocus>
<onclick>XBMC.PlayerControl(Previous)</onclick>
</control>
<control type="button" id="211">
<description>Rewind</description>
<width>32</width>
<height>32</height>
<texturefocus>osd-btn-rewind-focus.png</texturefocus>
<texturenofocus>osd-btn-rewind.png</texturenofocus>
<onclick>XBMC.PlayerControl(Rewind)</onclick>
</control>
<control type="togglebutton" id="213">
<description>Play</description>
<width>32</width>
<height>32</height>
<texturefocus>osd-btn-pause-focus.png</texturefocus>
<texturenofocus>osd-btn-pause.png</texturenofocus>
<usealttexture>Player.Paused | Player.Forwarding | Player.Rewinding</usealttexture>
<alttexturefocus>osd-btn-play-focus.png</alttexturefocus>
<alttexturenofocus>osd-btn-play.png</alttexturenofocus>
<onclick>XBMC.PlayerControl(Play)</onclick>
</control>
<control type="button" id="214">
<description>Stop</description>
<width>32</width>
<height>32</height>
<texturefocus>osd-btn-stop-focus.png</texturefocus>
<texturenofocus>osd-btn-stop.png</texturenofocus>
<onclick>XBMC.PlayerControl(Stop)</onclick>
</control>
<control type="button" id="215">
<description>Fast Forward</description>
<width>32</width>
<height>32</height>
<texturefocus>osd-btn-fastfwd-focus.png</texturefocus>
<texturenofocus>osd-btn-fastfwd.png</texturenofocus>
<onclick>XBMC.PlayerControl(Forward)</onclick>
</control>
<control type="button" id="216">
<description>Skip Fwd</description>
<width>32</width>
<height>32</height>
<itemgap>6</itemgap>
<texturefocus>osd-btn-skipfwd-focus.png</texturefocus>
<texturenofocus>osd-btn-skipfwd.png</texturenofocus>
<onclick>XBMC.PlayerControl(Next)</onclick>
</control>
<control type="image" id="940">
<description>Dummy</description>
<width>32</width>
<height>32</height>
<texture>-</texture>
</control>
<control type="button" id="220">
<description>Popup Vis Preset List</description>
<width>32</width>
<height>32</height>
<texturefocus>osd-btn-vis-focus.png</texturefocus>
<texturenofocus>osd-btn-vis.png</texturenofocus>
<onclick>XBMC.ActivateWindow(122)</onclick>
</control>
<control type="button" id="219">
<description>Popup Vis Settings</description>
<width>32</width>
<height>32</height>
<texturefocus>osd-btn-setting-focus.png</texturefocus>
<texturenofocus>osd-btn-setting.png</texturenofocus>
<onclick>XBMC.ActivateWindow(121)</onclick>
</control>
</control>
<!-- End Player buttons -->
Wyrm (xTV SAF)