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