You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.4 KiB

var compl;
if (!oControl.mod_IGT)
instance_destroy()
if (surface_exists(igt_surface) && surface_get_width(igt_surface) < (320 + oControl.widescreen_space))
surface_free(igt_surface)
if (!surface_exists(igt_surface))
igt_surface = surface_create((320 + oControl.widescreen_space), 240)
if surface_exists(igt_surface)
{
compl = string(round(((global.itemstaken / 88) * 100)))
surface_set_target(igt_surface)
draw_clear_alpha(c_black, 0)
draw_set_font(global.fontGUI2)
draw_set_halign(fa_left)
draw_set_alpha(0.39215686274509803)
draw_set_color(c_black)
draw_rectangle(0, 20, (54 - (4 * string_count("1", steps_to_time2(global.gametime)))), 29, false)
draw_set_alpha(1)
draw_set_color(c_white)
draw_cool_text(4, 16, steps_to_time2(global.gametime), c_black, c_white, c_gray, 1)
if (oControl.mod_collecteditemsmap == 1)
{
draw_set_halign(fa_right)
draw_set_alpha(0.39215686274509803)
draw_set_color(c_black)
draw_rectangle(((((320 + oControl.widescreen_space) + (4 * string_count("1", compl))) - (7 * (string_length(compl) - 1))) - 21), 32, (320 + oControl.widescreen_space), 41, false)
draw_set_alpha(1)
draw_set_color(c_white)
draw_cool_text((surface_get_width(igt_surface) - 3), 28, (compl + "%"), c_black, c_white, c_silver, 1)
draw_set_halign(fa_left)
}
surface_reset_target()
}