mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-06 07:56:32 +00:00
Add enum for setup dls and name z_rcp.c
functions (#1196)
* Introduce `SetupDL` enum * wip * wip * Remove comments on each setupdl index * Name setup dl functions by setupdl index * `Gfx_SetupDl` -> `Gfx_SetupDL` * Run formatter * globalctx -> play * fix regressions * `Gfx_SetupDL` -> `Gfx_SetupDL_` (add separating underscore) * `CallSetupDL` -> `SetupDL`
This commit is contained in:
parent
4775fd4a7e
commit
1a41694d58
376 changed files with 1047 additions and 971 deletions
|
@ -2609,7 +2609,7 @@ void Magic_DrawMeter(PlayState* play) {
|
|||
magicMeterY = R_MAGIC_METER_Y_HIGHER; // one row of hearts
|
||||
}
|
||||
|
||||
func_80094520(play->state.gfxCtx);
|
||||
Gfx_SetupDL_39Overlay(play->state.gfxCtx);
|
||||
|
||||
gDPSetPrimColor(OVERLAY_DISP++, 0, 0, sMagicBorderR, sMagicBorderG, sMagicBorderB, interfaceCtx->magicAlpha);
|
||||
gDPSetEnvColor(OVERLAY_DISP++, 100, 50, 50, 255);
|
||||
|
@ -3097,7 +3097,7 @@ void Interface_Draw(PlayState* play) {
|
|||
func_8008A994(interfaceCtx);
|
||||
Health_DrawMeter(play);
|
||||
|
||||
func_80094520(play->state.gfxCtx);
|
||||
Gfx_SetupDL_39Overlay(play->state.gfxCtx);
|
||||
|
||||
// Rupee Icon
|
||||
gDPSetPrimColor(OVERLAY_DISP++, 0, 0, 200, 255, 100, interfaceCtx->magicAlpha);
|
||||
|
@ -3206,7 +3206,7 @@ void Interface_Draw(PlayState* play) {
|
|||
func_8002C124(&play->actorCtx.targetCtx, play); // Draw Z-Target
|
||||
}
|
||||
|
||||
func_80094520(play->state.gfxCtx);
|
||||
Gfx_SetupDL_39Overlay(play->state.gfxCtx);
|
||||
|
||||
Interface_DrawItemButtons(play);
|
||||
|
||||
|
@ -3286,7 +3286,7 @@ void Interface_Draw(PlayState* play) {
|
|||
}
|
||||
|
||||
// A Button
|
||||
func_80094A14(play->state.gfxCtx);
|
||||
Gfx_SetupDL_42Overlay(play->state.gfxCtx);
|
||||
func_8008A8B8(play, R_A_BTN_Y, R_A_BTN_Y + 45, R_A_BTN_X, R_A_BTN_X + 45);
|
||||
gSPClearGeometryMode(OVERLAY_DISP++, G_CULL_BOTH);
|
||||
gDPSetCombineMode(OVERLAY_DISP++, G_CC_MODULATEIA_PRIM, G_CC_MODULATEIA_PRIM);
|
||||
|
@ -3320,7 +3320,7 @@ void Interface_Draw(PlayState* play) {
|
|||
if ((pauseCtx->state == 6) && (pauseCtx->unk_1E4 == 3)) {
|
||||
// Inventory Equip Effects
|
||||
gSPSegment(OVERLAY_DISP++, 0x08, pauseCtx->iconItemSegment);
|
||||
func_80094A14(play->state.gfxCtx);
|
||||
Gfx_SetupDL_42Overlay(play->state.gfxCtx);
|
||||
gDPSetCombineMode(OVERLAY_DISP++, G_CC_MODULATERGBA_PRIM, G_CC_MODULATERGBA_PRIM);
|
||||
gSPMatrix(OVERLAY_DISP++, &gMtxClear, G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||
|
||||
|
@ -3366,7 +3366,7 @@ void Interface_Draw(PlayState* play) {
|
|||
gSP1Quadrangle(OVERLAY_DISP++, 0, 2, 3, 1, 0);
|
||||
}
|
||||
|
||||
func_80094520(play->state.gfxCtx);
|
||||
Gfx_SetupDL_39Overlay(play->state.gfxCtx);
|
||||
|
||||
if ((play->pauseCtx.state == 0) && (play->pauseCtx.debugState == 0)) {
|
||||
if (gSaveContext.minigameState != 1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue