Added a metatable to the GUI table that has an __index that points to the GUI clr
This commit is contained in:
@@ -64,8 +64,16 @@ defaultLib["GUI"] = {
|
|||||||
Anchor = CreateStatic("Barotrauma.Anchor"),
|
Anchor = CreateStatic("Barotrauma.Anchor"),
|
||||||
Alignment = CreateStatic("Barotrauma.Alignment"),
|
Alignment = CreateStatic("Barotrauma.Alignment"),
|
||||||
Pivot = CreateStatic("Barotrauma.Pivot"),
|
Pivot = CreateStatic("Barotrauma.Pivot"),
|
||||||
|
SoundType = CreateEnum("Barotrauma.GUISoundType"),
|
||||||
|
CursorState = CreateEnum("Barotrauma.CursorState"),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setmetatable(defaultLib["GUI"], {
|
||||||
|
__index = function (table, key)
|
||||||
|
return defaultLib["GUI"].GUI[key]
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|
||||||
AddCallMetaTable(defaultLib["GUI"].VideoPlayer.VideoSettings)
|
AddCallMetaTable(defaultLib["GUI"].VideoPlayer.VideoSettings)
|
||||||
AddCallMetaTable(defaultLib["GUI"].VideoPlayer.TextSettings)
|
AddCallMetaTable(defaultLib["GUI"].VideoPlayer.TextSettings)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user