Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:LCDSetLocation

From RoR Wiki
Revision as of 19:46, 16 October 2026 by Maintenance script (talk | contribs) (UI Lua API import (WAR 1.4.8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

UI Lua API · LCD functions
Version: WAR 1.4.8

Moves an element on an LCD page.

LCDSetLocation(pageName, elementName, x, y)

Arguments

pageName
string – Name of the page.
elementName
string – Name of a text, bitmap or progress bar element on that page.
x
number – Horizontal position in pixels.
y
number – Vertical position in pixels.

Returns

Nothing.

Details

  • x and y are converted to integers.
  • Any element type is accepted.
  • The function needs at least four arguments and only reads the last four.

Errors

  • Error in function call 'LCDSetLocation': Page '%s' does not exist.
  • Error in function call 'LCDSetLocation': Page '%s' does not have a child named '%s'.

Example

From ea_lcdkeyboard/source/g15test.lua:

LCDCreateStaticText( EA_LCDKeyboard.Page0, "Status", 1, "center", 160 - 36, 1 )
LCDSetLocation( EA_LCDKeyboard.Page0, "Status", 36, 30 )

See also