Ejemplo n.º 1
0
        void SetStatusNoLock(string text)
        {
            lastStatus = text;
            LauncherLabelWidget widget = (LauncherLabelWidget)widgets[3];

            game.ClearArea(widget.X, widget.Y, widget.Width, widget.Height);
            widget.DrawAt(drawer, text, inputFont, Anchor.Centre, Anchor.Centre, 0, 20);
            Dirty = true;
        }
 void SetStatus(string text)
 {
     using ( drawer ) {
         drawer.SetBitmap(game.Framebuffer);
         LauncherLabelWidget widget = (LauncherLabelWidget)widgets[5];
         game.ClearArea(widget.X, widget.Y, widget.Width, widget.Height);
         widget.DrawAt(drawer, text, inputFont, Anchor.Centre, Anchor.Centre, 0, 100);
         Dirty = true;
     }
 }
Ejemplo n.º 3
0
        void SetStatus(string text)
        {
            LauncherLabelWidget widget = (LauncherLabelWidget)widgets[0];

            using ( drawer ) {
                drawer.SetBitmap(game.Framebuffer);
                drawer.Clear(backCol, widget.X, widget.Y, widget.Width, widget.Height);
                widget.Redraw(drawer, text, statusFont);
                Dirty = true;
            }
        }
Ejemplo n.º 4
0
 protected void MakeLabelAt(string text, Font font, Anchor horAnchor, Anchor verAnchor, int x, int y)
 {
     if (widgets[widgetIndex] != null)
     {
         LauncherLabelWidget label = (LauncherLabelWidget)widgets[widgetIndex];
         label.DrawAt(drawer, text, font, horAnchor, verAnchor, x, y);
     }
     else
     {
         LauncherLabelWidget widget = new LauncherLabelWidget(game, text);
         widget.DrawAt(drawer, text, font, horAnchor, verAnchor, x, y);
         widgets[widgetIndex] = widget;
     }
     widgetIndex++;
 }
Ejemplo n.º 5
0
 void MakeTextAt( string text, Font font, int x, int y )
 {
     LauncherLabelWidget widget = new LauncherLabelWidget( game, text );
     widget.DrawAt( drawer, text, font, Anchor.Centre, Anchor.Centre, x, y );
     widgets[widgetIndex++] = widget;
 }
Ejemplo n.º 6
0
 protected void MakeLabelAt( string text, Font font, Anchor horAnchor, Anchor verAnchor, int x, int y )
 {
     if( widgets[widgetIndex] != null ) {
         LauncherLabelWidget input = (LauncherLabelWidget)widgets[widgetIndex];
         input.DrawAt( drawer, text, font, horAnchor, verAnchor, x, y );
     } else {
         LauncherLabelWidget widget = new LauncherLabelWidget( game, text );
         widget.DrawAt( drawer, text, font, horAnchor, verAnchor, x, y );
         widgets[widgetIndex] = widget;
     }
     widgetIndex++;
 }