hiding a control until another control is active (1 Viewer)

explodedk

Portal Pro
December 27, 2008
265
20
Copenhagen
Home Country
Denmark Denmark
hey all...
the topic really says it all :)

I need a line that makes a certain <control> visible, when another control is in focus. for instans.
A control with id 10 to be shown and only shown when control with id 5 is in focus.

i tried with this code in the end of the control id 10.
Code:
<visible>Control.IsVisible(5)</visible>

hope it makes sence to someone, and those it do makes sense to know how its done :)


and a small other thing. if i use the <label>Weather</label> on a button i cant seem to get the text centered. is there a way to center it without making a new control with the <type>label</type> would really count out some lines if its posible.
in advance: :D
 

joz

Portal Pro
March 17, 2008
1,353
306
Home Country
Netherlands Netherlands
take a look at blue3++ files. I have done loads of stuff like this. The only difference is I control the rotatey animation with the visibility.

Well taking a look at Blue3 will do you good too.
Remember that duplicate ID's will cause something unexpected to happen.
You can also use the NOT operator ("!") to reverse the logic

and a small other thing. if i use the <label>Weather</label> on a button i cant seem to get the text centered. is there a way to center it without making a new control with the <type>label</type> would really count out some lines if its posible.
dunno about this though, haven't tried it. Maybe <textXOff> (x-offset) would work, but then you'd have to do that specifically for every button.
You tried <align>center</align> right?
you could also try <textalign>center</textalign> but I believe that last one is used for textboxes.
 

explodedk

Portal Pro
December 27, 2008
265
20
Copenhagen
Home Country
Denmark Denmark
i tried both textalign and labelalign. but didn't work. the thing is if i use the textxoffset it will look good for now, but if someone uses another language, or choose to have another title for one certain button..

i'll take a look at ya skin m8... i also wanna use it for fan art like the aeon uses it for backgrounds... like when hovering the tv button i want the background to be hmmm.. tv :D and vice versa for movies etc.
 

Users who are viewing this thread

Top Bottom