mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-06-22 05:03:19 +00:00
dialog:: addBoolItem_action
This commit is contained in:
parent
7ce880b680
commit
4791fd018e
|
@ -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; });
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user