VN textbox event
This commit is contained in:
@@ -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;", "");
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user