public void Init() { this.map_fromScript = Singleton <CUIManager> .GetInstance().OpenForm(BurnExpeditionController.Map_FormPath, false, true); this.mapNode = Utility.FindChild(this.map_fromScript.gameObject, "mapNode/map"); this.animationScript = Utility.GetComponetInChild <CUIAnimatorScript>(this.mapNode, "Panel_Pointer"); for (int i = 0; i < this.mapNode.transform.childCount; i++) { if (this.mapNode.transform.GetChild(i).name.IndexOf("level") != -1) { this.levelNodeList.Add(null); } if (this.mapNode.transform.GetChild(i).name.IndexOf("box") != -1) { this.boxNodeList.Add(null); } } for (int j = 0; j < this.mapNode.transform.childCount; j++) { GameObject gameObject = this.mapNode.transform.GetChild(j).gameObject; if (gameObject.name.IndexOf("Panel") == -1) { gameObject.CustomSetActive(false); int index = BurnExpeditionUT.GetIndex(gameObject.name); if (gameObject.name.IndexOf("level") != -1) { this.levelNodeList.set_Item(index - 1, gameObject); } else if (gameObject.name.IndexOf("box") != -1) { this.boxNodeList.set_Item(index - 1, gameObject); } } } this.resetNumText = Utility.GetComponetInChild <Text>(this.map_fromScript.gameObject, "mapNode/toolbar/Info"); this.coinText = Utility.GetComponetInChild <Text>(this.map_fromScript.gameObject, "mapNode/toolbar/Coin/num"); this.enemyNode = Utility.FindChild(this.map_fromScript.gameObject, "enemyNode"); this.enemy_node_0 = Utility.FindChild(this.enemyNode, "Heros/hero_0"); this.enemy_node_1 = Utility.FindChild(this.enemyNode, "Heros/hero_1"); this.enemy_node_2 = Utility.FindChild(this.enemyNode, "Heros/hero_2"); this.buffNode = Utility.FindChild(this.map_fromScript.gameObject, "enemyNode/Buffs"); this.buff_node_0 = Utility.FindChild(this.buffNode, "buff_0"); this.buff_node_1 = Utility.FindChild(this.buffNode, "buff_1"); this.buff_node_2 = Utility.FindChild(this.buffNode, "buff_2"); this.nameText = Utility.GetComponetInChild <Text>(this.enemyNode, "PlayerIcon/Name"); this.levelText = Utility.GetComponetInChild <Text>(this.enemyNode, "PlayerIcon/level"); this.HttpImage = Utility.GetComponetInChild <CUIHttpImageScript>(this.enemyNode, "PlayerIcon/pnlSnsHead/HttpImage"); this.SymbolLevel = Utility.FindChild(this.enemyNode, "PlayerIcon/SymbolLevel"); this.mapNode.transform.parent.gameObject.CustomSetActive(true); this.SetEnemyNodeShow(false); this.Show_Line(0); }
private void On_Burn_BuffClick(CUIEvent uievent) { int index = BurnExpeditionUT.GetIndex(uievent.m_srcWidget.name); if (this.model.curSelect_BuffIndex != index) { this.model.curSelect_BuffIndex = index; if (this.view != null) { this.view._Show_Buff_Selected_Index(index); } } }
private void On_Burn_LevelButton(CUIEvent uievent) { int levelNo = BurnExpeditionUT.GetIndex(uievent.m_srcWidget.name) - 1; if (this.model.Get_LevelStatus(levelNo) == COM_LEVEL_STATUS.COM_LEVEL_STATUS_UNLOCKED) { this.model.curSelect_LevelIndex = levelNo; if (this.view != null) { this.view.Show_ENEMY(this.model.curSelect_LevelIndex); } } }
private void On_Burn_LevelButton(CUIEvent uievent) { int num = BurnExpeditionUT.GetIndex(uievent.m_srcWidget.name) - 1; if (this.model.Get_LevelStatus(num) != 1) { return; } this.model.curSelect_LevelIndex = num; if (this.view != null) { this.view.Show_ENEMY(this.model.curSelect_LevelIndex); } }
private void On_Burn_BoxButton(CUIEvent uievent) { this.model.curSelect_BoxIndex = BurnExpeditionUT.GetIndex(uievent.m_srcWidget.name) - 1; byte levelNo = this.model.Get_LevelNo(this.model.curSelect_BoxIndex); int levelID = this.model.Get_LevelID(this.model.curSelect_BoxIndex); if (uievent.m_srcWidget.transform.FindChild("current_node").gameObject.activeSelf) { uint num3; uint num4; if (this.model.Get_Box_Info(Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo().Level, this.model.curSelect_BoxIndex, out num3, out num4)) { this.view.Check_Box_Info(num3, num4); } } else if (this.model.Get_ChestRewardStatus(this.model.curSelect_BoxIndex) == COM_LEVEL_STATUS.COM_LEVEL_STATUS_UNLOCKED) { BurnExpeditionNetCore.Send_GET_BURNING_REWARD_REQ(levelNo, levelID); } }
private void On_Burn_BoxButton(CUIEvent uievent) { this.model.curSelect_BoxIndex = BurnExpeditionUT.GetIndex(uievent.m_srcWidget.name) - 1; byte levelNo = this.model.Get_LevelNo(this.model.curSelect_BoxIndex); int levelID = this.model.Get_LevelID(this.model.curSelect_BoxIndex); bool activeSelf = uievent.m_srcWidget.transform.FindChild("current_node").gameObject.activeSelf; if (activeSelf) { uint goldNum; uint burn_num; bool flag = this.model.Get_Box_Info(Singleton <CRoleInfoManager> .get_instance().GetMasterRoleInfo().Level, this.model.curSelect_BoxIndex, out goldNum, out burn_num); if (flag) { this.view.Check_Box_Info(goldNum, burn_num); } } else if (this.model.Get_ChestRewardStatus(this.model.curSelect_BoxIndex) == 1) { BurnExpeditionNetCore.Send_GET_BURNING_REWARD_REQ(levelNo, levelID); } }