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.SetDrawData(drawer, text, statusFont, Anchor.Centre, Anchor.Centre, 0, 5); widget.Redraw(drawer); Dirty = true; } }
void SetStatus(string text) { LauncherLabelWidget widget = (LauncherLabelWidget)widgets[5]; game.ClearArea(widget.X, widget.Y, widget.Width, widget.Height); using ( drawer ) { drawer.SetBitmap(game.Framebuffer); widget.SetDrawData(drawer, text, inputFont, Anchor.Centre, Anchor.Centre, 0, 100); widget.Redraw(drawer); Dirty = true; } }
protected void MakeLabelAt(string text, Font font, Anchor horAnchor, Anchor verAnchor, int x, int y) { LauncherLabelWidget widget; if (widgets[widgetIndex] != null) { widget = (LauncherLabelWidget)widgets[widgetIndex]; } else { widget = new LauncherLabelWidget(game, text); widgets[widgetIndex] = widget; } widget.SetDrawData(drawer, text, font, horAnchor, verAnchor, x, y); widgetIndex++; }
protected void MakeLabelAt( string text, Font font, Anchor horAnchor, Anchor verAnchor, int x, int y ) { LauncherLabelWidget widget; if( widgets[widgetIndex] != null ) { widget = (LauncherLabelWidget)widgets[widgetIndex]; } else { widget = new LauncherLabelWidget( game, text ); widgets[widgetIndex] = widget; } widget.SetDrawData( drawer, text, font, horAnchor, verAnchor, x, y ); widgetIndex++; }