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

Function ToggleWidgetOutlines

src/toolbar_gui.cpp:1119–1127  ·  view source on GitHub ↗

* Toggle drawing of widget outlines. * @note has only an effect when newgrf_developer_tools are active. */

Source from the content-addressed store, hash-verified

1117 * @note has only an effect when newgrf_developer_tools are active.
1118 */
1119void ToggleWidgetOutlines()
1120{
1121 extern bool _draw_widget_outlines;
1122 /* Always allow to toggle them off */
1123 if (_settings_client.gui.newgrf_developer_tools || _draw_widget_outlines) {
1124 _draw_widget_outlines = !_draw_widget_outlines;
1125 MarkWholeScreenDirty();
1126 }
1127}
1128
1129/**
1130 * Set the starting year for a scenario.

Callers 2

MenuClickHelpFunction · 0.85
OnHotkeyMethod · 0.85

Calls 1

MarkWholeScreenDirtyFunction · 0.85

Tested by

no test coverage detected