(3f015888d) Implement manual doors that can be opened simply by clicking on them. Add a test sub (not added in the project -> have to manually place in the local bin folder to test it).

This commit is contained in:
Joonas Rikkonen
2019-04-10 13:21:25 +03:00
parent 3093515600
commit 25453018fc
4 changed files with 39 additions and 11 deletions
@@ -1619,7 +1619,12 @@ namespace Barotrauma
if (ic is Holdable holdable && !holdable.CanBeDeattached()) continue;
Color color = Color.Red;
if (ic.HasRequiredSkills(character) && ic.HasRequiredItems(character, false)) color = Color.Orange;
bool hasRequiredSkillsAndItems = ic.HasRequiredSkills(character) && ic.HasRequiredItems(character, false);
if (hasRequiredSkillsAndItems)
{
color = Color.Orange;
}
// TODO: Blue color if the item is selected
texts.Add(new ColoredText(ic.DisplayMsg, color, false));
}