1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- ---@class PCSkillInfoMgr
- ---@field nowKeyId number @当前鼠标悬停的技能id
- ---@field mainUIShow boolean @主界面UI是否已加载完毕
- PCSkillInfoMgr = class()
- local this = PCSkillInfoMgr
- function this.Init()
- this.mainUIShow=false
- this.nowKeyId=0
- this.RegistEvents()
- end
- function this.RegistEvents()
- if not this.eventContainer then
- this.eventContainer = SL.eventContainer--EventContainer(EventManager)
- this.eventContainer:Regist(LOADING_PANEL_HIDE,this.LoadingPanelHide)
- SL:RegisterLUAEvent(LUA_EVENT_ROLE_LOGIN,this.LUA_EVENT_ROLE_LOGIN)
- SL:RegisterLUAEvent(LUA_EVENT_ROLE_LOGOUT,this.LUA_EVENT_ROLE_LOGOUT)
- end
- end
- ---加载界面关闭后才接收快捷键输入
- function this.LoadingPanelHide()
- ---需要再判断是否已经进入游戏
- if SL:GetIsInGame() then --LoginManager.InGame then
- this.mainUIShow=true
- end
-
- end
- ---进入角色后初始化一下pc端临时数据
- function this.LUA_EVENT_ROLE_LOGIN()
- this.nowKeyId=0
- end
- ---退出角色后初始化数据
- function this.LUA_EVENT_ROLE_LOGOUT()
- this.mainUIShow=false
- this.nowKeyId=0
- end
|