Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:LCDCreatePage

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

Creates a named page for the Logitech keyboard LCD.

LCDCreatePage(pageName)

Arguments

pageName
string – Name of the new page. Other LCD functions refer to the page by this name.

Returns

Nothing.

Details

  • An LCD page is a screen of content for the keyboard's LCD display. Add elements to it with LCDCreateStaticText, LCDCreateBitmap and LCDCreateProgressBar, and display it with LCDShowPage.
  • If a page with this name already exists, the client logs LCD Keyboard: A page with name '%s' already exists. and the error below, and no page is created.
  • The error below is also logged if the page cannot be set up.
  • The only stock user is the EA_LCDKeyboard addon (ea_lcdkeyboard/source/g15test.lua), which describes itself as "some test G15 Functionality".

Errors

  • Error in function call 'LCDCreatePage': Failed to create page '%s.'

Example

From ea_lcdkeyboard/source/g15test.lua:

LCDCreatePage( EA_LCDKeyboard.Page0 )

LCDCreateBitmap( EA_LCDKeyboard.Page0, "Logo" )
LCDBitmapSetImage( EA_LCDKeyboard.Page0, "Logo", "Textures/LCDLogo.bmp", true )
LCDCreateStaticText( EA_LCDKeyboard.Page0, "Title", 1, "center", 160 - 36, 2 )
LCDSetLocation( EA_LCDKeyboard.Page0, "Title", 36, 0 )

See also