mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-15 11:33:46 +00:00
selector changes
This commit is contained in:
parent
686dea6c8d
commit
f9432a61ee
11 changed files with 103 additions and 16 deletions
|
|
@ -8,6 +8,12 @@ public partial class Hud : CanvasLayer
|
|||
|
||||
private Label _healthLabel;
|
||||
|
||||
[Export]
|
||||
public PackedScene SelectorScene { get; set; }
|
||||
|
||||
[Export]
|
||||
private Node2D _selector;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
// Assuming the HUD has a Label node named "HealthLabel"
|
||||
|
|
@ -42,4 +48,12 @@ public partial class Hud : CanvasLayer
|
|||
{
|
||||
_healthLabel.Text = $"{newHealth}/{maxHealth}";
|
||||
}
|
||||
|
||||
public void UpdateInteractable(Interactable interactable) {
|
||||
GD.Print($"Interactable ${interactable.Name} entered in HUD");
|
||||
|
||||
|
||||
|
||||
//_selector.Position = _selector.tolo
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue