| 1 |
if (live_call()) |
| 2 |
return global.live_result; |
| 3 |
var xx = 52; |
| 4 |
var yy = 52; |
| 5 |
draw_sprite_ext(spr_dialoguebox, 1, xx, yy, 1.1, 0.85, image_angle, c_white, image_alpha); |
| 6 |
draw_sprite_ext(spr_dialoguebox, 0, xx, yy, 1, 0.75, image_angle, image_blend, image_alpha); |
| 7 |
var bbox_yscale = 1.25; |
| 8 |
var bbox_yoffset = 70; |
| 9 |
var bbox_yscale_multiplier = selection_max - 3; |
| 10 |
bbox_yscale += (0.3 * bbox_yscale_multiplier); |
| 11 |
bbox_yoffset += (9.6 * bbox_yscale_multiplier); |
| 12 |
draw_sprite_ext(spr_dialoguebox, 1, xx, yy + bbox_yoffset, 1.1, bbox_yscale, image_angle, c_white, image_alpha); |
| 13 |
draw_sprite_ext(spr_dialoguebox, 0, xx, yy + bbox_yoffset, 1, bbox_yscale - 0.1, image_angle, image_blend, image_alpha); |
| 14 |
draw_set_colour(c_white); |
| 15 |
draw_set_font(fnt_stats); |
| 16 |
draw_text(xx - 28, yy - 2.5, string_hash_to_newline("LV " + string(global.player_level))); |
| 17 |
draw_text(xx - 28, yy + 5, string_hash_to_newline("HP " + string(global.current_hp_self) + "/" + string(global.max_hp_self))); |
| 18 |
draw_text(xx - 28, yy + 12.5, string_hash_to_newline("G " + string(global.player_gold))); |
| 19 |
draw_set_font(fnt_battle); |
| 20 |
draw_text(xx - 28, yy - 22, string_hash_to_newline(string(global.player_name))); |
| 21 |
if (!inventory_open && !stats_open && !mail_open) |
| 22 |
{ |
| 23 |
switch (selection) |
| 24 |
{ |
| 25 |
case 1: |
| 26 |
draw_sprite(encounter_heart, 0, xx - 20, yy + 48); |
| 27 |
break; |
| 28 |
case 2: |
| 29 |
draw_sprite(encounter_heart, 0, xx - 20, yy + 68); |
| 30 |
break; |
| 31 |
case 3: |
| 32 |
draw_sprite(encounter_heart, 0, xx - 20, yy + 88); |
| 33 |
break; |
| 34 |
case 4: |
| 35 |
draw_sprite(encounter_heart, 0, xx - 20, yy + 108); |
| 36 |
break; |
| 37 |
case 5: |
| 38 |
draw_sprite(encounter_heart, 0, xx - 20, yy + 128); |
| 39 |
break; |
| 40 |
} |
| 41 |
} |
| 42 |
for (var i = 1; i <= selection_max; i++) |
| 43 |
{ |
| 44 |
draw_set_color(c_white); |
| 45 |
if ((choice[i] == "ITEM" && global.item_slot[1] == "Nothing") || (choice[i] == "MAIL" && ds_list_empty(global.mail_list))) |
| 46 |
draw_set_color(c_gray); |
| 47 |
draw_text(xx - 10, yy + 20 + (20 * i), string_hash_to_newline(choice[i])); |
| 48 |
} |
| 49 |
if (stats_open == true) |
| 50 |
{ |
| 51 |
draw_sprite_ext(spr_dialoguebox, 1, xx + 125, yy + 72, 2.6, 3.1, image_angle, c_white, image_alpha); |
| 52 |
draw_sprite_ext(spr_dialoguebox, 0, xx + 125, yy + 72, 2.5, 3, image_angle, c_white, image_alpha); |
| 53 |
draw_set_colour(c_white); |
| 54 |
draw_set_font(fnt_battle); |
| 55 |
draw_text(xx + 57.2, yy - 10, string_hash_to_newline("\"Clover\"")); |
| 56 |
draw_text(xx + 150, yy - 10, string_hash_to_newline("LV " + string(global.player_level))); |
| 57 |
draw_text(xx + 57.2, yy + 10, string_hash_to_newline("HP " + string(global.current_hp_self) + " / " + string(global.max_hp_self))); |
| 58 |
draw_text(xx + 57.2, yy + 35, string_hash_to_newline("AT " + string(global.player_attack) + "(" + string(global.player_weapon_modifier_attack) + ")")); |
| 59 |
draw_text(xx + 57.2, yy + 50, string_hash_to_newline("DF " + string(global.player_defense) + "(" + string(global.player_armor_modifier_defense + global.player_armor_defense) + ")")); |
| 60 |
draw_text(xx + 130, yy + 35, string_hash_to_newline("EXP " + string(global.player_exp))); |
| 61 |
var level_up_treshhold = global.player_exp_next[global.player_level] - global.player_exp; |
| 62 |
draw_text(xx + 130, yy + 50, string_hash_to_newline("NEXT " + string(level_up_treshhold))); |
| 63 |
draw_text(xx + 57.2, yy + 70, string_hash_to_newline("WEAPON: " + global.player_weapon)); |
| 64 |
draw_text(xx + 57.2, yy + 85, string_hash_to_newline("ARMOR: " + global.player_armor)); |
| 65 |
var drawn_ammo = global.player_weapon_modifier; |
| 66 |
if (drawn_ammo == "Friendliness Pellets") |
| 67 |
drawn_ammo = "F. Pellets"; |
| 68 |
draw_text(xx + 57.2, yy + 105, string_hash_to_newline("AMMO: " + drawn_ammo)); |
| 69 |
draw_text(xx + 57.2, yy + 120, string_hash_to_newline("ACCE: " + global.player_armor_modifier)); |
| 70 |
draw_text(xx + 57.2, yy + 140, string_hash_to_newline("GOLD: " + string(global.player_gold))); |
| 71 |
} |
| 72 |
if (inventory_open) |
| 73 |
{ |
| 74 |
draw_sprite_ext(spr_dialoguebox, 1, xx + 125, yy + 56, 2.6, 2.6, image_angle, c_white, image_alpha); |
| 75 |
draw_sprite_ext(spr_dialoguebox, 0, xx + 125, yy + 56, 2.5, 2.5, image_angle, c_white, image_alpha); |
| 76 |
draw_set_colour(c_white); |
| 77 |
draw_set_font(fnt_battle); |
| 78 |
for (var n = 1; n <= 8; n++) |
| 79 |
{ |
| 80 |
if (global.item_slot[n] != "Nothing") |
| 81 |
{ |
| 82 |
if (global.item_slot[n] == "Dihydrogen Monoxide") |
| 83 |
draw_text(xx + 65, (yy - 30) + (n * 15), string_hash_to_newline("H2O")); |
| 84 |
else if (global.item_slot[n] == "Friendliness Pellets") |
| 85 |
draw_text(xx + 65, (yy - 30) + (n * 15), string_hash_to_newline("F. Pellets")); |
| 86 |
else |
| 87 |
draw_text(xx + 65, (yy - 30) + (n * 15), string_hash_to_newline(global.item_slot[n])); |
| 88 |
} |
| 89 |
} |
| 90 |
draw_text(xx + 65, yy + 115, string_hash_to_newline("USE")); |
| 91 |
draw_text(xx + 110, yy + 115, string_hash_to_newline("INFO")); |
| 92 |
draw_text(xx + 160, yy + 115, string_hash_to_newline("DROP")); |
| 93 |
if (item_inspect == false) |
| 94 |
draw_sprite(encounter_heart, 0, xx + 55, (yy - 22) + (15 * item_selected)); |
| 95 |
} |
| 96 |
if (item_inspect) |
| 97 |
{ |
| 98 |
switch (selection) |
| 99 |
{ |
| 100 |
case 1: |
| 101 |
draw_sprite(encounter_heart, 0, xx + 55, yy + 123); |
| 102 |
break; |
| 103 |
case 2: |
| 104 |
draw_sprite(encounter_heart, 0, xx + 100, yy + 123); |
| 105 |
break; |
| 106 |
case 3: |
| 107 |
draw_sprite(encounter_heart, 0, xx + 150, yy + 123); |
| 108 |
break; |
| 109 |
} |
| 110 |
} |
| 111 |
if (mail_open) |
| 112 |
{ |
| 113 |
draw_sprite_ext(spr_dialoguebox, 1, xx + 125, yy + 56, 2.6, 2.6, image_angle, c_white, image_alpha); |
| 114 |
draw_sprite_ext(spr_dialoguebox, 0, xx + 125, yy + 56, 2.5, 2.5, image_angle, c_white, image_alpha); |
| 115 |
draw_set_font(fnt_battle); |
| 116 |
for (var n = 0; n < mail_display_count; n++) |
| 117 |
{ |
| 118 |
draw_set_color(c_white); |
| 119 |
var mail_name = ds_list_find_value(global.mail_list, n + mail_offset); |
| 120 |
if (ds_list_find_index(global.mail_list_read, mail_name) != -1) |
| 121 |
draw_set_color(c_gray); |
| 122 |
if (n == 0 && mail_offset == 0 && global.mail_pinned) |
| 123 |
draw_set_color(c_yellow); |
| 124 |
if (mail_name != undefined) |
| 125 |
draw_text(xx + 65, (yy - 15) + (n * 15), string_hash_to_newline(mail_name)); |
| 126 |
} |
| 127 |
draw_set_color(c_white); |
| 128 |
draw_text(xx + 65, yy + 115, string_hash_to_newline("READ")); |
| 129 |
draw_text(xx + 110, yy + 115, string_hash_to_newline("PIN")); |
| 130 |
draw_text(xx + 160, yy + 115, string_hash_to_newline("DROP")); |
| 131 |
if (mail_inspect == false) |
| 132 |
draw_sprite(encounter_heart, 0, xx + 55, (yy - 22) + (15 * (mail_selected + 1))); |
| 133 |
if (mail_offset > 0) |
| 134 |
draw_sprite_ext(spr_dimensional_box_scroll_arrow, 0, 240, 50, 1, 1, 180, c_white, 1); |
| 135 |
if ((mail_offset + 8) <= (ds_list_size(global.mail_list) - 1)) |
| 136 |
draw_sprite(spr_dimensional_box_scroll_arrow, 0, 240, 147); |
| 137 |
} |
| 138 |
if (mail_inspect) |
| 139 |
{ |
| 140 |
switch (selection) |
| 141 |
{ |
| 142 |
case 1: |
| 143 |
draw_sprite(encounter_heart, 0, xx + 55, yy + 123); |
| 144 |
break; |
| 145 |
case 2: |
| 146 |
draw_sprite(encounter_heart, 0, xx + 100, yy + 123); |
| 147 |
break; |
| 148 |
case 3: |
| 149 |
draw_sprite(encounter_heart, 0, xx + 150, yy + 123); |
| 150 |
break; |
| 151 |
} |
| 152 |
} |