public RoomsEditorMapView(RoomsEditorControl editorControl)
        {
            InitializeComponent();

            this.editorControl = editorControl;
            roomsNameCounter = 0;

            //textura default para los rooms
            defaultTextureDir = GuiController.Instance.ExamplesMediaDir + "Texturas\\";
            defaultTextureImage = defaultTextureDir + "tierra.jpg";
            texturesEdit = new RoomsEditorTexturesEdit(this);

            //Tamaño inicial del panel2
            panel2d.MinimumSize = new Size((int)numericUpDownMapWidth.Value, (int)numericUpDownMapHeight.Value);

            //Estado actual
            radioButtonCreateRoom.Select();
            currentMode = EditMode.CreateRoom;
            groupBoxEditRoom.Enabled = false;
        }
Example #2
0
        public RoomsEditorMapView(RoomsEditorControl editorControl)
        {
            InitializeComponent();

            this.editorControl = editorControl;
            roomsNameCounter   = 0;

            //textura default para los rooms
            defaultTextureDir   = GuiController.Instance.ExamplesMediaDir + "Texturas\\";
            defaultTextureImage = defaultTextureDir + "tierra.jpg";
            texturesEdit        = new RoomsEditorTexturesEdit(this);

            //Tamaño inicial del panel2
            panel2d.MinimumSize = new Size((int)numericUpDownMapWidth.Value, (int)numericUpDownMapHeight.Value);

            //Estado actual
            radioButtonCreateRoom.Select();
            currentMode = EditMode.CreateRoom;
            groupBoxEditRoom.Enabled = false;
        }