API:LCDSetLocation
From RoR Wiki
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
xandyare 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 )
