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; } }
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++; }
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; }
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++; }