Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
draw_hud_elements.inc.c File Reference

Go to the source code of this file.

Functions

void N draw (void)
 

Function Documentation

◆ draw()

void N draw ( void )

Definition at line 3 of file draw_hud_elements.inc.c.

3 {
4 ActionCommandStatus* actionCommandStatus = &gActionCommandStatus;
5
6 s32 hudX;
7 s32 hudY;
8 s32 hudElement;
9 s32 barFillLevel;
10
11 hud_element_draw_clipped(actionCommandStatus->hudElements[0]);
12
13 hudElement = actionCommandStatus->hudElements[1];
14 hud_element_draw_clipped(hudElement);
15 hud_element_get_render_pos(hudElement, &hudX, &hudY);
16
17 if (!actionCommandStatus->isBarFilled) {
18 draw_mash_meter_multicolor(hudX, hudY, actionCommandStatus->barFillLevel / 100);
19 } else {
20 draw_mash_meter_blink(hudX, hudY, actionCommandStatus->barFillLevel / 100);
21 }
22
23 hud_element_draw_clipped(actionCommandStatus->hudElements[2]);
24}
BSS ActionCommandStatus gActionCommandStatus
Definition action_cmd.c:91
void draw_mash_meter_multicolor(s32 posX, s32 posY, s32 fillValue)
Definition action_cmd.c:226
void draw_mash_meter_blink(s32 posX, s32 posY, s32 fillValue)
Definition action_cmd.c:246
void hud_element_get_render_pos(s32 id, s32 *x, s32 *y)
void hud_element_draw_clipped(s32 id)