Skip to content

Commit

Permalink
Merge 'Magic Meter Item: Still Bar But Now Softly Shaded' (#2315)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjohnson57 committed Dec 7, 2024
2 parents 63bd1a6 + 20b204f commit 7f5ef3f
Show file tree
Hide file tree
Showing 9 changed files with 16,716 additions and 16,764 deletions.
992 changes: 496 additions & 496 deletions ASM/build/asm_symbols.txt

Large diffs are not rendered by default.

Binary file modified ASM/build/bundle.o
Binary file not shown.
966 changes: 483 additions & 483 deletions ASM/build/c_symbols.txt

Large diffs are not rendered by default.

10 changes: 2 additions & 8 deletions ASM/c/item_draw_functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -736,17 +736,11 @@ void draw_gi_magic_meter(z64_game_t* game, uint32_t draw_id) {
gSPMatrix(gfx->poly_opa.p++, append_sys_matrix(gfx), G_MTX_MODELVIEW | G_MTX_LOAD | G_MTX_NOPUSH);
gDPSetPrimColor(gfx->poly_opa.p++, 0, 0x80, prim_color.r, prim_color.g, prim_color.b, prim_color.a);
gDPSetEnvColor(gfx->poly_xlu.p++, env_color.r, env_color.g, env_color.b, env_color.a);
gSPDisplayList(gfx->poly_opa.p++, item_draw_table[draw_id].args[1].dlist);
gSPDisplayList(gfx->poly_opa.p++, item_draw_table[draw_id].args[0].dlist);
// Container
append_setup_dl_25_to_xlu(gfx);
gSPMatrix(gfx->poly_xlu.p++, append_sys_matrix(gfx), G_MTX_MODELVIEW | G_MTX_LOAD | G_MTX_NOPUSH);
gDPSetPrimColor(gfx->poly_xlu.p++, 0, 0x80, prim_container.r, prim_container.g, prim_container.b, prim_container.a);
gDPSetEnvColor(gfx->poly_xlu.p++, env_color.r, env_color.g, env_color.b, env_color.a);
gSPDisplayList(gfx->poly_xlu.p++, item_draw_table[draw_id].args[0].dlist);
// InnerOutline
append_setup_dl_25_to_opa(gfx);
gSPMatrix(gfx->poly_opa.p++, append_sys_matrix(gfx), G_MTX_MODELVIEW | G_MTX_LOAD | G_MTX_NOPUSH);
gDPSetPrimColor(gfx->poly_opa.p++, 0, 0x80, prim_outline.r, prim_outline.g, prim_outline.b, prim_outline.a);
gSPDisplayList(gfx->poly_opa.p++, item_draw_table[draw_id].args[2].dlist);

gSPDisplayList(gfx->poly_xlu.p++, item_draw_table[draw_id].args[1].dlist);
}
2 changes: 1 addition & 1 deletion ASM/c/item_draw_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ item_draw_table_entry_t item_draw_table[] = {
[0x9C] = { draw_gi_stones, { 0x06000b00, 0x060012f0, 0x32ffffff, 0x320096ff } }, // Zora Sapphire
[0x9D] = { draw_gi_fairy, { 0x06000EF0 } }, // Fairy (not in a bottle but uses the fairy from the bottle)
[0x9E] = { draw_gi_nothing, {} },
[0x9F] = { draw_gi_magic_meter, { 0x06000A80, 0x06000F80, 0x060014C0, 0x00CE00FF, 0xFFFFFFFF, 0x000000FF } }, // Magic Meter , 0x000000FF -- 0x06000F70, 0x00CE00FF, --, 0x06009C0, 0x06001030, 0x00CE00FF, 0xFFFFFFFF
[0x9F] = { draw_gi_magic_meter, { 0x06000000, 0x06000670, 0x00CE00FF, 0xFFFFFFFF, 0x000000FF } }, // Magic Meter
};

void base_draw_gi_model(z64_game_t* game, uint32_t draw_id) {
Expand Down
Loading

0 comments on commit 7f5ef3f

Please sign in to comment.