summaryrefslogtreecommitdiff
path: root/scripts/GUI/Details.cs
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/GUI/Details.cs')
-rw-r--r--scripts/GUI/Details.cs20
1 files changed, 10 insertions, 10 deletions
diff --git a/scripts/GUI/Details.cs b/scripts/GUI/Details.cs
index 3ead3a9..42268b1 100644
--- a/scripts/GUI/Details.cs
+++ b/scripts/GUI/Details.cs
@@ -11,10 +11,10 @@ public partial class Details : CanvasLayer
[Export]
private Map.Map map;
- private VBoxContainer EntityNames { get; set; }
- private Godot.Collections.Array<Entity> Entities { get; set; } = [];
+ private VBoxContainer entityNames;
+ private Godot.Collections.Array<Entity> entities= [];
- private Godot.Collections.Array<Label> ActorsLabel { get; set; } = [];
+ private Godot.Collections.Array<Label> actorsLabel = [];
private SignalBus.EnterInspectionModeEventHandler enterLambda;
private SignalBus.ExitInspectionModeEventHandler exitLambda;
@@ -22,7 +22,7 @@ public partial class Details : CanvasLayer
public override void _Ready()
{
base._Ready();
- EntityNames = GetNode<VBoxContainer>("HBoxContainer/PanelContainer/ScrollContainer/Entities");
+ entityNames = GetNode<VBoxContainer>("HBoxContainer/PanelContainer/ScrollContainer/Entities");
enterLambda = () => Visible = true;
exitLambda = () => Visible = false;
@@ -34,7 +34,7 @@ public partial class Details : CanvasLayer
public void OnInspectorWalk(Vector2I pos)
{
MapData mapData = map.MapData;
- Entities = mapData.GetEntitiesAtPosition(pos);
+ entities = mapData.GetEntitiesAtPosition(pos);
UpdateLabels();
}
@@ -57,14 +57,14 @@ public partial class Details : CanvasLayer
private void UpdateLabels()
{
- foreach (Label label in ActorsLabel)
+ foreach (Label label in actorsLabel)
{
label.QueueFree();
}
- ActorsLabel.Clear();
+ actorsLabel.Clear();
- foreach (Entity entity in Entities)
+ foreach (Entity entity in entities)
{
Label label = new()
{
@@ -72,8 +72,8 @@ public partial class Details : CanvasLayer
LabelSettings = lblSettings
};
- ActorsLabel.Add(label);
- EntityNames.AddChild(label);
+ actorsLabel.Add(label);
+ entityNames.AddChild(label);
}
}
}