Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:LCDSetSize

From RoR Wiki

UI Lua API · LCD functions
Version: WAR 1.4.8

Sets the size of an element on an LCD page.

LCDSetSize(pageName, elementName, width, height)

Arguments

pageName
string – Name of the page.
elementName
string – Name of a text, bitmap or progress bar element on that page.
width
number – Width in pixels.
height
number – Height in pixels.

Returns

Nothing.

Details

  • width and height 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 'LCDSetSize': Page '%s' does not exist.
  • Error in function call 'LCDSetSize': Page '%s' does not have a child named '%s'.

Example

From ea_lcdkeyboard/source/g15test.lua:

LCDCreateProgressBar( EA_LCDKeyboard.Page1, "AP", "filled", 0, 100 )
LCDSetLocation( EA_LCDKeyboard.Page1, "AP", 30, 11 )
LCDSetSize( EA_LCDKeyboard.Page1, "AP", 130, 9 )

See also