public override void UpdateUI() { base.UpdateUI(); bool flag = true; SkillItemInfo skillItemInfo = resultData.itemData as SkillItemInfo; if (skillItemInfo != null && skillItemInfo.IsLevelMax()) { flag = skillItemInfo.IsEnableExceed(); } SetActive((Enum)UI.SPR_BG_NORMAL, !isExceed); SetActive((Enum)UI.SPR_BG_EXCEED, isExceed); SetActive((Enum)UI.BTN_NEXT, flag); SetActive((Enum)UI.BTN_NEXT_GRAY, !flag); SetLabelText((Enum)UI.LBL_NEXT_GRAY_BTN, base.sectionData.GetText("STR_NEXT")); if (isExceed) { if (resultData != null) { SetLabelText((Enum)UI.LBL_EXCEED_PREV, StringTable.Format(STRING_CATEGORY.SMITH, 9u, resultData.beforeExceedCnt)); } if (skillItemInfo != null) { int exceedCnt = skillItemInfo.exceedCnt; SetLabelText((Enum)UI.LBL_EXCEED_NEXT, StringTable.Format(STRING_CATEGORY.SMITH, 9u, exceedCnt)); ExceedSkillItemTable.ExceedSkillItemData exceedSkillItemData = Singleton <ExceedSkillItemTable> .I.GetExceedSkillItemData(exceedCnt); if (exceedSkillItemData != null) { SetLabelText((Enum)UI.LBL_ADD_EXCEED, StringTable.Format(STRING_CATEGORY.SMITH, 8u, exceedSkillItemData.GetDecreaseUseGaugePercent())); } } } }
private void CallBackContinue(bool res, Error error) { //IL_0022: Unknown result type (might be due to invalid IL or missing references) if (MonoBehaviourSingleton <InGameProgress> .IsValid()) { MonoBehaviourSingleton <InGameProgress> .I.isWaitContinueProtocol = false; } if (res) { OnContinueSelf(); this.get_gameObject().SetActive(false); } else { continueButton.isEnabled = true; retireButton.isEnabled = true; string empty = string.Empty; empty = StringTable.Format(STRING_CATEGORY.COMMON_DIALOG, 1001u, (int)error); if (!string.IsNullOrEmpty(empty)) { UIInGamePopupDialog.PushOpen(empty, true, 1.8f); } Self self = MonoBehaviourSingleton <StageObjectManager> .I.self; if (self != null && self.actionID == (Character.ACTION_ID) 22 && self.continueTime <= 0f && MonoBehaviourSingleton <InGameProgress> .IsValid()) { MonoBehaviourSingleton <InGameProgress> .I.BattleRetire(); } } }
public void OnRecvNotifyTraceBoss(int fromClientId, Coop_Model_RoomNotifyTraceBoss model) { if (MonoBehaviourSingleton <QuestManager> .IsValid()) { ExploreStatus.TraceInfo[] bossTraceHistory = MonoBehaviourSingleton <QuestManager> .I.GetBossTraceHistory(); if (bossTraceHistory == null || bossTraceHistory.Length <= 0 || bossTraceHistory[bossTraceHistory.Length - 1].mapId != model.mid) { bool reserve = false; CoopClient coopClient = clients.FindByClientId(fromClientId); string playerName = coopClient.GetPlayerName(); if (MonoBehaviourSingleton <InGameProgress> .IsValid() && MonoBehaviourSingleton <InGameProgress> .I.progressEndType == InGameProgress.PROGRESS_END_TYPE.NONE) { int num = 0; num = ((model.lc != 0) ? 8004 : 8003); string text = StringTable.Format(STRING_CATEGORY.IN_GAME, (uint)num, playerName); UIInGamePopupDialog.PushOpen(text, false, 1.22f); } else if (QuestManager.IsValidExplore()) { reserve = true; } if (QuestManager.IsValidExplore()) { MonoBehaviourSingleton <QuestManager> .I.UpdateBossTraceHistory(model.mid, model.lc, playerName, reserve); } } } }
public static DropAnnounceInfo CreateItemInfo(uint id, int num, out bool is_rare) { is_rare = false; ItemTable.ItemData itemData = Singleton <ItemTable> .I.GetItemData(id); if (itemData == null) { return(null); } DropAnnounceInfo dropAnnounceInfo = new DropAnnounceInfo(); int haveingItemNum = MonoBehaviourSingleton <InventoryManager> .I.GetHaveingItemNum(id); haveingItemNum = Mathf.Min(haveingItemNum, MonoBehaviourSingleton <UserInfoManager> .I.userInfo.constDefine.ITEM_NUM_MAX); dropAnnounceInfo.text = StringTable.Format(STRING_CATEGORY.IN_GAME, 2000u, itemData.name, num, haveingItemNum); if (!GameDefine.IsRare(itemData.rarity)) { dropAnnounceInfo.color = COLOR.NORMAL; } else { dropAnnounceInfo.color = COLOR.RARE; is_rare = true; } return(dropAnnounceInfo); }
public static DropAnnounceInfo CreateSkillItemInfo(uint id, int num, out bool is_rare) { is_rare = false; SkillItemTable.SkillItemData skillItemData = Singleton <SkillItemTable> .I.GetSkillItemData(id); if (skillItemData == null) { return(null); } DropAnnounceInfo dropAnnounceInfo = new DropAnnounceInfo(); dropAnnounceInfo.text = StringTable.Format(STRING_CATEGORY.IN_GAME, 2002u, skillItemData.name, num); switch (skillItemData.type) { case SKILL_SLOT_TYPE.ATTACK: dropAnnounceInfo.color = COLOR.MAGI_AT; break; case SKILL_SLOT_TYPE.HEAL: dropAnnounceInfo.color = COLOR.MAGI_HE; break; case SKILL_SLOT_TYPE.SUPPORT: dropAnnounceInfo.color = COLOR.MAGI_SU; break; default: dropAnnounceInfo.color = COLOR.MAGI_PA; break; } is_rare = true; return(dropAnnounceInfo); }
public static string GetArenaTitle(ARENA_GROUP group, ARENA_RANK rank) { string arg = StringTable.Format(STRING_CATEGORY.ARENA, 0u, group); string text = StringTable.Format(STRING_CATEGORY.ARENA, 1u, rank); return(arg + " " + rank); }
public static string GetExceedExplanationText(int exceedCnt) { //IL_004b: Unknown result type (might be due to invalid IL or missing references) string text = StringTable.Format(STRING_CATEGORY.SMITH, 11u, StringTable.Format(STRING_CATEGORY.SMITH, 9u, exceedCnt), StringTable.Format(STRING_CATEGORY.SMITH, 8u, GetDecreaseUseGaugePercent(exceedCnt))); return(UIUtility.GetColorText(text, ExceedSkillItemTable.color)); }
public void JoinNotification(CharaInfo userInfo) { if (chatConnection != null && !string.IsNullOrEmpty(userInfo.name)) { chatConnection.OnReceiveNotification(StringTable.Format(STRING_CATEGORY.LOUNGE, 10u, userInfo.name)); } }
public bool OnRecvRoomLeaved(Party_Model_RoomLeaved model) { Logd("OnRecvRoomLeaved. cid={0}", model.cid); if (model.cid != MonoBehaviourSingleton<UserInfoManager>.I.userInfo.id) { string text = string.Empty; PartyModel.SlotInfo slotInfoByUserId = MonoBehaviourSingleton<PartyManager>.I.GetSlotInfoByUserId(model.cid); if (slotInfoByUserId != null) { text = slotInfoByUserId.userInfo.name; } else if (MonoBehaviourSingleton<InGameRecorder>.IsValid()) { InGameRecorder.PlayerRecord playerByUserId = MonoBehaviourSingleton<InGameRecorder>.I.GetPlayerByUserId(model.cid); if (playerByUserId != null) { text = playerByUserId.charaInfo.name; } } if (chatConnection != null && !string.IsNullOrEmpty(text)) { chatConnection.OnReceiveNotification(StringTable.Format(STRING_CATEGORY.CHAT, 6u, text)); } } return true; }
public virtual void OnRoomLeaved() { Logd("OnRoomLeaved."); bool flag = IsBattleEnd(); isLeave = true; if (MonoBehaviourSingleton <CoopManager> .I.coopStage.stageId == stageId && !isBattleRetire && IsStageStart() && !flag && userInfo != null && QuestManager.IsValidInGame()) { uint id = 101u; if (isPartyOwner) { if (QuestManager.IsValidInGameWaveMatch()) { id = 111u; MonoBehaviourSingleton <InGameProgress> .I.BattleRetire(); } else if (QuestManager.IsValidInGameExplore()) { if (MonoBehaviourSingleton <InGameProgress> .IsValid()) { MonoBehaviourSingleton <InGameProgress> .I.ResetExploreHostDCTimer(); } else if (QuestManager.IsValidInGameExplore()) { MonoBehaviourSingleton <QuestManager> .I.UpdateExploreHostDCTime(30f); } } } string text = StringTable.Format(STRING_CATEGORY.IN_GAME, id, GetPlayerName()); UIInGamePopupDialog.PushOpen(text, false, 1.8f); } }
private void SetUpEnemy(Transform t, QuestTable.QuestTableData quest) { EnemyTable.EnemyData enemyData = Singleton <EnemyTable> .I.GetEnemyData((uint)quest.GetMainEnemyID()); if (enemyData != null) { ClearStatusQuest clearStatusQuestData = MonoBehaviourSingleton <QuestManager> .I.GetClearStatusQuestData(quest.questID); bool flag = clearStatusQuestData != null; int icon_id = 10999; string text = "?????"; string text2 = "??"; if (flag) { icon_id = enemyData.iconId; text = enemyData.name; text2 = quest.GetMainEnemyLv().ToString(); } ItemIcon itemIcon = ItemIcon.Create(ITEM_ICON_TYPE.QUEST_ITEM, icon_id, null, FindCtrl(t, UI.OBJ_ENEMY), ELEMENT_TYPE.MAX, null, -1, null, 0, false, -1, false, null, false, 0, 0, false, GET_TYPE.PAY); itemIcon.SetDepth(7); SetElementSprite(t, UI.SPR_ENM_ELEMENT, (int)enemyData.element); SetActive(t, UI.SPR_ENM_ELEMENT, flag); SetElementSprite(t, UI.SPR_WEAK_ELEMENT, (int)enemyData.weakElement); SetActive(t, UI.SPR_WEAK_ELEMENT, flag); bool flag2 = enemyData.weakElement == ELEMENT_TYPE.MAX; SetActive(t, UI.STR_NON_WEAK_ELEMENT, flag2 && flag); SetActive(t, UI.STR_UNKNOWN_WEAK_ELEMENT, !flag); SetLabelText(t, UI.LBL_MONSTER_NAME, text); SetLabelText(t, UI.LBL_MONSTER_LEVEL, StringTable.Format(STRING_CATEGORY.MAIN_STATUS, 1u, text2)); } }
public void Initialize() { //IL_0039: Unknown result type (might be due to invalid IL or missing references) //IL_00da: Unknown result type (might be due to invalid IL or missing references) //IL_00ef: Unknown result type (might be due to invalid IL or missing references) //IL_011a: Unknown result type (might be due to invalid IL or missing references) if (MonoBehaviourSingleton <StageObjectManager> .IsValid()) { Self self = MonoBehaviourSingleton <StageObjectManager> .I.self; if (!(self == null)) { MonoBehaviourSingleton <InGameProgress> .I.CloseDialog(); MonoBehaviourSingleton <InGameProgress> .I.SetDisableUIOpen(false); this.get_gameObject().SetActive(true); int num = 0; int num2 = 0; if (MonoBehaviourSingleton <UserInfoManager> .IsValid()) { num = MonoBehaviourSingleton <UserInfoManager> .I.userStatus.crystal; num2 = MonoBehaviourSingleton <UserInfoManager> .I.userInfo.constDefine.QUEST_CONTINUE_USE_CRYSTAL; if (MonoBehaviourSingleton <QuestManager> .IsValid() && MonoBehaviourSingleton <QuestManager> .I.IsTutorialCurrentQuest()) { num2 = 0; } } bool isEnableContinue = num >= num2; bool flag = QuestManager.IsValidInGameExplore(); bool flag2 = false; if (flag) { isEnableContinue = false; flag2 = MonoBehaviourSingleton <StageObjectManager> .I.self.IsAbleToRescueByRemainRescueTime(); SetupRestartButton(flag2); } else { SetupContinueButton(isEnableContinue, num2, num); } continueButton.get_gameObject().SetActive(!flag); restartButton.get_gameObject().SetActive(flag); float rescueTime = self.rescueTime; if (continueCount != null) { continueCount.color = Color.get_white(); continueCount.text = StringTable.Format(STRING_CATEGORY.IN_GAME, 1000u, rescueTime.ToString("F2")); } int i = 0; for (int num3 = startAction.Length; i < num3; i++) { startAction[i].ResetToBeginning(); startAction[i].PlayForward(); } } } }
public string GetExceedParamName() { if (paramName != null) { return(paramName); } StringBuilder stringBuilder = new StringBuilder(string.Empty); if ((int)atk > 0) { stringBuilder.Append(StringTable.Format(STRING_CATEGORY.SMITH, 1u, atk)); stringBuilder.Append(" "); } if ((int)def > 0) { stringBuilder.Append(StringTable.Format(STRING_CATEGORY.SMITH, 2u, def)); stringBuilder.Append(" "); } if ((int)hp > 0) { stringBuilder.Append(StringTable.Format(STRING_CATEGORY.SMITH, 3u, hp)); stringBuilder.Append(" "); } int i = 0; for (int num = atkElement.Length; i < num; i++) { if (atkElement[i] > 0) { stringBuilder.Append(StringTable.Format(STRING_CATEGORY.SMITH, 4u, StringTable.Get(STRING_CATEGORY.ELEMENT, (uint)i), atkElement[i])); stringBuilder.Append(" "); } } int j = 0; for (int num2 = defElement.Length; j < num2; j++) { if (defElement[j] > 0) { stringBuilder.Append(StringTable.Format(STRING_CATEGORY.SMITH, 5u, StringTable.Get(STRING_CATEGORY.ELEMENT, (uint)j), defElement[j])); stringBuilder.Append(" "); } } if (skillSlot.slotType != 0) { stringBuilder.Append(StringTable.Format(STRING_CATEGORY.SMITH, 6u, StringTable.Get(STRING_CATEGORY.SKILL, (uint)skillSlot.slotType))); stringBuilder.Append(" "); } if (this.ability.id != 0) { AbilityTable.Ability ability = Singleton <AbilityTable> .I.GetAbility((uint)this.ability.id); stringBuilder.Append(StringTable.Format(STRING_CATEGORY.SMITH, 7u, ability.name, this.ability.pt)); } paramName = stringBuilder.ToString(); return(paramName); }
public override void Set(object[] data = null) { //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_0131: Unknown result type (might be due to invalid IL or missing references) //IL_0166: Unknown result type (might be due to invalid IL or missing references) //IL_0198: Unknown result type (might be due to invalid IL or missing references) //IL_01be: Unknown result type (might be due to invalid IL or missing references) //IL_01d5: Unknown result type (might be due to invalid IL or missing references) base.Set(null); if (infoRootAry[0] != null) { infoRootAry[0].SetActive(false); if (selectSP != null) { selectSP.set_enabled(false); } } SkillItemSortData skillItemSortData = data[0] as SkillItemSortData; SetupSelectNumberSprite((int)data[2]); ItemIconDetail.ICON_STATUS iCON_STATUS = (ItemIconDetail.ICON_STATUS)(int) data[3]; SkillItemInfo skillItemInfo = skillItemSortData.GetItemData() as SkillItemInfo; string text = $"{skillItemSortData.GetLevel()}/{skillItemInfo.GetMaxLevel()}"; if (skillItemInfo.IsExceeded()) { text += UIUtility.GetColorText(StringTable.Format(STRING_CATEGORY.SMITH, 9u, skillItemInfo.exceedCnt), ExceedSkillItemTable.color); } infoRootAry[1].SetActive(true); infoRootAry[2].SetActive(false); SetName(skillItemSortData.GetName()); SetVisibleBG(true); lblDescription.supportEncoding = true; lblDescription.text = skillItemInfo.GetExplanationText(false); UILabel[] lABELS_LV_HEAD = LABELS_LV_HEAD; foreach (UILabel uILabel in lABELS_LV_HEAD) { uILabel.get_gameObject().SetActive(true); } UILabel[] lABELS_LV = LABELS_LV; foreach (UILabel uILabel2 in lABELS_LV) { uILabel2.get_gameObject().SetActive(true); uILabel2.supportEncoding = true; uILabel2.text = text; } spEnableExceed.get_gameObject().SetActive(iCON_STATUS == ItemIconDetail.ICON_STATUS.VALID_EXCEED_0); bool flag = iCON_STATUS == ItemIconDetail.ICON_STATUS.VALID_EXCEED || iCON_STATUS == ItemIconDetail.ICON_STATUS.VALID_EXCEED_0; spriteBg[0].get_gameObject().SetActive(!flag); spriteBg[1].get_gameObject().SetActive(flag); if (iCON_STATUS == ItemIconDetail.ICON_STATUS.GRAYOUT) { infoRootAry[0].SetActive(true); } GrayOut(iCON_STATUS); }
protected override IEnumerator DoInitialize() { SetLabelText((Enum)UI.LBL_HOST_LIMIT, eventData.hostCountLimit.ToString()); string remainTime = QuestSpecialSelect.GetRemainTimeText(GetRemainTime()); SetLabelText((Enum)UI.LBL_HOST_RESET_TIME, StringTable.Format(STRING_CATEGORY.EXPLORE, 2u, remainTime)); yield return((object)this.StartCoroutine(GetCurrentStatus())); yield return((object)this.StartCoroutine(base.DoInitialize())); }
public void OnGetPortalPoint(int add_point) { //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) EffectManager.OneShot(parameter.pointGetEffectName, _transform.get_position(), _transform.get_rotation(), false); nowPoint += add_point; if (nowPoint >= maxPoint) { if (!portalInfo.IsFull()) { Log.Warning(LOG.INGAME, "PortalObject.OnGetPortalPoint() Portal is not full. id : {0}", portalID); } isFull = true; CreateView(); string text = string.Empty; FieldMapTable.FieldMapTableData fieldMapData = Singleton <FieldMapTable> .I.GetFieldMapData(portalData.dstMapID); if (fieldMapData != null) { text = fieldMapData.mapName; } if (MonoBehaviourSingleton <FieldManager> .I.isTutorialField) { string text2 = StringTable.Format(STRING_CATEGORY.IN_GAME, 6001u, text); UIInGamePopupDialog.PushOpen(text2, false, 1.4f); } else if (QuestManager.IsValidInGameExplore()) { string text3 = StringTable.Format(STRING_CATEGORY.IN_GAME, 6002u, text); UIInGamePopupDialog.PushOpen(text3, false, 1.4f); } else { int num = parameter.clearCrystalNum; if (isToHardMap) { num = parameter.clearHardCrystalNum; } string text4 = StringTable.Format(STRING_CATEGORY.IN_GAME, 6000u, text, num); UIInGamePopupDialog.PushOpen(text4, false, 1.8f); } SoundManager.PlayOneShotUISE(40000069); SoundManager.PlayOneshotJingle(40000071, null, null); } else { UpdateView(); SoundManager.PlayOneShotUISE(40000068); } if (uiGizmo != null) { uiGizmo.OnGetPortalPoint(); } }
public static string TimeFormatWithUnit(TimeSpan restTime) { if (restTime.Days > 0) { return(StringTable.Format(STRING_CATEGORY.TIME, 0u, restTime.Days)); } if (restTime.Hours > 0) { return(StringTable.Format(STRING_CATEGORY.TIME, 1u, restTime.Hours)); } return(StringTable.Format(STRING_CATEGORY.TIME, 2u, restTime.Minutes)); }
protected string[] GetTexts(object[] args, STRING_CATEGORY message_categoly = STRING_CATEGORY.COMMON_DIALOG) { string[] currentSectionTypeParams = MonoBehaviourSingleton <GameSceneManager> .I.GetCurrentSectionTypeParams(); if (currentSectionTypeParams == null || currentSectionTypeParams.Length < 2) { List <GameSceneTables.TextData> currentSectionTextList = MonoBehaviourSingleton <GameSceneManager> .I.GetCurrentSectionTextList(); string[] array = new string[currentSectionTextList.Count]; if (args != null) { int i = 0; for (int num = array.Length; i < num; i++) { array[i] = string.Format(currentSectionTextList[i].text, args); } } else { int j = 0; for (int num2 = array.Length; j < num2; j++) { array[j] = currentSectionTextList[j].text; } } return(array); } int num3 = currentSectionTypeParams.Length; string[] array2 = new string[num3 - 1]; if (args != null && args.Length > 0) { array2[0] = StringTable.Format(message_categoly, uint.Parse(currentSectionTypeParams[1]), args); } else { array2[0] = StringTable.Get(message_categoly, uint.Parse(currentSectionTypeParams[1])); } if (num3 > 2) { array2[1] = StringTable.Get(STRING_CATEGORY.COMMON_DIALOG, uint.Parse(currentSectionTypeParams[2])); } if (num3 > 3) { array2[2] = StringTable.Get(STRING_CATEGORY.COMMON_DIALOG, uint.Parse(currentSectionTypeParams[3])); } if (num3 > 4) { array2[3] = StringTable.Get(STRING_CATEGORY.COMMON_DIALOG, uint.Parse(currentSectionTypeParams[4])); } return(array2); }
private void InitEnemyItem(int i, Transform t, bool isRecycle, QuestTable.QuestTableData questData) { EnemyTable.EnemyData enemyData = Singleton <EnemyTable> .I.GetEnemyData((uint)questData.GetMainEnemyID()); if (enemyData != null) { SetLabelText(t, UI.LBL_ENEMY_LEVEL, StringTable.Format(STRING_CATEGORY.MAIN_STATUS, 1u, arenaData.level)); SetLabelText(t, UI.LBL_ENEMY_NAME, enemyData.name); ItemIcon itemIcon = ItemIcon.Create(ItemIcon.GetItemIconType(questData.questType), enemyData.iconId, questData.rarity, FindCtrl(t, UI.OBJ_ENEMY), enemyData.element, null, -1, null, 0, false, -1, false, null, false, 0, 0, false, GET_TYPE.PAY); itemIcon.SetEnableCollider(false); SetActive(t, UI.SPR_ELEMENT_ROOT, enemyData.element != ELEMENT_TYPE.MAX); SetElementSprite(t, UI.SPR_ELEMENT, (int)enemyData.element); SetElementSprite(t, UI.SPR_WEAK_ELEMENT, (int)enemyData.weakElement); SetActive(t, UI.STR_NON_WEAK_ELEMENT, enemyData.weakElement == ELEMENT_TYPE.MAX); } }
public bool OnRecvRoomHostChanged(Lounge_Model_RoomHostChanged model) { Logd("OnRecvHostChanged. hostId = {0}", model.hostid); if (!MonoBehaviourSingleton <LoungeMatchingManager> .I.IsUserInLounge(model.hostid)) { return(true); } MonoBehaviourSingleton <LoungeMatchingManager> .I.ChangeOwner(model.hostid); LoungeModel.SlotInfo slotInfoByUserId = MonoBehaviourSingleton <LoungeMatchingManager> .I.GetSlotInfoByUserId(model.hostid); if (chatConnection != null) { chatConnection.OnReceiveNotification(StringTable.Format(STRING_CATEGORY.LOUNGE, 13u, slotInfoByUserId.userInfo.name)); } return(true); }
public override void UpdateUI() { //IL_0115: Unknown result type (might be due to invalid IL or missing references) //IL_011a: Expected O, but got Unknown //IL_011e: Unknown result type (might be due to invalid IL or missing references) //IL_0158: Unknown result type (might be due to invalid IL or missing references) //IL_015d: Unknown result type (might be due to invalid IL or missing references) string text = StringTable.Format(STRING_CATEGORY.SHADOW_COUNT, 0u, MonoBehaviourSingleton <PartyManager> .I.challengeInfo.currentShadowCount.startDate); SetLabelText((Enum)UI.LBL_FIRST_SENTENSE, text); if (MonoBehaviourSingleton <PartyManager> .I.challengeInfo.IsRankingEvent()) { SetActive((Enum)UI.LBL_SECOND_SENTENSE, true); SetActive((Enum)UI.PADDING_2, true); SetLabelText((Enum)UI.LBL_SECOND_SENTENSE, StringTable.Get(STRING_CATEGORY.SHADOW_COUNT, 1u)); } else { SetActive((Enum)UI.LBL_SECOND_SENTENSE, false); SetActive((Enum)UI.PADDING_2, false); } SetLabelText((Enum)UI.LBL_DESCRIPTION, StringTable.Get(STRING_CATEGORY.SHADOW_COUNT, 2u)); SetLabelText((Enum)UI.LBL_BONUS_NUM, MonoBehaviourSingleton <PartyManager> .I.challengeInfo.currentShadowCount.num.ToString()); base.GetComponent <UITable>((Enum)UI.TBL_CONTENTS).Reposition(); Transform ctrl = GetCtrl(UI.SPR_FRAME); int num = 0; int childCount = GetCtrl(UI.TBL_CONTENTS).get_childCount(); for (int i = 0; i < childCount; i++) { Transform val = GetCtrl(UI.TBL_CONTENTS).GetChild(i); if (val.get_gameObject().get_activeSelf()) { num += val.GetComponent <UIWidget>().height; } } num = Mathf.Max(num, 0); float num2 = (float)(123 + num); Vector3 localScale = ctrl.get_localScale(); int height = (int)(num2 / localScale.y); SetHeight((Enum)UI.SPR_FRAME, height); UpdateAnchors(); base.UpdateUI(); }
private void Update() { //IL_0016: Unknown result type (might be due to invalid IL or missing references) //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0108: Unknown result type (might be due to invalid IL or missing references) if (!CheckVisible()) { MonoBehaviourSingleton <InGameProgress> .I.CloseDialog(); this.get_gameObject().SetActive(false); } else { Self self = MonoBehaviourSingleton <StageObjectManager> .I.self; if (!(self == null) && continueCount != null) { float num = self.rescueTime; if (num > 0f) { continueCount.text = StringTable.Format(STRING_CATEGORY.IN_GAME, 1000u, num.ToString("F2")); continueCount.color = Color.get_white(); } else { if (QuestManager.IsValidInGameExplore()) { if (MonoBehaviourSingleton <StageObjectManager> .I.self.IsAbleToRescueByRemainRescueTime()) { DoRestart(); } else { DoRetire(); } } num = self.continueTime; continueCount.text = StringTable.Format(STRING_CATEGORY.IN_GAME, 1001u, num.ToString("F2")); continueCount.color = Color.get_red(); } } } }
public bool OnRecvRoomLeaved(Lounge_Model_RoomLeaved model) { Logd("OnRecvRoomLeaved. cid={0}", model.cid); if (model.cid != MonoBehaviourSingleton <UserInfoManager> .I.userInfo.id) { string text = string.Empty; LoungeModel.SlotInfo slotInfoByUserId = MonoBehaviourSingleton <LoungeMatchingManager> .I.GetSlotInfoByUserId(model.cid); if (slotInfoByUserId != null) { text = slotInfoByUserId.userInfo.name; } else if (MonoBehaviourSingleton <InGameRecorder> .IsValid()) { InGameRecorder.PlayerRecord playerByUserId = MonoBehaviourSingleton <InGameRecorder> .I.GetPlayerByUserId(model.cid); if (playerByUserId != null) { text = playerByUserId.charaInfo.name; } } if (chatConnection != null && !string.IsNullOrEmpty(text)) { chatConnection.OnReceiveNotification(StringTable.Format(STRING_CATEGORY.LOUNGE, 11u, text)); } } if (FieldManager.IsValidInGame()) { Protocol.Try(delegate { MonoBehaviourSingleton <LoungeMatchingManager> .I.SendInfo(delegate { }, false); }); } if (MonoBehaviourSingleton <LoungeManager> .IsValid()) { MonoBehaviourSingleton <LoungeManager> .I.OnRecvRoomLeaved(model.cid); } return(true); }
public bool OnRecvRoomAFKKick(Lounge_Model_AFK_Kick model) { Logd("OnRecvAFKKick. cId = {0}", model.cid); if (!LoungeMatchingManager.IsValidInLounge()) { return(true); } LoungeModel.SlotInfo slotInfoByUserId = MonoBehaviourSingleton <LoungeMatchingManager> .I.GetSlotInfoByUserId(model.cid); if (slotInfoByUserId == null || slotInfoByUserId.userInfo == null) { return(true); } MonoBehaviourSingleton <LoungeMatchingManager> .I.Kick(model.cid); if (chatConnection != null) { chatConnection.OnReceiveNotification(StringTable.Format(STRING_CATEGORY.LOUNGE, 19u, slotInfoByUserId.userInfo.name)); } return(true); }
private void UpdateTopBar() { int num = QuestUtility.ToSecByMilliSec(arenaData.timeLimit); SetLabelText((Enum)UI.LBL_LIMIT_TIME, $"{num / 60}:{num % 60:D2}"); string empty = string.Empty; if (deliveryData != null) { empty = QuestUtility.GetArenaTitle(arenaData.group, deliveryData.name); } else { string str = StringTable.Format(STRING_CATEGORY.ARENA, 0u, arenaData.group); string str2 = StringTable.Format(STRING_CATEGORY.ARENA, 1u, arenaData.rank); empty = str + "\u3000" + str2; } SetLabelText((Enum)UI.LBL_ARENA_NAME, empty); UITexture component = GetCtrl(UI.TEX_ICON).GetComponent <UITexture>(); ResourceLoad.LoadWithSetUITexture(component, RESOURCE_CATEGORY.ARENA_RANK_ICON, ResourceName.GetArenaRankIconName(arenaData.rank)); }
public static DropAnnounceInfo CreateEquipItemInfo(uint id, int num, out bool is_rare) { is_rare = false; EquipItemTable.EquipItemData equipItemData = Singleton <EquipItemTable> .I.GetEquipItemData(id); if (equipItemData == null) { return(null); } DropAnnounceInfo dropAnnounceInfo = new DropAnnounceInfo(); dropAnnounceInfo.text = StringTable.Format(STRING_CATEGORY.IN_GAME, 2003u, equipItemData.name, num); if (!GameDefine.IsRare(equipItemData.rarity)) { dropAnnounceInfo.color = COLOR.NORMAL; } else { dropAnnounceInfo.color = COLOR.RARE; is_rare = true; } return(dropAnnounceInfo); }
public void OnRecvNotifyEncounterBoss(int fromClientId, Coop_Model_RoomNotifyEncounterBoss model) { if (!QuestManager.IsValidInGameExplore() || !MonoBehaviourSingleton <QuestManager> .I.IsExploreBossMap()) { if (!MonoBehaviourSingleton <QuestManager> .I.IsEncountered() && MonoBehaviourSingleton <InGameProgress> .IsValid() && MonoBehaviourSingleton <InGameProgress> .I.progressEndType == InGameProgress.PROGRESS_END_TYPE.NONE) { CoopClient coopClient = clients.FindByClientId(fromClientId); MonoBehaviourSingleton <QuestManager> .I.SetMemberEncounteredMap(model.mid); uint currentQuestID = MonoBehaviourSingleton <QuestManager> .I.currentQuestID; QuestTable.QuestTableData questData = Singleton <QuestTable> .I.GetQuestData(currentQuestID); int mainEnemyID = questData.GetMainEnemyID(); string enemyName = Singleton <EnemyTable> .I.GetEnemyName((uint)mainEnemyID); string text = StringTable.Format(STRING_CATEGORY.IN_GAME, 8000u, coopClient.GetPlayerName(), enemyName); UIInGamePopupDialog.PushOpen(text, false, 1.22f); } if (QuestManager.IsValidExplore()) { MonoBehaviourSingleton <QuestManager> .I.UpdatePortalUsedFlag(model.pid); } } }
private IEnumerator Start() { ResourceManager.internalMode = true; GameSaveData.Load(); if (PlayerPrefs.GetInt("INIT_SE_VOLUME", 0) == 0) { if (GameSaveData.instance.volumeSE == 1f) { GameSaveData.instance.volumeSE = 0.5f; } PlayerPrefs.SetInt("INIT_SE_VOLUME", 1); } if (string.IsNullOrEmpty(GameSaveData.instance.graphicOptionKey)) { if (NetworkNative.isRunOnRazerPhone()) { GameSaveData.instance.graphicOptionKey = "highest"; Application.set_targetFrameRate(120); Time.set_fixedDeltaTime(0.008333335f); } else { GameSaveData.instance.graphicOptionKey = "low"; } } if (GameSaveData.instance != null) { if (GameSaveData.instance.graphicOptionKey == "highest") { Application.set_targetFrameRate(120); Time.set_fixedDeltaTime(0.008333335f); } else { Application.set_targetFrameRate(30); } } NetworkNative.setHost(NetworkManager.APP_HOST); isAnalytics = true; NetworkNative.getAnalytics(); MonoBehaviourSingleton <AppMain> .I.UpdateResolution(true); MonoBehaviourSingleton <SoundManager> .I.UpdateConfigVolume(); if (MonoBehaviourSingleton <InGameManager> .IsValid()) { MonoBehaviourSingleton <InGameManager> .I.UpdateConfig(); } if (MonoBehaviourSingleton <InputManager> .IsValid()) { MonoBehaviourSingleton <InputManager> .I.UpdateConfigInput(); } Transform ui_root = ResourceUtility.Realizes(Resources.Load("UI/UI_Root"), MonoBehaviourSingleton <AppMain> .I._transform, -1); ui_root.get_gameObject().AddComponent <UIManager>(); MonoBehaviourSingleton <UIManager> .I.SetDisable(UIManager.DISABLE_FACTOR.INITIALIZE, true); MonoBehaviourSingleton <AppMain> .I.get_gameObject().AddComponent <GameSceneManager>(); MonoBehaviourSingleton <AppMain> .I.get_gameObject().AddComponent <UserInfoManager>(); MonoBehaviourSingleton <AppMain> .I.get_gameObject().AddComponent <TransitionManager>(); MonoBehaviourSingleton <AppMain> .I.get_gameObject().AddComponent <FBManager>(); MonoBehaviourSingleton <AppMain> .I.get_gameObject().AddComponent <NativeGameService>(); Singleton <StringTable> .Create(); Singleton <StringTable> .I.CreateTable(null); MonoBehaviourSingleton <GameSceneManager> .I.Initialize(); LoadingQueue load_queue = new LoadingQueue(this); LoadObject lo_sound_se_table = load_queue.Load(RESOURCE_CATEGORY.TABLE, "SETable", false); LoadObject lo_audio_setting_table = load_queue.Load(RESOURCE_CATEGORY.TABLE, "AudioSettingTable", false); while (load_queue.IsLoading() || !MonoBehaviourSingleton <GameSceneManager> .I.isInitialized) { yield return((object)null); } Singleton <SETable> .Create(); Singleton <SETable> .I.CreateTableFromInternal((lo_sound_se_table.loadedObject as TextAsset).get_text()); Singleton <AudioSettingTable> .Create(); Singleton <AudioSettingTable> .I.CreateTableFromInternal((lo_audio_setting_table.loadedObject as TextAsset).get_text()); if (MonoBehaviourSingleton <SoundManager> .IsValid()) { MonoBehaviourSingleton <SoundManager> .I.LoadParmanentAudioClip(); while (MonoBehaviourSingleton <SoundManager> .I.IsLoadingAudioClip()) { yield return((object)null); } } MonoBehaviourSingleton <ResourceManager> .I.SetURL(NetworkManager.IMG_HOST); MonoBehaviourSingleton <GoGameResourceManager> .I.LoadVariantManifest(); while (MonoBehaviourSingleton <GoGameResourceManager> .I.isLoadingVariantManifest) { Debug.Log((object)"Waiting LoadingVariantManifest "); yield return((object)null); } int reset = PlayerPrefs.GetInt("AppMain.Reset", 0); if (reset != 0) { yield return((object)null); MonoBehaviourSingleton <AppMain> .I.Reset((reset & 1) != 0, (reset & 2) != 0); } else { float analyticTimeCount = 5f; while (isAnalytics) { analyticTimeCount -= Time.get_deltaTime(); if (analyticTimeCount < 0f) { int err_code = 200000; MonoBehaviourSingleton <GameSceneManager> .I.OpenCommonDialog(new CommonDialog.Desc(CommonDialog.TYPE.OK, StringTable.Format(STRING_CATEGORY.COMMON_DIALOG, 1001u, err_code), StringTable.Get(STRING_CATEGORY.COMMON_DIALOG, 100u), null, null, null), delegate { MonoBehaviourSingleton <AppMain> .I.Reset(); }, true, err_code); yield break; } yield return((object)null); } bool wait = true; MonoBehaviourSingleton <AccountManager> .I.SendCheckRegister(analyticsString, delegate { ((_003CStart_003Ec__Iterator19) /*Error near IL_0495: stateMachine*/)._003Cwait_003E__7 = false; }); while (wait) { yield return((object)null); } MonoBehaviourSingleton <ResourceManager> .I.cache.ClearObjectCaches(true); MonoBehaviourSingleton <ResourceManager> .I.cache.ClearPackageCaches(); bool assetbundle_mode = isAssetBundleMode(); bool to_opening = IsOpening(); if (assetbundle_mode) { if (!CheckPermissions()) { bool isFirstLoad = PlayerPrefs.GetInt("first_time_load_game_msg", 0) == 0; AndroidPermissionsManager.ShouldShowRequestPermission("android.permission.WRITE_EXTERNAL_STORAGE"); PlayerPrefs.SetInt("first_time_load_game_msg", 1); if (!isFirstLoad) { MonoBehaviourSingleton <UIManager> .I.loading.ShowChangePermissionMsg(true); while (!CheckPermissions()) { yield return((object)null); } } else { MonoBehaviourSingleton <UIManager> .I.loading.ShowWellcomeMsg(true); while (isWaitGrantedPermission) { yield return((object)null); } while (!isGrantedPermission) { isWaitGrantedPermission = true; MonoBehaviourSingleton <UIManager> .I.loading.ShowDellyMsg(true); MonoBehaviourSingleton <UIManager> .I.loading.ShowEmptyFirstLoad(false); while (isWaitGrantedPermission) { yield return((object)null); } if (!isGrantedPermission && !AndroidPermissionsManager.ShouldShowRequestPermission("android.permission.WRITE_EXTERNAL_STORAGE")) { MonoBehaviourSingleton <UIManager> .I.loading.HideAllPermissionMsg(); MonoBehaviourSingleton <UIManager> .I.loading.ShowChangePermissionMsg(true); while (!CheckPermissions()) { yield return((object)null); } isGrantedPermission = true; } } } MonoBehaviourSingleton <UIManager> .I.loading.ShowEmptyFirstLoad(true); MonoBehaviourSingleton <UIManager> .I.loading.HideAllTextMsg(); yield return((object)null); } else if (PlayerPrefs.GetInt("first_time_load_game_msg", 0) == 0) { PlayerPrefs.SetInt("first_time_load_game_msg", 1); MonoBehaviourSingleton <UIManager> .I.loading.ShowEmptyFirstLoad(true); } if (to_opening) { MonoBehaviourSingleton <UIManager> .I.loading.downloadGaugeVisible = false; } MonoBehaviourSingleton <ResourceManager> .I.SetURL(NetworkManager.IMG_HOST); MonoBehaviourSingleton <ResourceManager> .I.LoadManifest(); while (MonoBehaviourSingleton <ResourceManager> .I.isLoadingManifest) { yield return((object)null); } ResourceManager.internalMode = false; load_queue.Load(RESOURCE_CATEGORY.SHADER, null, null, true); load_queue.Load(RESOURCE_CATEGORY.UI_FONT, null, null, true); ResourceManager.internalMode = true; yield return((object)load_queue.Wait()); MonoBehaviourSingleton <ResourceManager> .I.cache.MarkSystemPackage(RESOURCE_CATEGORY.SHADER.ToAssetBundleName(null)); MonoBehaviourSingleton <ResourceManager> .I.cache.MarkSystemPackage(RESOURCE_CATEGORY.UI_FONT.ToAssetBundleName(null)); MonoBehaviourSingleton <ResourceManager> .I.cache.CacheShadersFromPackage(RESOURCE_CATEGORY.SHADER.ToAssetBundleName(null)); MonoBehaviourSingleton <UIManager> .I.loading.downloadGaugeVisible = true; } NetworkNative.getNativeAsset(); if (MonoBehaviourSingleton <AccountManager> .I.sendAsset) { NetworkNative.getNativeiOSAsset(); } if (to_opening) { Native.CheckReferrerSendToAppBrowser(); ResourceManager.internalMode = true; ResourceManager.internalMode = false; if (MonoBehaviourSingleton <ResourceManager> .I.manifest != null) { ResourceManager.internalMode = true; } MonoBehaviourSingleton <AppMain> .I.get_gameObject().AddComponent <OpeningStartProcess>(); } else { ResourceManager.internalMode = false; MonoBehaviourSingleton <AppMain> .I.get_gameObject().AddComponent <LoadingProcess>(); } Object.Destroy(this); } }
public void MoveLoungeNotification(LoungeMemberStatus.MEMBER_STATUS beforeStatus, LoungeMemberStatus after) { if (MonoBehaviourSingleton <LoungeMatchingManager> .I.IsUserInLounge(after.userId)) { LoungeMemberStatus.MEMBER_STATUS status = after.GetStatus(); LoungeModel.SlotInfo slotInfoByUserId = MonoBehaviourSingleton <LoungeMatchingManager> .I.GetSlotInfoByUserId(after.userId); switch (beforeStatus) { case LoungeMemberStatus.MEMBER_STATUS.LOUNGE: switch (status) { case LoungeMemberStatus.MEMBER_STATUS.QUEST: break; case LoungeMemberStatus.MEMBER_STATUS.QUEST_READY: if (after.isHost) { chatConnection.OnReceiveNotification(StringTable.Format(STRING_CATEGORY.LOUNGE, 14u, slotInfoByUserId.userInfo.name)); } break; case LoungeMemberStatus.MEMBER_STATUS.FIELD: chatConnection.OnReceiveNotification(StringTable.Format(STRING_CATEGORY.LOUNGE, 15u, slotInfoByUserId.userInfo.name)); break; case LoungeMemberStatus.MEMBER_STATUS.ARENA: chatConnection.OnReceiveNotification(StringTable.Format(STRING_CATEGORY.LOUNGE, 20u, slotInfoByUserId.userInfo.name)); break; } break; case LoungeMemberStatus.MEMBER_STATUS.QUEST_READY: if (status == LoungeMemberStatus.MEMBER_STATUS.QUEST) { chatConnection.OnReceiveNotification(StringTable.Format(STRING_CATEGORY.LOUNGE, 16u, slotInfoByUserId.userInfo.name)); } break; case LoungeMemberStatus.MEMBER_STATUS.QUEST: if (status == LoungeMemberStatus.MEMBER_STATUS.LOUNGE) { chatConnection.OnReceiveNotification(StringTable.Format(STRING_CATEGORY.LOUNGE, 17u, slotInfoByUserId.userInfo.name)); } break; case LoungeMemberStatus.MEMBER_STATUS.ARENA: if (status == LoungeMemberStatus.MEMBER_STATUS.LOUNGE) { chatConnection.OnReceiveNotification(StringTable.Format(STRING_CATEGORY.LOUNGE, 21u, slotInfoByUserId.userInfo.name)); } break; default: if (status == LoungeMemberStatus.MEMBER_STATUS.LOUNGE) { chatConnection.OnReceiveNotification(StringTable.Format(STRING_CATEGORY.LOUNGE, 18u, slotInfoByUserId.userInfo.name)); } break; } } }
public static string GetArenaTitle(ARENA_GROUP group, string subTitle) { string str = StringTable.Format(STRING_CATEGORY.ARENA, 0u, group); return(str + " " + subTitle); }