mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-12 10:54:44 +00:00
TransitionFade docs and clean up other transitions (#1459)
* TransitionFade docs * PR suggestions * Fix * Fill * Other transitions + enums * Prefix transition assests with trans * Fix end_title * format * OutNames * nitpicks PR * cleaner
This commit is contained in:
parent
1c6878b070
commit
4a9873775c
14 changed files with 186 additions and 146 deletions
|
@ -198,7 +198,7 @@ void Play_Destroy(GameState* thisx) {
|
|||
}
|
||||
|
||||
Letterbox_Destroy();
|
||||
TransitionFade_Destroy(&this->transitionFade);
|
||||
TransitionFade_Destroy(&this->transitionFadeFlash);
|
||||
VisMono_Destroy(&D_80161498);
|
||||
|
||||
if (gSaveContext.linkAge != this->linkAgeOnLoad) {
|
||||
|
@ -386,10 +386,10 @@ void Play_Init(GameState* thisx) {
|
|||
}
|
||||
|
||||
Letterbox_Init();
|
||||
TransitionFade_Init(&this->transitionFade);
|
||||
TransitionFade_SetType(&this->transitionFade, 3);
|
||||
TransitionFade_SetColor(&this->transitionFade, RGBA8(160, 160, 160, 255));
|
||||
TransitionFade_Start(&this->transitionFade);
|
||||
TransitionFade_Init(&this->transitionFadeFlash);
|
||||
TransitionFade_SetType(&this->transitionFadeFlash, TRANS_INSTANCE_TYPE_FADE_FLASH);
|
||||
TransitionFade_SetColor(&this->transitionFadeFlash, RGBA8(160, 160, 160, 255));
|
||||
TransitionFade_Start(&this->transitionFadeFlash);
|
||||
VisMono_Init(&D_80161498);
|
||||
D_801614B0.a = 0;
|
||||
Flags_UnsetAllEnv(this);
|
||||
|
@ -609,9 +609,9 @@ void Play_Update(PlayState* this) {
|
|||
}
|
||||
|
||||
if (this->transitionTrigger == TRANS_TRIGGER_END) {
|
||||
this->transitionCtx.setType(&this->transitionCtx.instanceData, 1);
|
||||
this->transitionCtx.setType(&this->transitionCtx.instanceData, TRANS_INSTANCE_TYPE_FILL_OUT);
|
||||
} else {
|
||||
this->transitionCtx.setType(&this->transitionCtx.instanceData, 2);
|
||||
this->transitionCtx.setType(&this->transitionCtx.instanceData, TRANS_INSTANCE_TYPE_FILL_IN);
|
||||
}
|
||||
|
||||
this->transitionCtx.start(&this->transitionCtx.instanceData);
|
||||
|
@ -970,7 +970,7 @@ void Play_Update(PlayState* this) {
|
|||
Letterbox_Update(R_UPDATE_RATE);
|
||||
|
||||
PLAY_LOG(3783);
|
||||
TransitionFade_Update(&this->transitionFade, R_UPDATE_RATE);
|
||||
TransitionFade_Update(&this->transitionFadeFlash, R_UPDATE_RATE);
|
||||
} else {
|
||||
goto skip;
|
||||
}
|
||||
|
@ -1094,7 +1094,7 @@ void Play_Draw(PlayState* this) {
|
|||
this->transitionCtx.draw(&this->transitionCtx.instanceData, &gfxP);
|
||||
}
|
||||
|
||||
TransitionFade_Draw(&this->transitionFade, &gfxP);
|
||||
TransitionFade_Draw(&this->transitionFadeFlash, &gfxP);
|
||||
|
||||
if (D_801614B0.a > 0) {
|
||||
D_80161498.primColor.rgba = D_801614B0.rgba;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue