* Some data on this window has become invalid. * @param data Information about the changed data. * @param gui_scope Whether the call is done from GUI scope. You may not do everything when not in GUI scope. See #InvalidateWindowData() for details. */
| 167 | * @param gui_scope Whether the call is done from GUI scope. You may not do everything when not in GUI scope. See #InvalidateWindowData() for details. |
| 168 | */ |
| 169 | void OnInvalidateData([[maybe_unused]] int data = 0, [[maybe_unused]] bool gui_scope = true) override |
| 170 | { |
| 171 | if (!gui_scope) return; |
| 172 | switch (data) { |
| 173 | default: NOT_REACHED(); |
| 174 | case SBI_SAVELOAD_START: this->saving = true; break; |
| 175 | case SBI_SAVELOAD_FINISH: this->saving = false; break; |
| 176 | case SBI_SHOW_TICKER: this->ticker_scroll = 0; break; |
| 177 | case SBI_SHOW_REMINDER: this->reminder_timeout.Reset(); break; |
| 178 | case SBI_NEWS_DELETED: |
| 179 | this->ticker_scroll = TICKER_STOP; // reset ticker ... |
| 180 | this->reminder_timeout.Abort(); // ... and reminder |
| 181 | break; |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | void OnClick([[maybe_unused]] Point pt, WidgetID widget, [[maybe_unused]] int click_count) override |
| 186 | { |
nothing calls this directly
no test coverage detected