diff --git a/dialogs.cpp b/dialogs.cpp index 7d3f02aa..fec9f8f8 100644 --- a/dialogs.cpp +++ b/dialogs.cpp @@ -2015,6 +2015,10 @@ EX namespace dialog { dialog::add_action([&b] { b = !b; }); } + EX void addItem_mouse(const string& s, key_type c) { + dialog::addBoolItem(s, mousekey == c, c); + } + EX bool cheat_forbidden() { if(tactic::on && !cheater) { addMessage(XLAT("Not available in the pure tactics mode!"));