mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-25 09:45:02 +00:00
[ntsc-1.2] Match kaleido_collect.c, kaleido_scope.c (#2070)
* Match kaleido_{collect,scope} * review
This commit is contained in:
parent
9b409f5ff4
commit
b40e51d8c8
4 changed files with 113 additions and 60 deletions
|
@ -25,7 +25,8 @@ typedef struct n64ddStruct_80121AF0 {
|
||||||
char unk_08[0x34];
|
char unk_08[0x34];
|
||||||
void (*unk_3C)(void);
|
void (*unk_3C)(void);
|
||||||
void (*unk_40)(void);
|
void (*unk_40)(void);
|
||||||
char unk_44[0x28];
|
s32 (*unk_44)(struct PlayState*);
|
||||||
|
char unk_48[0x24];
|
||||||
void (*unk_6C)(struct PlayState*, SceneDrawConfigFunc*);
|
void (*unk_6C)(struct PlayState*, SceneDrawConfigFunc*);
|
||||||
} n64ddStruct_80121AF0; // size = ?
|
} n64ddStruct_80121AF0; // size = ?
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,16 @@
|
||||||
#include "assets/textures/parameter_static/parameter_static.h"
|
#include "assets/textures/parameter_static/parameter_static.h"
|
||||||
#include "assets/textures/icon_item_static/icon_item_static.h"
|
#include "assets/textures/icon_item_static/icon_item_static.h"
|
||||||
|
|
||||||
|
#if PLATFORM_N64
|
||||||
|
#define KALEIDO_COLOR_COLLECT_UNK_R 80
|
||||||
|
#define KALEIDO_COLOR_COLLECT_UNK_G 150
|
||||||
|
#define KALEIDO_COLOR_COLLECT_UNK_B 255
|
||||||
|
#else
|
||||||
|
#define KALEIDO_COLOR_COLLECT_UNK_R 80
|
||||||
|
#define KALEIDO_COLOR_COLLECT_UNK_G 255
|
||||||
|
#define KALEIDO_COLOR_COLLECT_UNK_B 150
|
||||||
|
#endif
|
||||||
|
|
||||||
void KaleidoScope_DrawQuestStatus(PlayState* play, GraphicsContext* gfxCtx) {
|
void KaleidoScope_DrawQuestStatus(PlayState* play, GraphicsContext* gfxCtx) {
|
||||||
static s16 D_8082A070[][4] = {
|
static s16 D_8082A070[][4] = {
|
||||||
{ 255, 0, 0, 255 },
|
{ 255, 0, 0, 255 },
|
||||||
|
@ -71,7 +81,7 @@ void KaleidoScope_DrawQuestStatus(PlayState* play, GraphicsContext* gfxCtx) {
|
||||||
s16 sp21A;
|
s16 sp21A;
|
||||||
s16 sp218;
|
s16 sp218;
|
||||||
s16 sp216;
|
s16 sp216;
|
||||||
s16 pad1;
|
s16 phi_s7;
|
||||||
s16 phi_v1;
|
s16 phi_v1;
|
||||||
s16 pad2;
|
s16 pad2;
|
||||||
s16 cursorItem;
|
s16 cursorItem;
|
||||||
|
@ -186,9 +196,9 @@ void KaleidoScope_DrawQuestStatus(PlayState* play, GraphicsContext* gfxCtx) {
|
||||||
pauseCtx->ocarinaSongIdx = gOcarinaSongItemMap[sp216 - QUEST_SONG_MINUET];
|
pauseCtx->ocarinaSongIdx = gOcarinaSongItemMap[sp216 - QUEST_SONG_MINUET];
|
||||||
D_8082A120 = 10;
|
D_8082A120 = 10;
|
||||||
|
|
||||||
for (phi_s3 = 0; phi_s3 < 8; phi_s3++) {
|
for (phi_s7 = 0; phi_s7 < 8; phi_s7++) {
|
||||||
D_8082A124[phi_s3] = 0xFF;
|
D_8082A124[phi_s7] = 0xFF;
|
||||||
D_8082A150[phi_s3] = 0;
|
D_8082A150[phi_s7] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
D_8082A11C = 0;
|
D_8082A11C = 0;
|
||||||
|
@ -267,9 +277,9 @@ void KaleidoScope_DrawQuestStatus(PlayState* play, GraphicsContext* gfxCtx) {
|
||||||
pauseCtx->cursorColorSet = 8;
|
pauseCtx->cursorColorSet = 8;
|
||||||
|
|
||||||
if (--D_8082A120 == 0) {
|
if (--D_8082A120 == 0) {
|
||||||
for (phi_s3 = 0; phi_s3 < 8; phi_s3++) {
|
for (phi_s7 = 0; phi_s7 < 8; phi_s7++) {
|
||||||
D_8082A124[phi_s3] = 0xFF;
|
D_8082A124[phi_s7] = 0xFF;
|
||||||
D_8082A150[phi_s3] = 0;
|
D_8082A150[phi_s7] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
D_8082A11C = 0;
|
D_8082A11C = 0;
|
||||||
|
@ -490,7 +500,7 @@ void KaleidoScope_DrawQuestStatus(PlayState* play, GraphicsContext* gfxCtx) {
|
||||||
D_8082A124[pauseCtx->ocarinaStaff->pos - 1] = pauseCtx->ocarinaStaff->buttonIndex;
|
D_8082A124[pauseCtx->ocarinaStaff->pos - 1] = pauseCtx->ocarinaStaff->buttonIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (sp218 = 0, phi_s3 = 0; sp218 < 8; sp218++, phi_s3 += 4, sp21A += 4) {
|
for (sp218 = 0, phi_s7 = 0; sp218 < 8; sp218++, phi_s7 += 4, sp21A += 4) {
|
||||||
if (D_8082A124[sp218] == 0xFF) {
|
if (D_8082A124[sp218] == 0xFF) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -511,7 +521,8 @@ void KaleidoScope_DrawQuestStatus(PlayState* play, GraphicsContext* gfxCtx) {
|
||||||
gDPPipeSync(POLY_OPA_DISP++);
|
gDPPipeSync(POLY_OPA_DISP++);
|
||||||
|
|
||||||
if (D_8082A124[sp218] == 0) {
|
if (D_8082A124[sp218] == 0) {
|
||||||
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 80, 255, 150, D_8082A150[sp218]);
|
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, KALEIDO_COLOR_COLLECT_UNK_R, KALEIDO_COLOR_COLLECT_UNK_G,
|
||||||
|
KALEIDO_COLOR_COLLECT_UNK_B, D_8082A150[sp218]);
|
||||||
} else {
|
} else {
|
||||||
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 255, 255, 50, D_8082A150[sp218]);
|
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 255, 255, 50, D_8082A150[sp218]);
|
||||||
}
|
}
|
||||||
|
@ -531,9 +542,9 @@ void KaleidoScope_DrawQuestStatus(PlayState* play, GraphicsContext* gfxCtx) {
|
||||||
sp224 = pauseCtx->ocarinaSongIdx;
|
sp224 = pauseCtx->ocarinaSongIdx;
|
||||||
sp226 = gOcarinaSongButtons[sp224].numButtons;
|
sp226 = gOcarinaSongButtons[sp224].numButtons;
|
||||||
|
|
||||||
for (sp218 = sp21A, phi_s3 = 0; phi_s3 < sp226; phi_s3++, sp21A += 4) {
|
for (sp218 = sp21A, phi_s7 = 0; phi_s7 < sp226; phi_s7++, sp21A += 4) {
|
||||||
pauseCtx->questVtx[sp21A + 0].v.ob[1] = pauseCtx->questVtx[sp21A + 1].v.ob[1] =
|
pauseCtx->questVtx[sp21A + 0].v.ob[1] = pauseCtx->questVtx[sp21A + 1].v.ob[1] =
|
||||||
VREG(21 + gOcarinaSongButtons[sp224].buttonsIndex[phi_s3]);
|
VREG(21 + gOcarinaSongButtons[sp224].buttonsIndex[phi_s7]);
|
||||||
|
|
||||||
pauseCtx->questVtx[sp21A + 2].v.ob[1] = pauseCtx->questVtx[sp21A + 3].v.ob[1] =
|
pauseCtx->questVtx[sp21A + 2].v.ob[1] = pauseCtx->questVtx[sp21A + 3].v.ob[1] =
|
||||||
pauseCtx->questVtx[sp21A + 0].v.ob[1] - 12;
|
pauseCtx->questVtx[sp21A + 0].v.ob[1] - 12;
|
||||||
|
@ -541,8 +552,9 @@ void KaleidoScope_DrawQuestStatus(PlayState* play, GraphicsContext* gfxCtx) {
|
||||||
gDPPipeSync(POLY_OPA_DISP++);
|
gDPPipeSync(POLY_OPA_DISP++);
|
||||||
|
|
||||||
if (pauseCtx->mainState == PAUSE_MAIN_STATE_8) {
|
if (pauseCtx->mainState == PAUSE_MAIN_STATE_8) {
|
||||||
if (gOcarinaSongButtons[sp224].buttonsIndex[phi_s3] == OCARINA_BTN_A) {
|
if (gOcarinaSongButtons[sp224].buttonsIndex[phi_s7] == OCARINA_BTN_A) {
|
||||||
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 80, 255, 150, 200);
|
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, KALEIDO_COLOR_COLLECT_UNK_R, KALEIDO_COLOR_COLLECT_UNK_G,
|
||||||
|
KALEIDO_COLOR_COLLECT_UNK_B, 200);
|
||||||
} else {
|
} else {
|
||||||
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 255, 255, 50, 200);
|
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 255, 255, 50, 200);
|
||||||
}
|
}
|
||||||
|
@ -554,7 +566,7 @@ void KaleidoScope_DrawQuestStatus(PlayState* play, GraphicsContext* gfxCtx) {
|
||||||
|
|
||||||
gSPVertex(POLY_OPA_DISP++, &pauseCtx->questVtx[sp21A], 4, 0);
|
gSPVertex(POLY_OPA_DISP++, &pauseCtx->questVtx[sp21A], 4, 0);
|
||||||
|
|
||||||
gDPLoadTextureBlock(POLY_OPA_DISP++, D_8082A130[gOcarinaSongButtons[sp224].buttonsIndex[phi_s3]],
|
gDPLoadTextureBlock(POLY_OPA_DISP++, D_8082A130[gOcarinaSongButtons[sp224].buttonsIndex[phi_s7]],
|
||||||
G_IM_FMT_IA, G_IM_SIZ_8b, 16, 16, 0, G_TX_NOMIRROR | G_TX_WRAP,
|
G_IM_FMT_IA, G_IM_SIZ_8b, 16, 16, 0, G_TX_NOMIRROR | G_TX_WRAP,
|
||||||
G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
||||||
|
|
||||||
|
@ -576,37 +588,38 @@ void KaleidoScope_DrawQuestStatus(PlayState* play, GraphicsContext* gfxCtx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
sp21A = sp218 + 32;
|
sp21A = sp218 + 32;
|
||||||
phi_s3 = 0;
|
phi_s7 = 0;
|
||||||
for (; phi_s3 < 8; phi_s3++, sp21A += 4) {
|
for (; phi_s7 < 8; phi_s7++, sp21A += 4) {
|
||||||
if (D_8082A124[phi_s3] == 0xFF) {
|
if (D_8082A124[phi_s7] == 0xFF) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (D_8082A150[phi_s3] != 255) {
|
if (D_8082A150[phi_s7] != 255) {
|
||||||
D_8082A150[phi_s3] += VREG(50);
|
D_8082A150[phi_s7] += VREG(50);
|
||||||
if (D_8082A150[phi_s3] >= 255) {
|
if (D_8082A150[phi_s7] >= 255) {
|
||||||
D_8082A150[phi_s3] = 255;
|
D_8082A150[phi_s7] = 255;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pauseCtx->questVtx[sp21A + 0].v.ob[1] = pauseCtx->questVtx[sp21A + 1].v.ob[1] =
|
pauseCtx->questVtx[sp21A + 0].v.ob[1] = pauseCtx->questVtx[sp21A + 1].v.ob[1] =
|
||||||
VREG(21 + D_8082A124[phi_s3]);
|
VREG(21 + D_8082A124[phi_s7]);
|
||||||
|
|
||||||
pauseCtx->questVtx[sp21A + 2].v.ob[1] = pauseCtx->questVtx[sp21A + 3].v.ob[1] =
|
pauseCtx->questVtx[sp21A + 2].v.ob[1] = pauseCtx->questVtx[sp21A + 3].v.ob[1] =
|
||||||
pauseCtx->questVtx[sp21A + 0].v.ob[1] - 12;
|
pauseCtx->questVtx[sp21A + 0].v.ob[1] - 12;
|
||||||
|
|
||||||
gDPPipeSync(POLY_OPA_DISP++);
|
gDPPipeSync(POLY_OPA_DISP++);
|
||||||
|
|
||||||
if (D_8082A124[phi_s3] == 0) {
|
if (D_8082A124[phi_s7] == 0) {
|
||||||
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 80, 255, 150, D_8082A150[phi_s3]);
|
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, KALEIDO_COLOR_COLLECT_UNK_R, KALEIDO_COLOR_COLLECT_UNK_G,
|
||||||
|
KALEIDO_COLOR_COLLECT_UNK_B, D_8082A150[phi_s7]);
|
||||||
} else {
|
} else {
|
||||||
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 255, 255, 50, D_8082A150[phi_s3]);
|
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 255, 255, 50, D_8082A150[phi_s7]);
|
||||||
}
|
}
|
||||||
|
|
||||||
gDPSetEnvColor(POLY_OPA_DISP++, 10, 10, 10, 0);
|
gDPSetEnvColor(POLY_OPA_DISP++, 10, 10, 10, 0);
|
||||||
|
|
||||||
gSPVertex(POLY_OPA_DISP++, &pauseCtx->questVtx[sp21A], 4, 0);
|
gSPVertex(POLY_OPA_DISP++, &pauseCtx->questVtx[sp21A], 4, 0);
|
||||||
|
|
||||||
gDPLoadTextureBlock(POLY_OPA_DISP++, D_8082A130[D_8082A124[phi_s3]], G_IM_FMT_IA, G_IM_SIZ_8b, 16,
|
gDPLoadTextureBlock(POLY_OPA_DISP++, D_8082A130[D_8082A124[phi_s7]], G_IM_FMT_IA, G_IM_SIZ_8b, 16,
|
||||||
16, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK,
|
16, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK,
|
||||||
G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
||||||
|
|
||||||
|
@ -614,9 +627,9 @@ void KaleidoScope_DrawQuestStatus(PlayState* play, GraphicsContext* gfxCtx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pauseCtx->mainState == PAUSE_MAIN_STATE_4) {
|
if (pauseCtx->mainState == PAUSE_MAIN_STATE_4) {
|
||||||
for (phi_s3 = 0; phi_s3 < 8; phi_s3++) {
|
for (phi_s7 = 0; phi_s7 < 8; phi_s7++) {
|
||||||
D_8082A124[phi_s3] = 0xFF;
|
D_8082A124[phi_s7] = 0xFF;
|
||||||
D_8082A150[phi_s3] = 0;
|
D_8082A150[phi_s7] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
D_8082A11C = 0;
|
D_8082A11C = 0;
|
||||||
|
@ -652,8 +665,8 @@ void KaleidoScope_DrawQuestStatus(PlayState* play, GraphicsContext* gfxCtx) {
|
||||||
|
|
||||||
gSPVertex(POLY_OPA_DISP++, &pauseCtx->questVtx[164], 24, 0);
|
gSPVertex(POLY_OPA_DISP++, &pauseCtx->questVtx[164], 24, 0);
|
||||||
|
|
||||||
for (phi_s3 = 0, sp218 = 0, sp21A = 0; phi_s3 < 2; phi_s3++) {
|
for (phi_s7 = 0, sp218 = 0, sp21A = 0; phi_s7 < 2; phi_s7++) {
|
||||||
if (phi_s3 == 0) {
|
if (phi_s7 == 0) {
|
||||||
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 0, 0, 0, pauseCtx->alpha);
|
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 0, 0, 0, pauseCtx->alpha);
|
||||||
} else if (gSaveContext.save.info.inventory.gsTokens == 100) {
|
} else if (gSaveContext.save.info.inventory.gsTokens == 100) {
|
||||||
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 200, 50, 50, pauseCtx->alpha);
|
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 200, 50, 50, pauseCtx->alpha);
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
#if PLATFORM_N64
|
||||||
|
#include "n64dd.h"
|
||||||
|
#endif
|
||||||
#include "z_kaleido_scope.h"
|
#include "z_kaleido_scope.h"
|
||||||
#include "assets/textures/icon_item_static/icon_item_static.h"
|
#include "assets/textures/icon_item_static/icon_item_static.h"
|
||||||
#include "assets/textures/icon_item_24_static/icon_item_24_static.h"
|
#include "assets/textures/icon_item_24_static/icon_item_24_static.h"
|
||||||
|
@ -12,6 +15,16 @@
|
||||||
#include "assets/textures/icon_item_gameover_static/icon_item_gameover_static.h"
|
#include "assets/textures/icon_item_gameover_static/icon_item_gameover_static.h"
|
||||||
#include "terminal.h"
|
#include "terminal.h"
|
||||||
|
|
||||||
|
#if PLATFORM_N64
|
||||||
|
#define KALEIDO_COLOR_PROMPT_UNK_R 100
|
||||||
|
#define KALEIDO_COLOR_PROMPT_UNK_G 100
|
||||||
|
#define KALEIDO_COLOR_PROMPT_UNK_B 255
|
||||||
|
#else
|
||||||
|
#define KALEIDO_COLOR_PROMPT_UNK_R 100
|
||||||
|
#define KALEIDO_COLOR_PROMPT_UNK_G 255
|
||||||
|
#define KALEIDO_COLOR_PROMPT_UNK_B 100
|
||||||
|
#endif
|
||||||
|
|
||||||
#if OOT_NTSC
|
#if OOT_NTSC
|
||||||
|
|
||||||
// Japanese
|
// Japanese
|
||||||
|
@ -1422,7 +1435,8 @@ void KaleidoScope_DrawPages(PlayState* play, GraphicsContext* gfxCtx) {
|
||||||
|
|
||||||
gDPSetCombineLERP(POLY_OPA_DISP++, 1, 0, PRIMITIVE, 0, TEXEL0, 0, PRIMITIVE, 0, 1, 0, PRIMITIVE, 0, TEXEL0,
|
gDPSetCombineLERP(POLY_OPA_DISP++, 1, 0, PRIMITIVE, 0, TEXEL0, 0, PRIMITIVE, 0, 1, 0, PRIMITIVE, 0, TEXEL0,
|
||||||
0, PRIMITIVE, 0);
|
0, PRIMITIVE, 0);
|
||||||
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 100, 255, 100, VREG(61));
|
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, KALEIDO_COLOR_PROMPT_UNK_R, KALEIDO_COLOR_PROMPT_UNK_G,
|
||||||
|
KALEIDO_COLOR_PROMPT_UNK_B, VREG(61));
|
||||||
|
|
||||||
if (pauseCtx->promptChoice == 0) {
|
if (pauseCtx->promptChoice == 0) {
|
||||||
gSPDisplayList(POLY_OPA_DISP++, gPromptCursorLeftDL);
|
gSPDisplayList(POLY_OPA_DISP++, gPromptCursorLeftDL);
|
||||||
|
@ -1439,32 +1453,36 @@ void KaleidoScope_DrawPages(PlayState* play, GraphicsContext* gfxCtx) {
|
||||||
|
|
||||||
POLY_OPA_DISP =
|
POLY_OPA_DISP =
|
||||||
KaleidoScope_QuadTextureIA8(POLY_OPA_DISP, sPromptChoiceTexs[gSaveContext.language][1], 48, 16, 16);
|
KaleidoScope_QuadTextureIA8(POLY_OPA_DISP, sPromptChoiceTexs[gSaveContext.language][1], 48, 16, 16);
|
||||||
} else if ((pauseCtx->state != PAUSE_STATE_SAVE_PROMPT) || (pauseCtx->unk_1EC < 4)) {
|
} else if (((pauseCtx->state == PAUSE_STATE_SAVE_PROMPT) && (pauseCtx->unk_1EC >= 4)) ||
|
||||||
if ((pauseCtx->state != PAUSE_STATE_15) &&
|
pauseCtx->state == PAUSE_STATE_15) {
|
||||||
((pauseCtx->state == PAUSE_STATE_16) || (pauseCtx->state == PAUSE_STATE_17))) {
|
#if PLATFORM_N64
|
||||||
POLY_OPA_DISP =
|
POLY_OPA_DISP =
|
||||||
KaleidoScope_QuadTextureIA8(POLY_OPA_DISP, sContinuePromptTexs[gSaveContext.language], 152, 16, 0);
|
KaleidoScope_QuadTextureIA8(POLY_OPA_DISP, sSaveConfirmationTexs[gSaveContext.language], 152, 16, 0);
|
||||||
|
#endif
|
||||||
|
} else if (((pauseCtx->state == PAUSE_STATE_16) || (pauseCtx->state == PAUSE_STATE_17))) {
|
||||||
|
POLY_OPA_DISP =
|
||||||
|
KaleidoScope_QuadTextureIA8(POLY_OPA_DISP, sContinuePromptTexs[gSaveContext.language], 152, 16, 0);
|
||||||
|
|
||||||
gDPSetCombineLERP(POLY_OPA_DISP++, 1, 0, PRIMITIVE, 0, TEXEL0, 0, PRIMITIVE, 0, 1, 0, PRIMITIVE, 0,
|
gDPSetCombineLERP(POLY_OPA_DISP++, 1, 0, PRIMITIVE, 0, TEXEL0, 0, PRIMITIVE, 0, 1, 0, PRIMITIVE, 0, TEXEL0,
|
||||||
TEXEL0, 0, PRIMITIVE, 0);
|
0, PRIMITIVE, 0);
|
||||||
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 100, 255, 100, VREG(61));
|
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, KALEIDO_COLOR_PROMPT_UNK_R, KALEIDO_COLOR_PROMPT_UNK_G,
|
||||||
|
KALEIDO_COLOR_PROMPT_UNK_B, VREG(61));
|
||||||
|
|
||||||
if (pauseCtx->promptChoice == 0) {
|
if (pauseCtx->promptChoice == 0) {
|
||||||
gSPDisplayList(POLY_OPA_DISP++, gPromptCursorLeftDL);
|
gSPDisplayList(POLY_OPA_DISP++, gPromptCursorLeftDL);
|
||||||
} else {
|
} else {
|
||||||
gSPDisplayList(POLY_OPA_DISP++, gPromptCursorRightDL);
|
gSPDisplayList(POLY_OPA_DISP++, gPromptCursorRightDL);
|
||||||
}
|
|
||||||
|
|
||||||
gDPPipeSync(POLY_OPA_DISP++);
|
|
||||||
gDPSetCombineMode(POLY_OPA_DISP++, G_CC_MODULATEIA, G_CC_MODULATEIA);
|
|
||||||
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 255, 255, 255, pauseCtx->alpha);
|
|
||||||
|
|
||||||
POLY_OPA_DISP =
|
|
||||||
KaleidoScope_QuadTextureIA8(POLY_OPA_DISP, sPromptChoiceTexs[gSaveContext.language][0], 48, 16, 12);
|
|
||||||
|
|
||||||
POLY_OPA_DISP =
|
|
||||||
KaleidoScope_QuadTextureIA8(POLY_OPA_DISP, sPromptChoiceTexs[gSaveContext.language][1], 48, 16, 16);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gDPPipeSync(POLY_OPA_DISP++);
|
||||||
|
gDPSetCombineMode(POLY_OPA_DISP++, G_CC_MODULATEIA, G_CC_MODULATEIA);
|
||||||
|
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 255, 255, 255, pauseCtx->alpha);
|
||||||
|
|
||||||
|
POLY_OPA_DISP =
|
||||||
|
KaleidoScope_QuadTextureIA8(POLY_OPA_DISP, sPromptChoiceTexs[gSaveContext.language][0], 48, 16, 12);
|
||||||
|
|
||||||
|
POLY_OPA_DISP =
|
||||||
|
KaleidoScope_QuadTextureIA8(POLY_OPA_DISP, sPromptChoiceTexs[gSaveContext.language][1], 48, 16, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
gDPPipeSync(POLY_OPA_DISP++);
|
gDPPipeSync(POLY_OPA_DISP++);
|
||||||
|
@ -3050,7 +3068,7 @@ void KaleidoScope_UpdateCursorSize(PlayState* play) {
|
||||||
|
|
||||||
void KaleidoScope_LoadDungeonMap(PlayState* play) {
|
void KaleidoScope_LoadDungeonMap(PlayState* play) {
|
||||||
InterfaceContext* interfaceCtx = &play->interfaceCtx;
|
InterfaceContext* interfaceCtx = &play->interfaceCtx;
|
||||||
#if OOT_PAL
|
#if PLATFORM_N64 || OOT_PAL
|
||||||
s32 pad;
|
s32 pad;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -3069,7 +3087,16 @@ void KaleidoScope_UpdateDungeonMap(PlayState* play) {
|
||||||
|
|
||||||
PRINTF("MAP DMA = %d\n", play->interfaceCtx.mapPaletteIndex);
|
PRINTF("MAP DMA = %d\n", play->interfaceCtx.mapPaletteIndex);
|
||||||
|
|
||||||
|
#if PLATFORM_N64
|
||||||
|
if (B_80121AF0 != NULL && B_80121AF0->unk_44 != NULL && B_80121AF0->unk_44(play)) {
|
||||||
|
|
||||||
|
} else {
|
||||||
|
KaleidoScope_LoadDungeonMap(play);
|
||||||
|
}
|
||||||
|
#else
|
||||||
KaleidoScope_LoadDungeonMap(play);
|
KaleidoScope_LoadDungeonMap(play);
|
||||||
|
#endif
|
||||||
|
|
||||||
Map_SetFloorPalettesData(play, pauseCtx->dungeonMapSlot - 3);
|
Map_SetFloorPalettesData(play, pauseCtx->dungeonMapSlot - 3);
|
||||||
|
|
||||||
if ((play->sceneId >= SCENE_DEKU_TREE) && (play->sceneId <= SCENE_TREASURE_BOX_SHOP)) {
|
if ((play->sceneId >= SCENE_DEKU_TREE) && (play->sceneId <= SCENE_TREASURE_BOX_SHOP)) {
|
||||||
|
@ -3567,7 +3594,7 @@ void KaleidoScope_Update(PlayState* play) {
|
||||||
pauseCtx->state = PAUSE_STATE_CLOSING;
|
pauseCtx->state = PAUSE_STATE_CLOSING;
|
||||||
WREG(2) = -6240;
|
WREG(2) = -6240;
|
||||||
func_800F64E0(0);
|
func_800F64E0(0);
|
||||||
#if OOT_NTSC
|
#if PLATFORM_GC && OOT_NTSC
|
||||||
AudioOcarina_SetInstrument(OCARINA_INSTRUMENT_OFF);
|
AudioOcarina_SetInstrument(OCARINA_INSTRUMENT_OFF);
|
||||||
#endif
|
#endif
|
||||||
} else if (CHECK_BTN_ALL(input->press.button, BTN_B)) {
|
} else if (CHECK_BTN_ALL(input->press.button, BTN_B)) {
|
||||||
|
@ -3715,7 +3742,7 @@ void KaleidoScope_Update(PlayState* play) {
|
||||||
WREG(2) = -6240;
|
WREG(2) = -6240;
|
||||||
YREG(8) = pauseCtx->unk_204;
|
YREG(8) = pauseCtx->unk_204;
|
||||||
func_800F64E0(0);
|
func_800F64E0(0);
|
||||||
#if OOT_NTSC
|
#if PLATFORM_GC && OOT_NTSC
|
||||||
AudioOcarina_SetInstrument(OCARINA_INSTRUMENT_OFF);
|
AudioOcarina_SetInstrument(OCARINA_INSTRUMENT_OFF);
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
|
@ -3726,7 +3753,11 @@ void KaleidoScope_Update(PlayState* play) {
|
||||||
gSaveContext.save.info.playerData.savedSceneId = play->sceneId;
|
gSaveContext.save.info.playerData.savedSceneId = play->sceneId;
|
||||||
Sram_WriteSave(&play->sramCtx);
|
Sram_WriteSave(&play->sramCtx);
|
||||||
pauseCtx->unk_1EC = 4;
|
pauseCtx->unk_1EC = 4;
|
||||||
|
#if PLATFORM_N64
|
||||||
|
D_8082B25C = 90;
|
||||||
|
#else
|
||||||
D_8082B25C = 3;
|
D_8082B25C = 3;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
} else if (CHECK_BTN_ALL(input->press.button, BTN_START) ||
|
} else if (CHECK_BTN_ALL(input->press.button, BTN_START) ||
|
||||||
CHECK_BTN_ALL(input->press.button, BTN_B)) {
|
CHECK_BTN_ALL(input->press.button, BTN_B)) {
|
||||||
|
@ -3739,7 +3770,7 @@ void KaleidoScope_Update(PlayState* play) {
|
||||||
gSaveContext.buttonStatus[3] = BTN_ENABLED;
|
gSaveContext.buttonStatus[3] = BTN_ENABLED;
|
||||||
gSaveContext.hudVisibilityMode = HUD_VISIBILITY_NO_CHANGE;
|
gSaveContext.hudVisibilityMode = HUD_VISIBILITY_NO_CHANGE;
|
||||||
Interface_ChangeHudVisibilityMode(HUD_VISIBILITY_ALL);
|
Interface_ChangeHudVisibilityMode(HUD_VISIBILITY_ALL);
|
||||||
#if OOT_NTSC
|
#if PLATFORM_GC && OOT_NTSC
|
||||||
AudioOcarina_SetInstrument(OCARINA_INSTRUMENT_OFF);
|
AudioOcarina_SetInstrument(OCARINA_INSTRUMENT_OFF);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -3983,7 +4014,11 @@ void KaleidoScope_Update(PlayState* play) {
|
||||||
gSaveContext.save.info.playerData.savedSceneId = play->sceneId;
|
gSaveContext.save.info.playerData.savedSceneId = play->sceneId;
|
||||||
Sram_WriteSave(&play->sramCtx);
|
Sram_WriteSave(&play->sramCtx);
|
||||||
pauseCtx->state = PAUSE_STATE_15;
|
pauseCtx->state = PAUSE_STATE_15;
|
||||||
|
#if PLATFORM_N64
|
||||||
|
D_8082B25C = 90;
|
||||||
|
#else
|
||||||
D_8082B25C = 3;
|
D_8082B25C = 3;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -22,3 +22,7 @@ _n64ddSegmentRomEnd = 0x00B9DA70;
|
||||||
D_801DA410 = 0x801DA410;
|
D_801DA410 = 0x801DA410;
|
||||||
D_801E8090 = 0x801E8090;
|
D_801E8090 = 0x801E8090;
|
||||||
D_800FF4B0 = 0x800FF4B0; // size:0xB0 type:n64ddStruct_800FF4B0_pointers
|
D_800FF4B0 = 0x800FF4B0; // size:0xB0 type:n64ddStruct_800FF4B0_pointers
|
||||||
|
gBitFlags = 0x800F9240; // size:0x80 type:u32[32]
|
||||||
|
gSfxDefaultPos = 0x801049D4; // size:0xC type:Vec3f
|
||||||
|
gSfxDefaultFreqAndVolScale = 0x801049E0; // size:0x4 type:f32
|
||||||
|
gSfxDefaultReverb = 0x801049E8; // size:0x1 type:s8
|
||||||
|
|
Loading…
Reference in a new issue