Beispiel #1
0
        public override void DrawText()
        {
            var rect = GetServerListRectangle();
            //Title
            var titleSz  = Manager.ButtonFontSize;            //TODO: HUGE HACK
            var measured = Manager.Game.Renderer2D.MeasureString(fntTitle, titleSz, title_text);
            var ofpX     = IdentityCamera.Instance.ScreenToPixel(-1f, 0.9f);

            DrawShadowedText(fntTitle, titleSz, title_text, rect.X + (rect.Width / 2) - (measured.X / 2), rect.Y - ofpX.Y * 3.4f, Manager.TextColor);
            //"SELECT A SERVER"
            DrawShadowedText(fntTitle, titleSz, server_list_text, rect.X, rect.Y - ofpX.Y * 2.3f, Manager.TextColor);
            //Grid
            grid.Draw();
        }
Beispiel #2
0
 public override void DrawText()
 {
     grid.Draw();
 }