(f6f86c3b6) Use relative scales in store UI, gave more space to the amount input box
This commit is contained in:
@@ -330,12 +330,7 @@ namespace Barotrauma
|
||||
|
||||
if (childrenNeedsRecalculation)
|
||||
{
|
||||
foreach (GUIComponent child in Content.Children)
|
||||
{
|
||||
ClampChildMouseRects(child);
|
||||
}
|
||||
RepositionChildren();
|
||||
childrenNeedsRecalculation = false;
|
||||
RecalculateChildren();
|
||||
}
|
||||
|
||||
UpdateOrder = order;
|
||||
@@ -367,6 +362,16 @@ namespace Barotrauma
|
||||
OnAddedToGUIUpdateList?.Invoke(this);
|
||||
}
|
||||
|
||||
public void RecalculateChildren()
|
||||
{
|
||||
foreach (GUIComponent child in Content.Children)
|
||||
{
|
||||
ClampChildMouseRects(child);
|
||||
}
|
||||
RepositionChildren();
|
||||
childrenNeedsRecalculation = false;
|
||||
}
|
||||
|
||||
private void ClampChildMouseRects(GUIComponent child)
|
||||
{
|
||||
child.ClampMouseRectToParent = true;
|
||||
|
||||
Reference in New Issue
Block a user