Undertale script viewer

← back to main script listing

gml_Object_obj_hotlandsign_Draw_0

(view raw script w/o annotations or w/e)
1
draw_set_color(c_black);
2
ossafe_fill_rectangle(x - 12, y - 12, x + 493, y + 52);
3
if (inactive == 0)
4
    draw_sprite_part_ext(spr_hotlandsign, image_index, 0 - xaround, 0, 60, 5, x, y, 8, 8, c_red, 1);
5
if (inactive == 1)
6
    draw_sprite_part_ext(spr_hotlandsign, image_index, 0 - xaround, 0, 60, 5, x, y, 8, 8, c_red, 0.5);
7
for (i = 0; i < 60; i += 1)
8
{
9
    g = 0;
10
    repeat (5)
11
    {
12
        draw_sprite(spr_hotlandcover, 0, x + (i * 8), y + (g * 8));
13
        g += 1;
14
    }
15
}
16
draw_set_color(c_green);
17
if (greenbright == 1)
18
    draw_set_color(c_lime);
19
draw_roundrect(x - 10, y - 10, x + 490, y + 50, 1);
20
draw_set_color(c_green);
21
if (greenbright == 3)
22
    draw_set_color(c_lime);
23
draw_roundrect(x - 11, y - 11, x + 491, y + 51, 1);
24
draw_set_color(c_green);
25
if (greenbright == 5)
26
    draw_set_color(c_lime);
27
draw_roundrect(x - 12, y - 12, x + 492, y + 52, 1);