|
1
|
init = false;
|
|
2
|
text_timer = 0;
|
|
3
|
text_speed = -2;
|
|
4
|
text_y_pos = 0;
|
|
5
|
text_x_pos[0] = view_wport[0] / 4;
|
|
6
|
text_x_pos[1] = view_wport[0] / 4;
|
|
7
|
yy = 0;
|
|
8
|
margin_top = 8;
|
|
9
|
target_ypos = -80;
|
|
10
|
banner_alpha = 0;
|
|
11
|
_highscore = 0;
|
|
12
|
_highscore_rank = 0;
|
|
13
|
_highscore_rank_hard = 0;
|
|
14
|
_highscore_hard = 0;
|
|
15
|
_track_name = "";
|
|
16
|
scrolling_text = "";
|
|
17
|
show_active = false;
|
|
18
|
draw_set_font(scr_84_get_fontscr_84_get_font
function scr_84_get_font(arg0)
{
if (!variable_global_exists("chemg_last_get_font"))
global.chemg_last_get_font = "";
if (arg0 != global.chemg_last_get_font)
global.chemg_last_get_font = arg0;
return ds_map_find_value(global.font_map, arg0);
} ("mainbig"));
|
|
19
|
|
|
20
|
init_song = function(arg0)
|
|
21
|
{
|
|
22
|
_highscore = string(arg0[0]);
|
|
23
|
_highscore_rank = string(arg0[1]);
|
|
24
|
_highscore_rank_hard = string(arg0[2]);
|
|
25
|
_highscore_hard = string(arg0[3]);
|
|
26
|
_track_name = string(arg0[4]);
|
|
27
|
_song_id = string(arg0[5]);
|
|
28
|
scrolling_text = "! " + _track_name + " ! " + "High Score (Normal) - " + _highscore + " ! " + "High Score (Hard) - " + _highscore_hard + " ! ";
|
|
29
|
init = true;
|
|
30
|
};
|
|
31
|
|
|
32
|
show_banner = function()
|
|
33
|
{
|
|
34
|
var x_offset = 0;
|
|
35
|
if (global.lang == "ja")
|
|
36
|
{
|
|
37
|
if (_song_id == 0)
|
|
38
|
x_offset = 400;
|
|
39
|
else if (_song_id == 2)
|
|
40
|
x_offset = 160;
|
|
41
|
else if (_song_id == 10)
|
|
42
|
x_offset = 160;
|
|
43
|
}
|
|
44
|
text_x_pos[0] = 40;
|
|
45
|
text_x_pos[1] = 40 + (string_width(scrolling_text) * 2) + x_offset;
|
|
46
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("banner_alpha", banner_alpha, 1, 30, 2, "out");
|
|
47
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("target_ypos", target_ypos, 16, 20, 2, "out");
|
|
48
|
};
|
|
49
|
|
|
50
|
hide_banner = function()
|
|
51
|
{
|
|
52
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("banner_alpha", banner_alpha, 0, 30, 2, "out");
|
|
53
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("target_ypos", target_ypos, -80, 20, 2, "out");
|
|
54
|
};
|