public static void MakeLabelAt( LauncherWindow game, LauncherWidget[] widgets, ref int widgetIndex,
            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( game.Drawer, text, font, horAnchor, verAnchor, x, y );
            widgetIndex++;
        }
Exemple #2
0
        public static void MakeLabelAt(LauncherWindow game, LauncherWidget[] widgets, ref int widgetIndex,
                                       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(game.Drawer, text, font, horAnchor, verAnchor, x, y);
            widgetIndex++;
        }