Exemplo n.º 1
0
 public void SetTitle(string title)
 {
     if (titleWidget != null)
     {
         titleWidget.Dispose();
     }
     titleWidget = ChatTextWidget.Create(game, 0, -80, title, Anchor.Centre, Anchor.Centre, font);
 }
        public override void Render(double delta)
        {
            if (!game.ClassicMode)
            {
                status.Render(delta);
                bottomRight.Render(delta);
            }
            CheckOtherStatuses();

            UpdateChatYOffset(false);
            RenderClientStatus();
            DateTime now = DateTime.UtcNow;

            if (HandlesAllInput)
            {
                normalChat.Render(delta);
            }
            else
            {
                RenderRecentChat(now, delta);
            }

            if (!game.ClassicMode)
            {
                announcement.Render(delta);
            }
            if (HandlesAllInput)
            {
                textInput.Render(delta);
            }

            if (announcement.IsValid && (now - game.Chat.Announcement.Received).TotalSeconds > 5)
            {
                announcement.Dispose();
            }
        }