| 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 |
var i; |
| 12 |
for (i = 1; i <= 8; i++) |
| 13 |
{ |
| 14 |
if (global.item_slot[i] != "Nothing") |
| 15 |
{ |
| 16 |
if (global.item_slot[i] == "Dihydrogen Monoxide") |
| 17 |
draw_text(xx + 32, yy + 12 + (i * 16), string_hash_to_newline("H2O")); |
| 18 |
else if (global.item_slot[i] == "Friendliness Pellets") |
| 19 |
draw_text(xx + 32, yy + 12 + (i * 16), string_hash_to_newline("F. Pellets")); |
| 20 |
else |
| 21 |
draw_text(xx + 32, yy + 12 + (i * 16), string_hash_to_newline(string(global.item_slot[i]))); |
| 22 |
} |
| 23 |
else |
| 24 |
{ |
| 25 |
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); |
| 26 |
} |
| 27 |
} |
| 28 |
for (i = 0; i <= 9; i++) |
| 29 |
{ |
| 30 |
if ((i + global.dimensional_box_offset) > (ds_list_size(global.box_slot_list) - 1)) |
| 31 |
{ |
| 32 |
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); |
| 33 |
} |
| 34 |
else |
| 35 |
{ |
| 36 |
var item_name = ds_list_find_value(global.box_slot_list, i + global.dimensional_box_offset); |
| 37 |
if (item_name == "Dihydrogen Monoxide") |
| 38 |
item_name = "H2O"; |
| 39 |
else if (item_name == "Friendliness Pellets") |
| 40 |
item_name = "F. Pellets"; |
| 41 |
draw_text(xx + 178, yy + 28 + (i * 16), string_hash_to_newline(string(item_name))); |
| 42 |
} |
| 43 |
} |
| 44 |
if (global.dimensional_box_offset > 0) |
| 45 |
draw_sprite_ext(spr_dimensional_box_scroll_arrow, 0, 295, 50, 1, 1, 180, c_white, 1); |
| 46 |
if ((i + global.dimensional_box_offset) <= ds_list_size(global.box_slot_list)) |
| 47 |
draw_sprite(spr_dimensional_box_scroll_arrow, 0, 295, 185); |