mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-10-31 15:45:06 -04:00
Added empty C button colors
This commit is contained in:
parent
4282b1c89e
commit
a4fed7c6df
@ -2935,12 +2935,24 @@ void Interface_DrawItemButtons(GlobalContext* globalCtx) {
|
|||||||
if (temp == 1) {
|
if (temp == 1) {
|
||||||
gDPSetPrimColor(OVERLAY_DISP++, 0, 0, R_C_BTN_COLOR(0), R_C_BTN_COLOR(1), R_C_BTN_COLOR(2),
|
gDPSetPrimColor(OVERLAY_DISP++, 0, 0, R_C_BTN_COLOR(0), R_C_BTN_COLOR(1), R_C_BTN_COLOR(2),
|
||||||
interfaceCtx->cLeftAlpha);
|
interfaceCtx->cLeftAlpha);
|
||||||
|
if (CVar_GetS32("gHudColors", 1) == 2) {
|
||||||
|
gDPSetPrimColor(OVERLAY_DISP++, 0, 0, CVar_GetS32("gCCCBtnPrimR", 255), CVar_GetS32("gCCCBtnPrimG", 160),
|
||||||
|
CVar_GetS32("gCCCBtnPrimB", 0), interfaceCtx->cLeftAlpha);
|
||||||
|
}
|
||||||
} else if (temp == 2) {
|
} else if (temp == 2) {
|
||||||
gDPSetPrimColor(OVERLAY_DISP++, 0, 0, R_C_BTN_COLOR(0), R_C_BTN_COLOR(1), R_C_BTN_COLOR(2),
|
gDPSetPrimColor(OVERLAY_DISP++, 0, 0, R_C_BTN_COLOR(0), R_C_BTN_COLOR(1), R_C_BTN_COLOR(2),
|
||||||
interfaceCtx->cDownAlpha);
|
interfaceCtx->cDownAlpha);
|
||||||
|
if (CVar_GetS32("gHudColors", 1) == 2) {
|
||||||
|
gDPSetPrimColor(OVERLAY_DISP++, 0, 0, CVar_GetS32("gCCCBtnPrimR", 255), CVar_GetS32("gCCCBtnPrimG", 160),
|
||||||
|
CVar_GetS32("gCCCBtnPrimB", 0), interfaceCtx->cDownAlpha);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
gDPSetPrimColor(OVERLAY_DISP++, 0, 0, R_C_BTN_COLOR(0), R_C_BTN_COLOR(1), R_C_BTN_COLOR(2),
|
gDPSetPrimColor(OVERLAY_DISP++, 0, 0, R_C_BTN_COLOR(0), R_C_BTN_COLOR(1), R_C_BTN_COLOR(2),
|
||||||
interfaceCtx->cRightAlpha);
|
interfaceCtx->cRightAlpha);
|
||||||
|
if (CVar_GetS32("gHudColors", 1) == 2) {
|
||||||
|
gDPSetPrimColor(OVERLAY_DISP++, 0, 0, CVar_GetS32("gCCCBtnPrimR", 255), CVar_GetS32("gCCCBtnPrimG", 160),
|
||||||
|
CVar_GetS32("gCCCBtnPrimB", 0), interfaceCtx->cRightAlpha);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
OVERLAY_DISP = Gfx_TextureIA8(OVERLAY_DISP, ((u8*)gButtonBackgroundTex), 32, 32,
|
OVERLAY_DISP = Gfx_TextureIA8(OVERLAY_DISP, ((u8*)gButtonBackgroundTex), 32, 32,
|
||||||
|
Loading…
Reference in New Issue
Block a user