Beispiel #1
0
 public void ShowPauseMenu()
 {
     gui.add(BackgroundLabel);
     gui.add(ResumeLabel);
     gui.add(EndTurnLabel);
     gui.add(QuitLabel);
 }
Beispiel #2
0
        public GUILabel CreateGUILabel(Engine.GUI gui, Handle handle, Vector2 pos)
        {
            var GuiLabel = new GUILabel(gui, handle);

            GuiLabel.pos = pos;
            gui.add(GuiLabel);

            return(GuiLabel);
        }
Beispiel #3
0
        public void initializeInfoBox()
        {
            Engine.GUI tempGUI = engine.graphicsComponent.gui;

            playerInfoLabel        = new GUILabel(tempGUI, new Handle(engine.resourceComponent, "GUI\\PlayerInfoBg.png"));
            playerInfoOutlineLabel = new GUILabel(tempGUI, new Handle(engine.resourceComponent, "GUI\\PlayerInfoOutline.png"));
            healthInfoBox          = new GUITextBox(tempGUI, "");
            attackInfoBox          = new GUITextBox(tempGUI, "");
            levelInfoBox           = new GUITextBox(tempGUI, "");

            tempGUI.add(playerInfoOutlineLabel);
            tempGUI.add(playerInfoLabel);
            tempGUI.add(healthInfoBox);
            tempGUI.add(attackInfoBox);
            tempGUI.add(levelInfoBox);

            teamBox = new GUILabel(tempGUI);
            tempGUI.add(teamBox);
        }