Add: Debug tool to draw widget outlines. (#11401)

This is considered a developer tool and is controlled from the help menu (or default hotkey Ctrl-O).

This draws a white dashed outline around widgets. NWidgetSpacer and (unused) WWT_EMPTY widgets are also filled with check pattern to highlight them, as they usually indicate a design issue.
This commit is contained in:
Peter Nelson
2023-10-28 19:07:50 +01:00
committed by GitHub
parent 129e98fbab
commit c0aa9a5f87
5 changed files with 91 additions and 29 deletions

View File

@@ -56,6 +56,7 @@ enum MainToolbarHotkeys {
void AllocateToolbar();
void ToggleBoundingBoxes();
void ToggleDirtyBlocks();
void ToggleWidgetOutlines();
extern uint _toolbar_width;