8000 MessageBox: add changeButtons() (addresses #214) by CasualYT31 · Pull Request #215 · texus/TGUI · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

MessageBox: add changeButtons() (addresses #214) #215

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

Merged
merged 1 commit into from
Sep 3, 2023

Conversation

CasualYT31
Copy link
Contributor

See the docstring for a rundown of the behaviour of the new method. I have also added tests.

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Adds a button to the MessageBox.
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void addButtonImpl(const String& caption);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I separated addButton()'s code in this way to prevent rearranging the MessageBox more than necessary when using changeButtons() to add multiple buttons.

@CasualYT31 CasualYT31 force-pushed the messagebox-rename-buttons branch from 14eb711 to ce74623 Compare September 2, 2023 21:33
@CasualYT31
Copy link
Contributor Author

Force push was to add issue number to the commit message.

@CasualYT31 CasualYT31 force-pushed the messagebox-rename-buttons branch from ce74623 to 504348a Compare September 2, 2023 22:43
@CasualYT31 CasualYT31 force-pushed the messagebox-rename-buttons branch from 504348a to 9e578d3 Compare September 2, 2023 22:48
@texus texus merged commit 4a05206 into texus:1.x Sep 3, 2023
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
0