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:
7
help.cpp
7
help.cpp
@@ -1141,8 +1141,13 @@ EX void describeMouseover() {
|
|||||||
if(tour::on && !tour::texts) {
|
if(tour::on && !tour::texts) {
|
||||||
if(tour::slides[tour::currentslide].flags & tour::NOTITLE)
|
if(tour::slides[tour::currentslide].flags & tour::NOTITLE)
|
||||||
mouseovers = "";
|
mouseovers = "";
|
||||||
else
|
else {
|
||||||
mouseovers = XLAT(tour::slides[tour::currentslide].name);
|
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
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user