Console command arguments can be autocompleted by hitting tab. Closes #162

This commit is contained in:
Joonas Rikkonen
2017-12-30 18:30:55 +02:00
parent 65d6071378
commit 343895d776
3 changed files with 196 additions and 17 deletions
@@ -266,6 +266,13 @@ namespace Barotrauma
{
Character.Controlled = character;
}
},
() =>
{
return new string[][]
{
Character.CharacterList.Select(c => c.Name).Distinct().ToArray()
};
}));
commands.Add(new Command("shake", "", (string[] args) =>