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)
|
||||
|
||||
@@ -163,14 +163,23 @@ Container@DISPLAY_PANEL:
|
||||
Height: 20
|
||||
Children:
|
||||
Container@UI_FEEDBACK_CHECKBOX_CONTAINER:
|
||||
X: PARENT_RIGHT / 2 + 10
|
||||
Width: PARENT_RIGHT / 2 - 20
|
||||
X: 10
|
||||
Width: PARENT_RIGHT / 2 - 10
|
||||
Children:
|
||||
Checkbox@UI_FEEDBACK_CHECKBOX:
|
||||
Width: PARENT_RIGHT
|
||||
Height: 20
|
||||
Font: Regular
|
||||
Text: UI Feedback in Transients Panel
|
||||
Text: Show UI Feedback Notifications
|
||||
Container@TRANSIENTS_CHECKBOX_CONTAINER:
|
||||
X: PARENT_RIGHT / 2 + 10
|
||||
Width: PARENT_RIGHT / 2 - 20
|
||||
Children:
|
||||
Checkbox@TRANSIENTS_CHECKBOX:
|
||||
Width: PARENT_RIGHT
|
||||
Height: 20
|
||||
Font: Regular
|
||||
Text: Show Game Event Notifications
|
||||
Container@SPACER:
|
||||
Background@SECTION_HEADER:
|
||||
X: 5
|
||||
|
||||
@@ -158,6 +158,28 @@ Container@DISPLAY_PANEL:
|
||||
Height: 20
|
||||
Font: Regular
|
||||
Text: Player Stance Colors
|
||||
Container@ROW:
|
||||
Width: PARENT_RIGHT - 24
|
||||
Height: 20
|
||||
Children:
|
||||
Container@UI_FEEDBACK_CHECKBOX_CONTAINER:
|
||||
X: 10
|
||||
Width: PARENT_RIGHT / 2 - 10
|
||||
Children:
|
||||
Checkbox@UI_FEEDBACK_CHECKBOX:
|
||||
Width: PARENT_RIGHT
|
||||
Height: 20
|
||||
Font: Regular
|
||||
Text: Show UI Feedback Notifications
|
||||
Container@TRANSIENTS_CHECKBOX_CONTAINER:
|
||||
X: PARENT_RIGHT / 2 + 10
|
||||
Width: PARENT_RIGHT / 2 - 20
|
||||
Children:
|
||||
Checkbox@TRANSIENTS_CHECKBOX:
|
||||
Width: PARENT_RIGHT
|
||||
Height: 20
|
||||
Font: Regular
|
||||
Text: Show Game Event Notifications
|
||||
Container@ROW:
|
||||
Width: PARENT_RIGHT - 24
|
||||
Height: 20
|
||||
@@ -171,15 +193,6 @@ Container@DISPLAY_PANEL:
|
||||
Height: 20
|
||||
Font: Regular
|
||||
Text: Pause Menu Background
|
||||
Container@UI_FEEDBACK_CHECKBOX_CONTAINER:
|
||||
X: PARENT_RIGHT / 2 + 10
|
||||
Width: PARENT_RIGHT / 2 - 20
|
||||
Children:
|
||||
Checkbox@UI_FEEDBACK_CHECKBOX:
|
||||
Width: PARENT_RIGHT
|
||||
Height: 20
|
||||
Font: Regular
|
||||
Text: UI Feedback in Transients Panel
|
||||
Container@SPACER:
|
||||
Background@SECTION_HEADER:
|
||||
X: 5
|
||||
|
||||
Reference in New Issue
Block a user