public void SetTitle(string title)
 {
     if (titleWidget != null)
     {
         titleWidget.Dispose();
     }
     titleWidget = ChatTextWidget.Create(game, 0, -80, title, Anchor.Centre, Anchor.Centre, font);
 }
示例#2
0
        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();
            }
        }
示例#3
0
 public override void Dispose()
 {
     base.Dispose();
     overview.Dispose();
 }