How to display a lable when an item is in focus? (1 Viewer)

m.standish

Portal Pro
July 9, 2006
174
8
Wakefield
Home Country
United Kingdom United Kingdom
Hi again, sorry for all the newbie posts but im really trying to get to grips with the skinning so i can get it released, (not slept for ooh 29hrs now lol)

Im trying to get a lable to display somewhere when i focus on an object and i cant work out how to do it.
is there some command like <lableFocus>? and if so how is it formatted?
The only other way i can thing is to write the text into the graphic but its a bit (LOT) of a bodge, any ideas??
This is the part im trying to do it on
<control>
<description>Mute</description>
<type>togglebutton</type>
<id>216</id>
<width>23</width>
<height>33</height>
<AltTextureFocus>mute_on_hl.png</AltTextureFocus>
<AltTextureNoFocus>mute_on.png</AltTextureNoFocus>
<textureFocus>mute_off_hl.png</textureFocus>
<textureNoFocus>mute_off.png</textureNoFocus>
<label>-</label>
<font>-</font>
<onleft>221</onleft>
<onright>218</onright>
<onup>211</onup>
<ondown>210</ondown>
</control>


-- The closest ive got so far is VVVV which shows the lable all the time


<control>
<description>Mute</description>
<type>togglebutton</type>
<id>216</id>
<width>23</width>
<height>33</height>
<AltTextureFocus>mute_on_hl.png</AltTextureFocus>
<AltTextureNoFocus>mute_on.png</AltTextureNoFocus>
<textureFocus>mute_off_hl.png</textureFocus>
<textureNoFocus>mute_off.png</textureNoFocus>

<label>200099</label>
<textcolor>faffffff</textcolor>
<textcolorNoFocus>00000000</textcolorNoFocus>
<font>font12</font>

<onleft>221</onleft>
<onright>218</onright>
<onup>211</onup>
<ondown>210</ondown>
</control>
 

Boilermaker

Retired Team Member
  • Premium Supporter
  • May 21, 2004
    519
    3
    Add this tag to the label:

    <visible>Control.HasFocus(216)</visible>

    where 216 is the id number of the mute togglebutton.

    Here is a link from the wiki with the full details on how to do this:
    http://wiki.team-mediaportal.com/SkinArchitecture/skin_conditional_visibility

    All that being said, i think what you really want to have happen is contained in my last post to your other thread. The line about killing two birds with one stone and the images in videofullscreen.xml

    (not slept for ooh 29hrs now lol)
    I figured that, i've answered two questions, went to sleep got up and saw a few new ones...
     

    Users who are viewing this thread

    Top Bottom