Paper Mario DX
Paper Mario (N64) modding
Loading...
Searching...
No Matches
draw_hud_elements.inc.c
Go to the documentation of this file.
1
#include "common.h"
2
3
void
N(
draw
)(void) {
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
}
gActionCommandStatus
BSS ActionCommandStatus gActionCommandStatus
Definition
action_cmd.c:91
draw_mash_meter_multicolor
void draw_mash_meter_multicolor(s32 posX, s32 posY, s32 fillValue)
Definition
action_cmd.c:226
draw_mash_meter_blink
void draw_mash_meter_blink(s32 posX, s32 posY, s32 fillValue)
Definition
action_cmd.c:246
ActionCommandStatus::barFillLevel
s16 barFillLevel
Definition
action_cmd.h:47
ActionCommandStatus::isBarFilled
s16 isBarFilled
Definition
action_cmd.h:69
ActionCommandStatus::hudElements
s32 hudElements[16]
Definition
action_cmd.h:46
ActionCommandStatus
Definition
action_cmd.h:44
draw
void N draw(void)
Definition
draw_hud_elements.inc.c:3
hud_element_get_render_pos
void hud_element_get_render_pos(s32 id, s32 *x, s32 *y)
Definition
hud_element.c:1997
hud_element_draw_clipped
void hud_element_draw_clipped(s32 id)
Definition
hud_element.c:1935
src
battle
action_cmd
common
draw_hud_elements.inc.c
Generated by
1.10.0