diff --git a/Update/&opening.txt b/Update/&opening.txt new file mode 100644 index 0000000..c738b45 --- /dev/null +++ b/Update/&opening.txt @@ -0,0 +1,46 @@ +void main() +{ +} + +void OpeningQuestion() +{ + if (GetGlobalFlag(GVideoOpening) == 0) { + OutputLine(NULL, "オープニング動画は多少のネタバレ要素を含んでいますが、再生を有効にしますか?", + NULL, "Video opening might contain minor spoilers. Do you want to enable it anyway?", Line_Normal); + + char Item[2]; + + if (GetGlobalFlag(GLanguage) == 1) { + Item[0] = "Enable opening"; + Item[1] = "Disable opening"; + } else { + Item[0] = "動画再生を有効化"; + Item[1] = "動画再生を無効化"; + } + + Select( 2, Item ); + + if (LoadValueFromLocalWork(SelectResult) == 0) { + SetGlobalFlag(GVideoOpening, 2); + } else { + SetGlobalFlag(GVideoOpening, 1); + } + + DisableWindow(); + } +} + +void OpeningLaunch() +{ + if (GetGlobalFlag(GVideoOpening) >= 3) { + ModPlayMovie("mv03"); + } +} + +void OpeningStory() +{ + if (GetGlobalFlag(GVideoOpening) >= 2) { + SetGlobalFlag(GVideoOpening, 3); + ModPlayMovie("mv03"); + } +} diff --git a/Update/_mina_op.txt b/Update/_mina_op.txt index 5851239..4d64edf 100644 --- a/Update/_mina_op.txt +++ b/Update/_mina_op.txt @@ -2393,4 +2393,6 @@ void main() Wait( 5000 ); SetValidityOfInput( TRUE ); SetSpeedOfMessage( FALSE, 0 ); + + ModCallScriptSection("&opening", "OpeningStory"); } diff --git a/Update/flow.txt b/Update/flow.txt index b4bfe82..b6994a4 100644 --- a/Update/flow.txt +++ b/Update/flow.txt @@ -18,13 +18,17 @@ void BrandLogo() SetGlobalFlag(GFlag_FirstPlay, 1); + ModCallScriptSection("&opening", "OpeningQuestion"); + DrawBG( "07thlogo", 1000, TRUE ); Wait( 2000 ); DrawSceneWithMask( "mangagamer", "logomask", 0, 0, 1000 ); - Wait( 2000 ); - + DrawSceneWithMask( "07th-mod", "logomask", 0, 0, 1000 ); + Wait( 2000 ); DrawSceneWithMask( "black", "logomask", 0, 0, 1000 ); + + ModCallScriptSection("&opening", "OpeningLaunch"); } void Title()