private void SetSelectedCharChg() { if (this.DataChg != null) { if (null != this.goMN_ICON_CHG_2) { UnityEngine.Object.DestroyImmediate(this.goMN_ICON_CHG_2); } Transform transform = this.goMN_ICON_CHG.transform; GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(this.DataChg, transform.localScale, transform.localPosition, transform.parent, true, false); this.goMN_ICON_CHG_2 = guimonsterIcon.gameObject; this.goMN_ICON_CHG_2.SetActive(true); guimonsterIcon.Data = this.DataChg; guimonsterIcon.SetTouchAct_S(new Action <MonsterData>(this.actRemoveChg)); guimonsterIcon.SetTouchAct_L(new Action <MonsterData>(this.ActMIconLong)); UIWidget component = this.goMN_ICON_CHG.GetComponent <UIWidget>(); UIWidget component2 = guimonsterIcon.gameObject.GetComponent <UIWidget>(); if (null != component && null != component2) { int add = component.depth - component2.depth; DepthController component3 = guimonsterIcon.gameObject.GetComponent <DepthController>(); component3.AddWidgetDepth(guimonsterIcon.transform, add); } this.goMN_ICON_CHG.SetActive(false); QuestBonusPack questBonusPack = new QuestBonusPack { bonusChipIds = QuestBonusFilter.GetActivateBonusChips(this.DataChg, this.questBonusPack.bonusChipIds), eventBonuses = QuestBonusFilter.GetActivateEventBonuses(this.bonusTargetCheck, this.DataChg, this.questBonusPack.eventBonuses), dungeonBonuses = QuestBonusFilter.GetActivateDungeonBonuses(this.bonusTargetCheck, this.DataChg, this.questBonusPack.dungeonBonuses) }; guimonsterIcon.Gimmick = questBonusPack.ExistBonus(); } this.ShowChgInfo(); }
protected void SetIcons(string path, List <UISprite> list, GameWebAPI.RespDataCM_LoginBonus.LoginReward[] rewardList) { int num = 1; string name = path + num; if (base.transform.Find(name) == null) { return; } UISprite component = base.transform.Find(name).GetComponent <UISprite>(); while (component != null) { list.Add(component); if (rewardList.Length < num) { component.gameObject.SetActive(false); } else { int num2 = num - 1; string rewardIcon = this.GetRewardIcon(rewardList[num2]); string assetCategoryId = rewardList[num2].assetCategoryId; string assetValue = rewardList[num2].assetValue; if (string.IsNullOrEmpty(assetCategoryId) || string.IsNullOrEmpty(rewardIcon) || this.textureCategoryList.Contains(assetCategoryId.ToInt32())) { component.gameObject.SetActive(false); } else if (assetCategoryId.ToInt32() == 17) { GameWebAPI.RespDataMA_ChipM.Chip chipMainData = ChipDataMng.GetChipMainData(assetValue); ChipDataMng.MakePrefabByChipData(chipMainData, component.gameObject, component.transform.localPosition, component.transform.localScale, null, -1, -1, true); } else if (assetCategoryId.ToInt32() == 1) { this.monsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(MonsterDataMng.Instance().CreateMonsterDataByMID(assetValue), Vector3.one, Vector3.zero, component.transform, true, false); this.monsterIcon.ResizeIcon(component.width, component.height); if (null != this.monsterIcon) { DepthController depthController = this.monsterIcon.GetDepthController(); if (null != depthController) { depthController.AddWidgetDepth(this.monsterIcon.transform, component.depth + 1); } } } else { component.spriteName = rewardIcon; } } num++; name = path + num; if (!(base.transform.Find(name) != null)) { break; } component = base.transform.Find(name).GetComponent <UISprite>(); } }
private void SetDigimonIcon() { if (this.data.leaderMonsterId == "0") { this.data.leaderMonsterId = "81"; } if (string.IsNullOrEmpty(this.data.leaderMonsterId)) { this.goMONSTER_ICON.SetActive(false); return; } if (this.digimonData == null) { this.digimonData = MonsterDataMng.Instance().CreateMonsterDataByMID(this.data.leaderMonsterId); this.csMonsIcon = GUIMonsterIcon.MakePrefabByMonsterData(this.digimonData, this.goMONSTER_ICON.transform.localScale, this.goMONSTER_ICON.transform.localPosition, this.goMONSTER_ICON.transform.parent, true, true); UIWidget component = this.goMONSTER_ICON.GetComponent <UIWidget>(); UIWidget component2 = this.csMonsIcon.gameObject.GetComponent <UIWidget>(); if (component != null && component2 != null) { int add = component.depth - component2.depth; DepthController component3 = this.csMonsIcon.gameObject.GetComponent <DepthController>(); component3.AddWidgetDepth(this.csMonsIcon.transform, add); } this.goMONSTER_ICON.SetActive(false); } else { this.digimonData = MonsterDataMng.Instance().CreateMonsterDataByMID(this.data.leaderMonsterId); this.csMonsIcon.RefreshPrefabByMonsterData(this.digimonData); } }
private void ShowIcon() { if (this.goMN_ICON_CHG_2 != null) { UnityEngine.Object.DestroyImmediate(this.goMN_ICON_CHG_2); } GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(this.data, this.goMN_ICON.transform.localScale, this.goMN_ICON.transform.localPosition, this.goMN_ICON.transform.parent, true, false); this.goMN_ICON_CHG_2 = guimonsterIcon.gameObject; this.goMN_ICON_CHG_2.SetActive(true); guimonsterIcon.Data = this.data; guimonsterIcon.SetTouchAct_L(new Action <MonsterData>(this.actMIconLong)); UIWidget component = this.goMN_ICON.GetComponent <UIWidget>(); UIWidget component2 = guimonsterIcon.gameObject.GetComponent <UIWidget>(); if (component != null && component2 != null) { int add = component.depth - component2.depth; DepthController component3 = guimonsterIcon.gameObject.GetComponent <DepthController>(); component3.AddWidgetDepth(guimonsterIcon.transform, add); } BoxCollider component4 = this.goMN_ICON.GetComponent <BoxCollider>(); BoxCollider component5 = guimonsterIcon.GetComponent <BoxCollider>(); if (component4 != null && component5 != null) { component5.center = component4.center; component5.size = component4.size; } this.goMN_ICON.SetActive(false); }
private void SetSelectedCharChg(MonsterData monster) { this.changeMonsterData = monster; if (null != this.goMN_ICON_CHG_2) { UnityEngine.Object.Destroy(this.goMN_ICON_CHG_2); } Transform transform = this.goMN_ICON_CHG.transform; GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(this.changeMonsterData, transform.localScale, transform.localPosition, transform.parent, true, false); this.goMN_ICON_CHG_2 = guimonsterIcon.gameObject; this.goMN_ICON_CHG_2.SetActive(true); guimonsterIcon.Data = this.changeMonsterData; guimonsterIcon.SetTouchAct_S(new Action <MonsterData>(this.actRemoveChg)); guimonsterIcon.SetTouchAct_L(new Action <MonsterData>(this.ActMIconLong)); UIWidget component = this.goMN_ICON_CHG.GetComponent <UIWidget>(); UIWidget component2 = guimonsterIcon.gameObject.GetComponent <UIWidget>(); if (component != null && component2 != null) { int add = component.depth - component2.depth; DepthController component3 = guimonsterIcon.gameObject.GetComponent <DepthController>(); component3.AddWidgetDepth(guimonsterIcon.transform, add); } this.goMN_ICON_CHG.SetActive(false); guimonsterIcon.Gimmick = ExtraEffectUtil.IsExtraEffectMonster(this.changeMonsterData, this.effectArray); this.SetChangeMonsterData(); }
private void UpdateMonsterIcon() { if (!this.isUpdate) { if (this.RespDataChatMessageDataResult.type != 3) { this.ngTX_USERNAME.text = this.RespDataChatMessageDataResult.userInfo.nickname; TitleDataMng.SetTitleIcon(this.RespDataChatMessageDataResult.userInfo.titleId, this.ngTITLE_ICON.GetComponent <UITexture>()); this.thumbMid = this.RespDataChatMessageDataResult.userInfo.monsterId; MonsterData monsterData = MonsterDataMng.Instance().CreateMonsterDataByMID(this.thumbMid); if (monsterData != null) { GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(monsterData, this.ngMONSTER_ICON.transform.localScale, this.ngMONSTER_ICON.transform.localPosition, this.ngMONSTER_ICON.transform.parent, true, true); guimonsterIcon.onTouchEnded += delegate(Touch touch, Vector2 pos, bool flag) { this.OnThumbnailClicked(); }; DepthController depthController = guimonsterIcon.GetDepthController(); depthController.AddWidgetDepth(guimonsterIcon.transform, 1200); } } if (this.RespDataChatMessageDataResult.type == 4 && DataMng.Instance().UserId != this.RespDataChatMessageDataResult.userId) { this.ngMULTICODE_BCOL.size = new Vector3(this.ngMULTICODE_BCOL.size.x, this.ngMULTICODE_BCOL.size.y, 5f); } this.isUpdate = true; } }
private void ShowParam() { this.md_favo = MonsterDataMng.Instance().CreateMonsterDataByMID(CMD_PartsFriendCheckScreen.data.monsterData.monsterId); GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(this.md_favo, this.goMN_ICON.transform.localScale, this.goMN_ICON.transform.localPosition, this.goMN_ICON.transform.parent, true, false); this.goMN_ICON_2 = guimonsterIcon.gameObject; this.goMN_ICON_2.SetActive(true); guimonsterIcon.Data = this.md_favo; guimonsterIcon.SetTouchAct_S(new Action <MonsterData>(this.actMIconLong)); guimonsterIcon.SetTouchAct_L(new Action <MonsterData>(this.actMIconLong)); UIWidget component = this.goMN_ICON.GetComponent <UIWidget>(); UIWidget component2 = guimonsterIcon.gameObject.GetComponent <UIWidget>(); if (component != null && component2 != null) { int add = component.depth - component2.depth; DepthController component3 = guimonsterIcon.gameObject.GetComponent <DepthController>(); component3.AddWidgetDepth(guimonsterIcon.transform, add); } this.goMN_ICON.SetActive(false); TitleDataMng.SetTitleIcon(CMD_PartsFriendCheckScreen.data.userData.titleId, this.goTITLE_ICON.GetComponent <UITexture>()); this.ngTX_NICKNAME.text = CMD_PartsFriendCheckScreen.data.userData.nickname; this.ngTX_EXP.text = CMD_PartsFriendCheckScreen.data.userData.description; this.ngTX_LAST_LOGIN.text = StringMaster.GetString("Friend-12") + CMD_PartsFriendCheckScreen.data.userData.loginTime; }
private GameObject SetSelectedCharChg(MonsterData md, GameObject goEmpty, GameObject goIcon, int inum) { if (md != null) { if (goIcon != null) { UnityEngine.Object.DestroyImmediate(goIcon); } GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(md, goEmpty.transform.localScale, goEmpty.transform.localPosition, goEmpty.transform.parent, true, false); goIcon = guimonsterIcon.gameObject; goIcon.SetActive(true); guimonsterIcon.Data = md; if (inum == 0) { guimonsterIcon.SetTouchAct_S(new Action <MonsterData>(this.ActMIconShort_0)); this.SetBaseTouchAct_L(guimonsterIcon); } else if (inum == 1) { guimonsterIcon.SetTouchAct_S(new Action <MonsterData>(this.ActMIconShort_1)); this.SetPartnerTouchAct_L(guimonsterIcon); } UIWidget component = goEmpty.GetComponent <UIWidget>(); UIWidget component2 = guimonsterIcon.gameObject.GetComponent <UIWidget>(); if (component != null && component2 != null) { int add = component.depth - component2.depth; DepthController component3 = guimonsterIcon.gameObject.GetComponent <DepthController>(); component3.AddWidgetDepth(guimonsterIcon.transform, add); } goEmpty.SetActive(false); } return(goIcon); }
private void SetSelectedChar() { if (CMD_DeckList.SelectMonsterData != null) { Transform transform = this.goMN_ICON_NOW.transform; GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(CMD_DeckList.SelectMonsterData, transform.localScale, transform.localPosition, transform.parent, true, false); this.goMN_ICON_NOW_2 = guimonsterIcon.gameObject; this.goMN_ICON_NOW_2.SetActive(true); guimonsterIcon.Data = CMD_DeckList.SelectMonsterData; guimonsterIcon.SetTouchAct_L(new Action <MonsterData>(this.ActMIconLong)); UIWidget component = this.goMN_ICON_NOW.GetComponent <UIWidget>(); UIWidget component2 = guimonsterIcon.gameObject.GetComponent <UIWidget>(); if (null != component && null != component2) { int add = component.depth - component2.depth; DepthController component3 = guimonsterIcon.gameObject.GetComponent <DepthController>(); component3.AddWidgetDepth(guimonsterIcon.transform, add); } this.goMN_ICON_NOW.SetActive(false); QuestBonusPack questBonusPack = new QuestBonusPack { bonusChipIds = QuestBonusFilter.GetActivateBonusChips(CMD_DeckList.SelectMonsterData, this.questBonusPack.bonusChipIds), eventBonuses = QuestBonusFilter.GetActivateEventBonuses(this.bonusTargetCheck, CMD_DeckList.SelectMonsterData, this.questBonusPack.eventBonuses), dungeonBonuses = QuestBonusFilter.GetActivateDungeonBonuses(this.bonusTargetCheck, CMD_DeckList.SelectMonsterData, this.questBonusPack.dungeonBonuses) }; guimonsterIcon.Gimmick = questBonusPack.ExistBonus(); } }
public void SetMonsterIcon(MonsterData md, bool active) { if (!active) { if (this.monsterIcon != null) { UnityEngine.Object.Destroy(this.monsterIcon.gameObject); this.monsterIcon = null; } } else { if (this.monsterIcon != null) { UnityEngine.Object.Destroy(this.monsterIcon.gameObject); } GameObject gameObject = this.charaIcon.gameObject; this.monsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(md, gameObject.transform.localScale, gameObject.transform.localPosition, gameObject.transform.parent, true, false); UIWidget component = gameObject.GetComponent <UIWidget>(); if (component != null) { DepthController.SetWidgetDepth_Static(this.monsterIcon.gameObject.transform, component.depth + 2); } } }
private void ShowInfo() { GameWebAPI.RespDataWD_GetDungeonInfo.Dungeons dungeon = this.dungeonData.dungeon; ClassSingleton <PartyBossIconsAccessor> .Instance.StageEnemies = dungeon.encountEnemies; this.ngTX_A_STAGE_DNG_NUMBER.text = this.dungeonNo; this.ngTX_A_STAGE_DNG_TITLE.text = this.dungeonData.worldDungeonM.name; this.ngTX_A_STAGE_DNG_DESCRIPT.text = this.dungeonData.worldDungeonM.description; this.getEXPLabel.text = dungeon.exp.ToString(); this.getClusterLabel.text = StringFormat.Cluster(dungeon.money); int num = 0; int i; for (i = 0; i < dungeon.encountEnemies.Length; i++) { if (num >= this.goENCOUNT_MONS_LIST.Count) { break; } GameWebAPI.RespDataWD_GetDungeonInfo.EncountEnemy encountEnemy = dungeon.encountEnemies[i]; if (encountEnemy.type == 2 || encountEnemy.type == 4) { string text = encountEnemy.monsterId.ToString(); if (!string.IsNullOrEmpty(text)) { MonsterData monsterData = MonsterDataMng.Instance().CreateMonsterDataByMID(text); if (monsterData != null) { GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(monsterData, this.goENCOUNT_MONS_LIST[num].transform.localScale, this.goENCOUNT_MONS_LIST[num].transform.localPosition, this.goENCOUNT_MONS_LIST[num].transform.parent, true, false); DepthController depthController = guimonsterIcon.GetDepthController(); depthController.AddWidgetDepth(guimonsterIcon.transform, 40); guimonsterIcon.SetTouchAct_S(delegate(MonsterData tappedMonsterData) { this.ActCallBackEncMons(tappedMonsterData, encountEnemy.resistanceId); }); this.goENCOUNT_MONS_LIST[num].SetActive(false); num++; } } } } if (this.dungeonData.dungeon.isExtraWave == 1 && num < this.goENCOUNT_MONS_LIST.Count) { GUIMonsterIcon guimonsterIcon2 = GUIMonsterIcon.MakeQuestionPrefab(this.goENCOUNT_MONS_LIST[num].transform.localScale, this.goENCOUNT_MONS_LIST[num].transform.localPosition, (int)(this.goENCOUNT_MONS_LIST[num].transform.localPosition.z + 35f), this.goENCOUNT_MONS_LIST[num].transform.parent); guimonsterIcon2.SetTouchAct_S(null); guimonsterIcon2.SetTouchAct_L(null); } while (i < this.goENCOUNT_MONS_LIST.Count) { this.goENCOUNT_MONS_LIST[i].SetActive(false); i++; } this.ShowDropItems(); this.goContentsROOT.SetActive(true); this.goPointContentsROOT.SetActive(true); this.bonusPointUI.Initialize(this.areaId, this.dungeonData.worldDungeonM.worldStageId, this.dungeonData.worldDungeonM.worldDungeonId); this.bonusPointUI.SetBonusUI(); }
private void CreateDigimonThumbnail() { if (!this.isMulti) { int[] aliveInfo = DataMng.Instance().WD_ReqDngResult.aliveInfo; for (int i = 0; i < this.deckData.monsterList.Length; i++) { this.digimonInfos[i].DigimonNo = i; GameWebAPI.RespDataMN_GetDeckList.MonsterList monsterList = this.deckData.monsterList[i]; MonsterData userMonster = ClassSingleton <MonsterUserDataMng> .Instance.GetUserMonster(monsterList.userMonsterId); MonsterData monsterData = MonsterDataMng.Instance().CreateMonsterDataByMID(userMonster.GetMonster().monsterId); Transform iconLocator = this.digimonInfos[i].GetIconLocator(); GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(monsterData, iconLocator.localScale, iconLocator.localPosition, iconLocator.parent, true, false); guimonsterIcon.name = "DigimonIcon" + i; guimonsterIcon.activeCollider = false; int depth = guimonsterIcon.GetComponent <UIWidget>().depth; this.digimonInfos[i].SetDepth(depth); if (aliveInfo.Length > i && aliveInfo[i] == 0) { guimonsterIcon.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.NOTACTIVE); } } } else { int[] aliveInfo2 = DataMng.Instance().WD_ReqDngResult.aliveInfo; GameWebAPI.RespData_WorldMultiStartInfo respData_WorldMultiStartInfo = DataMng.Instance().RespData_WorldMultiStartInfo; for (int j = 0; j < this.digimonInfos.Length; j++) { this.digimonInfos[j].DigimonNo = j; int partyIndex = DataMng.Instance().GetPartyIndex(j); int monsterIndex = DataMng.Instance().GetMonsterIndex(j); MonsterData monsterData2 = MonsterDataMng.Instance().CreateMonsterDataByMID(respData_WorldMultiStartInfo.party[partyIndex].userMonsters[monsterIndex].monsterId); Transform iconLocator2 = this.digimonInfos[j].GetIconLocator(); GUIMonsterIcon guimonsterIcon2 = GUIMonsterIcon.MakePrefabByMonsterData(monsterData2, iconLocator2.localScale, iconLocator2.localPosition, iconLocator2.parent, true, false); guimonsterIcon2.name = "DigimonIcon" + j; guimonsterIcon2.activeCollider = false; int depth2 = guimonsterIcon2.GetComponent <UIWidget>().depth; this.digimonInfos[j].SetDepth(depth2); guimonsterIcon2.SetPlayerIcon(partyIndex + 1); if (aliveInfo2.Length > j && aliveInfo2[j] == 0) { guimonsterIcon2.SetGrayout(GUIMonsterIcon.DIMM_LEVEL.NOTACTIVE); } } } foreach (BattleResultDigimonInfo battleResultDigimonInfo in this.digimonInfos) { NGUITools.SetActiveSelf(battleResultDigimonInfo.gameObject, false); } }
private void SetInitLabel() { this.lbUserName.text = this.data.ownerName; this.lbComment.text = this.data.introduction; TitleDataMng.SetTitleIcon(this.data.titleId, this.goTitleIcon.GetComponent <UITexture>()); GameWebAPI.RespDataMA_GetWorldStageM.WorldStageM[] worldStageM = MasterDataMng.Instance().RespDataMA_WorldStageM.worldStageM; GameWebAPI.RespDataMA_GetWorldStageM.WorldStageM worldStageM2 = worldStageM.SingleOrDefault((GameWebAPI.RespDataMA_GetWorldStageM.WorldStageM x) => x.worldStageId == this.data.worldStageId); this.lbQuestName.text = worldStageM2.name + "\n" + this.data.dungeonName; string moodType = this.data.moodType; if (moodType != null) { if (moodType == "1") { this.lbMoodType.text = StringMaster.GetString("RecruitRule-06"); goto IL_125; } if (moodType == "2") { this.lbMoodType.text = StringMaster.GetString("RecruitRule-07"); goto IL_125; } if (!(moodType == "3")) { } } this.lbMoodType.text = StringMaster.GetString("RecruitRule-08"); IL_125: this.lbNowMemberNum.text = string.Format(StringMaster.GetString("SystemFraction"), this.data.memberCount, 3); if (!this.isOpenedQuest) { this.bgFrame.color = ConstValue.DEFAULT_COLOR; this.lbUserName.color = ConstValue.DEACTIVE_BUTTON_LABEL; this.lbQuestName.color = ConstValue.DEACTIVE_BUTTON_LABEL; this.lbComment.color = ConstValue.DEACTIVE_BUTTON_LABEL; } if (this.data.ownerMonsterId != null) { MonsterData monsterData = MonsterDataMng.Instance().CreateMonsterDataByMID(this.data.ownerMonsterId); if (monsterData != null) { GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(monsterData, this.goMasterIcon.transform.localScale, this.goMasterIcon.transform.localPosition, this.goMasterIcon.transform.parent, true, false); UIWidget component = base.gameObject.GetComponent <UIWidget>(); if (component != null) { DepthController depthController = guimonsterIcon.GetDepthController(); depthController.AddWidgetDepth(guimonsterIcon.transform, component.depth + 2); } } } }
private void SetInitLabel() { this.lbUserName.text = this.friendData.userData.nickname; this.lbUserComment.text = this.friendData.userData.description; this.lbLastLogin.text = this.friendData.userData.loginTime; TitleDataMng.SetTitleIcon(this.friendData.userData.titleId, this.goTitleIcon.GetComponent <UITexture>()); MonsterData monsterData = MonsterDataMng.Instance().CreateMonsterDataByMID(this.friendData.monsterData.monsterId); if (monsterData != null) { GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(monsterData, this.goMonsterIcon.transform.localScale, this.goMonsterIcon.transform.localPosition, this.goMonsterIcon.transform.parent, true, false); DepthController depthController = guimonsterIcon.GetDepthController(); depthController.AddWidgetDepth(guimonsterIcon.transform, 1800); } }
private void CreateDigimonThumbnail() { GUIMonsterIcon[] componentsInChildren = base.GetComponentsInChildren <GUIMonsterIcon>(); this.digimonIcons = new GUIMonsterIcon[componentsInChildren.Length]; for (int i = 0; i < ColosseumData.LastUseMonsterList.Length; i++) { MonsterData monsterData = ColosseumData.LastUseMonsterList[i]; this.digimonIcons[i] = GUIMonsterIcon.MakePrefabByMonsterData(monsterData, componentsInChildren[i].transform.localScale, componentsInChildren[i].transform.localPosition, base.transform, true, false); this.digimonIcons[i].name = "DigimonIcon" + i; this.digimonIcons[i].activeCollider = false; } foreach (GUIMonsterIcon guimonsterIcon in componentsInChildren) { NGUITools.SetActiveSelf(guimonsterIcon.gameObject, false); } }
private void ShowMonsterIcons() { for (int i = 0; i < this.goMN_ICON_LIST.Count; i++) { if (CMD_MonsterGashaResult.DataList.Count > i) { Transform transform = this.goMN_ICON_LIST[i].transform; GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(CMD_MonsterGashaResult.DataList[i], transform.localScale, transform.localPosition, transform.parent, true, false); guimonsterIcon.New = CMD_MonsterGashaResult.IconNewFlagList[i]; this.monsterIconList.Add(guimonsterIcon); guimonsterIcon.SetTouchAct_S(new Action <MonsterData>(this.ActMIconLong)); guimonsterIcon.SetTouchAct_L(new Action <MonsterData>(this.ActMIconLong)); UIWidget component = guimonsterIcon.gameObject.GetComponent <UIWidget>(); if (null != this.prizeEfcDirector && null != this.prizeEfcCont) { this.prizeEfcCont.gameObject.SetActive(true); GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(this.prizeEfcCont.gameObject); PrizeEfcCont component2 = gameObject.GetComponent <PrizeEfcCont>(); component2.prizeEfcDir = this.prizeEfcDirector; component2.transform.parent = guimonsterIcon.transform; component2.transform.localPosition = Vector3.zero; component2.transform.localScale = Vector3.one; component2.Data = CMD_MonsterGashaResult.DataList[i]; component2.SetParam(); UIWidget component3 = component2.gameObject.GetComponent <UIWidget>(); if (null != component3 && null != component) { int add = component.depth - component3.depth; DepthController component4 = component2.gameObject.GetComponent <DepthController>(); component4.AddWidgetDepth(component4.transform, add); } } UIWidget component5 = this.goMN_ICON_LIST[i].GetComponent <UIWidget>(); if (null != component5 && null != component) { int add2 = component5.depth - component.depth; DepthController component6 = guimonsterIcon.gameObject.GetComponent <DepthController>(); component6.AddWidgetDepth(guimonsterIcon.transform, add2); } this.goMN_ICON_LIST[i].SetActive(false); } else { this.goMN_ICON_LIST[i].SetActive(false); } } }
public void SetStatusInfo(string user_id, string user_name, int leader_lv, string leader_monster_id, string title_id, BattleResultFriendReqInfo.FRIEND_TYPE friend_type) { this.userId = user_id; this.TXT_NAME.text = user_name; this.TXT_LV.text = leader_lv.ToString(); TitleDataMng.SetTitleIcon(title_id, this.titleIcon); MonsterData monsterData = MonsterDataMng.Instance().CreateMonsterDataByMID(leader_monster_id); GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(monsterData, this.iconAnchor.localScale, this.iconAnchor.localPosition, this.iconAnchor.parent, true, false); guimonsterIcon.name = "DigimonIcon"; UIWidget[] componentsInChildren = guimonsterIcon.GetComponentsInChildren <UIWidget>(); foreach (UIWidget uiwidget in componentsInChildren) { uiwidget.depth += 1000; } this.ButtonSetActive(friend_type); }
public void SetStatusInfo(string user_name, int leader_luck, string leader_monster_id, Transform target) { this.TXT_NAME.text = user_name; this.TXT_LUCK.text = leader_luck.ToString(); MonsterData monsterData = MonsterDataMng.Instance().CreateMonsterDataByMID(leader_monster_id); GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(monsterData, this.iconAnchor.localScale, this.iconAnchor.localPosition, this.iconAnchor.parent, true, false); guimonsterIcon.name = "DigimonIcon"; Vector3 localPosition = this.arrowSprite.transform.localPosition; Vector3 vector = this.arrowSprite.transform.parent.InverseTransformPoint(target.position); float num = Vector2.Distance(new Vector2(localPosition.x, localPosition.y), new Vector2(vector.x, vector.y)); Vector2 v = new Vector2(vector.x, vector.y) - new Vector2(localPosition.x, localPosition.y); float z = Quaternion.FromToRotation(Vector3.up, v).eulerAngles.z; this.arrowSprite.height = (int)num - 50; this.arrowTransform.Rotate(Vector3.forward, z); }
public void RefreshList(List <MonsterData> monsterDataList) { this.AllDisable(); List <GUIMonsterIcon> list = new List <GUIMonsterIcon>(); for (int i = 0; i < this.monsterIconList.Count; i++) { MonsterData data = this.monsterIconList[i].Data; if (data != null) { string id = data.userMonster.userMonsterId; if (!monsterDataList.Any((MonsterData x) => x.userMonster.userMonsterId == id)) { this.monsterIconList[i].ClearMonsterData(); UnityEngine.Object.Destroy(this.monsterIconList[i].gameObject); list.Add(this.monsterIconList[i]); } } } for (int j = 0; j < list.Count; j++) { this.monsterIconList.Remove(list[j]); } list.Clear(); List <GUIMonsterIcon> list2 = new List <GUIMonsterIcon>(); Vector3 vPos = new Vector3(2000f, 2000f, 0f); for (int k = 0; k < monsterDataList.Count; k++) { GUIMonsterIcon icon = this.GetIcon(monsterDataList[k].userMonster.userMonsterId); if (null != icon) { icon.Data = monsterDataList[k]; } else { GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(monsterDataList[k], Vector3.one, vPos, null, false, false); list2.Add(guimonsterIcon); guimonsterIcon.gameObject.SetActive(false); } } if (0 < list2.Count) { this.monsterIconList.AddRange(list2); } }
private GUIMonsterIcon ShowCreateIcon(MonsterData md, GameObject goEmpty) { Transform transform = goEmpty.transform; GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(md, transform.localScale, transform.localPosition, transform.parent, true, false); guimonsterIcon.SetTouchAct_S(new Action <MonsterData>(this.ActMIconS_Remove)); guimonsterIcon.SetTouchAct_L(new Action <MonsterData>(this.ActMIconLong)); guimonsterIcon.transform.localScale = new Vector3(0.84f, 0.84f, 1f); UIWidget component = goEmpty.GetComponent <UIWidget>(); UIWidget component2 = guimonsterIcon.gameObject.GetComponent <UIWidget>(); if (null != component && null != component2) { int add = component.depth - component2.depth; DepthController component3 = guimonsterIcon.gameObject.GetComponent <DepthController>(); component3.AddWidgetDepth(guimonsterIcon.transform, add); } goEmpty.SetActive(false); return(guimonsterIcon); }
private void SetInitLabel() { this.lbUserName.text = this.data.userInfo.nickname; this.lbComment.text = string.Format(StringMaster.GetString("ColosseumMockInvitation"), this.data.userInfo.nickname); TitleDataMng.SetTitleIcon(this.data.userInfo.titleId, this.goTitleIcon.GetComponent <UITexture>()); if (this.data.userInfo.monsterId != null) { MonsterData monsterData = MonsterDataMng.Instance().CreateMonsterDataByMID(this.data.userInfo.monsterId); if (monsterData != null) { GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(monsterData, this.goMasterIcon.transform.localScale, this.goMasterIcon.transform.localPosition, this.goMasterIcon.transform.parent, true, false); UIWidget component = base.gameObject.GetComponent <UIWidget>(); if (component != null) { DepthController depthController = guimonsterIcon.GetDepthController(); depthController.AddWidgetDepth(guimonsterIcon.transform, component.depth + 2); } } } }
private void CreateIcon(int index, MonsterData md, GameObject goEmpty) { Transform transform = goEmpty.transform; GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(md, transform.localScale, transform.localPosition, transform.parent, true, false); guimonsterIcon.playSelectSE = false; guimonsterIcon.SendMoveToParent = false; guimonsterIcon.CancelTouchEndByMove = false; guimonsterIcon.gameObject.name = "MonsterIcon " + index.ToString(); UIWidget component = goEmpty.GetComponent <UIWidget>(); UIWidget component2 = guimonsterIcon.gameObject.GetComponent <UIWidget>(); if (component != null && component2 != null) { int add = component.depth - component2.depth; DepthController component3 = guimonsterIcon.GetComponent <DepthController>(); component3.AddWidgetDepth(guimonsterIcon.transform, add); } NGUITools.DestroyImmediate(goEmpty); }
private void SetSelectedCharChg() { if (CMD_BaseSelect.DataChg != null) { if (this.goMN_ICON_CHG_2 != null) { UnityEngine.Object.Destroy(this.goMN_ICON_CHG_2); } Transform transform = this.goMN_ICON_CHG.transform; this.monsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(CMD_BaseSelect.DataChg, transform.localScale, transform.localPosition, transform.parent, true, false); this.goMN_ICON_CHG_2 = this.monsterIcon.gameObject; this.goMN_ICON_CHG_2.SetActive(true); this.monsterIcon.SetTouchAct_S(new Action <MonsterData>(this.OnPushedBaseMonsterIcon)); this.monsterIcon.SetTouchAct_L(new Action <MonsterData>(this.ActMIconLong)); UIWidget component = this.goMN_ICON_CHG.GetComponent <UIWidget>(); UIWidget component2 = this.goMN_ICON_CHG_2.GetComponent <UIWidget>(); GUIManager.AddWidgetDepth(this.goMN_ICON_CHG_2.transform, component.depth - component2.depth); this.goMN_ICON_CHG.SetActive(false); } }
private void UpdateMonsterIcon() { if (!this.isUpdate) { MonsterData monsterData = MonsterDataMng.Instance().CreateMonsterDataByMID(this.thumbMid); if (monsterData != null) { GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(monsterData, this.ngMONSTER_ICON.transform.localScale, this.ngMONSTER_ICON.transform.localPosition, this.ngMONSTER_ICON.transform.parent, true, true); int add = 1600; UISprite component = this.ngMONSTER_ICON.GetComponent <UISprite>(); if (component != null) { add = component.depth; } DepthController depthController = guimonsterIcon.GetDepthController(); depthController.AddWidgetDepth(guimonsterIcon.transform, add); } global::Debug.Log("==================================================================== GUIListChatMemberParts MID = " + this.thumbMid); this.isUpdate = true; } }
private void UpdateMonsterIcon() { if (!this.isUpdateMIcon && this.data != null) { this.md_favo = MonsterDataMng.Instance().CreateMonsterDataByMID(this.data.monsterData.monsterId); GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(this.md_favo, this.goMN_ICON.transform.localScale, this.goMN_ICON.transform.localPosition, this.goMN_ICON.transform.parent, true, true); this.goMN_ICON_2 = guimonsterIcon.gameObject; this.goMN_ICON_2.SetActive(true); guimonsterIcon.SetTouchAct_S(new Action <MonsterData>(this.actMIconLong)); guimonsterIcon.SetTouchAct_L(new Action <MonsterData>(this.actMIconLong)); UIWidget component = this.goMN_ICON.GetComponent <UIWidget>(); UIWidget component2 = guimonsterIcon.gameObject.GetComponent <UIWidget>(); if (component != null && component2 != null) { int add = component.depth - component2.depth; DepthController component3 = guimonsterIcon.gameObject.GetComponent <DepthController>(); component3.AddWidgetDepth(guimonsterIcon.transform, add); } this.goMN_ICON.SetActive(false); this.isUpdateMIcon = true; } }
private void ShowNextMonsterIcon() { Transform transform = this.goMONS_NEXT.transform; this.csNextMons = GUIMonsterIcon.MakePrefabByMonsterData(this.data.md_next, transform.localScale, transform.localPosition, transform.parent, true, false); this.goMONS_NEXT.SetActive(false); if (!MonsterPicturebookData.ExistPicturebook(this.data.md_next.monsterMG.monsterCollectionId)) { this.csNextMons.SortMess = StringMaster.GetString("EvolutionUnkown"); this.csNextMons.SetSortMessageColor(this.iconTextColor); } this.csNextMons.SetTouchAct_L(new Action <MonsterData>(this.OnLongPushedMonsterIcon)); UIWidget component = this.goMONS_NEXT.GetComponent <UIWidget>(); UIWidget component2 = this.csNextMons.gameObject.GetComponent <UIWidget>(); if (component != null && component2 != null) { int add = component.depth - component2.depth; DepthController component3 = this.csNextMons.gameObject.GetComponent <DepthController>(); component3.AddWidgetDepth(this.csNextMons.gameObject.transform, add); } }
public void SetData(MonsterData monsterData) { this.goMN_DescriptionTXT.text = string.Format(StringMaster.GetString("CharaTapFriendshipUp"), monsterData.monsterMG.monsterName); this.monsterBasicInfo.SetMonsterData(monsterData); this.monsterStatusList.SetValues(monsterData, false, false); this.monsterMedalList.SetValues(monsterData.userMonster); Transform transform = this.goMN_ICON_NOW.transform; GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(monsterData, transform.localScale, transform.localPosition, transform.parent, true, false); guimonsterIcon.Data = monsterData; guimonsterIcon.SetTouchAct_L(new Action <MonsterData>(this.ActMIconLong)); UIWidget component = this.goMN_ICON_NOW.GetComponent <UIWidget>(); UIWidget component2 = guimonsterIcon.gameObject.GetComponent <UIWidget>(); if (component != null && component2 != null) { int add = component.depth - component2.depth; DepthController component3 = guimonsterIcon.gameObject.GetComponent <DepthController>(); component3.AddWidgetDepth(guimonsterIcon.transform, add); } this.goMN_ICON_NOW.SetActive(false); }
private void SetSelectedChar() { if (CMD_ChangeMonster.SelectMonsterData != null) { Transform transform = this.goMN_ICON_NOW.transform; GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(CMD_ChangeMonster.SelectMonsterData, transform.localScale, transform.localPosition, transform.parent, true, false); this.goMN_ICON_NOW_2 = guimonsterIcon.gameObject; this.goMN_ICON_NOW_2.SetActive(true); guimonsterIcon.Data = CMD_ChangeMonster.SelectMonsterData; guimonsterIcon.SetTouchAct_L(new Action <MonsterData>(this.ActMIconLong)); UIWidget component = this.goMN_ICON_NOW.GetComponent <UIWidget>(); UIWidget component2 = guimonsterIcon.gameObject.GetComponent <UIWidget>(); if (null != component && null != component2) { int add = component.depth - component2.depth; DepthController component3 = guimonsterIcon.gameObject.GetComponent <DepthController>(); component3.AddWidgetDepth(guimonsterIcon.transform, add); } this.goMN_ICON_NOW.SetActive(false); guimonsterIcon.Gimmick = ExtraEffectUtil.IsExtraEffectMonster(CMD_ChangeMonster.SelectMonsterData, this.effectArray); } }
private void SetSelectedCharChg() { if (this.DataChg != null) { if (this.goLeftLargeMonsterIcon != null) { UnityEngine.Object.Destroy(this.goLeftLargeMonsterIcon); } if (this.goMN_ICON_CHG == null) { return; } Transform transform = this.goMN_ICON_CHG.transform; this.leftLargeMonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(this.DataChg, transform.localScale, transform.localPosition, transform.parent, true, false); this.goLeftLargeMonsterIcon = this.leftLargeMonsterIcon.gameObject; this.goLeftLargeMonsterIcon.SetActive(true); this.leftLargeMonsterIcon.Data = this.DataChg; this.chipBaseSelect.SetSelectedCharChg(this.DataChg); GUIMonsterIcon icon = ClassSingleton <GUIMonsterIconList> .Instance.GetIcon(this.DataChg); this.iconGrayOut.SetSelect(icon); this.iconGrayOut.SelectIcon(this.leftLargeMonsterIcon); this.leftLargeMonsterIcon.SetTouchAct_L(new Action <MonsterData>(this.ActMIconLong)); this.leftLargeMonsterIcon.Lock = this.DataChg.userMonster.IsLocked; UIWidget component = this.goMN_ICON_CHG.GetComponent <UIWidget>(); UIWidget component2 = this.leftLargeMonsterIcon.gameObject.GetComponent <UIWidget>(); if (component != null && component2 != null) { int add = component.depth - component2.depth; DepthController component3 = this.leftLargeMonsterIcon.gameObject.GetComponent <DepthController>(); component3.AddWidgetDepth(this.leftLargeMonsterIcon.transform, add); } this.goMN_ICON_CHG.SetActive(false); this.ShowChgInfo(); } }
public void SetDetail(GameWebAPI.RespDataMS_EventExchangeInfoLogic.Result.Detail exchangeInfo, int selectItemNum, Action <ExchangeItem> touchEvent) { this.onPushedButton = touchEvent; GUICollider component = this.pushedButton.GetComponent <GUICollider>(); component.onTouchEnded += delegate(Touch touch, Vector2 pos, bool flag) { this.onPushedButton(this); }; this.selectNum = selectItemNum; int.TryParse(exchangeInfo.eventExchangeDetailId, out this.exchangeDetailId); this.exchangeItemData = exchangeInfo.item; string text = string.Empty; string value = string.Empty; this.exchangeInfoData = exchangeInfo; this.viewIcon.gameObject.SetActive(true); this.viewIconTexture.gameObject.SetActive(false); GameWebAPI.RespDataMA_GetAssetCategoryM.AssetCategoryM assetCategory = MasterDataMng.Instance().RespDataMA_AssetCategoryM.GetAssetCategory(exchangeInfo.assetCategoryId); string text2 = string.Empty; if (assetCategory != null) { text2 = assetCategory.assetTitle; } this.exchangeDetailCategoryID = exchangeInfo.assetCategoryId; MasterDataMng.AssetCategory assetCategory2 = (MasterDataMng.AssetCategory) int.Parse(exchangeInfo.assetCategoryId); this.numCountLabel.text = "1"; switch (assetCategory2) { case MasterDataMng.AssetCategory.MONSTER: { text = string.Empty; if (this.micon != null) { UnityEngine.Object.Destroy(this.micon.gameObject); } this.viewIcon.gameObject.SetActive(false); MonsterData monsterData = MonsterDataMng.Instance().CreateMonsterDataByMID(exchangeInfo.assetValue); this.exchangeDetailName = monsterData.monsterMG.monsterName; this.micon = GUIMonsterIcon.MakePrefabByMonsterData(monsterData, new Vector3(1f, 1f, 1f), new Vector3(-165f, 25f, 0f), this.iconRoot.transform, true, false); UIWidget component2 = base.gameObject.GetComponent <UIWidget>(); if (component2 != null) { DepthController component3 = this.micon.GetComponent <DepthController>(); if (component3 != null) { component3.AddWidgetDepth(this.micon.transform, component2.depth + 10); } } this.micon.GetDepthController(); BoxCollider component4 = this.micon.gameObject.GetComponent <BoxCollider>(); if (component4 != null) { component4.enabled = false; } break; } case MasterDataMng.AssetCategory.DIGI_STONE: text = "Common02_LB_Stone"; this.exchangeDetailName = text2; break; case MasterDataMng.AssetCategory.LINK_POINT: text = "Common02_LB_Link"; this.exchangeDetailName = text2; break; case MasterDataMng.AssetCategory.TIP: text = "Common02_LB_Chip"; this.exchangeDetailName = text2; break; default: switch (assetCategory2) { case MasterDataMng.AssetCategory.MEAT: text = "Common02_item_meat"; this.exchangeDetailName = text2; goto IL_567; case MasterDataMng.AssetCategory.SOUL: { this.exchangeDetailName = text2; GameWebAPI.RespDataMA_GetSoulM.SoulM soul = MasterDataMng.Instance().RespDataMA_SoulM.GetSoul(exchangeInfo.assetValue); value = soul.soulName; this.viewIconTexture.gameObject.SetActive(true); string evolveItemIconPathByID = ClassSingleton <EvolutionData> .Instance.GetEvolveItemIconPathByID(exchangeInfo.assetValue); NGUIUtil.ChangeUITextureFromFile(this.viewIconTexture, evolveItemIconPathByID, false); this.viewIcon.gameObject.SetActive(false); goto IL_567; } case MasterDataMng.AssetCategory.FACILITY_KEY: { this.viewIconTexture.gameObject.SetActive(true); this.viewIcon.gameObject.SetActive(false); FacilityConditionM[] facilityCondition = FarmDataManager.GetFacilityCondition(exchangeInfo.assetValue); FacilityConditionM facilityConditionM = facilityCondition.FirstOrDefault((FacilityConditionM x) => int.Parse(x.conditionType) == 1); FacilityM facilityMasterByReleaseId = FarmDataManager.GetFacilityMasterByReleaseId(facilityConditionM.releaseId); NGUIUtil.ChangeUITextureFromFile(this.viewIconTexture, facilityMasterByReleaseId.GetIconPath(), false); FacilityKeyM facilityKeyMaster = FarmDataManager.GetFacilityKeyMaster(exchangeInfo.assetValue); if (facilityKeyMaster != null) { this.exchangeDetailName = facilityKeyMaster.facilityKeyName; } goto IL_567; } case MasterDataMng.AssetCategory.CHIP: { GameWebAPI.RespDataMA_ChipM.Chip chipMainData = ChipDataMng.GetChipMainData(exchangeInfo.assetValue); ChipDataMng.MakePrefabByChipData(chipMainData, this.viewIcon.gameObject, this.viewIcon.gameObject.transform.localPosition, this.viewIcon.gameObject.transform.localScale, null, 128, 128, false); this.exchangeDetailName = chipMainData.name; this.viewIcon.gameObject.SetActive(false); goto IL_567; } case MasterDataMng.AssetCategory.DUNGEON_TICKET: { this.viewIconTexture.gameObject.SetActive(true); this.viewIcon.gameObject.SetActive(false); GameWebAPI.RespDataMA_DungeonTicketMaster.DungeonTicketM dungeonTicketM = MasterDataMng.Instance().RespDataMA_DungeonTicketMaster.dungeonTicketM.FirstOrDefault((GameWebAPI.RespDataMA_DungeonTicketMaster.DungeonTicketM x) => exchangeInfo.assetValue == x.dungeonTicketId); if (dungeonTicketM != null) { global::Debug.Log(dungeonTicketM.img); NGUIUtil.ChangeUITextureFromFile(this.viewIconTexture, dungeonTicketM.img, false); this.exchangeDetailName = dungeonTicketM.name; } goto IL_567; } } text = string.Empty; this.exchangeDetailName = StringMaster.GetString("Present-10"); break; case MasterDataMng.AssetCategory.ITEM: { GameWebAPI.RespDataMA_GetItemM.ItemM itemM = MasterDataMng.Instance().RespDataMA_ItemM.GetItemM(exchangeInfo.assetValue); if (itemM != null) { this.exchangeDetailName = itemM.name; this.viewIconTexture.gameObject.SetActive(true); this.viewIcon.gameObject.SetActive(false); string largeImagePath = itemM.GetLargeImagePath(); NGUIUtil.ChangeUITextureFromFile(this.viewIconTexture, largeImagePath, false); } break; } } IL_567: if (!string.IsNullOrEmpty(text) && assetCategory2 != MasterDataMng.AssetCategory.MONSTER) { this.viewIcon.spriteName = text; } if (assetCategory2 == MasterDataMng.AssetCategory.TIP) { this.exchangeDetailNum = StringFormat.Cluster(exchangeInfo.assetNum); } else { this.exchangeDetailNum = exchangeInfo.assetNum; } if (assetCategory2 != MasterDataMng.AssetCategory.MONSTER) { this.titleLabel.text = string.Format(StringMaster.GetString("SystemItemCount"), this.exchangeDetailName, this.exchangeDetailNum); } else { this.titleLabel.text = this.exchangeDetailName; } if (!string.IsNullOrEmpty(value)) { this.exchangeDetailName = value; } this.exchangeConsumeNum = exchangeInfo.needNum; this.buildNumLabel.text = this.exchangeConsumeNum; this.ExchangeIconSet(exchangeInfo); this.ResetNum(exchangeInfo); this.SetButton(exchangeInfo); this.ShowGUI(); }