Skip to content
dragekk edited this page Feb 16, 2023 · 3 revisions

Other useful things

APP.open(app_name, ...)

opens app with name app_name, if app_name is nil it will open home screen ... extra arguments that will be used in init event when opening app

app.can_be_opened = true

variable that when its false it will hide app from home screen

app.isPressed(key_name)

returns true if key is pressed, false when not pressed, nil when key doesnt exist

app.setPage(page_name)

sets current page to page with given name

app.redraw({...}, dont_update)

redraws whole screen

if table is provided it will only redraw elements that their indexes are in that table

dont_update is boolean, if its true screen will not update