Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_quote_battle_dummy_training_parent_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
        exit;
5
}
6
else
7
{
8
    exit;
9
}
10
draw_set_font(global.font_type_text);
11
draw_set_color(c_white);
12
draw_set_halign(fa_left);
13
draw_set_valign(fa_top);
14
if (instance_exists(obj_dialogue_box_battle))
15
{
16
    if (portrait_enabled == true)
17
    {
18
        if (portrait[message_current] != -4)
19
        {
20
            if (text_effect == "twitchy")
21
                script_execute(scr_draw_text_effect_twitchy_textbox_battle_dialogue);
22
            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);
23
        }
24
        else if (text_effect == "twitchy")
25
        {
26
            script_execute(scr_draw_text_effect_twitchy_textbox_battle);
27
        }
28
    }
29
    else if (text_effect == "twitchy")
30
    {
31
        script_execute(scr_draw_text_effect_twitchy_textbox_battle);
32
    }
33
}