Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_dw_ch3_teevie_marquee_Draw_0

(view raw script w/o annotations or w/e)
1
var _left = x;
2
var _top = y;
3
var _width = width;
4
var _height = 14;
5
draw_sprite_ext(spr_pxwhite, 0, x, y, width, 14, 0, c_black, 1);
6
if (!surface_exists(clip_surface))
7
    clip_surface = surface_create(_width, _height);
8
surface_set_target(clip_surface);
9
draw_clear_alpha(c_black, 0);
10
draw_set_color(c_white);
11
draw_set_font(global.tvlandfont);
12
draw_text_ext_transformed(
scr_even
scr_even

function
scr_even(arg0)
{ return round(arg0 / 2) * 2; }
(x - _left - xpos), (y + 2) - _top, mystring, 0, 999999999, 2, 2, 0);
13
surface_reset_target();
14
draw_surface(clip_surface, _left, _top);
15
textwidth = string_width(mystring);
16
if (xpos >= ((textwidth * 2) + looppause))
17
    xpos = -width;