MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / OnMouseLoop

Method OnMouseLoop

src/error_gui.cpp:231–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229 }
230
231 void OnMouseLoop() override
232 {
233 /* Disallow closing the window too easily, if timeout is disabled */
234 if (_right_button_down && !this->is_critical) this->Close();
235 }
236
237 void Close([[maybe_unused]] int data = 0) override
238 {

Callers

nothing calls this directly

Calls 1

CloseMethod · 0.95

Tested by

no test coverage detected