tbox/camera/d_bg_w_kcol work and cleanup (#2262)

* some camera/tbox cleanup

* d_bg_w_kcol work

* make item name enum better
This commit is contained in:
TakaRikka
2024-12-10 08:46:19 -08:00
committed by GitHub
parent 3fa6b50e6a
commit 8d73439554
100 changed files with 4161 additions and 3958 deletions
+3 -3
View File
@@ -369,7 +369,7 @@ void dMenu_ItemExplain_c::open_init() {
if (i_dStage_stagInfo_GetSaveTbl(dComIfGp_getStageStagInfo()) == 0x11) {
s32 itemsObtained = 0;
for (int i = 0; i < 3; i++) {
if (checkItemGet(i + L2_KEY_PIECES1, 1) != 0) {
if (checkItemGet(i + fpcNm_ITEM_L2_KEY_PIECES1, 1) != 0) {
itemsObtained++;
}
}
@@ -648,7 +648,7 @@ u8 dMenu_ItemExplain_c::openExplainDmap(u8 param_0, u8 param_1, u8 param_2, bool
if (i_dStage_stagInfo_GetSaveTbl(dComIfGp_getStageStagInfo()) == 0x11 && param_0 == 0x26) {
for (int i = 0; i < 3; i++) {
if (checkItemGet(i + L2_KEY_PIECES1, 1) != 0) {
if (checkItemGet(i + fpcNm_ITEM_L2_KEY_PIECES1, 1) != 0) {
itemsObtained++;
}
}
@@ -830,4 +830,4 @@ void dMenu_ItemExplain_c::setScale() {
f32 h = mpExpItemTex[0]->height / 48.0f * scale;
mpInfoIcon->scale(w, h);
}
}
}