mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-06 14:10:11 +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…
x
Reference in New Issue
Block a user