From 6c5ad34536bd3259a12d6e1408f857dfb4164084 Mon Sep 17 00:00:00 2001 From: "Jill \"oatmealine\" Monoids" Date: Fri, 23 Sep 2022 08:30:50 +0300 Subject: [PATCH] environment module --- stdlib/env.lua | 8 ++++++++ typings.lua | 2 ++ 2 files changed, 10 insertions(+) create mode 100644 stdlib/env.lua diff --git a/stdlib/env.lua b/stdlib/env.lua new file mode 100644 index 0000000..4543473 --- /dev/null +++ b/stdlib/env.lua @@ -0,0 +1,8 @@ +require('stdlib.util') + +local self = {} + +self.inEditor = SCREENMAN:GetTopScreen():GetName() == 'ScreenEdit' +self.onWine = includes(INPUTMAN:GetDescriptions(), 'Wine Keyboard') + +return self \ No newline at end of file diff --git a/typings.lua b/typings.lua index 80f7e48..230ad3f 100644 --- a/typings.lua +++ b/typings.lua @@ -13,6 +13,8 @@ PREFSMAN = {} SCREENMAN = {} ---@type ProfileManager PROFILEMAN = {} +---@type RageInput +INPUTMAN = {} ---@return Quad --- Defines a Quad actor.