1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-17 04:20:44 +00:00

Doc shrink_window, rename system to Letterbox (#1341)

* docs

* missed some hex

* document Gfx_SetupFrame

* review
This commit is contained in:
fig02 2022-08-15 09:39:06 -04:00 committed by GitHub
parent dda78f9e2c
commit fec5cd84af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 134 additions and 107 deletions

View file

@ -790,7 +790,7 @@ void BossMo_Tentacle(BossMo* this, PlayState* play) {
tent_shake:
case MO_TENT_SHAKE:
if (this->timers[0] == 138) {
ShrinkWindow_SetVal(0);
Letterbox_SetSizeTarget(0);
Interface_ChangeAlpha(0xB);
}
if ((this->timers[0] % 8) == 0) {

View file

@ -470,7 +470,7 @@ void func_80A79C78(EnIn* this, PlayState* play) {
}
player->actor.freezeTimer = 10;
this->actor.flags &= ~ACTOR_FLAG_0;
ShrinkWindow_SetVal(0x20);
Letterbox_SetSizeTarget(32);
Interface_ChangeAlpha(2);
}
@ -791,7 +791,7 @@ void func_80A7AA40(EnIn* this, PlayState* play) {
this->unk_308.unk_00 = 1;
this->unk_1FC = 0;
play->csCtx.frames = 0;
ShrinkWindow_SetVal(0x20);
Letterbox_SetSizeTarget(32);
Interface_ChangeAlpha(2);
this->actionFunc = func_80A7ABD4;
}

View file

@ -180,7 +180,7 @@ void func_80B4B010(EnZl1* this, PlayState* play) {
play->envCtx.fillScreen = true;
Play_CameraSetAtEye(play, this->subCamId, &subCamAt, &subCamEye);
Play_CameraSetFov(play, this->subCamId, 30.0f);
ShrinkWindow_SetVal(0x20);
Letterbox_SetSizeTarget(32);
Interface_ChangeAlpha(2);
player->actor.world.pos = playerPos;
player->actor.speedXZ = 0.0f;

View file

@ -329,7 +329,7 @@ s32 EnZl4_SetupFromLegendCs(EnZl4* this, PlayState* play) {
player->linearVelocity = playerx->speedXZ = 0.0f;
EnZl4_SetActiveCamMove(play, 5);
ShrinkWindow_SetVal(0x20);
Letterbox_SetSizeTarget(32);
Interface_ChangeAlpha(2);
this->talkTimer2 = 0;
return true;
@ -1151,7 +1151,7 @@ void EnZl4_Cutscene(EnZl4* this, PlayState* play) {
Audio_PlayFanfare(NA_BGM_APPEAR);
EnZl4_SetActiveCamDir(play, 0);
Interface_ChangeAlpha(2);
ShrinkWindow_SetVal(0x20);
Letterbox_SetSizeTarget(32);
this->talkState = 0;
this->csState++;
break;

View file

@ -5246,7 +5246,7 @@ void Fishing_UpdateOwner(Actor* thisx, PlayState* play2) {
}
case 2:
ShrinkWindow_SetVal(0x1B);
Letterbox_SetSizeTarget(27);
spFC.x = sLurePos.x - player->actor.world.pos.x;
spFC.z = sLurePos.z - player->actor.world.pos.z;

View file

@ -2972,7 +2972,7 @@ void func_80836448(PlayState* play, Player* this, LinkAnimationHeader* anim) {
}
OnePointCutscene_Init(play, 9806, cond ? 120 : 60, &this->actor, CAM_ID_MAIN);
ShrinkWindow_SetVal(0x20);
Letterbox_SetSizeTarget(32);
}
}