Move ButtonBar view out of GameHud into GameHud.ButtonBar (#6491)

This commit is contained in:
Acruid
2022-02-08 16:24:22 -08:00
committed by GitHub
parent b5334d11fb
commit d89df7ce74
7 changed files with 607 additions and 511 deletions

View File

@@ -234,7 +234,11 @@ namespace Content.Client.Inventory
Title = Loc.GetString("human-inventory-window-title"),
Resizable = false
};
window.OnClose += () => _gameHud.InventoryButtonDown = false;
window.OnClose += () =>
{
_gameHud.InventoryButtonDown = false;
_gameHud.TopInventoryQuickButtonContainer.Visible = false;
};
var windowContents = new LayoutContainer
{
MinSize = (ButtonSize * 4 + ButtonSeparation * 3 + RightSeparation,
@@ -337,6 +341,7 @@ namespace Content.Client.Inventory
private void HandleOpenInventoryMenu()
{
_gameHud.InventoryButtonDown = !_gameHud.InventoryButtonDown;
_gameHud.TopInventoryQuickButtonContainer.Visible = _gameHud.InventoryButtonDown;
}
}
}