Difference between revisions of "Operator Element"
Jump to navigation
Jump to search
m
→Overview
imported>JRoush m (→Overview) |
imported>JRoush m (→Overview) |
||
Line 9: | Line 9: | ||
</x> | </x> | ||
</image> | </image> | ||
However, Operators instead refer to ''other properties'' for the value of their second operand, or even properties of ''other Object elements''. For example: | However, Operators can instead refer to ''other properties'' for the value of their second operand, or even properties of ''other Object elements''. For example: | ||
<image name="example_image> | <image name="example_image> | ||
<y> 5 </y> <!-- Move image 5 pixels to the right every frame --> | <y> 5 </y> <!-- Move image 5 pixels to the right every frame --> | ||
Line 18: | Line 18: | ||
Here ''src'' and ''trait'' are XML [[traits]] indicating the Object & Property, respectively, to get the value from. '''Don't be confused:''' The XML trait called ''trait'' here actually refers to a ''Property Element'', not another XML trait. It seems Bethesda used the word differently than the XML community at large. | Here ''src'' and ''trait'' are XML [[traits]] indicating the Object & Property, respectively, to get the value from. '''Don't be confused:''' The XML trait called ''trait'' here actually refers to a ''Property Element'', not another XML trait. It seems Bethesda used the word differently than the XML community at large. | ||
A property element may contain more than one Operator, | A property element may contain more than one Operator, evaluating them in order: | ||
<image> | <image> | ||
<x> | <x> |