|
@ -28,6 +28,7 @@ |
|
|
#include "animation/ease.hpp"
|
|
|
#include "animation/ease.hpp"
|
|
|
#include "animation/animation.hpp"
|
|
|
#include "animation/animation.hpp"
|
|
|
#include "animation/animator.hpp"
|
|
|
#include "animation/animator.hpp"
|
|
|
|
|
|
#include "animation/timeline.hpp"
|
|
|
#include "application.hpp"
|
|
|
#include "application.hpp"
|
|
|
#include "scene/text.hpp"
|
|
|
#include "scene/text.hpp"
|
|
|
#include "render/passes/clear-pass.hpp"
|
|
|
#include "render/passes/clear-pass.hpp"
|
|
@ -132,8 +133,10 @@ void enter(game::context* ctx) |
|
|
// Set menu back callback
|
|
|
// Set menu back callback
|
|
|
ctx->menu_back_callback = select_back_callback; |
|
|
ctx->menu_back_callback = select_back_callback; |
|
|
|
|
|
|
|
|
// Setup menu controls
|
|
|
|
|
|
game::menu::setup_controls(ctx); |
|
|
|
|
|
|
|
|
// Schedule menu control setup
|
|
|
|
|
|
timeline* timeline = ctx->timeline; |
|
|
|
|
|
float t = timeline->get_position(); |
|
|
|
|
|
timeline->add_sequence({{t + game::menu::input_delay, std::bind(game::menu::setup_controls, ctx)}}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void exit(game::context* ctx) |
|
|
void exit(game::context* ctx) |
|
|