- new tool sprites

- when clicking the order icon next to a character, the character is selected in the command menu
This commit is contained in:
Regalis
2016-01-25 00:50:56 +02:00
parent 278371638e
commit 89405d786b
8 changed files with 48 additions and 14 deletions

View File

@@ -106,6 +106,14 @@ namespace Barotrauma
{
GameMain.GameSession.CrewManager.commander.ToggleGUIFrame();
int orderIndex = orderListBox.children.IndexOf(component);
if (orderIndex<0 || orderIndex >= listBox.children.Count) return false;
var characterFrame = listBox.children[orderIndex];
if (characterFrame == null) return false;
GameMain.GameSession.CrewManager.commander.SelectCharacter(characterFrame.UserData as Character);
return false;
}