From Reflex Wiki
Jump to: navigation, search
Defines the widget's offset relative to the anchor.
Parameter(s) <widgetname> <x> <y>
ui_set_widget_offset <widgetname> <x> <y>

<x>, <y> offset in pixels.

All <x> and <y> coordinates in scripts are relative to their anchors.

Tip: It is recommended to externally set the <x> and <y> offsets e.g. in game.cfg, instead of hard-coding them into the .lua UI script. This way widgets can easily be repositioned by the user.