Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_text_main_screen_shop_geno_Draw_0

(view raw script w/o annotations or w/e)
1
var shop_name = global.shop_name
2
draw_set_font(fnt_battle)
3
draw_set_color(c_white)
4
draw_set_halign(fa_left)
5
draw_set_valign(fa_top)
6
if (shop_name == "Steamworks Vendy Geno")
7
{
8
    draw_text((obj_main_screen_shop.x + 240), (obj_main_screen_shop.y + 10), string_hash_to_newline("Take"))
9
    draw_text((obj_main_screen_shop.x + 240), (obj_main_screen_shop.y + 30), string_hash_to_newline("-"))
10
    draw_text((obj_main_screen_shop.x + 240), (obj_main_screen_shop.y + 50), string_hash_to_newline("Exit"))
11
}
12
else
13
{
14
    draw_text((obj_main_screen_shop.x + 240), (obj_main_screen_shop.y + 10), string_hash_to_newline("Take"))
15
    draw_text((obj_main_screen_shop.x + 240), (obj_main_screen_shop.y + 30), string_hash_to_newline("Steal"))
16
    draw_text((obj_main_screen_shop.x + 240), (obj_main_screen_shop.y + 50), string_hash_to_newline("Exit"))
17
}