This commit is contained in:
2022-12-12 10:55:02 -08:00
parent a2ee1e139d
commit 8bbf05dcf0
13 changed files with 165 additions and 13 deletions

View File

@ -11,6 +11,7 @@
#include "ui/PokerGameTextbox.hpp"
#include "visualnovel/VisualNovelManager.hpp"
#include "visualnovel/events/VisualNovelTextboxEvent.hpp"
#include "visualnovel/events/VisualNovelFadeEvent.hpp"
#include "poker/PokerGame.hpp"
#include "visualnovel/events/PokerBetLoopEvent.hpp"
#include "visualnovel/events/PokerInitialEvent.hpp"
@ -44,6 +45,7 @@ namespace Dawn {
// UI
auto canvas = UICanvas::createCanvas(this);
auto textbox = PokerGameTextbox::create(canvas);
auto vnFader = VisualNovelFader::create(canvas);
// VN Manager
auto vnManagerItem = this->createSceneItem();
@ -62,7 +64,10 @@ namespace Dawn {
}
auto betting = vnManager
->setEvent(new VisualNovelTextboxEvent(vnManager, "Starting Game"))
->setEvent(new VisualNovelFadeEvent(
vnManager, COLOR_BLACK, true, &easeOutCubic, 5.0f
))
->then(new VisualNovelTextboxEvent(vnManager, "Starting Game"))
->then(new PokerNewGameEvent(vnManager))
->then(new VisualNovelTextboxEvent(vnManager, "Game Started"))
->then(new PokerInitialEvent(vnManager))