PGRData/Script/matrix/xconfig/XHeadPortraitConfigs.lua

30 lines
621 B
Lua
Raw Permalink Normal View History

local TABLE_HEADPORTRAITS = "Share/HeadPortrait/HeadPortrait.tab"
XHeadPortraitConfigs = XHeadPortraitConfigs or {}
XHeadPortraitConfigs.HeadTimeLimitType = {
Forever = 0,
Duration = 1,
FixedTime = 2,
}
XHeadPortraitConfigs.HeadType = {
HeadPortrait = 1,
HeadFrame = 2,
}
XHeadPortraitConfigs.BtnState = {
Use = 1,
NonUse = 2,
}
local HeadPortraitsCfg = {}
function XHeadPortraitConfigs.Init()
HeadPortraitsCfg = XTableManager.ReadByIntKey(TABLE_HEADPORTRAITS, XTable.XTableHeadPortrait, "Id")
end
function XHeadPortraitConfigs.GetHeadPortraitsCfg()
return HeadPortraitsCfg
end