Toggle-able teamchat on shift-enter

This commit is contained in:
Caleb Anderson
2010-10-15 00:04:03 -05:00
committed by Chris Forbes
parent ad1af792e6
commit a904047a16
5 changed files with 36 additions and 4 deletions

9
OpenRA.Game/Widgets/ChatEntryWidget.cs Normal file → Executable file
View File

@@ -81,7 +81,14 @@ namespace OpenRA.Widgets
{
TakeFocus(new MouseInput());
composing = true;
teamChat ^= e.Modifiers.HasModifier(Modifiers.Shift);
if (Game.Settings.Game.TeamChatToggle)
{
teamChat ^= e.Modifiers.HasModifier(Modifiers.Shift);
}
else
{
teamChat = e.Modifiers.HasModifier(Modifiers.Shift);
}
return true;
}
}