1
0
Fork 0
forked from Simnation/Main
Main/resources/[tools]/RageUI/components/Enum.lua
2025-06-07 08:51:21 +02:00

30 lines
578 B
Lua

---
--- @author Dylan MALANDAIN
--- @version 2.0.0
--- @since 2020
---
--- RageUI Is Advanced UI Libs in LUA for make beautiful interface like RockStar GAME.
---
---
--- Commercial Info.
--- Any use for commercial purposes is strictly prohibited and will be punished.
---
--- @see RageUI
---
---@class Enum
local enums = {
__index = function(table, key)
if rawget(table.enums, key) then
return key
end
end
}
---Enum
---@param t table
---@return Enum
function RageUI.Enum(t)
local e = { enums = t }
return setmetatable(e, enums)
end