Small tweak to floor number display, increased chinthe speed, fix Return To Overworld option on floor clear menu

This commit is contained in:
2026-06-06 17:19:48 -07:00
parent 947d311f27
commit 72f8b5c050
11 changed files with 134 additions and 72 deletions
+7 -7
View File
@@ -21,23 +21,23 @@ public partial class Minimap : Control
public void OnResolved()
{
_map.CurrentFloorNumber.Sync += CurrentFloorNumber_Sync;
_ready = true;
_map.CurrentFloorDisplayString.Sync += CurrentFloorNumber_Sync;
_ready = true;
}
public override void _PhysicsProcess(double delta)
{
if (_ready)
MinimapCamera.Position = new Vector3(_player.GlobalPosition.X, MinimapCamera.Position.Y, _player.GlobalPosition.Z);
if (_ready)
MinimapCamera.Position = new Vector3(_player.GlobalPosition.X, MinimapCamera.Position.Y, _player.GlobalPosition.Z);
}
private void CurrentFloorNumber_Sync(int obj)
private void CurrentFloorNumber_Sync(string obj)
{
LayerNumberText.Text = $"{obj:D2}";
LayerNumberText.Text = obj;
}
public void OnExitTree()
{
_map.CurrentFloorNumber.Sync -= CurrentFloorNumber_Sync;
_map.CurrentFloorDisplayString.Sync -= CurrentFloorNumber_Sync;
}
}