(586e37096) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev
This commit is contained in:
@@ -1608,6 +1608,7 @@ namespace Barotrauma
|
|||||||
if (remove) { Spawner?.AddToRemoveQueue(this); }
|
if (remove) { Spawner?.AddToRemoveQueue(this); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
List<ColoredText> texts = new List<ColoredText>();
|
||||||
public List<ColoredText> GetHUDTexts(Character character)
|
public List<ColoredText> GetHUDTexts(Character character)
|
||||||
{
|
{
|
||||||
texts.Clear();
|
texts.Clear();
|
||||||
@@ -1617,13 +1618,12 @@ namespace Barotrauma
|
|||||||
if (!ic.CanBePicked && !ic.CanBeSelected) continue;
|
if (!ic.CanBePicked && !ic.CanBeSelected) continue;
|
||||||
if (ic is Holdable holdable && !holdable.CanBeDeattached()) continue;
|
if (ic is Holdable holdable && !holdable.CanBeDeattached()) continue;
|
||||||
|
|
||||||
Color color = Color.Red;
|
Color color = Color.Gray;
|
||||||
bool hasRequiredSkillsAndItems = ic.HasRequiredSkills(character) && ic.HasRequiredItems(character, false);
|
bool hasRequiredSkillsAndItems = ic.HasRequiredSkills(character) && ic.HasRequiredItems(character, false);
|
||||||
if (hasRequiredSkillsAndItems)
|
if (hasRequiredSkillsAndItems)
|
||||||
{
|
{
|
||||||
color = Color.Orange;
|
color = Color.Cyan;
|
||||||
}
|
}
|
||||||
// TODO: Blue color if the item is selected
|
|
||||||
|
|
||||||
texts.Add(new ColoredText(ic.DisplayMsg, color, false));
|
texts.Add(new ColoredText(ic.DisplayMsg, color, false));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user