1 |
if live_call() |
2 |
return global.live_result; |
3 |
draw_set_font(fnt_battle) |
4 |
draw_set_color(c_white) |
5 |
draw_set_halign(fa_left) |
6 |
draw_set_valign(fa_top) |
7 |
var xx = 8 |
8 |
var yy = 8 |
9 |
draw_sprite(spr_dimensional_box_screen_overworld, -1, xx, yy) |
10 |
draw_sprite_ext(spr_dimensional_box_divider_overworld, -1, (xx + 148), (yy + 39), 0.5, 0.5, 0, c_white, 1) |
11 |
for (var i = 1; i <= 8; i++) |
12 |
{ |
13 |
if (global.item_slot[i] != "Nothing") |
14 |
{ |
15 |
if (global.item_slot[i] == "Dihydrogen Monoxide") |
16 |
draw_text((xx + 32), (yy + 12 + i * 16), string_hash_to_newline("H2O")) |
17 |
else if (global.item_slot[i] == "Friendliness Pellets") |
18 |
draw_text((xx + 32), (yy + 12 + i * 16), string_hash_to_newline("F. Pellets")) |
19 |
else |
20 |
draw_text((xx + 32), (yy + 12 + i * 16), string_hash_to_newline(string(global.item_slot[i]))) |
21 |
} |
22 |
else |
23 |
draw_sprite_ext(spr_dimensional_box_blank_inventory_slot_overworld, -1, (xx + 38), (yy + 23 + i * 16), 0.5, 0.5, 0, c_white, 1) |
24 |
} |
25 |
for (i = 0; i <= 9; i++) |
26 |
{ |
27 |
if ((i + global.dimensional_box_offset) > (ds_list_size(global.box_slot_list) - 1)) |
28 |
draw_sprite_ext(spr_dimensional_box_blank_box_slot_overworld, -1, (xx + 184), (yy + 39 + i * 16), 0.5, 0.5, 0, c_white, 1) |
29 |
else |
30 |
{ |
31 |
var item_name = ds_list_find_value(global.box_slot_list, (i + global.dimensional_box_offset)) |
32 |
if (item_name == "Dihydrogen Monoxide") |
33 |
item_name = "H2O" |
34 |
else if (item_name == "Friendliness Pellets") |
35 |
item_name = "F. Pellets" |
36 |
draw_text((xx + 178), (yy + 28 + i * 16), string_hash_to_newline(string(item_name))) |
37 |
} |
38 |
} |
39 |
if (global.dimensional_box_offset > 0) |
40 |
draw_sprite_ext(spr_dimensional_box_scroll_arrow, 0, 295, 50, 1, 1, 180, c_white, 1) |
41 |
if ((i + global.dimensional_box_offset) <= ds_list_size(global.box_slot_list)) |
42 |
draw_sprite(spr_dimensional_box_scroll_arrow, 0, 295, 185) |