Example #1
0
        public void Configurar()
        {
            gui.InitDialog(false, false);
            int W  = GuiController.Instance.Panel3d.Width;
            int H  = GuiController.Instance.Panel3d.Height;
            int x0 = 50;
            int y0 = 50;
            int dy = H - 100;
            int dx = 320;

            dialog_sel = 1;

            gui.InsertItem(new static_text(gui, "WARRIOR", x0, y0, 400, 25));
            y0 += 45;
            gui.InsertItem(new menu_item2(gui, "WARRIOR 1", "transformers//w1.png", ID_WARRIOR, x0, y0, dx, 70));
            y0 += 75;
            gui.InsertItem(new menu_item2(gui, "WARRIOR 2", "transformers//w2.png", ID_WARRIOR, x0, y0, dx, 70));
            y0 += 75;
            gui.InsertItem(new menu_item2(gui, "WARRIOR 3", "transformers//w3.png", ID_WARRIOR, x0, y0, dx, 70));
            y0 += 75;
            gui.InsertItem(new menu_item2(gui, "WARRIOR 4", "transformers//w4.png", ID_WARRIOR, x0, y0, dx, 70));
            y0 += 95;
            gui_circle_button button = gui.InsertCircleButton(0, "SELECT", "ok.png", x0 + 70, y0, 40);

            button.texto_derecha = true;
            button = gui.InsertCircleButton(1, "BACK", "cancel.png", x0 + 300, y0, 40);
            button.texto_derecha = true;
        }