Toggle-able teamchat on shift-enter
This commit is contained in:
committed by
Chris Forbes
parent
ad1af792e6
commit
a904047a16
10
OpenRA.Game/Widgets/Delegates/SettingsMenuDelegate.cs
Normal file → Executable file
10
OpenRA.Game/Widgets/Delegates/SettingsMenuDelegate.cs
Normal file → Executable file
@@ -70,7 +70,15 @@ namespace OpenRA.Widgets.Delegates
|
||||
Game.Settings.Game.InverseDragScroll ^= true;
|
||||
return true;
|
||||
};
|
||||
|
||||
|
||||
var teamChatToggle = general.GetWidget<CheckboxWidget>("TEAMCHAT_TOGGLE");
|
||||
teamChatToggle.Checked = () => Game.Settings.Game.TeamChatToggle;
|
||||
teamChatToggle.OnMouseDown = mi =>
|
||||
{
|
||||
Game.Settings.Game.TeamChatToggle ^= true;
|
||||
return true;
|
||||
};
|
||||
|
||||
// Audio
|
||||
var audio = bg.GetWidget("AUDIO_PANE");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user