Change: Add window description flag to disallow interactive window closing. (#11008)
This replaces/simplifies testing for a closebox to allow closing a window with right-click, and testing for specific window classes when closing all windows by hotkey. This allows right-click closing of dropdowns and the high-score window.
This commit is contained in:
@@ -494,7 +494,7 @@ static const NWidgetPart _nested_select_game_widgets[] = {
|
||||
static WindowDesc _select_game_desc(
|
||||
WDP_CENTER, nullptr, 0, 0,
|
||||
WC_SELECT_GAME, WC_NONE,
|
||||
0,
|
||||
WDF_NO_CLOSE,
|
||||
_nested_select_game_widgets, lengthof(_nested_select_game_widgets)
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user