mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-24 23:10:09 +00:00
dialog:: addBoolItem_action now accepts int argument
This commit is contained in:
parent
5ca19a0d9b
commit
42a1615d0d
@ -1607,12 +1607,12 @@ EX namespace dialog {
|
||||
dialog::display();
|
||||
}
|
||||
|
||||
EX void addBoolItem_action(const string& s, bool& b, char c) {
|
||||
EX void addBoolItem_action(const string& s, bool& b, int c) {
|
||||
dialog::addBoolItem(s, b, c);
|
||||
dialog::add_action([&b] { b = !b; });
|
||||
}
|
||||
|
||||
EX void addBoolItem_action_neg(const string& s, bool& b, char c) {
|
||||
EX void addBoolItem_action_neg(const string& s, bool& b, int c) {
|
||||
dialog::addBoolItem(s, !b, c);
|
||||
dialog::add_action([&b] { b = !b; });
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user