app
The overlay itself: its size, whether the menu is open, and how fast it is drawing.
Reference#
app.screen_size#since 1.0
app.screen_size(): number, numberThe size of the overlay, which covers the game picture. Read it every frame instead of caching it: the window can change size.
| Returns | Description |
|---|---|
number | Width in pixels. |
number | Height in pixels. |
local w, h = app.screen_size()
log.info(w .. "x" .. h)app.fps#since 1.0
app.fps(): numberThe overlay's own frame rate, not the game's.
| Returns | Description |
|---|---|
number | Frames the overlay draws per second. |