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

Method Toggle

src/openrct2-ui/interface/InGameConsole.cpp:227–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227void InGameConsole::Toggle()
228{
229 if (_isOpen)
230 {
231 Close();
232 }
233 else
234 {
235 Open();
236 }
237}
238
239void InGameConsole::WriteLine(const std::string& input, FormatToken colourFormat)
240{

Callers 1

ShortcutToggleConsoleFunction · 0.80

Calls 2

CloseFunction · 0.85
OpenFunction · 0.50

Tested by

no test coverage detected