1 | item_max_count = 0; |
2 | for (i = 1; i <= 8; i += 1) |
3 | { |
4 | if (global.item_slot[i] != "Nothing") |
5 | item_max_count += 1; |
6 | } |
7 | draw_set_font(fnt_battle); |
8 | draw_set_color(c_white); |
9 | draw_set_halign(fa_left); |
10 | draw_set_valign(fa_top); |
11 | draw_text(obj_main_screen_shop.x + 230, obj_main_screen_shop.y + 90, string_hash_to_newline(string(global.player_gold) + "G")); |
12 | draw_text(obj_main_screen_shop.x + 280, obj_main_screen_shop.y + 90, string_hash_to_newline(string(item_max_count) + "/8")); |