WPF layout (#3346)
This commit is contained in:
committed by
GitHub
parent
33d6975c25
commit
b898443f28
@@ -17,8 +17,6 @@ namespace Content.Client.VendingMachines
|
||||
[Dependency] private readonly IResourceCache _resourceCache = default!;
|
||||
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
|
||||
|
||||
protected override Vector2? CustomSize => (300, 450);
|
||||
|
||||
private readonly ItemList _items;
|
||||
private List<VendingMachineInventoryEntry> _cachedInventory;
|
||||
|
||||
@@ -26,12 +24,13 @@ namespace Content.Client.VendingMachines
|
||||
|
||||
public VendingMachineMenu()
|
||||
{
|
||||
SetSize = MinSize = (300, 450);
|
||||
IoCManager.InjectDependencies(this);
|
||||
|
||||
_items = new ItemList()
|
||||
{
|
||||
SizeFlagsStretchRatio = 8,
|
||||
SizeFlagsVertical = SizeFlags.FillExpand,
|
||||
VerticalExpand = true,
|
||||
};
|
||||
_items.OnItemSelected += ItemSelected;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user