| 60 | } |
| 61 | |
| 62 | static Window* trackWindow() |
| 63 | { |
| 64 | auto window = WindowManager::find(WindowType::construction); |
| 65 | |
| 66 | if (window != nullptr) |
| 67 | { |
| 68 | Common::setDisabledWidgets(window); |
| 69 | } |
| 70 | |
| 71 | Construction::activateSelectedConstructionWidgets(); |
| 72 | window = WindowManager::find(WindowType::construction); |
| 73 | |
| 74 | if (window != nullptr) |
| 75 | { |
| 76 | window->callOnMouseUp(Construction::widx::rotate_90, window->widgets[Construction::widx::rotate_90].id); |
| 77 | } |
| 78 | |
| 79 | return window; |
| 80 | } |
| 81 | |
| 82 | static Window* createTrackConstructionWindow() |
| 83 | { |
no test coverage detected