API:LCDShowPage
From RoR Wiki
UI Lua API · LCD functions
Version: WAR 1.4.8
Makes a page the one shown on the Logitech keyboard LCD.
LCDShowPage(pageName)
Arguments
- pageName
string– Name of a page created with LCDCreatePage.
Returns
Nothing.
Details
- The client looks the page up by name and stores it as the shown page.
- No error is given for an unknown name. The shown page is then cleared, so nothing is shown.
Errors
None besides the generic Invalid Parameters message when the argument is not a string.
Example
From ea_lcdkeyboard/source/g15test.lua, which switches pages with the LCD's buttons:
function EA_LCDKeyboard.HandleLCDButton(button, down) if( down ) then if( button == 1 ) then LCDShowPage( EA_LCDKeyboard.Page1 ) end if( button == 2 ) then LCDShowPage( EA_LCDKeyboard.Page2 ) end -- ...
