DabDaddy6223

cara_primary_screen

Aug 6th, 2026
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. local ui = require "cara_ui"
  2.  
  3. local PrimaryScreen = {}
  4.  
  5. function PrimaryScreen.draw()
  6.     local panelRect = ui.layout.full()
  7.     local contentArea = ui.widgets.panel(panelRect, "Computer-Aided Reliance Assistant", "center")
  8. end
  9.  
  10. function PrimaryScreen.key(key)
  11.     if key == keys.q then
  12.         return {
  13.             type = "quit"
  14.         }
  15.     end
  16.  
  17.     return nil
  18. end
  19.  
  20. function PrimaryScreen.tick()
  21. end
  22.  
  23. return PrimaryScreen
Advertisement
Add Comment
Please, Sign In to add comment