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 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 RefreshSlots(GenericSlot slot, ConceptCardIcon icon, ConceptCardData card, bool is_locked, bool enable) { if (Object.op_Equality((Object)slot, (Object)null) || Object.op_Equality((Object)icon, (Object)null)) { return; } slot.SetLocked(is_locked); slot.SetSlotData <ConceptCardData>(card); icon.Setup(card); SRPG_Button componentInChildren = (SRPG_Button)((Component)slot).get_gameObject().GetComponentInChildren <SRPG_Button>(); if (!Object.op_Inequality((Object)componentInChildren, (Object)null)) { return; } ((Behaviour)componentInChildren).set_enabled(enable); ((UnityEventBase)componentInChildren.get_onClick()).RemoveAllListeners(); // ISSUE: method pointer ((UnityEvent)componentInChildren.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(OnEquipCardSlot))); }
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 void Refresh() { ChatChannelParam[] channels = this.mChannel.channels; this.RefreshPageButton(channels[0].id, channels[channels.Length - 1].id); ChatChannelParam[] ch_params1 = new ChatChannelParam[10]; for (int index = 0; index < 10; ++index) { ch_params1[index] = channels[index]; } ChatChannelParam[] ch_params2 = new ChatChannelParam[10]; for (int index = 0; index < 10; ++index) { ch_params2[index] = channels[10 + index]; } if (Object.op_Inequality((Object)this.PanelTemplate1, (Object)null)) { ChatChannelPanel component = (ChatChannelPanel)this.PanelTemplate1.GetComponent <ChatChannelPanel>(); if (Object.op_Inequality((Object)component, (Object)null)) { this.PanelTemplate1.SetActive(true); component.Refresh(ch_params1); } } if (Object.op_Inequality((Object)this.PanelTemplate2, (Object)null)) { ChatChannelPanel component = (ChatChannelPanel)this.PanelTemplate2.GetComponent <ChatChannelPanel>(); if (Object.op_Inequality((Object)component, (Object)null)) { this.PanelTemplate2.SetActive(true); component.Refresh(ch_params2); } } if (!Object.op_Inequality((Object)this.ChatChannelPagePanel, (Object)null)) { return; } LayoutElement[] componentsInChildren = (LayoutElement[])((Component)((Component)this.PageItemRoot).get_transform()).GetComponentsInChildren <LayoutElement>(false); if (componentsInChildren != null) { foreach (LayoutElement layoutElement in componentsInChildren) { if (Object.op_Implicit((Object)layoutElement)) { Object.Destroy((Object)((Component)layoutElement).get_gameObject()); } } } ChatChannelMasterParam[] chatChannelMaster = this.gm.GetChatChannelMaster(); if (chatChannelMaster == null || chatChannelMaster.Length < 0) { return; } int num1 = chatChannelMaster.Length / this.ONE_VIEW; for (int index1 = 0; index1 < num1; ++index1) { int index2 = 20 * index1; int num2 = chatChannelMaster.Length < index2 ? 0 : chatChannelMaster[index2].id; int index3 = index2 - 1 + 20; int num3 = chatChannelMaster.Length < index3 ? 0 : chatChannelMaster[index3].id; GameObject gameObject = (GameObject)Object.Instantiate <GameObject>((M0)this.ChannelPageItem); gameObject.get_transform().SetParent(this.PageItemRoot, false); Transform child = gameObject.get_transform().FindChild("text"); if (Object.op_Inequality((Object)child, (Object)null)) { UnityEngine.UI.Text component = (UnityEngine.UI.Text)((Component)child).GetComponent <UnityEngine.UI.Text>(); StringBuilder stringBuilder = GameUtility.GetStringBuilder(); stringBuilder.Append("CH "); stringBuilder.Append(LocalizedText.Get("sys.TEXT_CHAT_CHANNEL_TEMP", (object)num2.ToString(), (object)num3.ToString())); string str = stringBuilder.ToString(); component.set_text(str); } SRPG_Button component1 = (SRPG_Button)gameObject.GetComponent <SRPG_Button>(); if (Object.op_Inequality((Object)component1, (Object)null)) { // ISSUE: object of a compiler-generated type is created // ISSUE: method pointer ((UnityEvent)component1.get_onClick()).AddListener(new UnityAction((object)new ChatChannelWindow.\u003CRefresh\u003Ec__AnonStorey313() { \u003C\u003Ef__this = this, index = index1 }, __methodptr(\u003C\u003Em__32C))); } gameObject.SetActive(true); } }