コード例 #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;
        }
コード例 #2
0
 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;
     }
 }
コード例 #3
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++;
 }
コード例 #4
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;
 }
コード例 #5
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++;
 }