mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-21 17:07:40 +00:00
intra:: create/manage portal maps from the map editor
This commit is contained in:
19
intra.cpp
19
intra.cpp
@@ -661,6 +661,25 @@ EX string portal_help =
|
||||
"Non-Euclidean Geometries' for some portals that work.\n\n"
|
||||
;
|
||||
|
||||
EX void become_menu() {
|
||||
cmode = sm::SIDE | sm::MAYDARK;
|
||||
gamescreen();
|
||||
dialog::init(XLAT("Become a portal map"));
|
||||
dialog::addHelp(XLAT(portal_help));
|
||||
dialog::addItem(XLAT("yes, that's what I want"), 'y');
|
||||
dialog::add_action([] {
|
||||
intra::become();
|
||||
intra::start();
|
||||
game_keys_scroll = true;
|
||||
mapeditor::drawplayer = false;
|
||||
popScreen();
|
||||
pushScreen(show_portals);
|
||||
});
|
||||
|
||||
dialog::addBack();
|
||||
dialog::display();
|
||||
}
|
||||
|
||||
int edit_spin;
|
||||
|
||||
EX void world_list() {
|
||||
|
Reference in New Issue
Block a user