1 |
if live_call() |
2 |
return global.live_result; |
3 |
draw_set_font(fnt_main) |
4 |
var x_offset = 40 |
5 |
var y_offset = 40 |
6 |
var line_counter = 0 |
7 |
var line_offset = 20 |
8 |
var section_offset = 30 |
9 |
var header_offset = 10 |
10 |
switch current_slide |
11 |
{ |
12 |
case 0: |
13 |
break |
14 |
case 1: |
15 |
draw_sprite_ext(spr_logo_undertale, 1, 160, 96, 0.5, 0.5, 0, c_white, 1) |
16 |
draw_sprite_ext(logo_yellow, 1, 160, 128, 0.5, 0.5, 0, c_white, 1) |
17 |
break |
18 |
case 2: |
19 |
draw_set_halign(fa_center) |
20 |
draw_set_color(c_yellow) |
21 |
draw_text(160, 100, credits_entry[0][0]) |
22 |
draw_set_color(c_white) |
23 |
draw_text(160, 120, credits_entry[0][1]) |
24 |
break |
25 |
case 3: |
26 |
self.draw_credit_group(1, 20, 20) |
27 |
self.draw_credit_group(2, 150, 20) |
28 |
self.draw_credit_group(3, 100, 140) |
29 |
break |
30 |
case 4: |
31 |
self.draw_credit_group(4, 20, 20) |
32 |
self.draw_credit_group(5, 150, 15) |
33 |
break |
34 |
case 5: |
35 |
self.draw_credit_group(6, 90, 15) |
36 |
self.draw_credit_group(9, 20, 125) |
37 |
self.draw_credit_group(10, 170, 125) |
38 |
self.draw_credit_group(11, 90, 175) |
39 |
break |
40 |
case 6: |
41 |
self.draw_credit_group(7, 20, 20) |
42 |
self.draw_credit_group(8, 170, 20) |
43 |
break |
44 |
case 7: |
45 |
self.draw_credit_group(13, 20, 20) |
46 |
self.draw_credit_group(14, 170, 20) |
47 |
self.draw_credit_group(15, 20, 130) |
48 |
break |
49 |
case 8: |
50 |
self.draw_credit_group(16, 20, 20) |
51 |
break |
52 |
case 9: |
53 |
self.draw_credit_group(17, 20, 20) |
54 |
break |
55 |
case 10: |
56 |
self.draw_credit_group(18, 20, 20) |
57 |
break |
58 |
case 11: |
59 |
self.draw_credit_group(19, 20, 20) |
60 |
break |
61 |
case 12: |
62 |
draw_set_halign(fa_center) |
63 |
draw_set_color(c_white) |
64 |
draw_text(160, 70, credits_entry[20][0]) |
65 |
draw_text(160, 130, credits_entry[20][2]) |
66 |
break |
67 |
default: |
68 |
|
69 |
} |
70 |
|
71 |
function draw_credit_group_gml_Object_obj_credits_final_geno_Draw_64(argument0, argument1, argument2) //gml_Script_draw_credit_group_gml_Object_obj_credits_final_geno_Draw_64 |
72 |
{ |
73 |
draw_set_halign(fa_left) |
74 |
for (var i = 0; i < array_length(credits_entry[argument0]); i++) |
75 |
{ |
76 |
var current_line = (i - 1) div 9 |
77 |
draw_set_color(c_white) |
78 |
var x_modif = 0 + current_line * 160 |
79 |
var y_modif = i * 20 - current_line * 180 |
80 |
var y_modif_height = 0 |
81 |
if (string_height(credits_entry[argument0][0]) > 20 && i > 0) |
82 |
y_modif_height = 15 |
83 |
if (i == 0) |
84 |
{ |
85 |
draw_set_color(c_yellow) |
86 |
x_modif = 0 |
87 |
} |
88 |
draw_text((argument1 + x_modif), (argument2 + y_modif + y_modif_height), credits_entry[argument0][i]) |
89 |
draw_set_color(c_white) |
90 |
} |
91 |
} |