mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-09 22:25:54 +00:00
Changed UI sprites to use sprite in resource
This commit is contained in:
parent
9717ca8a55
commit
f2482e4e38
10 changed files with 47 additions and 13 deletions
|
|
@ -47,7 +47,15 @@ public partial class Selector : Node2D
|
|||
if (Input.IsActionJustPressed("scan"))
|
||||
{
|
||||
SelectNext();
|
||||
|
||||
}
|
||||
|
||||
if (SelectedInteractable != null) {
|
||||
this.Visible = true;
|
||||
this.GlobalPosition = SelectedInteractable.GlobalPosition;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Visible = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -107,6 +115,7 @@ public partial class Selector : Node2D
|
|||
|
||||
public void UpdatePosition()
|
||||
{
|
||||
return;
|
||||
if (SelectedInteractable != null)
|
||||
{
|
||||
this.Position = SelectedInteractable.Position;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue