public override void ShowGUI() { base.ShowGUI(); string arg = string.Empty; string groupType = this.Data.groupType; if (groupType != null) { if (groupType == "1") { arg = StringMaster.GetString("InfomationTitle"); goto IL_93; } if (groupType == "2") { arg = StringMaster.GetString("InfomationUpdate"); goto IL_93; } if (groupType == "3") { arg = StringMaster.GetString("InfomationEvent"); goto IL_93; } } arg = StringMaster.GetString("InfomationOther"); IL_93: this.newsTitle.text = string.Format(StringMaster.GetString("InfomationSubTitle"), arg); this.newsDetails.text = this.Data.title; string text = string.Empty; text = this.Data.startDateTime; this.newsDate.text = text; this.newsDate.text = this.newsDate.text.Remove(16); this.presentIcon.gameObject.SetActive(this.Data.prizeStatus != 0); this.presentIcon.color = ((this.Data.prizeStatus != 2) ? Color.white : Color.gray); if (this.Data.confirmationFlg == 0) { this.newMarker.SetActive(true); } else { this.newMarker.SetActive(false); } }
public static Vector3 GetColliderSize(GameWebAPI.Common_MessageData resp, BoxCollider bc, GameObject tmpTxtOb, out string outStr) { string txt = resp.message; if (resp.ngwordFlg == 1) { txt = StringMaster.GetString("ChatLog-04"); } else if (BlockManager.instance().blockList != null && resp.type != 3) { int count = BlockManager.instance().blockList.Where((GameWebAPI.FriendList item) => item.userData.userId == resp.userId).ToList <GameWebAPI.FriendList>().Count; if (count > 0) { txt = StringMaster.GetString("ChatLog-05"); } } int num; if (resp.type == 4) { num = 60; if (resp.message != null) { outStr = resp.message; } else { outStr = string.Empty; } } else if (resp.type == 3) { num = ChatTools.CheckCommentSize(txt, 635, tmpTxtOb, out outStr) + 30; } else { num = ChatTools.CheckCommentSize(txt, 635, tmpTxtOb, out outStr); } if (resp.type == 3) { return(new Vector3(bc.size.x, bc.size.y + (float)(num - 30 - 40 - 30), bc.size.z)); } return(new Vector3(bc.size.x, bc.size.y + (float)(num - 30), bc.size.z)); }
private void OpenExchangedItemModalMessage(ExchangeItem exchangeItem) { MasterDataMng.AssetCategory assetCategory = (MasterDataMng.AssetCategory) int.Parse(exchangeItem.exchangeItemData.assetCategoryId); switch (assetCategory) { case MasterDataMng.AssetCategory.DIGI_STONE: DataMng.Instance().RespDataUS_PlayerInfo.playerInfo.point -= int.Parse(this.consumeNum); break; default: if (assetCategory == MasterDataMng.AssetCategory.MEAT) { int num = int.Parse(DataMng.Instance().RespDataUS_PlayerInfo.playerInfo.meatNum) - int.Parse(this.consumeNum); DataMng.Instance().RespDataUS_PlayerInfo.playerInfo.meatNum = num.ToString(); } break; case MasterDataMng.AssetCategory.TIP: { int num2 = int.Parse(DataMng.Instance().RespDataUS_PlayerInfo.playerInfo.gamemoney) - int.Parse(this.consumeNum); DataMng.Instance().RespDataUS_PlayerInfo.playerInfo.gamemoney = num2.ToString(); break; } case MasterDataMng.AssetCategory.ITEM: { GameWebAPI.RespDataMA_GetItemM.ItemM itemM = MasterDataMng.Instance().RespDataMA_ItemM.GetItemM(exchangeItem.exchangeItemData.assetValue); if (itemM != null && int.Parse(itemM.itemId) == 2) { Singleton <UserDataMng> .Instance.UpdateUserItemNum(2, -int.Parse(this.consumeNum)); } break; } } int num3 = int.Parse(exchangeItem.exchangeDetailNum, NumberStyles.AllowThousands); string exchangeDetailName = exchangeItem.exchangeDetailName; string arg = StringFormat.Cluster(num3 * exchangeItem.numCounter); string info = string.Format(StringMaster.GetString("ExchangeSuccessInfo"), exchangeDetailName, arg); CMD_ModalMessage cmd_ModalMessage = GUIMain.ShowCommonDialog(new Action <int>(this.RunReExchangeInfoLogicAPI), "CMD_ModalMessage", null) as CMD_ModalMessage; cmd_ModalMessage.Title = StringMaster.GetString("ExchangeSuccessTitle"); cmd_ModalMessage.Info = info; GUIPlayerStatus.RefreshParams_S(true); }
private void ShowServerMaintenance(string maintenanceMessage) { CMD_maintenance cmd_maintenance = (CMD_maintenance)GUIManager.CheckTopDialog("CMD_maintenance", null); if (cmd_maintenance != null) { RestrictionInput.EndLoad(); cmd_maintenance.Info = maintenanceMessage; if (!AlertManager.ShowAlertDialog(null, "E-AL15")) { AlertManager.ShowAlertDialog(null, StringMaster.GetString("Maintenance-01"), StringMaster.GetString("Maintenance-02"), AlertManager.ButtonActionType.Close, false); } } else { cmd_maintenance = (GUIMain.ShowCommonDialog(null, "CMD_maintenance", null) as CMD_maintenance); cmd_maintenance.Info = maintenanceMessage; } }
private void Start() { if (this.isUniqueSkill) { this.title.text = StringMaster.GetString("CharaStatus-19"); } else { int num = this.successionSkillSlotId; if (num == 1 || num != 2) { this.title.text = StringMaster.GetString("SkillInheritTitle1"); } else { this.title.text = StringMaster.GetString("SkillInheritTitle2"); } } }
private void setTabView() { base.MultiTab.InitMultiTab(new List <Action <int> > { new Action <int>(this.OnTouchedTabMultiRequest), new Action <int>(this.OnTouchedTabPvP), new Action <int>(this.OnTouchedTabChat), new Action <int>(this.OnTouchedTabMenu) }, new List <string> { StringMaster.GetString("ChatTabMulti"), StringMaster.GetString("ChatTabColosseum"), StringMaster.GetString("ChatTabChat"), StringMaster.GetString("ChatTabMenu") }); base.MultiTab.SetOnOffColor(ConstValue.TAB_YELLOW, Color.white); base.MultiTab.SetFocus(this.initFocusTabNum); this.DispAlertIcon(ClassSingleton <FaceChatNotificationAccessor> .Instance.faceChatNotification.chatTabAlertList); }
public override void Show(Action <int> f, float sizeX, float sizeY, float aT) { base.PartsTitle.SetTitle(StringMaster.GetString("ExchangeTitle")); base.SetTutorialAnyTime("anytime_second_tutorial_exchange"); RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON); base.HideDLG(); APIRequestTask task = ClassSingleton <ExchangeWebAPI> .Instance.AccessEventExchangeInfoLogicAPI(); base.StartCoroutine(task.Run(delegate { RestrictionInput.EndLoad(); this.ShowDLG(); this.menu.Init(); GameWebAPI.RespDataMS_EventExchangeInfoLogic.Result[] eventExchangeInfoList = ClassSingleton <ExchangeWebAPI> .Instance.EventExchangeInfoList; bool flag = eventExchangeInfoList != null && eventExchangeInfoList.Length > 0 && eventExchangeInfoList[0] != null; GUITips.TIPS_DISP_TYPE dispType = (!flag) ? GUITips.TIPS_DISP_TYPE.NoneExchangeNavi : GUITips.TIPS_DISP_TYPE.ExchangeNavi; this.tips.Init(dispType); this.< Show > __BaseCallProxy0(f, sizeX, sizeY, aT); }, delegate(Exception nop)
private void AuthenticateTakeover() { RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON); base.StartCoroutine(this.TryTakeover(delegate(bool Result) { RestrictionInput.EndLoad(); if (Result) { CMD_ModalMessage cmd_ModalMessage = GUIMain.ShowCommonDialog(delegate(int index) { PlayerPrefsExtentions.DeleteAllGameParams(); GameCache.ClearCache(null); this.ChangeSceneToUILogo(); }, "CMD_ModalMessage", null) as CMD_ModalMessage; cmd_ModalMessage.Title = StringMaster.GetString("TakeOver-10"); cmd_ModalMessage.Info = StringMaster.GetString("TakeOver-11"); } })); }
protected override void Awake() { base.Awake(); GameWebAPI.RespData_WorldMultiResultInfoLogic respData_WorldMultiResultInfoLogic = ClassSingleton <QuestData> .Instance.RespData_WorldMultiResultInfoLogic; GameWebAPI.RespData_WorldMultiResultInfoLogic.DungeonReward.LinkBonus[] linkBonus = respData_WorldMultiResultInfoLogic.dungeonReward.linkBonus; if (linkBonus == null || linkBonus.Length == 0) { GUICollider.DisableAllCollider("CMD_FirstClear"); return; } int num = linkBonus.Length; this.firstClearMessage.text = string.Empty; for (int i = 0; i < num; i++) { GameWebAPI.RespData_WorldMultiResultInfoLogic.DungeonReward.LinkBonus linkBonus2 = linkBonus[i]; int type = linkBonus2.type; if (linkBonus2.reward != null && linkBonus2.reward.Length != 0) { for (int j = 0; j < linkBonus2.reward.Length; j++) { GameWebAPI.RespData_WorldMultiResultInfoLogic.DungeonReward.LinkBonus.LinkBonusReward linkBonusReward = linkBonus2.reward[j]; string assetTitle = DataMng.Instance().GetAssetTitle(linkBonusReward.assetCategoryId, linkBonusReward.assetValue.ToString()); if (type != 1) { if (type == 2) { UILabel uilabel = this.firstClearMessage; uilabel.text += string.Format(StringMaster.GetString("FirstLinkBonusFriend"), linkBonusReward.linkNum, assetTitle, linkBonusReward.assetNum); } } else { UILabel uilabel2 = this.firstClearMessage; uilabel2.text += string.Format(StringMaster.GetString("FirstLinkBonus"), linkBonusReward.linkNum, assetTitle, linkBonusReward.assetNum); } UILabel uilabel3 = this.firstClearMessage; uilabel3.text += "\n"; } } } GUICollider.DisableAllCollider("CMD_FirstClear"); }
public override void Show(Action <int> closeEvent, float sizeX, float sizeY, float showAnimationTime) { if (CMD_ProfileFriend.friendData == null && CMD_ProfileFriend.chatMemberData == null && CMD_ProfileFriend.chatLogData == null) { this.ClosePanel(false); } else { RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON); base.HideDLG(); APIRequestTask apirequestTask = new APIRequestTask(); if (CMD_ProfileFriend.chatMemberData != null) { apirequestTask.Add(Singleton <UserDataMng> .Instance.RequestFriendProfile(CMD_ProfileFriend.chatMemberData.userId, new Action <GameWebAPI.RespDataPRF_Profile>(this.OnReceivedFriendProfile), false)); } else if (CMD_ProfileFriend.chatLogData != null) { apirequestTask.Add(Singleton <UserDataMng> .Instance.RequestFriendProfile(CMD_ProfileFriend.chatLogData.userId, new Action <GameWebAPI.RespDataPRF_Profile>(this.OnReceivedFriendProfile), false)); } else { apirequestTask.Add(Singleton <UserDataMng> .Instance.RequestFriendProfile(CMD_ProfileFriend.friendData.userData.userId, new Action <GameWebAPI.RespDataPRF_Profile>(this.OnReceivedFriendProfile), false)); } base.StartCoroutine(apirequestTask.Run(delegate { RestrictionInput.EndLoad(); if (this.friendProfile.userData == null || string.IsNullOrEmpty(this.friendProfile.userData.userId)) { this.SetCloseAction(delegate(int idx) { CMD_ModalMessage cmd_ModalMessage = GUIMain.ShowCommonDialog(null, "CMD_ModalMessage", null) as CMD_ModalMessage; cmd_ModalMessage.Title = StringMaster.GetString("UserDontExistTitle"); cmd_ModalMessage.Info = StringMaster.GetString("UserDontExistInfo"); }); this.ClosePanel(false); } else { this.ShowDLG(); this.< Show > __BaseCallProxy0(closeEvent, sizeX, sizeY, showAnimationTime); this.monsterParam = this.characterCameraView.csRender3DRT.GetCharacterParams(); } }, delegate(Exception nop)
private void PlayGiftHQMeat() { int userItemNumByItemId = Singleton <UserDataMng> .Instance.GetUserItemNumByItemId(50001); if (userItemNumByItemId > 0) { CMD_Confirm cmd_Confirm = GUIMain.ShowCommonDialog(new Action <int>(this.OnClickUseHQMeatExec), "CMD_Confirm", null) as CMD_Confirm; cmd_Confirm.Title = StringMaster.GetString("UseHQMealTitle"); cmd_Confirm.Info = StringMaster.GetString("UseHQMealMessage"); } else { CMD_ChangePOP_STONE cmd_ChangePOP_STONE = GUIMain.ShowCommonDialog(null, "CMD_ChangePOP_STONE", null) as CMD_ChangePOP_STONE; cmd_ChangePOP_STONE.Title = StringMaster.GetString("BuyHQMealTitle"); cmd_ChangePOP_STONE.Info = string.Format(StringMaster.GetString("BuyHQMealMessage"), ConstValue.BUY_HQMEAT_DIGISTONE_NUM); cmd_ChangePOP_STONE.OnPushedYesAction = new Action(this.OnClickBuyHQMeatExec); cmd_ChangePOP_STONE.SetDigistone(DataMng.Instance().RespDataUS_PlayerInfo.playerInfo.point, ConstValue.BUY_HQMEAT_DIGISTONE_NUM); } }
private void SetCommonUI() { this.csPartChatListParent = this.partChatListParent.GetComponent <GUISelectChatGroupPanel>(); this.csPartChatListParent.selectParts = this.partChatList; this.partChatListParent.SetActive(true); this.partChatList.SetActive(true); this.csPartChatListParent.initLocation = true; this.csPartChatListParent.AllBuild(ClassSingleton <ChatData> .Instance.CurrentChatInfo.joinGroupData); this.partChatList.SetActive(false); this.lbDefaultMessage.text = StringMaster.GetString("MultiRecruitChat-01"); this.lbBtnRecruit.text = StringMaster.GetString("MultiRecruitChat-02"); this.SetBtnSelectAll(this.isSelectedAll); if (ClassSingleton <ChatData> .Instance.CurrentChatInfo.joinGroupData.groupList == null) { this.goDefaultMessage.SetActive(true); this.goBtnRecruit.SetActive(false); this.goBtnSelectAll.SetActive(false); } }
private string CreateLoginRewardMessage(string format, GameWebAPI.RespDataCM_LoginBonus.LoginReward reward) { int num = int.Parse(reward.assetCategoryId); string arg = string.Empty; MasterDataMng.AssetCategory assetCategory = (MasterDataMng.AssetCategory)num; switch (assetCategory) { case MasterDataMng.AssetCategory.GATHA_TICKET: arg = StringMaster.GetString("SystemCountSheets"); goto IL_86; case MasterDataMng.AssetCategory.MULTI_ITEM: case MasterDataMng.AssetCategory.MEAT: case MasterDataMng.AssetCategory.SOUL: case MasterDataMng.AssetCategory.NO_DATA_ID: break; default: switch (assetCategory) { case MasterDataMng.AssetCategory.MONSTER: arg = StringMaster.GetString("SystemCountBody"); goto IL_86; case MasterDataMng.AssetCategory.DIGI_STONE: case MasterDataMng.AssetCategory.ITEM: break; case MasterDataMng.AssetCategory.LINK_POINT: case MasterDataMng.AssetCategory.TIP: case MasterDataMng.AssetCategory.EXP: goto IL_86; default: goto IL_86; } break; } arg = StringMaster.GetString("SystemCountNumber"); IL_86: return(string.Format(format, DataMng.Instance().GetAssetTitle(reward.assetCategoryId, reward.assetValue), reward.assetNum, arg)); }
public void SetBonusUI() { bool active = this.bonusTextList.Count > this.bonusPointLabels.Count; this.changeBonusButton.SetActive(active); if (this.bonusTextList.Count == 0) { this.bonusTextList.Add(StringMaster.GetString("QuestNonSpList")); } for (int i = 0; i < this.bonusPointLabels.Count; i++) { this.bonusPointLabels[i].gameObject.SetActive(false); if (i < this.bonusTextList.Count) { this.bonusPointLabels[i].gameObject.SetActive(true); this.bonusPointLabels[i].text = this.bonusTextList[i]; } } }
protected override void Awake() { base.Awake(); this.lbName.text = string.Empty; this.lbDescription.text = string.Empty; this.lbLastLogin.text = string.Empty; this.lbCollection.text = string.Empty; this.lbLink.text = string.Empty; this.lbBlock.text = StringMaster.GetString("Profile-01"); this.lbVisit.text = StringMaster.GetString("Profile-21"); this.requestAPIs = new Func <string, bool, APIRequestTask>[] { null, new Func <string, bool, APIRequestTask>(this.RequestFriendBreak), new Func <string, bool, APIRequestTask>(APIUtil.Instance().RequestFriendApplication), new Func <string, bool, APIRequestTask>(this.RequestFriendApplicationCancel), new Func <string, bool, APIRequestTask>(this.RequestFriendApplicationApprove) }; }
private void UpgradeMeatFarm() { if (!this.IsMeatNumOver()) { this.MeatHarvestAndMeatFarmUpGrade(); } else { CMD_Confirm cmd_Confirm = GUIMain.ShowCommonDialog(delegate(int selectButton) { if (selectButton == 0) { this.< Upgrade > __BaseCallProxy0(); } }, "CMD_Confirm", null) as CMD_Confirm; cmd_Confirm.Title = StringMaster.GetString("SystemConfirm"); cmd_Confirm.Info = StringMaster.GetString("FacilityUpgradeMeatLost"); } }
private void SetCommonUI() { this.lbDescription.text = this.prizeData.message; this.lbGetButton.text = StringMaster.GetString("Present-11"); DateTime dateTime; if (DateTime.TryParse(this.prizeData.receiveLimitTime, out dateTime)) { string str = dateTime.ToString("yyyy/MM/dd"); this.lbLimitTime.text = StringMaster.GetString("Present-05") + str; } else { this.lbLimitTime.text = StringMaster.GetString("Present-05") + this.prizeData.receiveLimitTime.ToString(); } PresentBoxItem component = base.gameObject.GetComponent <PresentBoxItem>(); component.SetItem(this.prizeData.assetCategoryId, this.prizeData.assetValue, this.prizeData.assetNum, false, null); }
protected override void Awake() { base.Awake(); this.ngTX_BTN_YES.text = StringMaster.GetString("SystemButtonYes"); this.ngTX_BTN_NO.text = StringMaster.GetString("SystemButtonNo"); if (this.cancelCollider != null) { this.cancelCollider.AvoidDisableAllCollider = true; } if (this.yesCollider != null) { this.yesCollider.AvoidDisableAllCollider = true; } Vector3 localPosition = Vector3.zero; localPosition = base.gameObject.transform.localPosition; localPosition.z = -11000f; base.gameObject.transform.localPosition = localPosition; }
private void SetMonsterInfo(EvolutionDiagramData.IconMonster selectMonster) { this.monsterIcon.SetMonsterImage(selectMonster.master); if (!MonsterPicturebookData.ExistPicturebook(selectMonster.master.Group.monsterCollectionId)) { this.monsterIcon.Message.SetSortText(StringMaster.GetString("EvolutionUnkown")); } else { this.monsterIcon.Message.ClearSortText(); } if (MonsterArousalData.IsVersionUp(selectMonster.master.Simple.rare)) { this.noticeLabel.SetActive(true); } MonsterData monsterData = MonsterDataMng.Instance().CreateMonsterDataByMID(selectMonster.master.Simple.monsterId); this.basicInfo.SetMonsterData(monsterData); }
private void ShowData() { this.SetDigimonIcon(); this.lbTX_UserName.text = this.data.nickname; TitleDataMng.SetTitleIcon(this.data.titleId, this.goTITLE_ICON.GetComponent <UITexture>()); this.lbTX_DuelPoint.text = this.data.score; this.lbTX_NextPoint.text = this.nextPoint.ToString(); int num = int.Parse(this.data.rank); switch (num) { case 1: this.spRankingIcon.gameObject.SetActive(true); this.spRankingIcon.spriteName = "PvP_Ranking_1"; this.lbTX_RankingNumber.text = string.Empty; break; case 2: this.spRankingIcon.gameObject.SetActive(true); this.spRankingIcon.spriteName = "PvP_Ranking_2"; this.lbTX_RankingNumber.text = string.Empty; break; case 3: this.spRankingIcon.gameObject.SetActive(true); this.spRankingIcon.spriteName = "PvP_Ranking_3"; this.lbTX_RankingNumber.text = string.Empty; break; default: this.spRankingIcon.gameObject.SetActive(false); if (1 <= num && num <= this.limitRank) { this.lbTX_RankingNumber.text = num.ToString(); } else { this.lbTX_RankingNumber.text = StringMaster.GetString("ColosseumRankOutside"); } break; } }
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 InitializeBattleStartButton(CMD_PartyEdit.MODE_TYPE type) { if (type != CMD_PartyEdit.MODE_TYPE.MULTI) { if (type != CMD_PartyEdit.MODE_TYPE.SELECT) { this.battleStartButton.SetActive(false); } else { this.battleStartButtonLabel.text = StringMaster.GetString("PartyBattleStart"); } } else { this.battleStartButtonLabel.text = StringMaster.GetString("PartyRecruit"); } this.battleStartButtonCollider = this.battleStartButton.GetComponent <GUICollider>(); this.battleStartButtonBackground = this.battleStartButton.GetComponent <UISprite>(); }
public bool DisplayDialog(MonsterData MonsterData) { if (!ConstValue.REVIEW_STOP_FLAG) { string @string = PlayerPrefs.GetString(LeadReview.DISPLAY_DATETIME_PREFS_KEY, string.Empty); if (!string.IsNullOrEmpty(@string)) { return(false); } if (!this.JudgeHaveMedal(MonsterData.userMonster)) { return(false); } CMD_Confirm cmd_Confirm = GUIMain.ShowCommonDialog(new Action <int>(this.ConfirmReaction), "CMD_Confirm", null) as CMD_Confirm; cmd_Confirm.Title = StringMaster.GetString("GashaReviewTitle"); cmd_Confirm.Info = StringMaster.GetString("GashaReviewInfo"); PlayerPrefs.SetString(LeadReview.DISPLAY_DATETIME_PREFS_KEY, ServerDateTime.Now.ToString()); } return(true); }
private IEnumerator InitDLG(Action <int> f, float sizeX, float sizeY, float aT) { Singleton <UserDataMng> .Instance.RequestUserStockFacilityDataAPI(delegate(bool flg) { if (flg) { this.ShowDLG(); this.PartsTitle.SetTitle(StringMaster.GetString("TrainingMenuTitle")); this.InitUI(); this.< Show > __BaseCallProxy0(f, sizeX, sizeY, aT); } else { this.< ClosePanel > __BaseCallProxy1(false); } RestrictionInput.EndLoad(); }); yield break; }
private void OnClickGetAll() { List <MissionItem> missionStateDataByTypeA = this.GetMissionStateDataByTypeA(CMD_Mission.nowFocusType); if (missionStateDataByTypeA.Count > 0) { this.RequestMissionRewardLogicAPI(missionStateDataByTypeA); } else { string title = this.GetTitle(CMD_Mission.nowFocusType); this.stringBuilder.Append(title); this.stringBuilder.Append(StringMaster.GetString("Mission-09")); CMD_ModalMessage cmd_ModalMessage = GUIMain.ShowCommonDialog(null, "CMD_ModalMessage", null) as CMD_ModalMessage; cmd_ModalMessage.Title = this.stringBuilder.ToString(); cmd_ModalMessage.Info = StringMaster.GetString("MissionNotClear"); cmd_ModalMessage.AdjustSize(); this.stringBuilder.Length = 0; } }
public void OnClickedClearing() { this.ForceHide(true); if (FarmRoot.Instance.Scenery.GetFacilityCount(22) > 0) { if (null == GUIManager.CheckTopDialog("CMD_ClearingHouseTOP", null)) { GUIManager.CloseAllCommonDialog(delegate { this.PartsMenuShowDialog(null, "CMD_ClearingHouseTOP"); }); } } else { CMD_ModalMessage cmd_ModalMessage = this.PartsMenuShowDialog(null, "CMD_ModalMessage") as CMD_ModalMessage; cmd_ModalMessage.Title = StringMaster.GetString("ExchangeMissingAlertTitle"); cmd_ModalMessage.Info = StringMaster.GetString("ExchangeMissingAlertInfo"); } }
public override void ShowGUI() { base.ShowGUI(); if (!this.rankData.isHideMaximum) { this.pointLabel.text = string.Format(StringMaster.GetString("ColosseumRankListNeedInfo"), this.rankData.lowerPoint, this.rankData.upperPoint); } else { this.pointLabel.text = string.Format(StringMaster.GetString("ColosseumRankListNeedInfo"), this.rankData.lowerPoint, string.Empty); } if (this.rankData.groupedId > -1) { this.rankSprite.spriteName = "Rank_" + this.rankData.groupedId.ToString(); } else { this.rankSprite.spriteName = "Rank_" + this.rankData.id.ToString(); } }
private void Initialize() { if (base.PartsTitle != null) { base.PartsTitle.SetTitle(StringMaster.GetString("TakeOverTitle")); } this.menu.gameObject.SetActive(true); if (this.menuMultiLanguage != null) { this.menuMultiLanguage.gameObject.SetActive(false); } if (CMD_Takeover.currentMode == CMD_Takeover.MODE.INPUT) { this.menu.Initialize(TakeoverMenu.MODE.Input); } else if (CMD_Takeover.currentMode == CMD_Takeover.MODE.ISSUE) { this.menu.Initialize(TakeoverMenu.MODE.Issue); } }
public override void Show(Action <int> f, float sizeX, float sizeY, float aT) { GUICollider.DisableAllCollider("CMD_ArousalTOP"); RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON); base.HideDLG(); base.PartsTitle.SetTitle(StringMaster.GetString("ArousalTitle")); this.SetCommonUI(); this.InitMonsterList(true, false); this.ShowChgInfo(); this.SetInactiveAllItemIcon(this._goITEM_ICON_LIST, this._goITEM_NUM_TEXT_LIST); this.SetInactiveAllItemIcon(this._goITEM_ICON_LIST_MAX_RANK, this._goITEM_NUM_TEXT_LIST_MAX_RANK); APIRequestTask task = Singleton <UserDataMng> .Instance.RequestUserSoulData(false); base.StartCoroutine(task.Run(delegate { RestrictionInput.EndLoad(); this.ShowDLG(); this.SetTutorialAnyTime("anytime_second_tutorial_arousal"); this.< Show > __BaseCallProxy0(f, sizeX, sizeY, aT); }, delegate(Exception nop)
public static void ShowPvPTop() { if (DataMng.Instance().IsReleaseColosseum&& DataMng.Instance().RespData_ColosseumInfo.colosseumId > 0) { GUIMain.ShowCommonDialog(null, "CMD_PvPTop", null); } else { CMD_ModalMessage cmd_ModalMessage = GUIMain.ShowCommonDialog(null, "CMD_ModalMessage", null) as CMD_ModalMessage; cmd_ModalMessage.Title = StringMaster.GetString("ColosseumTitle"); if (DataMng.Instance().IsReleaseColosseum) { cmd_ModalMessage.Info = StringMaster.GetString("ColosseumCloseTime"); } else { cmd_ModalMessage.Info = StringMaster.GetString("ColosseumLimit"); } } }