SupaLidlGame/UI/UIController.cs

27 lines
620 B
C#
Raw Permalink Normal View History

2023-07-23 11:05:01 -07:00
using Godot;
using System.Collections.Generic;
2023-07-23 11:05:01 -07:00
namespace SupaLidlGame.UI;
public partial class UIController : Control
{
[Export]
public TextureProgressBar PlayerHealthBar { get; set; }
[Export]
public BossBar BossBar { get; set; }
private Stack<IModal> _modals;
public override void _Ready()
{
Events.EventBus.Instance.EnterShop += (string path) =>
{
var shop = ResourceLoader.Load<Items.Shop>(path);
var shopMenu = GetNode<Inventory.ShopMenu>("%ShopMenu");
shopMenu.Source = shop;
shopMenu.ShowModal();
};
}
2023-07-23 11:05:01 -07:00
}