if hoveredunit != noone { draw_set_color(c_white); draw_set_font(ft_chiaro); 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); //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); draw_set_color(c_white); var i; draw_set_halign(fa_right); for (i=1; i