2012-05-28, 13:39
I'm on my phone so no examples sorry. But I'm having an issue setting up variables and wondered if this is even possible. This is a scripts dialog if that matters.
Basically I want to mimick how addon settings work. I want the highlited button to retain a focused, but faded texture.
I thought to use a $VAR one for the texture to use button-focus if a property has been set, which is set when the button onfocus activates.
So for the control I set the texturenofocus to $VAR[varnam] and had the variable set in the same file just after the <window> tag. I copied as a test so I think it's right. This does not work. I put the $VAR in the label and did not work. I then put the variables in the includes.xml file and the label showed the value correctly.
I read they don't have to be in the includes. Is this correct?
I also tried setting up another variable for diffuse with no luck.
Can the variables be set up in a reg window XML can you use them in the colordiffuse tags. Is there an easier way to mimick what I'm trying. I used the dialogaddonsettings XML as abase. But this feature is handled by xbmc not skin conditions.
Thanks
One more thing how do you avoid text overlap in an edit control. I've played with the tag textwidth and align. But can't get it right and I didn't find any documentation on textwidth. I set textwidth to 520 and width to 720. But still it overlaps when long enough.
Thanks
Basically I want to mimick how addon settings work. I want the highlited button to retain a focused, but faded texture.
I thought to use a $VAR one for the texture to use button-focus if a property has been set, which is set when the button onfocus activates.
So for the control I set the texturenofocus to $VAR[varnam] and had the variable set in the same file just after the <window> tag. I copied as a test so I think it's right. This does not work. I put the $VAR in the label and did not work. I then put the variables in the includes.xml file and the label showed the value correctly.
I read they don't have to be in the includes. Is this correct?
I also tried setting up another variable for diffuse with no luck.
Can the variables be set up in a reg window XML can you use them in the colordiffuse tags. Is there an easier way to mimick what I'm trying. I used the dialogaddonsettings XML as abase. But this feature is handled by xbmc not skin conditions.
Thanks
One more thing how do you avoid text overlap in an edit control. I've played with the tag textwidth and align. But can't get it right and I didn't find any documentation on textwidth. I set textwidth to 520 and width to 720. But still it overlaps when long enough.
Thanks