EvilEngine/DYNA/effect:ScreenFade: Difference between revisions
< EvilEngine | DYNA
Content added Content deleted
No edit summary |
m (Seil moved page DYNA/effect:ScreenFade to EvilEngine/DYNA/effect:ScreenFade) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 3: | Line 3: | ||
{{#vardefine:version|1}}<nowiki/> |
{{#vardefine:version|1}}<nowiki/> |
||
{{#vardefine:hash|0x9535DB9D}}<nowiki/> |
{{#vardefine:hash|0x9535DB9D}}<nowiki/> |
||
{{#vardefine:games|TSSM ROTU}}<nowiki/> |
{{#vardefine:games|TSSM ROTU RatProto}}<nowiki/> |
||
{{#vardefine:sourcecode|}}<nowiki/> |
{{#vardefine:sourcecode|[https://github.com/seilweiss/incredibles/blob/main/src/Core/x/xScreenFade.cpp xScreenFade.cpp]}}<nowiki/> |
||
{{#vardefine:image|}}<nowiki/> |
{{#vardefine:image|}}<nowiki/> |
||
</onlyinclude> |
</onlyinclude> |
||
{{AutoDynaInfobox}} |
{{AutoDynaInfobox}} |
||
'''effect:ScreenFade''' fades the screen out to a specified color, waits, then fades the screen back in. |
|||
==Format== |
|||
<source lang=cpp> |
|||
struct asset_type : xDynAsset |
|||
{ |
|||
xColor_tag dest; |
|||
float32 fadeDownTime; |
|||
float32 waitTime; |
|||
float32 fadeUpTime; |
|||
}; |
|||
</source> |
|||
{| class="wikitable" |
{| class="wikitable" |
||
! Offset !! Type !! Variable !! Description |
! Offset !! Type !! Variable !! Description |
||
|- |
|- |
||
| 0x00 || |
| 0x00 || [[Color]] || '''dest''' || The color to fade the screen to. |
||
|- |
|- |
||
| 0x04 || float || ''' |
| 0x04 || float || '''fadeDownTime''' || How long it takes to fade out. |
||
|- |
|- |
||
| 0x08 || float || ''' |
| 0x08 || float || '''waitTime''' || How long to wait before fading back in. |
||
|- |
|- |
||
| 0x0C || float || ''' |
| 0x0C || float || '''fadeUpTime''' || How long it takes to fade in. |
||
|} |
|} |
||
==Events== |
|||
===Start Fade=== |
|||
Starts the screen fade. |
|||
===Reset=== |
|||
Resets the screen fade. |
|||
{{DynaAssets}} |
{{DynaAssets}} |
Latest revision as of 22:39, 15 September 2022
effect:ScreenFade | |
---|---|
Version | 1 |
Hash | 0x9535DB9D |
Games used | The SpongeBob SquarePants Movie Ratatouille Prototype |
Source code | xScreenFade.cpp |
effect:ScreenFade fades the screen out to a specified color, waits, then fades the screen back in.
Format
struct asset_type : xDynAsset
{
xColor_tag dest;
float32 fadeDownTime;
float32 waitTime;
float32 fadeUpTime;
};
Offset | Type | Variable | Description |
---|---|---|---|
0x00 | Color | dest | The color to fade the screen to. |
0x04 | float | fadeDownTime | How long it takes to fade out. |
0x08 | float | waitTime | How long to wait before fading back in. |
0x0C | float | fadeUpTime | How long it takes to fade in. |
Events
Start Fade
Starts the screen fade.
Reset
Resets the screen fade.