-
-
Notifications
You must be signed in to change notification settings - Fork 374
Conversation
Signed-off-by: scorbett123 <[email protected]>
src/main/kotlin/org/kamiblue/client/gui/hudgui/elements/misc/CPS.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/org/kamiblue/client/gui/hudgui/elements/misc/CPS.kt
Outdated
Show resolved
Hide resolved
Signed-off-by: scorbett123 <[email protected]>
Signed-off-by: lv <[email protected]>
Thanks. |
I tested and the decimal places seem redundant since they're always .00, can I just remove that? |
If you change the time it is being measured over (so it is anything except 1) then it will display with decimals, however if you don't think that they are worth it go ahead and remove them. |
Signed-off-by: lv <[email protected]>
Ahh will do some more testing then |
Signed-off-by: lv <[email protected]>
safeListener<TickEvent.ClientTickEvent> { | ||
// This needs to happen whenever running else it will continue to show a score after clicking has stopped. | ||
clicks.removeIf { it < System.currentTimeMillis() - averageSpeedTime } | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can do this in updateText() instead of making new listener
description = "Display your clicks per second." | ||
) { | ||
|
||
private val averageSpeedTime by setting("Average Speed Time", 1000, 500..5000, 100, description = "The period of time to measure, in ms") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe use seconds instead of making big numbers
I did more testing and found different settings were inaccurate or pretty useless, so I removed it. Thanks for the pull! |
Add a CPS indicator to the HUD, also fix the description of notebot to reflect that it can now also do nbs.
closes #1604