Ejemplo n.º 1
0
        internal void SetWarning()
        {
            string text = gameOpen ? "&cThe game must be closed before updating" : "";
            LauncherLabelWidget widget = (LauncherLabelWidget)widgets[statusIndex];

            widget.SetDrawData(drawer, text, inputFont, Anchor.Centre, Anchor.Centre, 0, 130);
        }
Ejemplo n.º 2
0
        void SetStatus(string text)
        {
            LauncherLabelWidget widget = (LauncherLabelWidget)widgets[5];

            game.ClearArea(widget.X, widget.Y, widget.Width, widget.Height);
            widget.SetDrawData(drawer, text, inputFont, Anchor.Centre, Anchor.Centre, 0, 100);
            RedrawWidget(widget);
        }
        void SetStatus(string text)
        {
            lastStatus = text;
            LauncherLabelWidget widget = (LauncherLabelWidget)widgets[3];

            game.ClearArea(widget.X, widget.Y, widget.Width, widget.Height);
            widget.SetDrawData(drawer, text, inputFont, Anchor.Centre, Anchor.Centre, 0, 20);
            RedrawWidget(widget);
            game.Dirty = true;
        }
Ejemplo n.º 4
0
        internal void RedrawStatus(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, -10);
                widget.Redraw(drawer);
            }
        }