Add checkbox to settings for toggling transient notifications
This commit is contained in:
committed by
Paul Chote
parent
a1e6ac85dc
commit
9f723be65a
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user