Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_eq_visualizer_Draw_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
var box = obj_dialogue_box_battle_transformation_any
4
draw_set_color(c_white)
5
for (var i = 0; i < eq_bar_number; i++)
6
{
7
    var xx = box.bbox_left + 6 + (i + 1) * eq_bar_gap + eq_bar_width * i
8
    var yy = box.bbox_bottom - 6
9
    yy_2 = yy - eq_bar_height[i]
10
    draw_rectangle_color(xx, yy, (xx + eq_bar_width), yy_2, c_gray, c_gray, c_white, c_white, false)
11
    if (eq_bar_draw_warning_bars == true)
12
    {
13
        yy_2 = yy - eq_bar_height_target[i]
14
        draw_set_alpha(0.3)
15
        draw_rectangle_color(xx, yy, (xx + eq_bar_width), yy_2, c_red, c_red, c_red, c_red, false)
16
        draw_set_alpha(1)
17
    }
18
}