Skip to content

feat(utils): allow custom setting value format#544

Open
xq-r wants to merge 1 commit intoclshortfuse:mainfrom
xq-r:feat/setting-value-format
Open

feat(utils): allow custom setting value format#544
xq-r wants to merge 1 commit intoclshortfuse:mainfrom
xq-r:feat/setting-value-format

Conversation

@xq-r
Copy link
Copy Markdown
Contributor

@xq-r xq-r commented Apr 11, 2026

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for dynamically customizing how setting values are displayed in the ImGui overlay by introducing a per-setting value formatting callback.

Changes:

  • Added Setting::value_format callback to produce a custom display/format string based on the current value.
  • Updated FLOAT/INTEGER/BOOLEAN overlay slider rendering to prefer value_format(...) over the static format/labels strings.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@xq-r xq-r force-pushed the feat/setting-value-format branch from 06c45a1 to 515144f Compare April 12, 2026 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants