public RoomsEditorTexturesEdit(RoomsEditorMapView mapView, string mediaDir) { InitializeComponent(); this.mapView = mapView; textureBrowser = new TgcTextureBrowser(mediaDir); textureBrowser.CurrentDir = mapView.defaultTextureDir; //Cargar imagenes default var defaultTextureImage = mapView.defaultTextureImage; roofImage.ImageLocation = defaultTextureImage; floorImage.ImageLocation = defaultTextureImage; eastWallImage.ImageLocation = defaultTextureImage; westWallImage.ImageLocation = defaultTextureImage; northWallImage.ImageLocation = defaultTextureImage; southWallImage.ImageLocation = defaultTextureImage; }
public RoomPanel(string name, RoomsEditorMapView mapView, Point location, Size size) { this.mapView = mapView; Label = new Label(); Label.Text = name; Label.AutoSize = false; Label.Location = location; Label.Size = size; Label.BorderStyle = BorderStyle.FixedSingle; Label.BackColor = DEFAULT_ROOM_COLOR; Label.TextAlign = ContentAlignment.MiddleCenter; Label.MouseDown += label_MouseDown; Label.MouseUp += label_MouseUp; Label.MouseMove += label_MouseMove; Label.MouseEnter += label_MouseEnter; Label.PreviewKeyDown += label_PreviewKeyDown; }