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:
@@ -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); };
|
||||
}
|
||||
|
Reference in New Issue
Block a user