if selectedunit != noone { draw_set_color(c_black); draw_rectangle(global.gw, global.gh, global.gw-100, global.gh-(array_length(selectedunit.inventory)-1)*32-16, false); draw_set_color(c_white); var i; draw_set_halign(fa_right); for (i=1; i