// 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() { }