Added tab completion to lobby chat.
Also fixes accidental reversion of one word logic during cleanup. Fields that could be readonly are now readonly.
This commit is contained in:
@@ -190,10 +190,10 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
||||
}
|
||||
else
|
||||
{
|
||||
var oneWord = chatText.Text.Contains(' ');
|
||||
var oneWord = !chatText.Text.Contains(' ');
|
||||
var toComplete = oneWord
|
||||
? chatText.Text.Substring(chatText.Text.LastIndexOf(' ') + 1)
|
||||
: chatText.Text;
|
||||
? chatText.Text
|
||||
: chatText.Text.Substring(chatText.Text.LastIndexOf(' ') + 1);
|
||||
|
||||
suggestion = playerNames.FirstOrDefault(x => x.StartsWith(toComplete, StringComparison.InvariantCultureIgnoreCase));
|
||||
if (suggestion == null)
|
||||
|
||||
Reference in New Issue
Block a user