mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-01-10 21:48:17 -05:00
Main commit (#1369)
This commit is contained in:
parent
22c963c0a0
commit
f6fa3c74c7
@ -481,7 +481,7 @@ void KaleidoScope_DrawEquipment(GlobalContext* globalCtx) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (pauseCtx->cursorItem[PAUSE_EQUIP] == ITEM_BRACELET) {
|
if (pauseCtx->cursorItem[PAUSE_EQUIP] == ITEM_BRACELET) {
|
||||||
if (LINK_AGE_IN_YEARS == YEARS_CHILD) {
|
if (LINK_AGE_IN_YEARS == YEARS_CHILD || gSaveContext.n64ddFlag) {
|
||||||
pauseCtx->nameColorSet = 0;
|
pauseCtx->nameColorSet = 0;
|
||||||
} else {
|
} else {
|
||||||
pauseCtx->nameColorSet = 1;
|
pauseCtx->nameColorSet = 1;
|
||||||
@ -672,18 +672,30 @@ void KaleidoScope_DrawEquipment(GlobalContext* globalCtx) {
|
|||||||
if (LINK_AGE_IN_YEARS == YEARS_CHILD) {
|
if (LINK_AGE_IN_YEARS == YEARS_CHILD) {
|
||||||
point = CUR_UPG_VALUE(sChildUpgrades[i]);
|
point = CUR_UPG_VALUE(sChildUpgrades[i]);
|
||||||
if ((point != 0) && (CUR_UPG_VALUE(sChildUpgrades[i]) != 0)) {
|
if ((point != 0) && (CUR_UPG_VALUE(sChildUpgrades[i]) != 0)) {
|
||||||
KaleidoScope_DrawQuadTextureRGBA32(globalCtx->state.gfxCtx,
|
if ((sChildUpgradeItemBases[i] + CUR_UPG_VALUE(sChildUpgrades[i]) - 1) == ITEM_GAUNTLETS_SILVER ||
|
||||||
gItemIcons[sChildUpgradeItemBases[i] + point - 1], 32, 32, 0);
|
(sChildUpgradeItemBases[i] + CUR_UPG_VALUE(sChildUpgrades[i]) - 1) == ITEM_GAUNTLETS_GOLD) { // Grey Out the Gauntlets
|
||||||
|
gsDPSetGrayscaleColor(POLY_KAL_DISP++, 109, 109, 109, 255);
|
||||||
|
gsSPGrayscale(POLY_KAL_DISP++, true);
|
||||||
|
}
|
||||||
|
KaleidoScope_DrawQuadTextureRGBA32(globalCtx->state.gfxCtx, gItemIcons[sChildUpgradeItemBases[i] + point - 1], 32, 32, 0);
|
||||||
|
gsSPGrayscale(POLY_KAL_DISP++, false);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((i == 0) && (CUR_UPG_VALUE(sAdultUpgrades[i]) == 0)) {
|
if ((i == 0) && (CUR_UPG_VALUE(sAdultUpgrades[i]) == 0)) { // If the player doesn't have the bow, load the current slingshot ammo upgrade instead.
|
||||||
KaleidoScope_DrawQuadTextureRGBA32(
|
{
|
||||||
globalCtx->state.gfxCtx,
|
gsDPSetGrayscaleColor(POLY_KAL_DISP++, 109, 109, 109, 255); // Grey Out Slingshot Bullet Bags
|
||||||
gItemIcons[sChildUpgradeItemBases[i] + CUR_UPG_VALUE(sChildUpgrades[i]) - 1], 32, 32, 0);
|
gsSPGrayscale(POLY_KAL_DISP++, true);
|
||||||
|
}
|
||||||
|
KaleidoScope_DrawQuadTextureRGBA32(globalCtx->state.gfxCtx, gItemIcons[sChildUpgradeItemBases[i] + CUR_UPG_VALUE(sChildUpgrades[i]) - 1], 32, 32, 0);
|
||||||
|
gsSPGrayscale(POLY_KAL_DISP++, false);
|
||||||
} else if (CUR_UPG_VALUE(sAdultUpgrades[i]) != 0) {
|
} else if (CUR_UPG_VALUE(sAdultUpgrades[i]) != 0) {
|
||||||
KaleidoScope_DrawQuadTextureRGBA32(
|
if ((sAdultUpgradeItemBases[i] + CUR_UPG_VALUE(sAdultUpgrades[i]) - 1) == ITEM_BRACELET &&
|
||||||
globalCtx->state.gfxCtx,
|
!(gSaveContext.n64ddFlag)) { // Grey Out the Goron Bracelet when Not Randomized
|
||||||
gItemIcons[sAdultUpgradeItemBases[i] + CUR_UPG_VALUE(sAdultUpgrades[i]) - 1], 32, 32, 0);
|
gsDPSetGrayscaleColor(POLY_KAL_DISP++, 109, 109, 109, 255);
|
||||||
|
gsSPGrayscale(POLY_KAL_DISP++, true);
|
||||||
|
}
|
||||||
|
KaleidoScope_DrawQuadTextureRGBA32(globalCtx->state.gfxCtx, gItemIcons[sAdultUpgradeItemBases[i] + CUR_UPG_VALUE(sAdultUpgrades[i]) - 1], 32, 32, 0);
|
||||||
|
gsSPGrayscale(POLY_KAL_DISP++, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Draw inventory screen icons
|
// Draw inventory screen icons
|
||||||
|
Loading…
Reference in New Issue
Block a user