1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 01:00:25 +00:00

better centering screenshot, 'rotate PC' option

This commit is contained in:
Zeno Rogue 2020-04-26 11:07:06 +02:00
parent 500df60990
commit 97c9be0dde

View File

@ -955,12 +955,21 @@ EX void menu() {
#endif
if(WDIM == 2) {
dialog::addItem(XLAT("centering"), 'x');
dialog::addItem(XLAT("centering"), 'C');
dialog::add_action([] {
dialog::editNumber(vid.fixed_facing_dir, 0, 360, 15, 90, XLAT("centering"),
XLAT("You can pick the angle. Note: the direction the PC is facing matters."));
dialog::reaction = fullcenter;
dialog::extra_options = [] () {
dialog::addBoolItem(XLAT("rotate PC"), centering == eCentering::face, 'R');
dialog::add_action([] {
flipplayer = false;
cwt++;
mirror::act(1, mirror::SPINSINGLE);
cwt.at->mondir++;
cwt.at->mondir %= cwt.at->type;
fullcenter();
});
dialog::addBoolItem(XLAT("face"), centering == eCentering::face, 'F');
dialog::add_action([] { centering = eCentering::face; fullcenter(); });
dialog::addBoolItem(XLAT("edge"), centering == eCentering::edge, 'E');