Kodi Community Forum
condition == in visible ? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: condition == in visible ? (/showthread.php?tid=125963)

Pages: 1 2


condition == in visible ? - slinuxgeek - 2012-03-19

There are two buttons (or other controls which has some label/text on it which we can read).

and I want that if button1 has label "Music" then only button2 should be visible.

in button2:
<visible> what to write here </visible>

can we write something like this in button2:

<visible> control(idButton1).label =="Music" </visible>

Thanks for Help.


RE: condition == in visible ? - jmarshall - 2012-03-19

checkout stringcompare


RE: condition == in visible ? - slinuxgeek - 2012-03-19

Thank You the function worked !!

But we can not read a control's label like this -> control(idButton1).label
how can we do that?



RE: condition == in visible ? - Hitcher - 2012-03-19

Control.GetLabel(CONTROL_ID)

So you'll want to use -

PHP Code:
<visible>StringCompare(Control.GetLabel(CONTROL_ID),$LOCALIZE[3])</visible


Note the use of localize from the language string so it's universal.


RE: condition == in visible ? - slinuxgeek - 2012-03-19

Thank You Hitcher !!


RE: condition == in visible ? - jmarshall - 2012-03-20

If any of this is not clear in the wiki, then please let us know how it can be improved!


RE: condition == in visible ? - slinuxgeek - 2012-03-20

@ jmarshall :
How will I tell, you about wiki ?
means should I message you privately or by posting new thread in forum?
Thank You



RE: condition == in visible ? - jmarshall - 2012-03-20

Best is posting a thread, with the bit you don't understand, and (if you know the answer) what you think it should say to make it better.

After you've done a few of them, you can start correcting it yourself in the wiki.


RE: condition == in visible ? - slinuxgeek - 2012-04-17

@jmarshall
<control type="progress"> is not explained on wiki please explain in detail.


RE: condition == in visible ? - `Black - 2012-04-17

http://wiki.xbmc.org/index.php?title=Progress_Control


RE: condition == in visible ? - slinuxgeek - 2012-04-17

Thanks `Black !!
How did you reach there?

I was searching in
http://wiki.xbmc.org/index.php?title=XBMC_Skinning_Manual
it's not there.

Thank You.



RE: condition == in visible ? - Martijn - 2012-04-17

Added to page to the complete lists.

IMO that page is totaly unreadable. Wouldn't it be better to link to the seperate controls/windows instead of including all the wikis into one page?




RE: condition == in visible ? - slinuxgeek - 2012-04-17

I did not understand . Sad

How can I get there again without clicking on the link given by `Black.

Thank You.


RE: condition == in visible ? - Martijn - 2012-04-17

http://wiki.xbmc.org/index.php?title=Category:Skin_Development

We know the wiki isn't ideal but it's WIP


RE: condition == in visible ? - butchabay - 2012-04-17

(2012-04-17, 14:15)slinuxgeek Wrote: I did not understand . Sad

How can I get there again without clicking on the link given by `Black.

Thank You.

Google Search: Search for "Progress XBMC" and the first result is there ! Smile