VN textbox event

This commit is contained in:
2023-05-21 15:11:51 -07:00
parent a64df032e2
commit a6ecdfd84d
11 changed files with 42 additions and 35 deletions

View File

@@ -168,10 +168,8 @@ void VNSceneGen::generate(
// Events
classInfo.includes.push_back("games/vn/components/VNManager.hpp");
classInfo.includes.push_back("games/vn/events/VNDummyEvent.hpp");
line(&methodInit.body, "auto vnItem = this->createSceneItem();", "");
line(&methodInit.body, "auto vnManager = vnItem->addComponent<VNManager>();", "");
line(&methodInit.body, "assertNotNull(vnManager);", "");
line(&methodInit.body, "VNEvent *previous = vnManager->createEvent<VNDummyEvent>();", "");
line(&methodInit.body, "auto eventStart = previous;", "");

View File

@@ -29,8 +29,6 @@ int32_t VNSceneEventsParser::onParse(
Xml *child = *itChildren;
struct VNSceneEvent event;
std::cout << "CHILD: " << child->node << std::endl;
// Parse event(s)
if(child->node == "text") {
event.type = VN_SCENE_EVENT_TYPE_TEXT;