(b1241e3dd) GUIMessageBoxes use relative sizes

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:46:12 +03:00
parent b7392b362e
commit ce1aa39a4b
50 changed files with 1534 additions and 1667 deletions
@@ -26,8 +26,6 @@ namespace Barotrauma.Items.Components
private bool autoOrientGap;
private bool isStuck;
public bool IsStuck => isStuck;
private float resetPredictionTimer;
private Rectangle doorRect;
@@ -229,7 +227,8 @@ namespace Barotrauma.Items.Components
{
msg = msg ?? (HasIntegratedButtons ? accessDeniedTxt : cannotOpenText);
}
return isBroken || base.HasRequiredItems(character, addMessage, msg);
if (isBroken) { return true; }
return base.HasRequiredItems(character, addMessage, msg);
}
public override bool Pick(Character picker)