| 28 | } |
| 29 | |
| 30 | void OverlayController::process() |
| 31 | { |
| 32 | if (!UiController::get().isOn()) { |
| 33 | return; |
| 34 | } |
| 35 | if (!_on) { |
| 36 | return; |
| 37 | } |
| 38 | processProgressAnimation(); |
| 39 | |
| 40 | if (!_messageStartTimepoint.has_value()) { |
| 41 | return; |
| 42 | } |
| 43 | processMessage(); |
| 44 | } |
| 45 | |
| 46 | void OverlayController::showMessage(std::string const& message, bool withLightning /*= false*/) |
| 47 | { |