fixed upgrade ui crashing
This commit is contained in:
parent
f7bc8738d1
commit
db90c8a686
1 changed files with 2 additions and 2 deletions
|
@ -358,9 +358,9 @@ public class Ui {
|
||||||
PositionOffset = new Vector2(0, 2)
|
PositionOffset = new Vector2(0, 2)
|
||||||
});
|
});
|
||||||
var upgradeList = upgradeUi.AddChild(new Panel(Anchor.AutoLeft, new Vector2(1), Vector2.Zero, false, true, false) {
|
var upgradeList = upgradeUi.AddChild(new Panel(Anchor.AutoLeft, new Vector2(1), Vector2.Zero, false, true, false) {
|
||||||
ChildPadding = new Padding(5, 15, 5, 5)
|
ChildPadding = new Padding(5, 15, 5, 5),
|
||||||
|
PreventParentSpill = true
|
||||||
});
|
});
|
||||||
upgradeHeader.OnAreaUpdated += e => upgradeList.Size = new Vector2(1, (upgradeUi.DisplayArea.Height - upgradeHeader.DisplayArea.Height) / e.Scale);
|
|
||||||
Ui.PopulateUpgradeList(upgradeList);
|
Ui.PopulateUpgradeList(upgradeList);
|
||||||
this.uiSystem.Add("Upgrade", upgradeUi);
|
this.uiSystem.Add("Upgrade", upgradeUi);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue