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

29 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2022-08-16 22:39:22 +00:00
if hoveredunit != noone {
2022-08-23 05:23:02 +00:00
draw_set_color(c_white);
2022-08-19 22:06:21 +00:00
draw_set_font(ft_chiaro);
2022-08-23 05:23:02 +00:00
draw_sprite_ext(s_box, 0, 0, 0, string_width(hoveredunit.data.name)/30+.5, .75, 0, c_white, 1);
draw_set_halign(fa_center);
draw_text(7+string_width(hoveredunit.data.name)/2, -10, hoveredunit.data.name);
draw_sprite(hoveredunit.data.face, 0, 32, 53);
2022-08-22 22:37:11 +00:00
//draw_rectangle(global.gw, global.gh, global.gw-140, global.gh-(array_length(hoveredunit.inventory)-1)*32-16, false);
//draw_sprite(s_box, 0, global.gw-140, global.gh-(array_length(hoveredunit.inventory)-1)*32-16);
draw_sprite_ext(s_box, 0, global.gw, global.gh, 4, .5+((array_length(hoveredunit.inventory)-1)*32-16)/30, 180, c_white, 1);
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++) {
2022-08-22 22:37:11 +00:00
draw_text(global.gw-10, global.gh-17-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);
2022-08-22 22:37:11 +00:00
//draw_rectangle(0, 0, 100, (array_length(dudes)-1)*32+16, false);
2022-08-23 05:23:02 +00:00
draw_sprite_ext(s_box, 0, 0, 85, 2.5, -.5+((array_length(dudes)-1)*32-16)/30, 0, c_white, 1);
2022-08-16 22:28:01 +00:00
draw_set_color(c_white);
var i;
for (i=0; i<array_length(dudes); i++) {
2022-08-23 05:23:02 +00:00
draw_text(10, 78+i*20, dudes[i].name + ": " + string(dudes[i].val));
2022-08-16 22:28:01 +00:00
}
draw_set_halign(fa_left);
}