-
Notifications
You must be signed in to change notification settings - Fork 9
SelfUpdatingGauge
Damian edited this page Apr 17, 2023
·
3 revisions
Well, one of the things I noticed while supporting Mudlet is that most people expected gauges to update on their own. None of them have.
This is an extension of Geyser.Gauge. As such, it has all the functionality thereof. But this one has the ability to update itself on a timer.
It adds a few constraints to Geyser.Gauge and runs a timer to check some variables and update the gauge accordingly. It provides a way to update the text using a simple template
- Uses a simple token replacement system
-
|c
is replaced by the current value -
|m
is replaced by the maximum value -
|p
is replaced by the percentage full (current/maximum)
-
And it can look up values from variables automatically. If your current health is stored in the currentHealth variable, then you would use "currentHealth" Likewise, if it's within a table such as demonnic.vitals.currentHealth, then you would use "demonnic.vitals.currentHealth".