Advanced Positioning & Sizing
Advanced positioning and sizing gives you direct control over element coordinates and dimensions.
Toggling Advanced Positioning/Sizing Mode
To enable advanced positioning or sizing for an element, right-click it and select Advanced Positioning or Advanced Sizing.
The element will automatically switch to the advanced mode when you set an advanced position or size value.
To disable it and switch back to normal positioning/sizing, clear all positioning/sizing values.
Calculating Positions/Sizes
Advanced position and size values support placeholders.
This allows you to combine the Calculator placeholder with GUI placeholders such as Screen Width, GUI Scale, and Element Width.
To calculate something with the Calculator placeholder, replace the example expression with your own. Nested placeholders can supply screen or element dimensions.
This example returns 2:
{"placeholder":"calc","values":{"expression":"1 + 1","decimal":"false"}}
Keep decimal set to false for whole-pixel position and size calculations.
The following calculator uses the Screen Width placeholder and divides it by 2:
{"placeholder":"calc","values":{"expression":"{"placeholder":"guiwidth"} / 2","decimal":"false"}}