mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00:34 +00:00
tour:: next_slide function
This commit is contained in:
parent
3410a20275
commit
48260b781e
32
tour.cpp
32
tour.cpp
@ -206,25 +206,29 @@ void return_geometry() {
|
|||||||
addMessage(XLAT("Returned to your game."));
|
addMessage(XLAT("Returned to your game."));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EX bool next_slide() {
|
||||||
|
flagtype flags = slides[currentslide].flags;
|
||||||
|
popScreenAll();
|
||||||
|
if(gamestack::pushed()) {
|
||||||
|
return_geometry();
|
||||||
|
if(!(flags & QUICKGEO)) return true;
|
||||||
|
}
|
||||||
|
if(flags & FINALSLIDE) return true;
|
||||||
|
presentation(pmStop);
|
||||||
|
slide_restore_all();
|
||||||
|
currentslide++;
|
||||||
|
presentation(pmStart);
|
||||||
|
slidehelp();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
bool handleKeyTour(int sym, int uni) {
|
bool handleKeyTour(int sym, int uni) {
|
||||||
if(!tour::on) return false;
|
if(!tour::on) return false;
|
||||||
if(!(cmode & sm::DOTOUR)) return false;
|
if(!(cmode & sm::DOTOUR)) return false;
|
||||||
bool inhelp = cmode & sm::HELP;
|
bool inhelp = cmode & sm::HELP;
|
||||||
flagtype flags = slides[currentslide].flags;
|
flagtype flags = slides[currentslide].flags;
|
||||||
if((sym == SDLK_RETURN || sym == SDLK_KP_ENTER) && (!inhelp || (flags & QUICKSKIP))) {
|
if((sym == SDLK_RETURN || sym == SDLK_KP_ENTER) && (!inhelp || (flags & QUICKSKIP)))
|
||||||
popScreenAll();
|
return next_slide();
|
||||||
if(gamestack::pushed()) {
|
|
||||||
return_geometry();
|
|
||||||
if(!(flags & QUICKGEO)) return true;
|
|
||||||
}
|
|
||||||
if(flags & FINALSLIDE) return true;
|
|
||||||
presentation(pmStop);
|
|
||||||
slide_restore_all();
|
|
||||||
currentslide++;
|
|
||||||
presentation(pmStart);
|
|
||||||
slidehelp();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if(sym == SDLK_BACKSPACE) {
|
if(sym == SDLK_BACKSPACE) {
|
||||||
if(gamestack::pushed()) {
|
if(gamestack::pushed()) {
|
||||||
gamestack::pop();
|
gamestack::pop();
|
||||||
|
Loading…
Reference in New Issue
Block a user