* Toggle drawing of widget outlines. * @note has only an effect when newgrf_developer_tools are active. */
| 1117 | * @note has only an effect when newgrf_developer_tools are active. |
| 1118 | */ |
| 1119 | void 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. |
no test coverage detected