1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-24 10:27:45 +00:00

dialog:: addBoolItem_action

This commit is contained in:
Zeno Rogue
2019-05-03 11:44:15 +02:00
parent 7ce880b680
commit 4791fd018e
2 changed files with 5 additions and 0 deletions

View File

@@ -1087,6 +1087,10 @@ namespace dialog {
dialog::display();
}
void addBoolItem_action(const string& s, bool& b, char c) {
dialog::addBoolItem(s, b, c);
dialog::add_action([&b] { b = !b; });
}
};
}