private void OnQuestSelect(SRPG_Button button) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type QuestBookmarkKakeraWindow.\u003COnQuestSelect\u003Ec__AnonStorey361 selectCAnonStorey361 = new QuestBookmarkKakeraWindow.\u003COnQuestSelect\u003Ec__AnonStorey361(); int index = this.mGainedQuests.IndexOf(((Component)button).get_gameObject()); // ISSUE: reference to a compiler-generated field selectCAnonStorey361.quest = DataSource.FindDataOfClass <QuestParam>(this.mGainedQuests[index], (QuestParam)null); // ISSUE: reference to a compiler-generated field if (selectCAnonStorey361.quest == null) { return; } // ISSUE: reference to a compiler-generated field if (!selectCAnonStorey361.quest.IsDateUnlock(-1L)) { UIUtility.NegativeSystemMessage((string)null, LocalizedText.Get("sys.DISABLE_QUEST_DATE_UNLOCK"), (UIUtility.DialogResultEvent)null, (GameObject)null, false, -1); } else { // ISSUE: reference to a compiler-generated method if (Array.Find <QuestParam>(MonoSingleton <GameManager> .Instance.Player.AvailableQuests, new Predicate <QuestParam>(selectCAnonStorey361.\u003C\u003Em__3DC)) == null) { UIUtility.NegativeSystemMessage((string)null, LocalizedText.Get("sys.DISABLE_QUEST_CHALLENGE"), (UIUtility.DialogResultEvent)null, (GameObject)null, false, -1); } else { // ISSUE: reference to a compiler-generated field GlobalVars.SelectedQuestID = selectCAnonStorey361.quest.iname; FlowNode_GameObject.ActivateOutputLinks((Component)this, 100); } } }
private void AddPanel(QuestParam questparam, QuestParam[] availableQuests) { if (questparam == null || questparam.IsMulti) { return; } GameObject gameObject = (GameObject)UnityEngine.Object.Instantiate <GameObject>((M0)this.QuestListItemTemplate); SRPG_Button component1 = (SRPG_Button)gameObject.GetComponent <SRPG_Button>(); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component1, (UnityEngine.Object)null)) { component1.AddListener(new SRPG_Button.ButtonClickEvent(this.OnQuestSelect)); } this.mGainedQuests.Add(gameObject); Button component2 = (Button)gameObject.GetComponent <Button>(); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component2, (UnityEngine.Object)null)) { bool flag1 = questparam.IsDateUnlock(-1L); bool flag2 = Array.Find <QuestParam>(availableQuests, (Predicate <QuestParam>)(p => p == questparam)) != null; ((Selectable)component2).set_interactable(flag1 && flag2); } DataSource.Bind <QuestParam>(gameObject, questparam); gameObject.get_transform().SetParent((Transform)this.QuestListParent, false); gameObject.SetActive(true); }
private void OnClickSubmitButton(SRPG_Button button) { int result = 0; if (!int.TryParse(((Object)button).get_name(), out result)) { return; } if (this.input_fields[result].get_text().Length <= 0 || this.input_fields[result].get_text() == this.prefs_data.messages[result]) { FlowNode_GameObject.ActivateOutputLinks((Component)this, 100); } else { string text = this.input_fields[result].get_text(); string str = ChatUtility.ReplaceNGWord(this.input_fields[result].get_text(), this.chat_inspecton_master, "*"); if (text != str) { this.input_fields[result].SetText(this.prefs_data.messages[result]); FlowNode_GameObject.ActivateOutputLinks((Component)this, 101); } else { this.input_fields[result].SetText(str); this.prefs_data.messages[result] = str; ChatUtility.SaveTemplateMessage(this.prefs_data); FlowNode_GameObject.ActivateOutputLinks((Component)this, 100); } } }
private void OnTabChange(SRPG_Button button) { if (!this.TabChange(button)) { ; } }
private void Clicked(SRPG_Button button) { if (!((Selectable)button).IsInteractable() || string.IsNullOrEmpty(this.AB_RANKUP_ADD_WINDOW_PATH)) { return; } GameObject gameObject1 = AssetManager.Load <GameObject>(this.AB_RANKUP_ADD_WINDOW_PATH); if (!UnityEngine.Object.op_Inequality((UnityEngine.Object)gameObject1, (UnityEngine.Object)null)) { return; } GameObject gameObject2 = (GameObject)UnityEngine.Object.Instantiate <GameObject>((M0)gameObject1); if (!UnityEngine.Object.op_Inequality((UnityEngine.Object)gameObject2, (UnityEngine.Object)null)) { return; } AbilityRankUpPointAddWindow componentInChildren = (AbilityRankUpPointAddWindow)gameObject2.GetComponentInChildren <AbilityRankUpPointAddWindow>(); if (!UnityEngine.Object.op_Inequality((UnityEngine.Object)componentInChildren, (UnityEngine.Object)null)) { return; } componentInChildren.OnDecide = new AbilityRankUpPointAddWindow.DecideEvent(this.OnDecide); componentInChildren.OnCancel = (AbilityRankUpPointAddWindow.CancelEvent)null; }
private void RefreshSection(string sectionName, SRPG_Button button) { using (List <GameObject> .Enumerator enumerator = this.mCurrentUnitObjects.GetEnumerator()) { while (enumerator.MoveNext()) { UnityEngine.Object.Destroy((UnityEngine.Object)enumerator.Current); } } this.mCurrentUnitObjects.Clear(); this.CreateUnitPanels((IEnumerable <QuestBookmarkWindow.ItemAndQuests>) this.mSectionToPieces[sectionName], sectionName); if (this.mIsBookmarkEditing && this.mBookmarkedPieces.Count >= this.MaxBookmarkCount) { this.SetActivateWithoutBookmarkedUnit(false); } this.ToggleSectionButton(Array.IndexOf <SRPG_Button>(this.ButtonSections, button)); this.ResetScrollPosition(); if (sectionName == this.BookmarkSectionName) { bool flag = this.mCurrentUnitObjects.Count <= 0; this.BookmarkNotFoundText.SetActive(flag); ((Component)this.DescriptionText).get_gameObject().SetActive(!flag); } else { this.BookmarkNotFoundText.SetActive(false); ((Component)this.DescriptionText).get_gameObject().SetActive(true); } this.mLastSectionName = sectionName; }
private void AddList(QuestParam qparam, bool isActive = false) { if (qparam == null || qparam.IsMulti) { DebugUtility.LogWarning("UnitEvolutionWindow.cs => AddList():qparam is Null Reference!"); } else if (UnityEngine.Object.op_Equality((UnityEngine.Object) this.QuestListItemTemplate, (UnityEngine.Object)null)) { DebugUtility.LogWarning("UnitEvolutionWindow.cs => AddList():QuestListItemTemplate is Null Reference!"); } else if (UnityEngine.Object.op_Equality((UnityEngine.Object) this.QuestListParent, (UnityEngine.Object)null)) { DebugUtility.LogWarning("UnitEvolutionWindow.cs => AddList():QuestListParent is Null Reference!"); } else { GameObject gameObject = (GameObject)UnityEngine.Object.Instantiate <GameObject>((M0)this.QuestListItemTemplate); this.mGainedQuests.Add(gameObject); SRPG_Button component = (SRPG_Button)gameObject.GetComponent <SRPG_Button>(); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null)) { component.AddListener(new SRPG_Button.ButtonClickEvent(this.OnQuestSelect)); bool flag = qparam.IsDateUnlock(-1L); ((Selectable)component).set_interactable(flag && isActive); } DataSource.Bind <QuestParam>(gameObject, qparam); gameObject.get_transform().SetParent(this.QuestListParent, false); gameObject.SetActive(true); } }
private void LoadAllParties(RecentPartyList.JSON_List[] winRecords) { int num = 0; foreach (RecentPartyList.JSON_List winRecord in winRecords) { int index = num; SRPG_Button.ButtonClickEvent buttonClickEvent = (SRPG_Button.ButtonClickEvent)(b => this.OnButtonClick(index)); if (winRecord.id > this.mUnitId) { this.mUnitId = winRecord.id; } UnitData[] party = this.LoadParty((IEnumerable <Json_Unit>)winRecord.detail.my.units); SupportData support = this.LoadHelpUnit(winRecord.detail.help); ItemData[] itemDataArray = this.LoadUsedItems(winRecord.detail.items); this.allParties.Add(((IEnumerable <UnitData>)party).ToArray <UnitData>()); this.allHelpUnits.Add(support); this.allAchieves.Add(winRecord.achieved); this.allUsedItems.Add(itemDataArray); RecentPartyPanel partyPanel = this.CreatePartyPanel(party, support, winRecord, buttonClickEvent); this.allTeamPanel.Add(partyPanel); ((Component)partyPanel).get_transform().SetParent(this.PartyPanelHolder.get_gameObject().get_transform(), false); SRPG_Button component = (SRPG_Button)((Component)partyPanel).GetComponent <SRPG_Button>(); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null)) { component.AddListener(buttonClickEvent); } ++num; } }
private void LoadAllParties(RecentPartyList.JSON_List[] winRecords) { int num = 0; foreach (RecentPartyList.JSON_List winRecord in winRecords) { // ISSUE: object of a compiler-generated type is created // ISSUE: reference to a compiler-generated method SRPG_Button.ButtonClickEvent buttonClickEvent = new SRPG_Button.ButtonClickEvent(new RecentPartyList.\u003CLoadAllParties\u003Ec__AnonStorey375() { \u003C\u003Ef__this = this, index = num }.\u003C\u003Em__3FF); if (winRecord.id > this.mUnitId) { this.mUnitId = winRecord.id; } UnitData[] party = this.LoadParty((IEnumerable <Json_Unit>)winRecord.detail.my.units); SupportData support = this.LoadHelpUnit(winRecord.detail.help); ItemData[] itemDataArray = this.LoadUsedItems(winRecord.detail.items); this.allParties.Add(party); this.allHelpUnits.Add(support); this.allAchieves.Add(winRecord.achieved); this.allUsedItems.Add(itemDataArray); RecentPartyPanel partyPanel = this.CreatePartyPanel(party, support, winRecord, buttonClickEvent); this.allTeamPanel.Add(partyPanel); ((Component)partyPanel).get_transform().SetParent(this.PartyPanelHolder.get_gameObject().get_transform(), false); SRPG_Button component = (SRPG_Button)((Component)partyPanel).GetComponent <SRPG_Button>(); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null)) { component.AddListener(buttonClickEvent); } ++num; } }
private void OnEquipClick(SRPG_Button button) { if (!((Selectable)button).IsInteractable()) { return; } if (this.OnEquip != null) { this.OnEquip(); } else { UnitData unitDataByUniqueId = MonoSingleton <GameManager> .Instance.Player.FindUnitDataByUniqueID((long)GlobalVars.SelectedUnitUniqueID); if (unitDataByUniqueId == null) { return; } int selectedEquipmentSlot = (int)GlobalVars.SelectedEquipmentSlot; if (!MonoSingleton <GameManager> .Instance.Player.SetUnitEquipment(unitDataByUniqueId, selectedEquipmentSlot)) { return; } GameParameter.UpdateAll(((Component)this).get_gameObject()); int selectedJobIndex = this.GetSelectedJobIndex(unitDataByUniqueId); ItemData itemDataByItemParam = MonoSingleton <GameManager> .Instance.Player.FindItemDataByItemParam(unitDataByUniqueId.GetRankupEquipData(selectedJobIndex, selectedEquipmentSlot).ItemParam); GlobalVars.SelectedEquipUniqueID.Set(itemDataByItemParam.UniqueID); FlowNode_GameObject.ActivateOutputLinks((Component)this, 100); } }
public void SetParam(ChatLogParam param, SRPG_Button.ButtonClickEvent OnClickEvent) { if (param == null) { ((Component)this).get_gameObject().SetActive(false); this.mChatLogParam = (ChatLogParam)null; } else { this.mChatLogParam = param; ChatWindow.MessageTemplateType type = ChatWindow.MessageTemplateType.OtherUser; if (MonoSingleton <GameManager> .Instance.Player.FUID == param.fuid) { type = ChatWindow.MessageTemplateType.User; } else if (string.IsNullOrEmpty(param.fuid)) { type = ChatWindow.MessageTemplateType.System; } ((Component)this).get_gameObject().SetActive(true); this.Refresh(param, type); SRPG_Button component = (SRPG_Button)this.GetIcon.GetComponent <SRPG_Button>(); if (!UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null)) { return; } ((UnityEventBase)component.get_onClick()).RemoveAllListeners(); if (!(param.fuid != MonoSingleton <GameManager> .Instance.Player.FUID)) { return; } component.AddListener(OnClickEvent); } }
private void OnUnitSelect(SRPG_Button button) { if (!((Selectable)button).get_interactable() || this.mSelectQuestFlag) { return; } QuestBookmarkWindow.ItemAndQuests dataOfClass1 = DataSource.FindDataOfClass <QuestBookmarkWindow.ItemAndQuests>(((Component)button).get_gameObject(), (QuestBookmarkWindow.ItemAndQuests)null); long currentTime = Network.GetServerTime(); QuestParam[] availableQuests = MonoSingleton <GameManager> .Instance.Player.AvailableQuests; QuestParam[] questParamArray = !(this.mLastSectionName == this.BookmarkSectionName) ? dataOfClass1.quests.Where <QuestParam>((Func <QuestParam, bool>)(q => q.world == this.mLastSectionName)).ToArray <QuestParam>() : QuestDropParam.Instance.GetItemDropQuestList(MonoSingleton <GameManager> .Instance.MasterParam.GetItemParam(dataOfClass1.itemName), GlobalVars.GetDropTableGeneratedDateTime()).Where <QuestParam>((Func <QuestParam, bool>)(q => ((IEnumerable <string>) this.mAvailableSections).Contains <string>(q.world))).ToArray <QuestParam>(); if (questParamArray.Length <= 0) { return; } List <QuestParam> questParamList = new List <QuestParam>(); foreach (QuestParam questParam1 in questParamArray) { foreach (QuestParam questParam2 in ((IEnumerable <QuestParam>)availableQuests).Where <QuestParam>((Func <QuestParam, bool>)(q => this.IsAvailableQuest(q, currentTime)))) { if (questParam1.iname == questParam2.iname) { questParamList.Add(questParam1); } } } if (questParamList.Count <= 0) { QuestParam questParam = questParamArray[0]; UIUtility.SystemMessage((string)null, LocalizedText.Get("sys.TXT_QUESTBOOKMARK_BOOKMARK_NOT_AVAIABLE_QUEST", (object)questParam.title, (object)questParam.name), (UIUtility.DialogResultEvent)null, (GameObject)null, true, -1); } else if (this.mIsBookmarkEditing) { this.OnUnitSelectBookmark(dataOfClass1, (BookmarkUnit)((Component)button).GetComponent <BookmarkUnit>()); } else if (questParamArray.Length > 1) { if (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.QuestSelectorTemplate, (UnityEngine.Object)null)) { return; } GameObject gameObject = (GameObject)UnityEngine.Object.Instantiate <GameObject>((M0)this.QuestSelectorTemplate); gameObject.get_transform().SetParent(((Component)this).get_transform().get_parent(), false); QuestBookmarkKakeraWindow component = (QuestBookmarkKakeraWindow)gameObject.GetComponent <QuestBookmarkKakeraWindow>(); if (!UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null)) { return; } UnitParam dataOfClass2 = DataSource.FindDataOfClass <UnitParam>(((Component)button).get_gameObject(), (UnitParam)null); component.Refresh(dataOfClass2, (IEnumerable <QuestParam>)questParamArray); } else { this.mSelectQuestFlag = true; GlobalVars.SelectedQuestID = questParamArray[0].iname; FlowNode_GameObject.ActivateOutputLinks((Component)this, 100); } }
private bool MakeTrophyPlate(TrophyParam trophy, TrophyState st, bool is_achievement) { Transform transform = ((Component)this).get_transform(); if (this.TrophyType == TrophyList.TrophyTypes.Daily) { if (trophy.Days != 1) { return(false); } } else if (this.TrophyType == TrophyList.TrophyTypes.Normal && (trophy.Days != 0 || this.TrophyCategory != trophy.Category)) { return(false); } if (trophy.IsInvisibleVip() || trophy.IsInvisibleCard() || trophy.IsInvisibleStamina() || (trophy.RequiredTrophies != null && !TrophyParam.CheckRequiredTrophies(MonoSingleton <GameManager> .Instance, trophy, true) || !trophy.IsAvailablePeriod(TimeManager.ServerTime, is_achievement))) { return(false); } ListItemEvents listItemEvents1 = !st.IsEnded ? (!Object.op_Inequality((Object)this.Item_FollowTwitter, (Object)null) || !trophy.ContainsCondition(TrophyConditionTypes.followtwitter) ? (!trophy.iname.Contains("DAILY_GLAPVIDEO") ? (!st.IsCompleted ? this.Item_Normal : this.Item_Completed) : this.Item_Normal) : this.Item_FollowTwitter) : this.Item_Ended; if (Object.op_Equality((Object)listItemEvents1, (Object)null) || trophy.iname.Substring(0, 7) == "REVIEW_" && Network.Host.Contains("eval.alchemist.gu3.jp")) { return(false); } ListItemEvents listItemEvents2 = (ListItemEvents)Object.Instantiate <ListItemEvents>((M0)listItemEvents1); DataSource.Bind <TrophyParam>(((Component)listItemEvents2).get_gameObject(), trophy); ((Component)listItemEvents2).get_transform().SetParent(transform, false); listItemEvents2.OnOpenDetail = new ListItemEvents.ListItemEvent(this.OnItemDetail); listItemEvents2.OnSelect = new ListItemEvents.ListItemEvent(this.OnItemSelect); SRPG_Button componentInChildren = (SRPG_Button)((Component)listItemEvents2).GetComponentInChildren <SRPG_Button>(); if (Object.op_Inequality((Object)componentInChildren, (Object)null) && !st.IsEnded) { if (Object.op_Inequality((Object)this.Item_FollowTwitter, (Object)null) && trophy.ContainsCondition(TrophyConditionTypes.followtwitter)) { this.FollowBtnSetting(componentInChildren); } else if (trophy.iname.Contains("DAILY_GLAPVIDEO")) { this.GlobalVideoAdsBtnSetting(componentInChildren); } else if (st.IsCompleted) { this.AchievementBtnSetting(componentInChildren); } else { this.ChallengeBtnSetting(componentInChildren, trophy); } } RewardData data = new RewardData(trophy); DataSource.Bind <RewardData>(((Component)listItemEvents2).get_gameObject(), data); this.AddItem(listItemEvents2); ((Component)listItemEvents2).get_gameObject().SetActive(true); return(true); }
private void OnButtonClick(SRPG_Button button) { if (this.OnSelect == null || !((Selectable)button).get_interactable()) { return; } this.OnSelect((GenericSlot)this, ((Selectable)button).get_interactable()); }
private void OnOKClick(SRPG_Button button) { if (this.OnAccept == null) { return; } this.OnAccept(this); }
private void OnButtonClick(SRPG_Button button) { if (!((Selectable)button).IsInteractable() || this.OnSelect == null) { return; } this.OnSelect(this); }
private void OnLockClick(SRPG_Button button) { if (this.OnSelect == null) { return; } this.OnSelect((GenericSlot)this, false); }
private void OnConfirmRecipeClick(SRPG_Button button) { if (!((Selectable)button).IsInteractable()) { return; } this.SubWindow.SetActive(true); }
public int UpdateLogItem(ChatLogParam param, int num = 0) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type ChatWindow.\u003CUpdateLogItem\u003Ec__AnonStorey23D itemCAnonStorey23D = new ChatWindow.\u003CUpdateLogItem\u003Ec__AnonStorey23D(); // ISSUE: reference to a compiler-generated field itemCAnonStorey23D.param = param; // ISSUE: reference to a compiler-generated field itemCAnonStorey23D.\u003C\u003Ef__this = this; GameObject gameObject = num >= this.mItems.Count ? (GameObject)null : this.mItems[num]; // ISSUE: reference to a compiler-generated field if (itemCAnonStorey23D.param == null) { if (Object.op_Inequality((Object)gameObject, (Object)null)) { gameObject.SetActive(false); } return(-1); } gameObject.SetActive(true); ChatLogItem component1 = (ChatLogItem)gameObject.GetComponent <ChatLogItem>(); if (Object.op_Equality((Object)component1, (Object)null)) { return(-1); } ChatWindow.MessageTemplateType type = ChatWindow.MessageTemplateType.OtherUser; // ISSUE: reference to a compiler-generated field if (string.IsNullOrEmpty(itemCAnonStorey23D.param.fuid)) { type = ChatWindow.MessageTemplateType.Official; } else { // ISSUE: reference to a compiler-generated field if (this.gm.Player.FUID == itemCAnonStorey23D.param.fuid) { type = ChatWindow.MessageTemplateType.User; } } // ISSUE: reference to a compiler-generated field component1.Refresh(itemCAnonStorey23D.param, type); SRPG_Button component2 = (SRPG_Button)component1.GetIcon.GetComponent <SRPG_Button>(); // ISSUE: reference to a compiler-generated field if (Object.op_Inequality((Object)component2, (Object)null) && itemCAnonStorey23D.param.fuid != this.gm.Player.FUID) { // ISSUE: method pointer ((UnityEvent)component2.get_onClick()).AddListener(new UnityAction((object)itemCAnonStorey23D, __methodptr(\u003C\u003Em__255))); } else { ((UnityEventBase)component2.get_onClick()).RemoveAllListeners(); } // ISSUE: reference to a compiler-generated field return(itemCAnonStorey23D.param.id); }
public void OnChannelChange(SRPG_Button button) { if (!this.ChannelChange(button)) { return; } GlobalVars.CurrentChatChannel.Set(this.mActiveChanneID); FlowNode_GameObject.ActivateOutputLinks((Component)this, 0); }
private void RefreshSection(int index) { if (index >= this.ButtonSections.Length) { return; } SRPG_Button buttonSection = this.ButtonSections[index]; this.RefreshSection(DataSource.FindDataOfClass <string>(((Component)buttonSection).get_gameObject(), (string)null), buttonSection); }
private void DecideButtonInteractive(bool interactive) { SRPG_Button component = (SRPG_Button)((Component)this.DecideButton).get_gameObject().GetComponent <SRPG_Button>(); if (!UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null)) { return; } ((Selectable)component).set_interactable(interactive); }
private void FollowBtnSetting(SRPG_Button btn) { Text componentInChildren = (Text)((Component)((Component)btn).get_transform()).GetComponentInChildren <Text>(); if (!UnityEngine.Object.op_Inequality((UnityEngine.Object)componentInChildren, (UnityEngine.Object)null)) { return; } componentInChildren.set_text(LocalizedText.Get("sys.TROPHY_BTN_FOLLOWTWITTER")); }
private void GlobalVideoAdsBtnSetting(SRPG_Button btn) { Text componentInChildren = (Text)((Component)((Component)btn).get_transform()).GetComponentInChildren <Text>(); if (!Object.op_Inequality((Object)componentInChildren, (Object)null)) { return; } componentInChildren.set_text(LocalizedText.Get("sys.TROPHY_BTN_GO")); }
private void Clicked(SRPG_Button button) { if (!((Selectable)button).IsInteractable()) { return; } UIUtility.ConfirmBox(LocalizedText.Get("sys.RESTORE_ABILITY_RANKUP_NUM", new object[1] { (object)MonoSingleton <GameManager> .Instance.MasterParam.FixParam.AbilityRankUpCountCoin }), new UIUtility.DialogResultEvent(this.OnAccept), (UIUtility.DialogResultEvent)null, (GameObject)null, false, -1); }
private void Refresh() { FlowNode_Variable.Set("BLACKLIST_OFFSET", this.mCurrentPage.ToString()); this.ResetBlackListItems(); if (this.mBlackList == null || this.mBlackList.lists.Length <= 0) { if (Object.op_Inequality((Object)this.ItemEmpty, (Object)null)) { this.ItemEmpty.SetActive(true); } this.Pager.set_text(LocalizedText.Get("sys.TEXT_PAGER_TEMP", (object)"0", (object)"0")); ((Selectable)this.Next).set_interactable(false); ((Selectable)this.Prev).set_interactable(false); } else { for (int index = 0; index < this.mBlackList.lists.Length; ++index) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type BlackList.\u003CRefresh\u003Ec__AnonStorey303 refreshCAnonStorey303 = new BlackList.\u003CRefresh\u003Ec__AnonStorey303(); // ISSUE: reference to a compiler-generated field refreshCAnonStorey303.\u003C\u003Ef__this = this; GameObject gameObject = (GameObject)Object.Instantiate <GameObject>((M0)this.ItemTemplate); gameObject.get_transform().SetParent(this.ItemRoot, false); BlackListItem component1 = (BlackListItem)gameObject.GetComponent <BlackListItem>(); // ISSUE: reference to a compiler-generated field refreshCAnonStorey303.param = this.mBlackList.lists[index]; // ISSUE: reference to a compiler-generated field component1.Refresh(refreshCAnonStorey303.param); SRPG_Button component2 = (SRPG_Button)gameObject.GetComponent <SRPG_Button>(); if (Object.op_Inequality((Object)component2, (Object)null)) { // ISSUE: method pointer ((UnityEvent)component2.get_onClick()).AddListener(new UnityAction((object)refreshCAnonStorey303, __methodptr(\u003C\u003Em__312))); } gameObject.SetActive(true); this.mItems.Add(gameObject); } int num = this.mBlackList.total % this.LimitView != 0 ? this.mBlackList.total / this.LimitView + 1 : this.mBlackList.total / this.LimitView; if (Object.op_Inequality((Object)this.Pager, (Object)null)) { this.Pager.set_text(LocalizedText.Get("sys.TEXT_PAGER_TEMP", (object)this.mCurrentPage, (object)num)); } ((Selectable)this.Next).set_interactable(this.mCurrentPage + 1 <= num); ((Selectable)this.Prev).set_interactable(this.mCurrentPage - 1 > 0); if (!Object.op_Inequality((Object)this.ScrollView, (Object)null)) { return; } this.ScrollView.SetScrollPos(0.0f); } }
public void Clear() { ((Component)this).get_gameObject().SetActive(false); SRPG_Button component = (SRPG_Button)this.GetIcon.GetComponent <SRPG_Button>(); if (!UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null)) { return; } ((UnityEventBase)component.get_onClick()).RemoveAllListeners(); this.mChatLogParam = (ChatLogParam)null; }
private bool ChannelChange(SRPG_Button button) { if (!((Selectable)button).IsInteractable()) { return(false); } ChatChannelItem component = (ChatChannelItem)((Component)button).get_gameObject().GetComponent <ChatChannelItem>(); if (Object.op_Inequality((Object)component, (Object)null)) { this.mActiveChanneID = component.ChannelID; } return(true); }
private void SetSelectablParam(GameObject obj, MultiPlayAPIRoom room, bool isChoose) { SRPG_Button component1 = (SRPG_Button)obj.GetComponent <SRPG_Button>(); Transform child1 = obj.get_transform().FindChild("fil"); Transform child2 = obj.get_transform().FindChild("basewindow"); if (isChoose) { if (Object.op_Inequality((Object)component1, (Object)null)) { ((Selectable)component1).set_interactable(true); } if (Object.op_Inequality((Object)child1, (Object)null)) { ((Component)child1).get_gameObject().SetActive(false); } if (!Object.op_Inequality((Object)child2, (Object)null)) { return; } Image component2 = (Image)((Component)child2).GetComponent <Image>(); if (!Object.op_Inequality((Object)component2, (Object)null)) { return; } ((Graphic)component2).set_color(this.EnableColor); } else { if (Object.op_Inequality((Object)component1, (Object)null)) { ((Selectable)component1).set_interactable(false); } if (Object.op_Inequality((Object)child1, (Object)null)) { ((Component)child1).get_gameObject().SetActive(true); } if (!Object.op_Inequality((Object)child2, (Object)null)) { return; } Image component2 = (Image)((Component)child2).GetComponent <Image>(); if (!Object.op_Inequality((Object)component2, (Object)null)) { return; } ((Graphic)component2).set_color(this.DisableColor); } }
public void Unlock() { this.m_IsLocked = false; SRPG_Button componentInChildren = (SRPG_Button)((Component)this).GetComponentInChildren <SRPG_Button>(); if (Object.op_Inequality((Object)componentInChildren, (Object)null)) { ((Selectable)componentInChildren).set_interactable(true); } if (!Object.op_Inequality((Object)this.LockIcon, (Object)null)) { return; } this.LockIcon.SetActive(false); }