MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / WindowUpdateAll

Function WindowUpdateAll

src/openrct2/interface/Window.cpp:180–208  ·  view source on GitHub ↗

* * rct2: 0x006E77A1 */

Source from the content-addressed store, hash-verified

178 * rct2: 0x006E77A1
179 */
180 void WindowUpdateAll()
181 {
182 WindowCullDead();
183
184 // Periodic update happens every second so 40 ticks.
185 if (gCurrentRealTimeTicks >= gWindowUpdateTicks)
186 {
187 gWindowUpdateTicks = gCurrentRealTimeTicks + kGameUpdateFPS;
188
189 WindowVisitEach([](WindowBase* w) { w->onPeriodicUpdate(); });
190 }
191
192 // Border flash invalidation
193 WindowVisitEach([](WindowBase* w) {
194 if (w->flashTimer > 0)
195 {
196 w->flashTimer--;
197 if (w->flashTimer == 0)
198 {
199 w->invalidate();
200 }
201 }
202 });
203
204 auto windowManager = Ui::GetWindowManager();
205 windowManager->UpdateMouseWheel();
206
207 WindowUpdateVisibilities();
208 }
209
210 void WindowNotifyLanguageChange()
211 {

Callers 2

RunFixedFrameMethod · 0.85
RunVariableFrameMethod · 0.85

Calls 7

WindowCullDeadFunction · 0.85
WindowVisitEachFunction · 0.85
GetWindowManagerFunction · 0.85
WindowUpdateVisibilitiesFunction · 0.85
onPeriodicUpdateMethod · 0.45
invalidateMethod · 0.45
UpdateMouseWheelMethod · 0.45

Tested by

no test coverage detected