Extend the "Strings" view in debug screen to display names of StringVars (+ some debug screen adjustments) - #3398
Merged
Conversation
- Extended & refactored window_varlist to support displaying data over multiple lines This is neccessary to have proper space for extended information on some special data types (for now StringVars; -> and at a later time also ScopedVars, which need more lines too) - Removed the unneccessary copying of in-game strings - Refactored part of the Range_Window setup code to be able to display more digits when viewing Switch/Variable ranges above 9999 - Maniacs 241028: Implemented the display for StringVar names - Added a special function for button "Shift" in the debug scene: Pressing this button changes display modes for the current window (Currently only implemented for strings, to toggle between the old single-line display & the newer detailed one, that also included the name) - Some other minor refactoring & moving of code parts
…will be refactored to make use of the revised var_window)
Member
Author
Ghabry
reviewed
Apr 18, 2025
| case eString: | ||
| return "St"; | ||
| default: | ||
| break; |
Member
There was a problem hiding this comment.
move the assert(false) into the default: followed by return {};. Yeah, compiler is picky here because assert is removed in release builds.
Ghabry
reviewed
Apr 18, 2025
| } | ||
|
|
||
| constexpr int Window_VarList::GetDigitCount(Mode mode) { | ||
| return 4; |
Member
There was a problem hiding this comment.
github action reports unused parameter 'mode' [-Wunused-parameter]
Ghabry
approved these changes
Apr 18, 2025
Ghabry
left a comment
Member
There was a problem hiding this comment.
besides the 2 warnings looks good to me
Contributor
|
Nitpick - maybe could be helpful resorting the items on the debug menu: Menu 1 - Player Actions Menu 2 - Development Tools maybe we could also remember the latest page opened on the debug menu, for quick repetitive debbuging Feel free to do any other suggestion of improvement |
Member
|
can you move this to an issue? This doesn't fit here. |
Contributor
|
sure! |
Ghabry
force-pushed
the
debug/NamedStringVars
branch
from
April 27, 2025 12:18
95d4ea9 to
0f57bbd
Compare
sevenc-nanashi
pushed a commit
to sevenc-nanashi/easyrpg-player
that referenced
this pull request
May 31, 2026
Extend the "Strings" view in debug screen to display names of StringVars (+ some debug screen adjustments)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Self-explanatory, but I also included some refactors of the existing var_window, to make it more useful for displaying certain kinds of data that might need more than a single line.
(My ScopedVars branch for example, would also display multiple lines per scoped variable type)
StringVar names have been added with ManiacPatch 241028 & also provide a useful way to detect this major update without having to rely on reading the EXE:
(Even if no StringVars are used, at least one list entry will be included in this new LDB field by default)
Updated Strings view
By default, the view stays as before:

And by pressing SHIFT, it toggles to the new display mode that displays individual entries over two lines & includes the var name:

Another new addition:
Previously, displaying data for Switches/Variables above the ID 9999 would overflow the text:

This has been adjusted, by shortening the prefix to a single character + changing the way the text is formatted:
