Sides - LiruJ/GuiCookie GitHub Wiki

Overview

Defines 4 distances from an element's parent's edges, either relative or absolute.

Creation

All Sides, One Value

<Node Sides="2"/>
<Node Sides="0.5%"/>

If only one value is given, uses that value for every side.

Vertical and Horizontal

<Node Sides="2, 4"/>
<Node Sides="0.5%, 5"/>

If two values are given, uses the first for the top and bottom sides, and the second for the left and right sides, separated with the , character.

Top, Bottom, and Horizontal

<Node Sides="2, 4, 5"/>
<Node Sides="0.5%, 5, 3"/>

If three values are given, uses the first for the top, the second value for the left and right, and the third value for the bottom, separated with the , character.

All Sides, Four Values

<Node Sides="2, 4, 5, 12"/>
<Node Sides="0.5%, 5, 3, 2%"/>

If four values are given, uses them for the top, right, bottom, and left sides respectively, separated with the , character.

⚠️ **GitHub.com Fallback** ⚠️