environment module

This commit is contained in:
Jill 2022-09-23 08:30:50 +03:00
parent bbd9133b44
commit 6c5ad34536
2 changed files with 10 additions and 0 deletions

8
stdlib/env.lua Normal file
View File

@ -0,0 +1,8 @@
require('stdlib.util')
local self = {}
self.inEditor = SCREENMAN:GetTopScreen():GetName() == 'ScreenEdit'
self.onWine = includes(INPUTMAN:GetDescriptions(), 'Wine Keyboard')
return self

View File

@ -13,6 +13,8 @@ PREFSMAN = {}
SCREENMAN = {}
---@type ProfileManager
PROFILEMAN = {}
---@type RageInput
INPUTMAN = {}
---@return Quad
--- Defines a Quad actor.