-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Bug:
The Ingame Hud (the one where the resources are displayed) is not updated correctly.
It's only updated once and then never again
The callback method here https://github.com/riandrake/DistanceToCenter/blob/master/data/scripts/player/ui/distancetocenter.lua#L165
uses DTC.hud which is set here
inside DTC.initialize and since DTC.initialize only runs once it never updates after being set initially.
Maybe Suggestion
Maybe you can use the onSectorEntered (or similar) Callback of the Player Entity to update DTC.hud.label_value with the correct distance?
First Picture is the Sector I spawn in with a distance of 306 to the center (see top left)
This picture shows a sector I switched into which is distance 404 to center (as shown in the 3rd screenshot), but the distance at the top left does not update from 306 to 404


