Skip to content

Commit

Permalink
Update z_parameter.c
Browse files Browse the repository at this point in the history
When selecting gamemode, Meter's default color switches to a pinkish color and returns green when unselecting.
  • Loading branch information
Captainkittyca2 authored Nov 12, 2023
1 parent dcccb7b commit c9e8b18
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion soh/src/code/z_parameter.c
Original file line number Diff line number Diff line change
Expand Up @@ -3573,14 +3573,17 @@ void Interface_DrawMagicBar(PlayState* play) {
s16 magicBarY;
Color_RGB8 magicbar_yellow = {250,250,0}; //Magic bar being used
Color_RGB8 magicbar_green = {R_MAGIC_FILL_COLOR(0),R_MAGIC_FILL_COLOR(1),R_MAGIC_FILL_COLOR(2)}; //Magic bar fill
Color_RGB8 ALBWMeter = {203, 82, 255};

if (CVarGetInteger("gCosmetics.Consumable_MagicActive.Changed", 0)) {
magicbar_yellow = CVarGetColor24("gCosmetics.Consumable_MagicActive.Value", magicbar_yellow);
}
if (CVarGetInteger("gCosmetics.Consumable_Magic.Changed", 0)) {
magicbar_green = CVarGetColor24("gCosmetics.Consumable_Magic.Value", magicbar_green);
}

if (CVarGetInteger("gMagicAmmo", 0) && (CVarGetInteger("gCosmetics.consumable_Magic.Changed", 0) == 0 || CVarGetInteger("gCosmetics.Consumable_MagicActive.Changed", 0) == 0)) {
magicbar_green = ALBWMeter;
}
OPEN_DISPS(play->state.gfxCtx);

if (gSaveContext.magicLevel != 0) {
Expand Down

0 comments on commit c9e8b18

Please sign in to comment.