projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Wait for an explicit "Close" by the user instead of closing the DownloadDialog automa...
[supertux.git]
/
src
/
gui
/
dialog.cpp
diff --git
a/src/gui/dialog.cpp
b/src/gui/dialog.cpp
index
260c7bf
..
b10f299
100644
(file)
--- a/
src/gui/dialog.cpp
+++ b/
src/gui/dialog.cpp
@@
-49,6
+49,13
@@
Dialog::set_text(const std::string& text)
}
void
+Dialog::clear_buttons()
+{
+ m_buttons.clear();
+ m_selected_button = 0;
+}
+
+void
Dialog::add_button(const std::string& text, const std::function<void ()>& callback, bool focus)
{
m_buttons.push_back({text, callback});