Dawn/src/dawn/visualnovel/events/VisualNovelTextboxEvent.cpp
2022-11-19 13:42:04 -08:00

28 lines
616 B
C++

// Copyright (c) 2022 Dominic Masters
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#include "VisualNovelTextboxEvent.hpp"
using namespace Dawn;
VisualNovelTextboxEvent::VisualNovelTextboxEvent(
VisualNovelManager *manager,
std::string text
) : IVisualNovelEvent(manager) {
this->text = text;
}
void VisualNovelTextboxEvent::onStart() {
this->manager->textBox->setText(this->text);
this->manager->textBox->show();
}
bool_t VisualNovelTextboxEvent::onUpdate() {
return this->manager->textBox->isVisible();
}
void VisualNovelTextboxEvent::onEnd() {
}