MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / setProgress

Function setProgress

src/OpenLoco/src/Ui/Windows/ProgressBar.cpp:77–87  ·  view source on GitHub ↗

0x004CF76D

Source from the content-addressed store, hash-verified

75
76 // 0x004CF76D
77 void setProgress(uint8_t value)
78 {
79 if (_progressBarValue == value)
80 {
81 return;
82 }
83
84 _progressBarValue = value;
85 WindowManager::invalidate(WindowType::progressBar);
86 Gfx::renderAndUpdate();
87 }
88
89 // 0x004CF78A
90 static void prepareDraw([[maybe_unused]] Window& self)

Callers 1

openFunction · 0.70

Calls 2

renderAndUpdateFunction · 0.85
invalidateFunction · 0.50

Tested by

no test coverage detected