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

Function onMouseUp

src/OpenLoco/src/Ui/Windows/PromptBrowseWindow.cpp:207–226  ·  view source on GitHub ↗

0x00446465

Source from the content-addressed store, hash-verified

205
206 // 0x00446465
207 static void onMouseUp(Ui::Window& window, WidgetIndex_t widgetIndex, [[maybe_unused]] const WidgetId id)
208 {
209 switch (widgetIndex)
210 {
211 case widx::close_button:
212 _currentDirectory.clear();
213 _targetPath = std::nullopt;
214 WindowManager::close(&window);
215 break;
216 case widx::parent_button:
217 upOneLevel();
218 window.var_85A = -1;
219 window.initScrollWidgets();
220 window.invalidate();
221 break;
222 case widx::ok_button:
223 processFileForLoadSave(&window);
224 break;
225 }
226 }
227
228 // 0x004467E1
229 static void onUpdate(Window& self)

Callers

nothing calls this directly

Calls 6

upOneLevelFunction · 0.85
processFileForLoadSaveFunction · 0.85
initScrollWidgetsMethod · 0.80
closeFunction · 0.70
clearMethod · 0.45
invalidateMethod · 0.45

Tested by

no test coverage detected