Exemplo n.º 1
0
        public GuiPanel AddPanel()
        {
            var panel = new GuiPanel(Gui, this);

            AddWidget(panel);

            return(panel);
        }
Exemplo n.º 2
0
        public override void DrawPanel(Canvas gfx, GuiPanel panel)
        {
            var x = panel.GlobalX;
            var y = panel.GlobalY;
            var w = panel.W;
            var h = panel.H;

            DrawFrame(
                gfx,
                x, y,
                w, h,
                PanelBorder,
                PanelFill);
        }
Exemplo n.º 3
0
 public abstract void DrawPanel(Canvas canvas, GuiPanel panel);