public void Refresh_List(Tab type) { if (type == Tab.Template) { this._refresh_list(this.show_listScript, Singleton <CChatController> .instance.model.selectHeroTemplateList); } else if (type == Tab.All) { CChatChannel channel = Singleton <CChatController> .instance.model.channelMgr.GetChannel(EChatChannel.Select_Hero); this._refresh_list(this.show_listScript, channel.list); } }
public void Refresh_List(CHeroSelectChatView.Tab type) { if (type == CHeroSelectChatView.Tab.Template) { this._refresh_list(this.show_listScript, Singleton <CChatController> .instance.model.GetCurGroupTemplateInfo()); } else if (type == CHeroSelectChatView.Tab.All) { CChatChannel channel = Singleton <CChatController> .instance.model.channelMgr.GetChannel(EChatChannel.Select_Hero); this._refresh_list(this.show_listScript, channel.list); } }
private void Refresh_BottomChat() { if (this.chatEntryNode != null) { CChatChannel channel = Singleton <CChatController> .instance.model.channelMgr.GetChannel(EChatChannel.Select_Hero); CChatEntity last = channel.GetLast(); Text componetInChild = Utility.GetComponetInChild <Text>(this.chatEntryNode, "Text"); if (last != null) { componetInChild.set_text(string.Format("{0}:{1}", last.name, last.text)); } else { componetInChild.set_text(string.Empty); } } }