Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

[enhancement] Add CPS to the HUD #1912

Merged
merged 7 commits into from
Feb 6, 2021
Merged

[enhancement] Add CPS to the HUD #1912

merged 7 commits into from
Feb 6, 2021

Conversation

scorbett123
Copy link
Contributor

Add a CPS indicator to the HUD, also fix the description of notebot to reflect that it can now also do nbs.

closes #1604

@5HT2 5HT2 added this to the 2.03.01 milestone Feb 6, 2021
@5HT2 5HT2 changed the title Add CPS to the HUD, and fix the description of NoteBot. [enhancement] Add CPS to the HUD Feb 6, 2021
@5HT2 5HT2 added -gui --changes-requested Changes need to be made to the pull and removed -module labels Feb 6, 2021
scorbett123 and others added 2 commits February 6, 2021 17:48
Signed-off-by: scorbett123 <[email protected]>
Signed-off-by: lv <[email protected]>
@scorbett123
Copy link
Contributor Author

Thanks.

@5HT2
Copy link
Member

5HT2 commented Feb 6, 2021

I tested and the decimal places seem redundant since they're always .00, can I just remove that?

@scorbett123
Copy link
Contributor Author

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]>
@5HT2
Copy link
Member

5HT2 commented Feb 6, 2021

Ahh will do some more testing then

Comment on lines 34 to 37
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 }
}
Copy link
Contributor

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")
Copy link
Contributor

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

@5HT2
Copy link
Member

5HT2 commented Feb 6, 2021

I did more testing and found different settings were inaccurate or pretty useless, so I removed it. Thanks for the pull!

@5HT2 5HT2 merged commit 242ef4e into kami-blue:master Feb 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
--changes-requested Changes need to be made to the pull -gui enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CPS in HUD
3 participants