Skin Variables / Conditional Labels
#76
`Black Wrote:Thanks that's what I wanted to hear (read). Smile

EDit: I almost forgot, could you maybe take a look at the problem I described few posts earlier? http://forum.xbmc.org/showpost.php?p=901...stcount=49 & http://forum.xbmc.org/showpost.php?p=901...stcount=51. Thanks Smile

2 Screens to make it clearer... this is how it looks with visible conditions and this how it's with skin variables.
hey, just pushed fix (http://github.com/xbmc/xbmc/commit/70eda...3a43fda556) - it will be in next nightly or in this win32 build http://michal.mexeo.pl/xbmc/skin_vars/XB...596-dx.exe (it's git master). I'd appreciate if You would use it and look if everything works as I shuffled skin vars code quite a bit to fix a problem.
Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

My previous forum/trac nickname: grajen3
Reply
#77
Will do tomorrow. Smile
Image
Reply
#78
@pieh: I have a request. It's currently possible to use $INFO[] on <colordiffuse>. But variables don't work. What does work is the following:

Code:
<variable name="FlagDiffuseVar">
    <value condition="Control.IsVisible(512)">FFe1e1e1</value>
    <value>floor</value>
  </variable>

Code:
<control type="label" id="8890">
      <include>HiddenObject</include>
      <label>$VAR[FlagDiffuseVar]</label>
    </control>

Code:
<include name="AudioFlagsVars">
    <width>90</width>
    <height>60</height>
    <aspectratio>keep</aspectratio>
    <colordiffuse>$INFO[Control.GetLabel(8890)]</colordiffuse>
    <fadetime>IconCrossfadeTime2</fadetime>
    <animation effect="fade" time="250">VisibleChange</animation>
  </include>

This is of course a bit of a hack, so I was wondering if you can make variables also available in colordiffuse tag?
I'm hoping it's an easy fix because info is already working in the tag Smile
Reply
#79
`Black Wrote:Will do tomorrow. Smile

Just tested and it works, thanks for the fix pieh. Smile
Image
Reply
#80
Big_Noid Wrote:@pieh: I have a request. It's currently possible to use $INFO[] on <colordiffuse>. But variables don't work. What does work is the following:

Code:
<variable name="FlagDiffuseVar">
    <value condition="Control.IsVisible(512)">FFe1e1e1</value>
    <value>floor</value>
  </variable>

Code:
<control type="label" id="8890">
      <include>HiddenObject</include>
      <label>$VAR[FlagDiffuseVar]</label>
    </control>

Code:
<include name="AudioFlagsVars">
    <width>90</width>
    <height>60</height>
    <aspectratio>keep</aspectratio>
    <colordiffuse>$INFO[Control.GetLabel(8890)]</colordiffuse>
    <fadetime>IconCrossfadeTime2</fadetime>
    <animation effect="fade" time="250">VisibleChange</animation>
  </include>

This is of course a bit of a hack, so I was wondering if you can make variables also available in colordiffuse tag?
I'm hoping it's an easy fix because info is already working in the tag Smile
fixed in https://github.com/xbmc/xbmc/commit/f818...2b70a4fe91
Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

My previous forum/trac nickname: grajen3
Reply
#81
pieh Wrote:fixed in https://github.com/xbmc/xbmc/commit/f818...2b70a4fe91

Great, thx!
Reply
#82
pieh Wrote:initially <height> <width> <posx> <posy> and other numeric "properties" of controls are out of luck (we don't have numeric control properties hooked to infomanager yet). But this is defenitely something I will pursue in next steps

I would not mind using $NUM[foo] if that would allow for numeric values in variables as well.
My skins:

Amber
Quartz

Reply
#83
(2011-08-27, 12:37)pieh Wrote: initially <height> <width> <posx> <posy> and other numeric "properties" of controls are out of luck (we don't have numeric control properties hooked to infomanager yet). But this is defenitely something I will pursue in next steps

Time to bump an old thread and 12 months on is the "next steps" worked on at all because I just hit this road block Sad
Reply

Logout Mark Read Team Forum Stats Members Help
Skin Variables / Conditional Labels0