Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:LCDCreateBitmap

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

Adds a bitmap element to an LCD page.

LCDCreateBitmap(pageName, bitmapName)

Arguments

pageName
string – Name of the page.
bitmapName
string – Name of the new element. Other LCD functions refer to it by this name together with the page name.

Returns

Nothing.

Details

  • The bitmap starts without an image. Load one with LCDBitmapSetImage.
  • If the page does not exist, the error below is logged and nothing is created.
  • The function needs at least two arguments and only reads the last two. Both must be strings.

Errors

  • Error in function call 'LCDCreateBitmap': Page '%s' does not exist.

Example

From ea_lcdkeyboard/source/g15test.lua:

LCDCreateBitmap( EA_LCDKeyboard.Page0, "Logo" )
LCDBitmapSetImage( EA_LCDKeyboard.Page0, "Logo", "Textures/LCDLogo.bmp", true )

See also