- 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

@@ -216,6 +216,15 @@ namespace Barotrauma
}
}
public void SelectCharacter(Character character)
{
var characterButton = frame.FindChild(character) as GUIButton;
if (characterButton == null) return;
characterButton.Selected = true;
}
private bool SetOrder(GUIButton button, object userData)
{
Order order = userData as Order;