1 |
if (logocon > 0) |
2 |
{ |
3 |
draw_set_color(c_navy) |
4 |
draw_set_alpha(logoalpha / 1.5) |
5 |
draw_rectangle((xx + 40), (yy + 10), (xx + ww - 40), (yy + hh - 20), false) |
6 |
draw_set_alpha(1) |
7 |
draw_sprite_ext(scr_84_get_sprite_ch1("spr_thrashlogo"), 0, (xx + 40 + logoalpha * 20), (yy + 20), 2, 2, 0, c_white, logoalpha) |
8 |
if (logocon == 1) |
9 |
{ |
10 |
logoalpha += 0.05 |
11 |
if (logoalpha >= 1) |
12 |
logocon = 2 |
13 |
} |
14 |
if (logocon == 3) |
15 |
{ |
16 |
logoalpha -= 0.05 |
17 |
if (logoalpha <= 0) |
18 |
logocon = 4 |
19 |
} |
20 |
} |
21 |
if (introtimer >= 0 && introtimer < 200) |
22 |
{ |
23 |
presented_xoff = 0 |
24 |
madeup_xoff = 0 |
25 |
if (global.lang == "ja") |
26 |
presented_xoff = -26 |
27 |
if (global.lang == "ja") |
28 |
madeup_xoff = -6 |
29 |
scr_84_set_draw_font_ch1("mainbig") |
30 |
draw_set_color(c_white) |
31 |
if (introtimer >= 50 && introtimer <= 70) |
32 |
textalpha1 += 0.05 |
33 |
if (introtimer >= 110 && introtimer <= 130) |
34 |
textalpha2 += 0.05 |
35 |
if (introtimer >= 180) |
36 |
{ |
37 |
textalpha1 -= 0.05 |
38 |
textalpha2 -= 0.05 |
39 |
} |
40 |
draw_set_alpha(textalpha1) |
41 |
draw_text((xx + presented_xoff + 100 + textalpha1 * 20), (yy + 160), string_hash_to_newline(obj_thrashcontroller_slash_Draw_0_gml_39_0 )) |
42 |
draw_set_alpha(textalpha2) |
43 |
draw_text((xx + 100 + madeup_xoff + textalpha2 * 20), (yy + 260), string_hash_to_newline(obj_thrashcontroller_slash_Draw_0_gml_41_0 )) |
44 |
draw_set_alpha(1) |
45 |
} |
46 |
if (con >= 1) |
47 |
{ |
48 |
for (i = 0; i < 6; i += 1) |
49 |
{ |
50 |
draw_sprite_ext(scr_84_get_sprite_ch1("spr_thrashstats"), i, (xx + 440), (yy + 120 + 24 * i), 2, 2, 0, statcolor[i], logoalpha) |
51 |
for (j = 0; j < stat[i]; j += 1) |
52 |
draw_sprite_ext(spr_thrashstar_ch1, i, (xx + 510 + j * 20), (yy + 120 + 24 * i), 2, 2, 0, statcolor[i], logoalpha) |
53 |
} |
54 |
if (menu >= 0 && menu <= 3) |
55 |
{ |
56 |
colorbar_xoff = 0 |
57 |
if (global.lang == "ja") |
58 |
colorbar_xoff = 22 |
59 |
left_xoff = 0 |
60 |
if (global.lang == "ja") |
61 |
left_xoff = -26 |
62 |
colorname_xoff = 0 |
63 |
if (global.lang == "ja") |
64 |
colorname_xoff = 86 - left_xoff |
65 |
for (i = 0; i < 4; i += 1) |
66 |
{ |
67 |
for (j = 0; j < 2; j += 1) |
68 |
{ |
69 |
draw_set_color(c_white) |
70 |
if (menucoord1y == i && menucoord1x == j) |
71 |
{ |
72 |
draw_set_color(c_yellow) |
73 |
draw_sprite(spr_heart_ch1, 0, (xx + 80 + left_xoff + (200 + colorname_xoff) * j), (yy + 310 + i * 36)) |
74 |
} |
75 |
if (j == 1 && global.flag[(220 + i)] < 0) |
76 |
draw_set_color(c_dkgray) |
77 |
if (i == 3) |
78 |
{ |
79 |
if (global.flag[220 thrash_machine_head] < 0 || global.flag[221 thrash_machine_body] < 0 || global.flag[222 thrash_machine_shoe] < 0) |
80 |
draw_set_color(c_dkgray) |
81 |
} |
82 |
if (j == 1 && menu == (i + 1)) |
83 |
draw_set_color(c_yellow) |
84 |
draw_text((xx + left_xoff + 100 + (colorname_xoff + 200) * j), (yy + 300 + i * 36), string_hash_to_newline(menutext1[j][i])) |
85 |
} |
86 |
} |
87 |
for (j = 0; j < 3; j += 1) |
88 |
{ |
89 |
for (i = 0; i < 32; i += 1) |
90 |
{ |
91 |
draw_set_color(precolor[i]) |
92 |
draw_rectangle((xx + 460 + i * 3 + colorbar_xoff), (yy + 310 + j * 36), (xx + 463 + i * 3 + colorbar_xoff), (yy + 330 + j * 36), false) |
93 |
} |
94 |
draw_set_color(c_white) |
95 |
if (menu != (j + 1)) |
96 |
{ |
97 |
draw_set_alpha(0.5) |
98 |
draw_set_color(c_black) |
99 |
draw_rectangle((xx + 460 + colorbar_xoff), (yy + 310 + j * 36), (xx + 556 + colorbar_xoff), (yy + 330 + j * 36), false) |
100 |
draw_set_alpha(1) |
101 |
draw_set_color(c_gray) |
102 |
} |
103 |
draw_rectangle((xx + 460 + (global.flag[(223 + j)]) * 3 + colorbar_xoff), (yy + 305 + j * 36), (xx + 463 + (global.flag[(223 + j)]) * 3 + colorbar_xoff), (yy + 315 + j * 36), false) |
104 |
} |
105 |
} |
106 |
if (menu >= 4 && menu <= 6) |
107 |
{ |
108 |
for (i = 0; i < 4; i += 1) |
109 |
{ |
110 |
draw_set_color(c_white) |
111 |
draw_text((xx + 360), (yy + 300), string_hash_to_newline(assetdesc[(menu - 4)][global.flag[(216 + menu)]])) |
112 |
if (menucoord2[(menu - 4)] == i) |
113 |
{ |
114 |
draw_set_color(c_yellow) |
115 |
draw_sprite(spr_heart_ch1, 0, (xx + 80), (yy + 310 + i * 36)) |
116 |
} |
117 |
draw_text((xx + 100), (yy + 300 + i * 36), string_hash_to_newline(menutext2[(menu - 4)][i])) |
118 |
} |
119 |
} |
120 |
if (menu == 7) |
121 |
{ |
122 |
yoroshii_xoff = 0 |
123 |
if (global.lang == "ja") |
124 |
yoroshii_xoff = -50 |
125 |
endtext = obj_thrashcontroller_slash_Draw_0_gml_155_0 |
126 |
if (global.flag[220 thrash_machine_head] == 3 && global.flag[221 thrash_machine_body] == 3 && global.flag[222 thrash_machine_shoe] == 3) |
127 |
endtext = obj_thrashcontroller_slash_Draw_0_gml_158_0 |
128 |
draw_set_color(c_white) |
129 |
draw_text((xx + 180 + yoroshii_xoff), (yy + 300), string_hash_to_newline(endtext)) |
130 |
draw_set_color(c_white) |
131 |
if (endcoord == 0) |
132 |
{ |
133 |
draw_set_color(c_yellow) |
134 |
draw_sprite(spr_heart_ch1, 0, (xx + 220), (yy + 400)) |
135 |
} |
136 |
draw_text((xx + 240), (yy + 390), string_hash_to_newline(obj_thrashcontroller_slash_Draw_0_gml_171_0 )) |
137 |
if (endcoord == 1) |
138 |
{ |
139 |
draw_set_color(c_yellow) |
140 |
draw_sprite(spr_heart_ch1, 0, (xx + 360), (yy + 400)) |
141 |
} |
142 |
draw_set_color(c_white) |
143 |
draw_text((xx + 380), (yy + 390), string_hash_to_newline(obj_thrashcontroller_slash_Draw_0_gml_180_0 )) |
144 |
} |
145 |
} |