spr_intentory
0
-1
-4000
0
<undefined>
<undefined>
1
603
7
0
0
-1
2
self
0
0
1
selected_slot = 0;
1
603
7
0
0
-1
2
self
0
0
1
x = view_xview[0]+view_wview[0]/2 - (424/2);
y = view_yview[0]+view_hview[0]/2 - (254/2);
var i = 0;
if((mouse_x >= x && mouse_x <= x+424) && (mouse_y >= y && mouse_y <= y+59))
{
for(yy = 8; yy < (5*44); yy+=45+1)
{
for(xx = 6; xx < (9*45); xx+=45+1)
{
if((mouse_x >= x+xx && mouse_x <= x+xx+45) && (mouse_x >= x+yy && mouse_x <= x+yy+44))
{
selected_slot = i;
}
i++;
}
}
}
1
603
7
0
0
-1
2
self
0
0
1
draw_self();
var xx = 6;
var yy = 8;
var i = 0;
for(yy = 8; yy < (5*44); yy+=45+1)
{
for(xx = 6; xx < (9*45); xx+=45+1)
{
draw_sprite(spr_blocks,obj_inv_controller.inventory[i],x+xx+6,y+yy+7);
var count = obj_inv_controller.inventoryCount[i];
if(i == selected_slot)
{
draw_set_color(make_colour_rgb(100,100,100));
draw_rectangle(x+xx,y+yy,x+xx+45,y+yy+44,false)
}
var xoffset = string_width(string(count))
if(count > 1)
{
draw_set_color(c_white);
draw_text(x+xx+45-xoffset,y+yy+30,string(count));
}
i++
}
}
0
0
0
0.5
0.100000001490116
0
0.100000001490116
0.100000001490116
0.200000002980232
-1
0