예제 #1
0
 private void OnDestroyChatDisplayTimer(uint timerId, object cookie)
 {
     if (this.chatDisplay != null && this.chatDisplay.RemoveElementsByCount(10) == 0)
     {
         this.KillExistingTimers();
         this.chatDisplay.Destroy();
         this.chatDisplay = null;
     }
 }
예제 #2
0
 public override void OnScreenLoaded()
 {
     this.chatContainer        = this.screen.GetElement <UXElement>("ChatContainer");
     this.tabButton            = this.screen.GetElement <UXCheckbox>("SocialChatBtn");
     this.tabButton.OnSelected = new UXCheckboxSelectedDelegate(this.OnTabButtonSelected);
     this.chatFilter.OnScreenLoaded();
     this.chatInput.OnScreenLoaded();
     this.donationProgress.OnScreenLoaded();
     this.chatDisplay = new SquadMsgChatDisplay(this.screen, this.screen.GetElement <UXTable>("ChatTable"));
     Service.SquadController.MsgManager.RegisterObserver(this.chatDisplay);
 }