コード例 #1
0
        public GameOptionsSelectMapScreen(RoomInformations Room, GameOptionsScreen OptionsScreen, GamePreparationScreen Owner)
        {
            this.Room          = Room;
            this.OptionsScreen = OptionsScreen;
            this.Owner         = Owner;

            DicMapInfoByPath = new Dictionary <string, MapInfo>();
        }
コード例 #2
0
        public GameOptionsMutatorsScreen(RoomInformations Room, GameOptionsScreen Owner)
        {
            this.Room = Room;
            this.Owner = Owner;

            ListAvailableMutators = new List<Mutator>();
            ListActiveMutators = new List<Mutator>();

            AvailableMutatorsValue = -1;
            SelectedActiveMutatorsIndex = -1;

            PanelY = (int)(Constants.Height * 0.15);
            PanelWidth = (int)(Constants.Width * 0.37);
            PanelHeight = (int)(Constants.Height * 0.52);

            LeftPanelX = (int)(Constants.Width * 0.03);
            RightPanelX = Constants.Width - LeftPanelX - PanelWidth;

            ButtonsWidth = (int)(Constants.Width * 0.13);
            ButtonsHeight = 30;
            ButtonsX = Constants.Width / 2 - ButtonsWidth / 2;
            ButtonsY = PanelY + (PanelHeight - ButtonsHeight * 7) / 2;
        }
コード例 #3
0
 public GameOptionsGametypeScreen(RoomInformations Room, GameOptionsScreen Owner)
 {
     this.Room  = Room;
     this.Owner = Owner;
 }