コード例 #1
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;
        }
コード例 #2
0
 public RoomsEditorModifier(string varName, TgcRoomsEditor editor)
     : base(varName)
 {
     editorControl = new RoomsEditorControl(editor);
     contentPanel.Controls.Add(editorControl);
 }
コード例 #3
0
 public RoomsEditorModifier(string varName, TgcRoomsEditor editor)
     : base(varName)
 {
     editorControl = new RoomsEditorControl(editor);
     contentPanel.Controls.Add(editorControl);
 }