diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-04 16:58:58 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-04 16:58:58 -0300 |
| commit | 6f2c2edd52171a4df7f35de695c9b2e7801d3e5f (patch) | |
| tree | 509002136987182309a934623b19d19393e306e3 /scripts/GUI | |
| parent | 9953c9a5818baa392a48a4d18339c73f3b7a814e (diff) | |
Preparação para itens
Diffstat (limited to 'scripts/GUI')
| -rw-r--r-- | scripts/GUI/Details.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/GUI/Details.cs b/scripts/GUI/Details.cs index 0e342aa..814d2ac 100644 --- a/scripts/GUI/Details.cs +++ b/scripts/GUI/Details.cs @@ -6,7 +6,7 @@ public partial class Details : CanvasLayer private static readonly LabelSettings lblSettings = GD.Load<LabelSettings>("res://assets/definitions/message_label_settings.tres"); private Map map; private VBoxContainer entityNames; - private Godot.Collections.Array<Actor> actors = []; + private Godot.Collections.Array<Entity> entities = []; private Godot.Collections.Array<Label> actorsLabel = []; @@ -23,7 +23,7 @@ public partial class Details : CanvasLayer public void OnInspectorWalk(Vector2I pos) { MapData mapData = map.Map_Data; - actors = mapData.GetActorsAtPosition(pos); + entities = mapData.GetEntitiesAtPosition(pos); UpdateLabels(); } @@ -33,10 +33,10 @@ public partial class Details : CanvasLayer } actorsLabel.Clear(); - foreach (Actor actor in actors) { + foreach (Entity entity in entities) { Label label = new() { - Text = actor.ActorName, + Text = entity.DisplayName, LabelSettings = lblSettings }; |
