|
1
|
draw_self_board();
|
|
2
|
if (drawblue == true)
|
|
3
|
draw_sprite_ext(spr_pxwhite, 0, 0, 0, 640, 480, 0, #3F48CC, 1);
|
|
4
|
if (drawtext)
|
|
5
|
{
|
|
6
|
ttimer++;
|
|
7
|
if ((ttimer % 4) == 0 && timer > 0 && texttimer <= (string_length(shopstring) + 20))
|
|
8
|
{
|
|
9
|
texttimer++;
|
|
10
|
if (texttimer < string_length(shopstring))
|
|
11
|
{
|
|
12
|
}
|
|
13
|
if (texttimer == string_length(shopstring))
|
|
14
|
textcomplete = true;
|
|
15
|
}
|
|
16
|
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);
} ("8bit"));
|
|
17
|
draw_set_color(c_white);
|
|
18
|
var currentstring = string_hash_to_newline(string_copy(shopstring, 1, texttimer));
|
|
19
|
var txtwidth = string_width(string_hash_to_newline(shopstring));
|
|
20
|
if (drawtext)
|
|
21
|
draw_text_ext(((320 - (round(txtwidth) / 2)) + 4) - 3, board_tiley(2) + 12 + 17, string_hash_to_newline(shopstring), 24, 640);
|
|
22
|
}
|
|
23
|
if (drawblack == true)
|
|
24
|
draw_sprite_ext(spr_pxwhite, 0, 0, 0, 640, 480, 0, c_black, 1);
|