public UserInterface()
        {
            _player1Go = new Button(0, 600, 100, 100, true, "Go to\nPlayer 2", new Sprite(new List<string>() { "Images/blueButton.png" }, 0));

            _player2Go = new Button(0, 600, 100, 100, true, "Run\nSimulation", new Sprite(new List<string>() { "Images/blueButton.png" }, 0));

            _makeSpecialMinion = new Button(0, 500, 100, 100, true, "Make Special\nMinion", new Sprite(new List<string>() { "Images/blueButton.png" }, 0));
            _makeSpecialMinionSelected = new Button(0, 500, 100, 100, true, "Make Special\nMinion", new Sprite(new List<string>() { "Images/blueButtonLIGHT.png" }, 0));

            _editTree = new Button(0, 400, 100, 100, true, "Edit\nBehaviours", new Sprite(new List<string>() { "Images/blueButton.png" }, 0));

            _mapScroll = new ScrollBar(970, 0, 30, 1800, false, 0, 1800, false, new Sprite(new List<string>() { "Images/SCROLLDAGGER5000.png" }, 0));

            _editSelect = new Select(0, 0, false, _selectOptions, new Sprite(new List<string>() { "Images/blueButtonSmall.png" }, 0), new List<string>() { "Images/blueButtonSmall.png" });

            _minion1 = new Button(0, 0, 100, 100, true, "Minion 1", new Sprite(new List<string>() { "Images/blueButton.png" }, 0));
            _minion1Selected = new Button(0, 0, 100, 100, true, "Minion 1", new Sprite(new List<string>() { "Images/blueButtonLIGHT.png" }, 0));
            _minion2 = new Button(0, 100, 100, 100, true, "Minion 2", new Sprite(new List<string>() { "Images/blueButton.png" }, 0));
            _minion2Selected = new Button(0, 100, 100, 100, true, "Minion 2", new Sprite(new List<string>() { "Images/blueButtonLIGHT.png" }, 0));
            _minion3 = new Button(0, 200, 100, 100, true, "Minion 3", new Sprite(new List<string>() { "Images/blueButton.png" }, 0));
            _minion3Selected = new Button(0, 200, 100, 100, true, "Minion 3", new Sprite(new List<string>() { "Images/blueButtonLIGHT.png" }, 0));

            _state = UserInterfaceState.Player1MinionSelect;

            Reset();

            Sound.Strategize.PlayLooping();
        }
示例#2
0
 public StackPanel(int x, int y, int width, int height, bool staticImage, bool horizontal, Sprite verticalScrollBar, Sprite horizontalScrollBar)
     : base(x, y, width, height, staticImage)
 {
     _scrollable = true;
     _horizontal = horizontal;
     _verticalScrollbar = new ScrollBar((int)(x + width - verticalScrollBar.Width), y, (int)verticalScrollBar.Width, height, staticImage, 0, height, false, verticalScrollBar);
     _horizontalScrollbar = new ScrollBar(x, (int)(y + height - horizontalScrollBar.Height), width, (int)horizontalScrollBar.Height, staticImage, 0, width, true, horizontalScrollBar);
 }