1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-17 10:44:48 +00:00

rogueviz:: list of portal scenes in portal collection

This commit is contained in:
Zeno Rogue 2023-12-27 16:25:33 +01:00
parent ffda562f7c
commit 2f1bb092b8
3 changed files with 11 additions and 5 deletions

View File

@ -801,9 +801,9 @@ EX void achievement_final(bool really_final) {
if(PURE) specialcode+=4; if(PURE) specialcode+=4;
if(numplayers() > 1) specialcode+=8; if(numplayers() > 1) specialcode+=8;
if(inv::on) specialcode+=16; if(inv::on) specialcode+=16;
if(bow::crossbow_mode && bow::style == bow::cbBull) specialcode += 32; if(bow::crossbow_mode() && bow::style == bow::cbBull) specialcode += 32;
if(bow::crossbow_mode && bow::style == bow::cbGeodesic) specialcode += 64; if(bow::crossbow_mode() && bow::style == bow::cbGeodesic) specialcode += 64;
if(bow::crossbow_mode && bow::style == bow::cbGeometric) specialcode += 96; if(bow::crossbow_mode() && bow::style == bow::cbGeometric) specialcode += 96;
if(sphere && specialland == laHalloween) { if(sphere && specialland == laHalloween) {
if(specialcode) return; if(specialcode) return;

View File

@ -1429,7 +1429,13 @@ void portal_slideshow(tour::ss::slideshow_callback cb) {
"This is a collection of portals. We start with knotted portals in Euclidean geometry, " "This is a collection of portals. We start with knotted portals in Euclidean geometry, "
"then we visit portals in other geometries, and finally, we explore portals between different " "then we visit portals in other geometries, and finally, we explore portals between different "
"geometries.\n\nLoading these may take some time, so you need to press 'r' to run them. In most slides you can also press '5' to change various parameters.", "geometries.\n\nLoading these may take some time, so you need to press 'r' to run them. In most slides you can also press '5' to change various parameters.",
[] (presmode mode) {} [] (presmode mode) {
slide_action(mode, '9', "list of portal scenes", [=] {
popScreenAll();
ss::current_folder = get_foldername(slides[currentslide].name);
pushScreen(ss::showMenu);
});
}
}); });
auto add = [&] (string s, string text, string youtube, reaction_t act) { auto add = [&] (string s, string text, string youtube, reaction_t act) {

View File

@ -180,7 +180,7 @@ string get_slidename(const string& s) {
return s.substr(i); return s.substr(i);
} }
string get_foldername(const string& s) { EX string get_foldername(const string& s) {
int i = 0; int i = 0;
for(int k=0; k<isize(s); k++) if(s[k] == '/') i = k+1; for(int k=0; k<isize(s); k++) if(s[k] == '/') i = k+1;
return s.substr(0, i); return s.substr(0, i);