Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_sme_yellow_rhythm_note_Draw_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
draw_sprite_clip_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, c_white, image_alpha, (box.bbox_left + 5), box.bbox_top, (box.sprite_width - 10), (box.sprite_height - 37))
4
if (obj_battle_el_bailador_controller.battle_el_bail_event_tutorial == true && global.option_autorhythm == false)
5
{
6
    var yy = y - 15
7
    draw_set_font(fnt_battle)
8
    draw_set_valign(fa_middle)
9
    draw_set_halign(fa_center)
10
    draw_set_alpha(hint_marker_alpha)
11
    if (in_hint_boundary == false)
12
        draw_set_color(c_gray)
13
    else
14
    {
15
        draw_set_color(c_black)
16
        draw_text_ext_transformed((x - 1), (yy - 1), global.action_key, 0, 10, hint_marker_scale, hint_marker_scale, 0)
17
        draw_text_ext_transformed((x - 1), (yy + 1), global.action_key, 0, 10, hint_marker_scale, hint_marker_scale, 0)
18
        draw_text_ext_transformed((x + 1), (yy - 1), global.action_key, 0, 10, hint_marker_scale, hint_marker_scale, 0)
19
        draw_text_ext_transformed((x + 1), (yy + 1), global.action_key, 0, 10, hint_marker_scale, hint_marker_scale, 0)
20
        draw_text_ext_transformed((x + 1), yy, global.action_key, 0, 10, hint_marker_scale, hint_marker_scale, 0)
21
        draw_text_ext_transformed((x - 1), yy, global.action_key, 0, 10, hint_marker_scale, hint_marker_scale, 0)
22
        draw_set_color(c_white)
23
    }
24
    draw_text_ext_transformed(x, yy, global.action_key, 0, 10, hint_marker_scale, hint_marker_scale, 0)
25
    draw_set_alpha(1)
26
    draw_set_valign(fa_top)
27
}