Jump to content

XML alpha


TommInfinite

Recommended Posts

Hello!

 

I have a XML file:

<rect name="LPMain_HUD">
<rect name="LPMain_Sheesh">

<text name="LPTutText">

<x>
    <copy src="screen()" trait="width"/>
    <sub src="me()" trait="width"/>
    <mul> 0.2 </mul>
</x>

<y>

    <copy src="screen()" trait="height"/>
    <sub src="me()" trait="height"/>
    <mul> 0.65 </mul>
</y>

<string>
    <copy src="io()" trait="_SOPTutTextValue" />
</string>

<font>7</font>

<visible>
    <copy src="io()" trait="_SOPTutTextVisible" />
</visible>

</text>



<text name="LPTutText2">



<x>
    <copy src="screen()" trait="width"/>
    <sub src="me()" trait="width"/>
    <mul> 0.2 </mul>
</x>

<y>

    <copy src="screen()" trait="height"/>
    <sub src="me()" trait="height"/>
    <mul> 0.65 </mul>
</y>

<string>
    <copy src="io()" trait="_SOPTutTextValue2" />
</string>

<font>7</font>

<visible>
    <copy src="io()" trait="_SOPTutTextVisible2" />
</visible>

</text>





</rect>
</rect>

Can I somehow use only one <alpha> value to control transparency of LPTutText and LPTutText2 without adding new <alpha> component to each of them?

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...