1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-03 06:24:30 +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);
}
}

View file

@ -1606,7 +1606,7 @@ void FileSelect_Main(GameState* thisx) {
gSPSegment(POLY_OPA_DISP++, 0x01, this->staticSegment);
gSPSegment(POLY_OPA_DISP++, 0x02, this->parameterSegment);
func_80095248(this->state.gfxCtx, 0, 0, 0);
Gfx_SetupFrame(this->state.gfxCtx, 0, 0, 0);
this->stickRelX = input->rel.stick_x;
this->stickRelY = input->rel.stick_y;
@ -1825,7 +1825,7 @@ void FileSelect_InitContext(GameState* thisx) {
this->unk_1CAD6[3] = 8;
this->unk_1CAD6[4] = 10;
ShrinkWindow_SetVal(0);
Letterbox_SetSizeTarget(0);
gSaveContext.skyboxTime = CLOCK_TIME(0, 0);
gSaveContext.dayTime = CLOCK_TIME(0, 0);

View file

@ -22,7 +22,7 @@ void func_80803C5C(TitleSetupState* this) {
void TitleSetup_Main(GameState* thisx) {
TitleSetupState* this = (TitleSetupState*)thisx;
func_80095248(this->state.gfxCtx, 0, 0, 0);
Gfx_SetupFrame(this->state.gfxCtx, 0, 0, 0);
TitleSetup_SetupTitleScreen(this);
func_80803C5C(this);
}

View file

@ -650,7 +650,7 @@ void MapSelect_DrawMenu(MapSelectState* this) {
OPEN_DISPS(gfxCtx, "../z_select.c", 930);
gSPSegment(POLY_OPA_DISP++, 0x00, NULL);
func_80095248(gfxCtx, 0, 0, 0);
Gfx_SetupFrame(gfxCtx, 0, 0, 0);
SET_FULLSCREEN_VIEWPORT(&this->view);
View_Apply(&this->view, VIEW_ALL);
Gfx_SetupDL_28Opa(gfxCtx);
@ -674,7 +674,7 @@ void MapSelect_DrawLoadingScreen(MapSelectState* this) {
OPEN_DISPS(gfxCtx, "../z_select.c", 977);
gSPSegment(POLY_OPA_DISP++, 0x00, NULL);
func_80095248(gfxCtx, 0, 0, 0);
Gfx_SetupFrame(gfxCtx, 0, 0, 0);
SET_FULLSCREEN_VIEWPORT(&this->view);
View_Apply(&this->view, VIEW_ALL);
Gfx_SetupDL_28Opa(gfxCtx);
@ -695,7 +695,7 @@ void MapSelect_Draw(MapSelectState* this) {
OPEN_DISPS(gfxCtx, "../z_select.c", 1013);
gSPSegment(POLY_OPA_DISP++, 0x00, NULL);
func_80095248(gfxCtx, 0, 0, 0);
Gfx_SetupFrame(gfxCtx, 0, 0, 0);
SET_FULLSCREEN_VIEWPORT(&this->view);
View_Apply(&this->view, VIEW_ALL);

View file

@ -124,7 +124,7 @@ void ConsoleLogo_Main(GameState* thisx) {
gSPSegment(POLY_OPA_DISP++, 0, NULL);
gSPSegment(POLY_OPA_DISP++, 1, this->staticSegment);
func_80095248(this->state.gfxCtx, 0, 0, 0);
Gfx_SetupFrame(this->state.gfxCtx, 0, 0, 0);
ConsoleLogo_Calc(this);
ConsoleLogo_Draw(this);