using System.Linq; using Cirno.Scripts.Actors; using Cirno.Scripts.Resources; using Cirno.Scripts.Utils; using Godot; using Godot.Collections; namespace Cirno.Scripts.UI; public partial class VendingMachineUi : CanvasLayer { [Export] public Label MoneyLabel { get; private set; } [Export] public Container ItemsContainer { get; private set; } public VendingMachine Machine { get; set; } public LootItem[] Items { get; set; } = new LootItem[3]; public override void _Ready() { FillItems(); } private void FillItems() { var buttons = ItemsContainer.GetChildren().Cast