Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_item_use_menu_Draw_64

(view raw script w/o annotations or w/e)
1
var xx = 160
2
var yy = 60
3
draw_sprite_ext(spr_dialoguebox, 1, xx, (yy + 56), 2.6, 2.6, image_angle, c_white, image_alpha)
4
draw_sprite_ext(spr_dialoguebox, 0, xx, (yy + 56), 2.5, 2.5, image_angle, c_white, image_alpha)
5
draw_set_colour(c_white)
6
draw_set_font(fnt_battle)
7
for (var n = 1; n <= 8; n++)
8
{
9
    if (global.item_slot[n] != "Nothing")
10
        draw_text((xx - 60), (yy - 30 + n * 15), string_hash_to_newline(global.item_slot[n]))
11
}
12
draw_sprite(encounter_heart, 0, (xx - 70), (yy - 22 + 15 * item_selected))