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

tour:: an option to print

This commit is contained in:
Zeno Rogue 2020-09-15 19:11:19 +02:00
parent e3ed7a3bb3
commit a8ac3b2ff7
2 changed files with 18 additions and 0 deletions

View File

@ -222,6 +222,9 @@ int arg::readCommon() {
PHASEFROM(2); tour::texts = false;
start_game(); tour::start();
}
else if(argis("-print-tour")) {
tour::print();
}
#endif
else if(argis("-draw")) {
PHASE(3); start_game(); drawscreen();

View File

@ -476,6 +476,21 @@ EX void initialize_slides() {
if(slides[currentslide].flags & FINALSLIDE) break;
}
}
EX void print() {
dynamicval<int> cs(currentslide, 0);
for(currentslide=0;; currentslide++) {
auto& sl = slides[currentslide];
println(hlog, sl.name);
string str = sl.name;
for(char& c: str) c = '=';
println(hlog, str);
println(hlog);
println(hlog, sl.help);
println(hlog);
if(slides[currentslide].flags & FINALSLIDE) break;
}
}
EX void start() {
currentslide = 0;