Skip to content

Commit

Permalink
Add PS3 opening
Browse files Browse the repository at this point in the history
  • Loading branch information
enumag committed Aug 7, 2019
1 parent 2d996e8 commit 7884a14
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 2 deletions.
46 changes: 46 additions & 0 deletions Update/&opening.txt
Original file line number Diff line number Diff line change
@@ -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");
}
}
2 changes: 2 additions & 0 deletions Update/_mina_op.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2393,4 +2393,6 @@ void main()
Wait( 5000 );
SetValidityOfInput( TRUE );
SetSpeedOfMessage( FALSE, 0 );

ModCallScriptSection("&opening", "OpeningStory");
}
8 changes: 6 additions & 2 deletions Update/flow.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7884a14

Please sign in to comment.