|
|
|
@ -183,15 +183,17 @@ public: |
|
|
|
|
|
|
|
|
|
TestCutscene=new Cutscene({ |
|
|
|
|
(CutsceneAction*)new Fade(), |
|
|
|
|
(CutsceneAction*)new Fade(true), |
|
|
|
|
(CutsceneAction*)new SetFlagWhenCutsceneEnds(Flag::TEST_FLAG1), |
|
|
|
|
(CutsceneAction*)new PanCamera({128,128},BOTH), |
|
|
|
|
(CutsceneAction*)new PanCamera({128,0},BOTH), |
|
|
|
|
(CutsceneAction*)new CreateObjects({ |
|
|
|
|
new Object(PLAYER,"player",{64,64},ANIMATIONS["player.png"],{1,1},MAGENTA), |
|
|
|
|
new Object(PLAYER,"player",{136,136},ANIMATIONS["player.png"],{1,1},RED), |
|
|
|
|
new Object(PLAYER,"player",{96,96},ANIMATIONS["player.png"],{1,1},DARK_GREEN), |
|
|
|
|
}),}); |
|
|
|
|
}), |
|
|
|
|
(CutsceneAction*)new Fade(true), |
|
|
|
|
(CutsceneAction*)new SetFlagWhenCutsceneEnds(Flag::TEST_FLAG1), |
|
|
|
|
(CutsceneAction*)new PanCamera({128,128},BOTH), |
|
|
|
|
(CutsceneAction*)new PanCamera({64,0},BOTH), |
|
|
|
|
(CutsceneAction*)new DialogBox(R"(Hello! |
|
|
|
|
This is a test message that lets us trigger straight from a cutscene! Cool!)"),}); |
|
|
|
|
|
|
|
|
|
/*DisplayMessageBox(R"(Hello World!
|
|
|
|
|
This is a rather long message, but I hope it reaches you well
|
|
|
|
@ -307,6 +309,15 @@ goes on a very long time, I hope you can understand this is only for testing pur |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}break; |
|
|
|
|
case ActionType::DIALOG:{ |
|
|
|
|
if (!((DialogBox*)CurrentCutscene->GetAction())->MessageHasBeenShown()) { |
|
|
|
|
DisplayMessageBox(((DialogBox*)CurrentCutscene->GetAction())->GetMessage()); |
|
|
|
|
((DialogBox*)CurrentCutscene->GetAction())->SetMessageBoxVisible(); |
|
|
|
|
} else
|
|
|
|
|
if (!messageBoxVisible) { |
|
|
|
|
CurrentCutscene->AdvanceAction(); |
|
|
|
|
} |
|
|
|
|
}break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|