Add question about video opening
This commit is contained in:
44
Update/&opening.txt
Normal file
44
Update/&opening.txt
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
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] = "Yes";
|
||||||
|
Item[1] = "No";
|
||||||
|
} else {
|
||||||
|
Item[0] = "はい";
|
||||||
|
Item[1] = "いいえ";
|
||||||
|
}
|
||||||
|
|
||||||
|
Select( 2, Item );
|
||||||
|
|
||||||
|
if (LoadValueFromLocalWork(SelectResult) == 0) {
|
||||||
|
SetGlobalFlag(GVideoOpening, 2);
|
||||||
|
} else {
|
||||||
|
SetGlobalFlag(GVideoOpening, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void OpeningLaunch()
|
||||||
|
{
|
||||||
|
if (GetGlobalFlag(GVideoOpening) >= 3) {
|
||||||
|
ModPlayMovie("mv01");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void OpeningStory()
|
||||||
|
{
|
||||||
|
if (GetGlobalFlag(GVideoOpening) >= 2) {
|
||||||
|
SetGlobalFlag(GVideoOpening, 3);
|
||||||
|
ModPlayMovie("mv01");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
SetValidityOfSaving( FALSE );
|
SetValidityOfSaving( FALSE );
|
||||||
@@ -18,6 +18,8 @@ void BrandLogo()
|
|||||||
|
|
||||||
SetGlobalFlag(GFlag_FirstPlay, 1);
|
SetGlobalFlag(GFlag_FirstPlay, 1);
|
||||||
|
|
||||||
|
ModCallScriptSection("&opening", "OpeningQuestion");
|
||||||
|
|
||||||
DrawBG( "07thlogo", 1000, TRUE );
|
DrawBG( "07thlogo", 1000, TRUE );
|
||||||
Wait( 2000 );
|
Wait( 2000 );
|
||||||
DrawSceneWithMask( "mangagamer", "logomask", 0, 0, 1000 );
|
DrawSceneWithMask( "mangagamer", "logomask", 0, 0, 1000 );
|
||||||
@@ -26,7 +28,7 @@ void BrandLogo()
|
|||||||
|
|
||||||
DrawSceneWithMask( "black", "logomask", 0, 0, 1000 );
|
DrawSceneWithMask( "black", "logomask", 0, 0, 1000 );
|
||||||
|
|
||||||
ModPlayMovie("mv01");
|
ModCallScriptSection("&opening", "OpeningLaunch");
|
||||||
}
|
}
|
||||||
|
|
||||||
void Title()
|
void Title()
|
||||||
|
|||||||
@@ -544,7 +544,5 @@ void main()
|
|||||||
|
|
||||||
//return
|
//return
|
||||||
|
|
||||||
|
ModCallScriptSection("&opening", "OpeningStory");
|
||||||
SetValidityOfInput( TRUE );
|
|
||||||
ModPlayMovie("mv01");
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user