-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add Info Display #35
Add Info Display #35
Conversation
Appease Linter (hopefully)
scripts/Modules/infodisplay.ini
Outdated
@@ -0,0 +1,35 @@ | |||
[DEBUG] |
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.
It would be nice if the config file that is used is not tracked by git.
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.
To clarify, this file should ABSOLUTELY be committed. Because we always want to be able to provide it alongside the scripts (We don't expect the user to have to create this file manually themselves). However, we will want to ignore any changes to the file. Is this doable?
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.
It would work if this file was the default configuration and is used to supply configuration the main config file lacks.
Would it be more beneficial to have an additional .py file to allow for further customisation using presets? For example:
I'm aware a lot of these have very few differences for now, but as more stuff gets added to infodisplay, more stuff will only cater to certain people/environments, making it useful to have presets to switch between. |
Personally, I think an external guide of recommendations for certain scenarios (and just common sense) would negate the need for presets. |
I like the idea of presets. May be out of the scope of this PR. |
I agree that presets are nice, but also agree that it is out of scope. Let's try to get this merged with this basic .ini config file. I believe we are in agreement that the plan is to populate the config object with a |
In that case, I still think we should remove some of the things from being displayed by default. I believe there should only be; Frame Count, Speed, EV XZ/XYZ, Charges and Boosts, Checkpoints and Completion, and Airtime. This means:
Also, we should decide on some consistency regarding the speed/velocity sections. I believe the following should be our layout:
|
7157f3d
to
7aa7b2f
Compare
Applied all changes from my review to xi's branch. I've limited the digits config so that it will be a max of 7 digits. |
The base game has a timer class, tracking minutes, seconds, milliseconds, and whether or not the timer is active. It's created on the stack frequently, so I'd say it's a good idea to allow the same thing here. |
7aa7b2f
to
1ea1482
Compare
Updated to include a dataclass that abstracts away time manipulation. |
Added a commit to address the info display flickering for the frame a savestate is loaded. |
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.
Backend looks good to me. LGTM assuming _draw_info_display.py
is tested and reviewed by someone on the frontend.
No description provided.