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

tour:: in tours with slide name hierarchy, display only the main part

This commit is contained in:
Zeno Rogue
2025-09-29 11:50:22 +02:00
parent ba3fb00801
commit 01dde0c3c3

View File

@@ -1141,8 +1141,13 @@ EX void describeMouseover() {
if(tour::on && !tour::texts) {
if(tour::slides[tour::currentslide].flags & tour::NOTITLE)
mouseovers = "";
else
else {
mouseovers = XLAT(tour::slides[tour::currentslide].name);
auto posf = mouseovers.find("//");
if(posf != string::npos) mouseovers = mouseovers.substr(0, posf);
posf = mouseovers.rfind("/");
if(posf != string::npos) mouseovers = mouseovers.substr(posf+1);
}
}
#endif
}