2019-08-10, 10:42
I have a info label that returns an rgb color value
How can I add an alpha value to this, I've tried the following but neither works
I can place them inside a <label> and they output the correct string but it wont work in the colordiffuse tags.
--------------------------------------------------------------------------------------------------------------------------------------
OK, so I can get it to work if I assign the info label and alpha to a variable and use that which is kind of strange.
Code:
$INFO[Window(home).Property(rgb_value)]
How can I add an alpha value to this, I've tried the following but neither works
Code:
<colordiffuse>a0$INFO[Window(home).Property(rgb_value)]</colordiffuse>
<colordiffuse>$INFO[Window(home).Property(rgb_value),a0]</colordiffuse>
I can place them inside a <label> and they output the correct string but it wont work in the colordiffuse tags.
--------------------------------------------------------------------------------------------------------------------------------------
OK, so I can get it to work if I assign the info label and alpha to a variable and use that which is kind of strange.
Code:
<variable name="testcolor">
<value>$INFO[Window(home).Property(rgb_value),a0]</value>
</variable>
Code:
<colordiffuse>$VAR[testcolor]</colordiffuse>