mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00:34 +00:00
tour:: an option to print
This commit is contained in:
parent
e3ed7a3bb3
commit
a8ac3b2ff7
@ -222,6 +222,9 @@ int arg::readCommon() {
|
|||||||
PHASEFROM(2); tour::texts = false;
|
PHASEFROM(2); tour::texts = false;
|
||||||
start_game(); tour::start();
|
start_game(); tour::start();
|
||||||
}
|
}
|
||||||
|
else if(argis("-print-tour")) {
|
||||||
|
tour::print();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
else if(argis("-draw")) {
|
else if(argis("-draw")) {
|
||||||
PHASE(3); start_game(); drawscreen();
|
PHASE(3); start_game(); drawscreen();
|
||||||
|
15
tour.cpp
15
tour.cpp
@ -476,6 +476,21 @@ EX void initialize_slides() {
|
|||||||
if(slides[currentslide].flags & FINALSLIDE) break;
|
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() {
|
EX void start() {
|
||||||
currentslide = 0;
|
currentslide = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user