(23ecb8f20) Fixed: Scaling past 1920x1080 for: Reactor UI, Submarine labels, loading tips, inventoryslot container status

This commit is contained in:
Joonas Rikkonen
2019-05-16 06:20:54 +03:00
parent b0a8f0e5e1
commit 48070a3f90
20 changed files with 199 additions and 350 deletions
@@ -34,7 +34,10 @@ namespace Barotrauma
}
public AIObjectiveLoop(Character character, AIObjectiveManager objectiveManager, float priorityModifier, string option = null)
: base(character, objectiveManager, priorityModifier, option) { }
: base(character, objectiveManager, priorityModifier, option)
{
Reset();
}
protected override void Act(float deltaTime) { }
public override bool IsCompleted() => false;
@@ -95,6 +98,15 @@ namespace Barotrauma
UpdateTargets();
}
public override void OnSelected()
{
base.OnSelected();
if (HumanAIController.ObjectiveManager.CurrentOrder == this)
{
Reset();
}
}
public override float GetPriority()
{
if (character.Submarine == null) { return 0; }