public override void ProcessMouseButtonDown(MouseButtonEventArgs e) { if (e.Button == MouseButton.Left) { if (showSideMenu) { if (sideMenu.isPointInScreen(e.Position)) { sideMenu.ProcessMouseButtonDown(e); } } if (editMode == EditMode.Selection) { ZoomTo = 1.0f; foreach (var room in LevelVisual.Rooms) { if (room.IsSelected) { MoveTo = room.Data.Position; _level.CurrentRoom = room._Room; } } editMode = EditMode.Edit; if (SelectedRoom.EditMode == EditMode.Ready) { SelectedRoom.EditMode = editMode; } } else { SelectedRoom.ProcessMouseButtonDown(e); } } else if (e.Button == MouseButton.Right) { if (Scale != 0.2f) { ShowSideMenu = !ShowSideMenu; } } }