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.
Something I've noticed when looking through ImGui examples is the use of icon fonts.
To me this seems like a simple way to add a nice touch to the UI, and I've wanted to add reset/copy buttons to cvars shown in the UI ever since I started.
The ImGui docs suggest choosing an icon from this list. I looking through all of them and chose codicon because:
The main window

Player trace tab

Errors/Warnings

SPT info menubar

Text HUD tab before PR

Text HUD tab after PR

The two main places I've added the icons are:
SptImGui::CvarValue- basically any time a cvar is shown in the UI it will by default have a reset & copy button next to it unless it is a checkbox (this is most clear in the Text HUD Tab). The reset button sets the cvar back to its default value, and the copy button will copy e.g.spt_overlay 0to your clipboard.There is a slight adjustment I had to apply to the font to get it to visually line up with the current text font. I decided to make each icon monospace and exactly two english characters wide.
This sample along with all of the other icons and their code points is shown in the Dev tab, and that can be used to find an appealing looking icon.
