--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by PZM. --- DateTime: 2024/7/9 11:21 ---@class MainUiStateManager MainUiStateManager = {} local this = MainUiStateManager function this.Init() this.RegistEvents() this.showPanelMap = {} end function this.RegistEvents() SL:RegisterLUAEvent(LUA_EVENT_MAIN_UI_VISIBLE,this.LUA_EVENT_MAIN_UI_VISIBLE) end function this.UnRegistEvents() SL:UnRegisterLUAEvent(LUA_EVENT_ENTER_MAP,this.LUA_EVENT_ENTER_MAP) SL:RegisterLUAEvent(LUA_EVENT_PLAYER_CREATE, this.LUA_EVENT_PLAYER_CREATE) SL:UnRegisterLuaNetMsg(LuaMessageIdToClient.RES_SEND_GET_REWARD_MSG,this.RES_SEND_GET_REWARD_MSG) end function this.Reset() this.UnRegistEvents() end function this:LUA_EVENT_MAIN_UI_VISIBLE(info) local vis = info.vis local name = info.name this.showPanelMap[name] = vis SL:onLUAEvent(LUA_EVENT_MAIN_UI_VISIBLE_AFTER, info) end