mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-02 02:37:55 +00:00
rogueviz::ads:: fixefd the turret slide
This commit is contained in:
@@ -98,6 +98,8 @@ void ads_restart() {
|
|||||||
switch_spacetime_to(b);
|
switch_spacetime_to(b);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
purehookset hooks_pre_ads_start;
|
||||||
|
|
||||||
void run_ads_game_hooks() {
|
void run_ads_game_hooks() {
|
||||||
rogueviz::rv_hook(hooks_global_mouseover, 100, generate_mouseovers);
|
rogueviz::rv_hook(hooks_global_mouseover, 100, generate_mouseovers);
|
||||||
rogueviz::rv_change<color_t>(titlecolor, 0);
|
rogueviz::rv_change<color_t>(titlecolor, 0);
|
||||||
@@ -129,6 +131,7 @@ void run_ads_game() {
|
|||||||
run_size_hooks();
|
run_size_hooks();
|
||||||
hybrid::reconfigure(); // we need to reconfigure to take scalefactor change into account
|
hybrid::reconfigure(); // we need to reconfigure to take scalefactor change into account
|
||||||
run_ads_game_hooks();
|
run_ads_game_hooks();
|
||||||
|
callhooks(hooks_pre_ads_start);
|
||||||
start_game();
|
start_game();
|
||||||
|
|
||||||
starting_point = hybrid::get_where(cwt.at).first;
|
starting_point = hybrid::get_where(cwt.at).first;
|
||||||
|
@@ -7,6 +7,8 @@ namespace hr {
|
|||||||
|
|
||||||
namespace ads_game {
|
namespace ads_game {
|
||||||
|
|
||||||
|
extern purehookset hooks_pre_ads_start;
|
||||||
|
|
||||||
namespace ads_tour {
|
namespace ads_tour {
|
||||||
using namespace rogueviz::pres;
|
using namespace rogueviz::pres;
|
||||||
|
|
||||||
@@ -462,6 +464,12 @@ slide relhell_tour[] = {
|
|||||||
setCanvas(mode, &ccolor::plain, [] {
|
setCanvas(mode, &ccolor::plain, [] {
|
||||||
ads_game::run_ads_game_std();
|
ads_game::run_ads_game_std();
|
||||||
tour::slide_backup(pconf.alpha, 1);
|
tour::slide_backup(pconf.alpha, 1);
|
||||||
|
rv_hook(hooks_pre_ads_start, 100, [] {
|
||||||
|
tour::slide_backup(specialland, laHunting);
|
||||||
|
tour::slide_backup(firstland, laHunting);
|
||||||
|
tour::slide_backup(land_structure, lsSingle);
|
||||||
|
});
|
||||||
|
ads_game::ads_restart();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user