diff options
| author | Dragorn421 <Dragorn421@users.noreply.github.com> | 2024-09-18 14:11:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-18 08:11:21 -0400 |
| commit | dc2ceb33f31fd26aa35f5fddbda0eeedd3297bb3 (patch) | |
| tree | 5b006bd82b7b20edc64bf8d585adf1661677fdcf /src/code/z_kaleido_setup.c | |
| parent | 306abef46b9af0cc17b2e2a049df9ff2acd5e9a4 (diff) | |
Pause doc: Pages drawing (#2190)
* name main fields and regs for pages drawing
* comments
* format
* more comments
* roll -> pitch (oops)
* Document `PauseContext.offsetY`, `R_PAUSE_OFFSET_VERTICAL` as "y origin 1/2"
* copypaste comment on page pitches fields
* "offset depth" -> "depth offset"
* review
Diffstat (limited to 'src/code/z_kaleido_setup.c')
| -rw-r--r-- | src/code/z_kaleido_setup.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/code/z_kaleido_setup.c b/src/code/z_kaleido_setup.c index 1e5407165..1079cd083 100644 --- a/src/code/z_kaleido_setup.c +++ b/src/code/z_kaleido_setup.c @@ -112,7 +112,7 @@ void KaleidoSetup_Update(PlayState* play) { } if (pauseCtx->state == PAUSE_STATE_WAIT_LETTERBOX) { - WREG(2) = -6240; + R_PAUSE_PAGES_Y_ORIGIN_2 = PAUSE_PAGES_Y_ORIGIN_2_LOWER; R_UPDATE_RATE = 2; if (Letterbox_GetSizeTarget() != 0) { @@ -132,15 +132,15 @@ void KaleidoSetup_Init(PlayState* play) { pauseCtx->eye.x = pauseCtx->eye.y = 0.0f; pauseCtx->eye.z = 64.0f; - pauseCtx->unk_1F0 = 936.0f; - pauseCtx->unk_1F4 = pauseCtx->unk_1F8 = pauseCtx->unk_1FC = pauseCtx->unk_200 = 160.0f; + pauseCtx->promptDepthOffset = 936.0f; + pauseCtx->itemPagePitch = pauseCtx->equipPagePitch = pauseCtx->mapPagePitch = pauseCtx->questPagePitch = 160.0f; pauseCtx->alpha = 0; // mainState = PAUSE_MAIN_STATE_IDLE , pageIndex = PAUSE_ITEM pauseCtx->pageSwitchTimer = pauseCtx->mainState = pauseCtx->nextPageMode = pauseCtx->pageIndex = 0; - pauseCtx->unk_204 = -314.0f; + pauseCtx->promptPitch = -314.0f; pauseCtx->cursorPoint[PAUSE_ITEM] = 0; pauseCtx->cursorPoint[PAUSE_MAP] = VREG(30) + 3; |
