Button disappears when plugin text variable used

Help each other out

Button disappears when plugin text variable used

Postby CouchPotatoe on Mon Nov 28, 2005 5:28 pm

I have a button that works fine with ordinary text as a label eg 'Off' . In fact it's an unaltered one from the Simplicity skin lighting page. But if I replace the text in the skin editor with a variable from a plugin, in my case

plugin>xap-xlobby>state>hallway.light

then the appropriate text is shown and updates ie On or Off but the button disappears :-( - I effectively just get a text area on the screen although it still functions correctly as a button if clicked. How can I achieve a button with text that displays this plugin variable ??

K
CouchPotatoe
 
Posts: 102
Joined: Tue Feb 24, 2004 11:48 am
Location: Yorkshire. UK

Postby Colby on Mon Nov 28, 2005 10:40 pm

Is the variable a textbox or a buttons box with text? I thought variables only worked on textboxes not buttons.

If that is the case I bet you could work something up by placing the textbox over the button or using variable set or something.
Colby
 
Posts: 929
Joined: Mon Feb 02, 2004 7:42 am
Location: Brookline Station, MO, USA

Postby CouchPotatoe on Tue Nov 29, 2005 1:08 pm

I am just editing the 'Text' tab for a button property in skin editor from

ON %variable>%

which is the default in the skin (although just ON seems to work too ) and replacing it with

plugin>xap-xlobby>state>hallway.light

which is a variable with either an ON or OFF text value. The 'actual text' box displays the value correctly.

I hadn't realised variables didn't work on button text - does some document mention this that I could read up on ? I will try replacing it with a text area on top which I assume (as I am new to this) I can create with properties such that the 'click' is passed through to the button underneath and the text area background is transparent such that the changing button colour shows through. I assume I'll sacrifice the 'move' visualisation but that's no big deal I guess.

K
CouchPotatoe
 
Posts: 102
Joined: Tue Feb 24, 2004 11:48 am
Location: Yorkshire. UK