Small tweak to floor number display, increased chinthe speed, fix Return To Overworld option on floor clear menu
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user