2022-01-30, 16:16
The following works:-
However I want to use the color variable but with the alpha added later, like so:-
Both of these variables give the same result when printed to a label ffff0000
However the second one using a prefix on the $VAR won't drive the colordiffuse. This looks like a bug?
Code:
<variable name="MyColorRed">
<value>ffff0000</value>
</variable>
<control type="image">
<colordiffuse>$VAR[MyColorRed]</colordiffuse>
<texture>white.png</texture>
</control>
However I want to use the color variable but with the alpha added later, like so:-
Code:
<variable name="MyColorRedNoAlpha">
<value>ff0000</value>
</variable>
<control type="image">
<colordiffuse>$VAR[MyColorRedNoAlpha,ff]</colordiffuse>
<texture>white.png</texture>
</control>
Both of these variables give the same result when printed to a label ffff0000
However the second one using a prefix on the $VAR won't drive the colordiffuse. This looks like a bug?