Skip to content

[InfoHud] Add current input size to the playback index #241

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

ScribbleTAS
Copy link
Member

No description provided.

Currently, the playback index only shows the current tick of the recording.
Now a second variable is added to show the size of the recording with the format 0/0,
with the second one being the size.

To get the size, I use PlaybackController#size()-1 as the index is always one smaller than the size.
And to not get negative numbers when no inputs are present, I use Math.max(size, 0)
@ScribbleTAS ScribbleTAS added the Gui Issue relates to guis label May 2, 2025
@ScribbleTAS ScribbleTAS requested a review from PancakeTAS May 2, 2025 07:56
@ScribbleTAS ScribbleTAS self-assigned this May 2, 2025
@github-project-automation github-project-automation bot moved this to Todo in TASmod May 2, 2025
@ScribbleTAS ScribbleTAS enabled auto-merge May 2, 2025 07:58
@ScribbleTAS ScribbleTAS merged commit ec1d8e9 into MinecraftTAS:develop May 2, 2025
3 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in TASmod May 2, 2025
@ScribbleTAS ScribbleTAS deleted the enhancement/playback-index branch May 2, 2025 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gui Issue relates to guis
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants