eastern-flames/eastern flames/objects/ARTICULATOR/Draw_64.gml

21 lines
755 B
Plaintext
Raw Normal View History

2022-08-16 22:39:22 +00:00
if hoveredunit != noone {
2022-08-16 22:28:01 +00:00
draw_set_color(c_black);
2022-08-16 22:39:22 +00:00
draw_rectangle(global.gw, global.gh, global.gw-100, global.gh-(array_length(hoveredunit.inventory)-1)*32-16, false);
2022-08-16 22:28:01 +00:00
draw_set_color(c_white);
var i;
draw_set_halign(fa_right);
2022-08-16 22:39:22 +00:00
for (i=1; i<array_length(hoveredunit.inventory); i++) {
draw_text(global.gw-10, global.gh-10-i*20, (hoveredunit.equippedweapon == i ? "X " : " ") + hoveredunit.inventory[i].name);
2022-08-16 22:28:01 +00:00
}
draw_set_halign(fa_left);
2022-08-16 22:39:22 +00:00
var dudes = c_getstats(hoveredunit);
2022-08-16 22:28:01 +00:00
draw_set_color(c_black);
draw_rectangle(0, 0, 100, (array_length(dudes)-1)*32+16, false);
draw_set_color(c_white);
var i;
for (i=0; i<array_length(dudes); i++) {
draw_text(10, 10+i*20, dudes[i].name + ": " + string(dudes[i].val));
}
draw_set_halign(fa_left);
}