92 lines
3.7 KiB
Lua
92 lines
3.7 KiB
Lua
------------------------------------------------
|
|
--作者: 王圣
|
|
--日期: 2019-09-25
|
|
--文件: BaJiZhenLogic.lua
|
|
--模块: BaJiZhenLogic
|
|
------------------------------------------------
|
|
|
|
local BaJiZhenLogic = {
|
|
--父逻辑系统
|
|
Parent = nil,
|
|
Msg = nil, --服务器返回消息
|
|
}
|
|
|
|
function BaJiZhenLogic:OnEnterScene(parent)
|
|
self.Parent = parent
|
|
|
|
--设置开关
|
|
GameCenter.MapLogicSwitch.CanRide = true
|
|
GameCenter.MapLogicSwitch.CanFly = true
|
|
GameCenter.MapLogicSwitch.CanRollDoge = true
|
|
GameCenter.MapLogicSwitch.CanMandate = true
|
|
GameCenter.MapLogicSwitch.CanOpenTeam = true
|
|
GameCenter.MapLogicSwitch.ShowNewFunction = true
|
|
GameCenter.MapLogicSwitch.UseAutoStrikeBack = true
|
|
GameCenter.MapLogicSwitch.CanTeleport = true
|
|
GameCenter.MapLogicSwitch.IsCopyMap = true
|
|
GameCenter.MapLogicSwitch.IsPlaneCopyMap = false
|
|
GameCenter.MapLogicSwitch.HoldFighting = false
|
|
GameCenter.MapLogicSwitch.ShowServerID = true
|
|
--GameCenter.MapLogicSwitch.EventOpen = UIEventDefine.UIBaJiZhenCopyForm_Open
|
|
--GameCenter.MapLogicSwitch.EventClose = UIEventDefine.UIBaJiZhenCopyForm_Close
|
|
|
|
--关掉小地图功能
|
|
GameCenter.MainFunctionSystem:SetFunctionVisible(FunctionStartIdCode.AreaMap, false);
|
|
--关掉菜单
|
|
GameCenter.PushFixEvent(LogicEventDefine.EID_EVENT_CLOSE_MAINMENU);
|
|
GameCenter.PushFixEvent(UIEventDefine.UIBaJiZhenCopyForm_Open)
|
|
--local juDianData = GameCenter.BaJiZhenSystem:GetJuDianDataByCfgId(GameCenter.BaJiZhenSystem.CurJuDianId)
|
|
-- if juDianData then
|
|
-- if not juDianData:IsLocalServer() then
|
|
-- --如果不是本服
|
|
-- end
|
|
-- end
|
|
GameCenter.MandateSystem:Start()
|
|
--关闭八极阵功能界面
|
|
GameCenter.PushFixEvent(UIEventDefine.UICrossServerForm_CLOSE)
|
|
end
|
|
|
|
function BaJiZhenLogic:OnLeaveScene()
|
|
self.Msg = nil
|
|
GameCenter.PushFixEvent(UIEventDefine.UIBaJiZhenCopyForm_Close)
|
|
end
|
|
|
|
--处理协议
|
|
function BaJiZhenLogic:OnMsgHandle(msg)
|
|
|
|
end
|
|
|
|
function BaJiZhenLogic:GetMainUIState()
|
|
return {
|
|
[MainFormSubPanel.PlayerHead] = true, --主角头像
|
|
[MainFormSubPanel.TargetHead] = true, --目标头像
|
|
[MainFormSubPanel.TopMenu] = true, --顶部菜单
|
|
[MainFormSubPanel.MiniMap] = true, --小地图
|
|
[MainFormSubPanel.FlySwordGrave] = true, --境界
|
|
[MainFormSubPanel.TaskAndTeam] = false, --任务和组队
|
|
[MainFormSubPanel.Joystick] = true, --摇杆
|
|
[MainFormSubPanel.Exp] = true, --经验
|
|
[MainFormSubPanel.MiniChat] = true, --小聊天框
|
|
[MainFormSubPanel.Skill] = true, --技能
|
|
[MainFormSubPanel.SelectPkMode] = true, --选择PK模式
|
|
[MainFormSubPanel.FunctionFly] = true, --新功能开启飞行界面
|
|
[MainFormSubPanel.FastPrompt] = true, --快速提醒界面
|
|
[MainFormSubPanel.FastBts] = true, --快速操作按钮界面
|
|
[MainFormSubPanel.Ping] = true, --ping
|
|
[MainFormSubPanel.SkillWarning] = false, --技能释放警示
|
|
[MainFormSubPanel.CustomBtn] = true, --自定义按钮
|
|
[MainFormSubPanel.SitDown] = false, --打坐
|
|
[MainFormSubPanel.RemotePlayerHead] = true, --远程玩家头像
|
|
[MainFormSubPanel.ChangeSkill] = true, --变身技能
|
|
}
|
|
end
|
|
|
|
function BaJiZhenLogic:GetMainLeftUIState()
|
|
return {
|
|
[MainLeftSubPanel.Task] = false, --任务分页
|
|
[MainLeftSubPanel.Team] = false, --队伍分页
|
|
[MainLeftSubPanel.Other] = false, --其他分页
|
|
}
|
|
end
|
|
|
|
return BaJiZhenLogic |