Skip to content
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

refactor: extract common UI codes, including restore default button, and hovered tooltip formatting #170

Merged
merged 4 commits into from
Feb 1, 2024

Conversation

Pentalimbed
Copy link
Collaborator

@Pentalimbed Pentalimbed commented Feb 1, 2024

Fixes #163

New tooltip usage:

ImGui::SomeWidget();
if (auto _tt = Util::HoverTooltipWrapper()){
    ImGui::Text("What the tooltip says.");
}

@Pentalimbed Pentalimbed changed the title refactor: extract common UI codes, including restor default button, and hovered tooltip formatting refactor: extract common UI codes, including restore default button, and hovered tooltip formatting Feb 1, 2024
Copy link
Collaborator

@alandtse alandtse left a comment

Choose a reason for hiding this comment

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

Looks nice. closes #163

@doodlum doodlum merged commit eca469a into doodlum:dev Feb 1, 2024
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.

Refactor repeated code into helper functions
3 participants