diff options
| author | Garrett Cox <garrettjcox@gmail.com> | 2022-11-02 21:07:10 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-02 22:07:10 -0400 |
| commit | c5940905e76b73a28e832257772ffb74fef785db (patch) | |
| tree | e3f441a0ff2f21f788988eaa37407a8b728306a4 /soh/src/code | |
| parent | 4156a1d2c7aed10df1973dce5d844c6498331b2f (diff) | |
Add glitch line-up tick option (#1875)
Diffstat (limited to 'soh/src/code')
| -rw-r--r-- | soh/src/code/z_parameter.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/soh/src/code/z_parameter.c b/soh/src/code/z_parameter.c index c37586cce..8f4497c8b 100644 --- a/soh/src/code/z_parameter.c +++ b/soh/src/code/z_parameter.c @@ -3433,6 +3433,28 @@ void Interface_UpdateMagicBar(GlobalContext* globalCtx) { } } +void Interface_DrawLineupTick(GlobalContext* globalCtx) { + InterfaceContext* interfaceCtx = &globalCtx->interfaceCtx; + + OPEN_DISPS(globalCtx->state.gfxCtx); + + func_80094520(globalCtx->state.gfxCtx); + + gDPSetEnvColor(OVERLAY_DISP++, 255, 255, 255, 255); + gDPSetPrimColor(OVERLAY_DISP++, 0, 0, 255, 255, 255, 255); + + s16 width = 32; + s16 height = 32; + s16 x = -8 + (SCREEN_WIDTH / 2); + s16 y = CVar_GetS32("gOpenMenuBar", 0) ? -4 : -6; + + OVERLAY_DISP = Gfx_TextureIA8(OVERLAY_DISP, gEmptyCDownArrowTex, width, height, x, y, width, height, 2 << 10, 2 << 10); + + gDPPipeSync(OVERLAY_DISP++); + + CLOSE_DISPS(globalCtx->state.gfxCtx); +} + void Interface_DrawMagicBar(GlobalContext* globalCtx) { InterfaceContext* interfaceCtx = &globalCtx->interfaceCtx; s16 magicDrop = R_MAGIC_BAR_LARGE_Y-R_MAGIC_BAR_SMALL_Y+2; @@ -5049,6 +5071,10 @@ void Interface_Draw(GlobalContext* globalCtx) { gDPSetEnvColor(OVERLAY_DISP++, 0, 0, 0, 0); } + if (CVar_GetS32("gDrawLineupTick", 1)) { + Interface_DrawLineupTick(globalCtx); + } + if (fullUi || gSaveContext.unk_13F0 > 0) { Interface_DrawMagicBar(globalCtx); } |
