Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_train_choice_Draw_64

(view raw script w/o annotations or w/e)
1
var xx = 160
2
var yy = 60
3
draw_set_alpha(draw_alpha)
4
draw_sprite_ext(spr_dialoguebox, 1, xx, (yy + 56), 4.5, 3, image_angle, c_white, image_alpha)
5
draw_sprite_ext(spr_dialoguebox, 0, xx, (yy + 56), 4.4, 2.9, image_angle, c_white, image_alpha)
6
draw_set_colour(c_white)
7
draw_set_font(fnt_battle)
8
draw_set_halign(fa_center)
9
if (selection == 1)
10
    d3d_set_fog(true, c_gray, 0, 0)
11
draw_sprite(spr_ed_pose, 15, 80, 120)
12
d3d_set_fog(false, c_white, 0, 0)
13
draw_text(80, 180, string_hash_to_newline(choice[0]))
14
if (selection == 0)
15
    d3d_set_fog(true, c_gray, 0, 0)
16
draw_sprite(spr_moray_pose, 15, 240, 100)
17
draw_sprite(spr_ace_pose, 14, 220, 140)
18
draw_sprite(spr_mooch_pose, 12, 260, 140)
19
d3d_set_fog(false, c_white, 0, 0)
20
draw_text(240, 180, string_hash_to_newline(choice[1]))
21
if (selection == 0)
22
    draw_sprite(spr_heart_yellow_overworld, 0, 80, 160)
23
if (selection == 1)
24
    draw_sprite(spr_heart_yellow_overworld, 0, 240, 160)
25
draw_text_transformed(160, 40, string_hash_to_newline(floor(train_timer / 30)), 2, 2, 0)
26
draw_set_alpha(1)