isWindowOpen.lua 607 B

12345678910111213141516171819202122232425
  1. return {
  2. tag = 'system-window',
  3. summary = 'Check if the desktop window is open.',
  4. description = [[
  5. Returns whether the desktop window is open. `t.window` can be set to `nil` in `lovr.conf` to
  6. disable automatic opening of the window. In this case, the window can be opened manually using
  7. `lovr.system.openWindow`.
  8. ]],
  9. arguments = {},
  10. returns = {
  11. open = {
  12. type = 'boolean',
  13. description = 'Whether the desktop window is open.'
  14. }
  15. },
  16. variants = {
  17. {
  18. arguments = {},
  19. returns = { 'open' }
  20. }
  21. },
  22. related = {
  23. 'lovr.system.openWindow'
  24. }
  25. }