Exemplo n.º 1
0
        /// <summary>
        /// Loads the screens contents
        /// </summary>
        public override void LoadContent()
        {
            base.LoadContent();

            ContentManager Content = GameRef.Content;

            Button btnAttack = new Button();
            btnAttack.Text = "Attack";
            btnAttack.Position = new Vector2(cmdPosX, cmdPosY);
            btnAttack.HasFocus = true;

            ControlManager.Add(btnAttack);

            Button btnDefend = new Button();
            btnDefend.Text = "Defend";
            btnDefend.Position = new Vector2(cmdPosX, cmdPosY + spacing);

            ControlManager.Add(btnDefend);

            Button btnRun = new Button();
            btnRun.Text = "Run";
            btnRun.Position = new Vector2(cmdPosX, cmdPosY + spacing *2);

            ControlManager.Add(btnRun);

            Button test = new Button();
            test.Text = "TEst";
            test.Position = new Vector2(cmdPosX, cmdPosY + spacing * 3);

            ControlManager.Add(test);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Loads the screens contents
        /// </summary>
        public override void LoadContent()
        {
            base.LoadContent();

            ContentManager Content = GameRef.Content;

            // debug map screen
            Button mapDebug = new Button();
            mapDebug.Text = "Debug Map";
            mapDebug.Position = new Vector2(cmdPosX, cmdPosY);

            ControlManager.Add(mapDebug);

            // debug BattleScreen button
            Button battleDebug = new Button();
            battleDebug.Text = "Debug Battle";
            battleDebug.Position = new Vector2(cmdPosX, cmdPosY + spacing);
            battleDebug.HasFocus = true;
            battleDebug.Selected += new EventHandler(battleDebug_Selected);

            ControlManager.Add(battleDebug);
        }