Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_quote_battle_ffstarlo_Draw_0

(view raw script w/o annotations or w/e)
1
if instance_exists(obj_dialogue_box_battle)
2
{
3
    if (obj_dialogue_box_battle.image_alpha == 0)
4
        return;
5
}
6
else
7
    return;
8
draw_set_font(global.font_type_text)
9
draw_set_color(c_white)
10
draw_set_halign(fa_left)
11
draw_set_valign(fa_top)
12
if instance_exists(obj_dialogue_box_battle)
13
{
14
    if (portrait_enabled == true)
15
    {
16
        if (portrait[message_current] != spr_blank)
17
        {
18
            if (text_effect == "twitchy")
19
                script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle_dialogue)
20
            draw_sprite_ext(portrait[message_current], portrait_image_index, (obj_dialogue_box_battle.x + global.portrait_b_disjoint_x_starlo), (obj_dialogue_box_battle.y + global.portrait_b_disjoint_y_starlo), 1, 1, 0, c_white, 1)
21
        }
22
        else if (text_effect == "twitchy")
23
            script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle)
24
    }
25
    else if (text_effect == "twitchy")
26
        script_execute(gml_Script_scr_draw_text_effect_twitchy_textbox_battle)
27
}