Scripts/resources/[standalone]/RageUI/components/Enum.lua

31 lines
578 B
Lua
Raw Permalink Normal View History

2024-12-29 20:02:43 +00:00
---
--- @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