-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7c82c63
commit c6f2e7e
Showing
32 changed files
with
687 additions
and
12 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// new module script | ||
Timer * tVisibleFalseAfter; | ||
|
||
void CustomTransition_IntantFadeIn(){ | ||
gBloodTransition.Visible = false; | ||
gBloodTransition.Transparency = 100; | ||
gCustomTransition.Visible = false; | ||
gCustomTransition.Transparency = 100; | ||
} | ||
|
||
void CustomTransition_IntantFadeOut(){ | ||
gBloodTransition.Visible = false; | ||
gBloodTransition.Transparency = 100; | ||
gCustomTransition.Visible = true; | ||
gCustomTransition.Transparency = 0; | ||
} | ||
|
||
void CustomTransition_FadeIn(float ftime , TweenStyle blocking, float delay){ | ||
if(FloatToInt(ftime) == 0){ | ||
ftime = 0.3; | ||
} | ||
if (!Game.SkippingCutscene){ | ||
gBloodTransition.Transparency = 100; | ||
gBloodTransition.Visible = false; | ||
gCustomTransition.Transparency = 0; | ||
gCustomTransition.Visible = true; | ||
tVisibleFalseAfter = Timer.StartRT(ftime+delay, eOnce); | ||
gCustomTransition.TweenTransparency(ftime, 100, eEaseLinearTween, blocking, delay); | ||
} else { | ||
CustomTransition_IntantFadeIn(); | ||
} | ||
|
||
} | ||
|
||
void CustomTransition_FadeOut(float ftime , TweenStyle blocking, float delay){ | ||
if(FloatToInt(ftime) == 0){ | ||
ftime = 0.3; | ||
} | ||
if (!Game.SkippingCutscene){ | ||
gBloodTransition.Transparency = 0; | ||
gBloodTransition.Visible = true; | ||
gBloodTransition.X = 0; | ||
gBloodTransition.Y = -800; | ||
gCustomTransition.Transparency = 100; | ||
gCustomTransition.Visible = true; | ||
gBloodTransition.TweenY(ftime/2.0, 0, eEaseLinearTween, blocking, delay); | ||
gCustomTransition.TweenTransparency(ftime/2.0, 0, eEaseLinearTween, blocking); | ||
} else { | ||
CustomTransition_IntantFadeOut(); | ||
} | ||
} | ||
function repeatedly_execute_always() { | ||
if(IsGamePaused() == 1 || !System.HasInputFocus){ | ||
return; | ||
} | ||
|
||
if(tVisibleFalseAfter!=null){ | ||
if(tVisibleFalseAfter.EvtExpired){ | ||
tVisibleFalseAfter=null; | ||
gCustomTransition.Visible = false; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// new module header | ||
import void CustomTransition_FadeIn(float ftime = 0, TweenStyle blocking = eNoBlockTween, float delay = 0); | ||
import void CustomTransition_IntantFadeIn(); | ||
import void CustomTransition_FadeOut(float ftime = 0, TweenStyle blocking = eNoBlockTween, float delay = 0); | ||
import void CustomTransition_IntantFadeOut(); |
Oops, something went wrong.