Skin math

From TrillWiki

Jump to: navigation, search

(New in 3.0)

One of the new features of skinning in 3.0 is the introduction of Arithmetic. You can use these with entities and System variables for skins to determine how to draw windows, whether things are visible, etc.


Operator Description
+ Addition
- Subtraction
* Multiplication
/ Division
 ! logical NOT
&&

(&&)

Logical AND (not bitwise AND)

Also, in order for this to parse correctly, you have to use &&

|| Logical OR (not bitwise OR)
= Equality
 != NOT equal
< Less than

For this to parse correctly, you have to use &lt;

> Greater than
<= Less than or equal

For this to parse correctly, you have to use &lt;=

>= Greater than or equal
() Kevin: No order of operations support, so use parenthesis when needed.

eh?one: it appears the parser evaluates from right to left rather than left to right as expected. keep this in mind when writing your expressions (yet to be fully verified)

[edit] Bugs

Arithmetic not working in the defaultx and defaulty parameters of containers. This is useful in creating framebars. Workaround not yet discovered

Personal tools