1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-11 11:13:01 +00:00

text improvements, PL/CZ translation update

This commit is contained in:
Zeno Rogue
2018-12-14 18:21:52 +01:00
parent f22ec08f86
commit 5d01ac0732
13 changed files with 346 additions and 76 deletions

View File

@@ -1058,6 +1058,20 @@ namespace dialog {
numberdark = 0;
}
void confirm_dialog(const string& text, const reaction_t& act) {
gamescreen(1);
dialog::addBreak(250);
dialog::init(XLAT("WARNING"), 0xFF0000, 150, 100);
dialog::addInfo(text);
dialog::addItem(XLAT("YES"), 'y');
auto yes = [act] () { popScreen(); act(); };
dialog::add_action(yes);
dialog::add_key_action(SDLK_RETURN, yes);
dialog::addItem(XLAT("NO"), 'n');
dialog::add_action([] () { popScreen(); });
dialog::display();
}
};
}