Add checkbox to settings for toggling transient notifications

This commit is contained in:
Ivaylo Draganov
2022-04-29 15:04:58 +03:00
committed by Paul Chote
parent a1e6ac85dc
commit 9f723be65a
3 changed files with 41 additions and 12 deletions

View File

@@ -289,6 +289,13 @@ namespace OpenRA.Mods.Common.Widgets.Logic
feedbackCheckbox.IsChecked = () => gs.TextNotificationPoolFilters.HasFlag(TextNotificationPoolFilters.Feedback);
feedbackCheckbox.OnClick = () => toggleFilterFlag(TextNotificationPoolFilters.Feedback);
}
var transientsCheckbox = panel.GetOrNull<CheckboxWidget>("TRANSIENTS_CHECKBOX");
if (transientsCheckbox != null)
{
transientsCheckbox.IsChecked = () => gs.TextNotificationPoolFilters.HasFlag(TextNotificationPoolFilters.Transients);
transientsCheckbox.OnClick = () => toggleFilterFlag(TextNotificationPoolFilters.Transients);
}
}
static void ShowStatusBarsDropdown(DropDownButtonWidget dropdown, GameSettings s)