1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-20 16:37:40 +00:00

more drawing tool improvements; no crash drawing tool; restart editors will ask for confirmation

This commit is contained in:
Zeno Rogue
2020-04-17 20:34:49 +02:00
parent 62c6651392
commit c24658bf38
3 changed files with 35 additions and 27 deletions

View File

@@ -1263,6 +1263,10 @@ EX namespace dialog {
else act();
}
inline void push_confirm_dialog(const reaction_t& act, const string& s) {
pushScreen([act, s] () { confirm_dialog(s, act); });
}
inline reaction_t add_confirmation(const reaction_t& act) {
return [act] { do_if_confirmed(act); };
}