2023-08-02, 08:40
@justin150
The skinning engine does not accept $VAR or $INFO for coordinates (position/width etc). Coordinates must be constant values (i.e. hard coded as integers).
There's two different approaches you could use here depending on whether or not the positioning is static or dynamic.
For static positioning using different values you can use skinshortcut property rules in the template. See docs for basically exactly what you're attempting:
https://github.com/BigNoid/script.skinsh...e-elements
Because skinshortcuts builds an actual xml file based on the template, for the purposes of the skinning engine the values from the $SKINSHORTCUTS[] property will be hard coded despite allowing you to have what are essentially variable values.
However, if you need dynamic positioning based on a condition (i.e. change the position of an item *after* the window loads) then the only option is to use a conditional slide animation
<animation effect="slide" end="POSX,POSY" condition="CONDITION">Conditional</animation>
The skinning engine does not accept $VAR or $INFO for coordinates (position/width etc). Coordinates must be constant values (i.e. hard coded as integers).
There's two different approaches you could use here depending on whether or not the positioning is static or dynamic.
For static positioning using different values you can use skinshortcut property rules in the template. See docs for basically exactly what you're attempting:
https://github.com/BigNoid/script.skinsh...e-elements
Because skinshortcuts builds an actual xml file based on the template, for the purposes of the skinning engine the values from the $SKINSHORTCUTS[] property will be hard coded despite allowing you to have what are essentially variable values.
However, if you need dynamic positioning based on a condition (i.e. change the position of an item *after* the window loads) then the only option is to use a conditional slide animation
<animation effect="slide" end="POSX,POSY" condition="CONDITION">Conditional</animation>