Untitled
unknown
plain_text
3 years ago
705 B
16
Indexable
if !surface_exists(shop_surf) {shop_surf = surface_create(width,height);} else { surface_set_target(shop_surf); draw_clear_alpha(c_black, 0.5); view_surface_id[view]=shop_surf; draw_set_font(shop_font); draw_set_halign(fa_left); draw_set_valign(fa_top); for(var i=0; i<shop_items; i++) { var txt=shop[i]; if (shop_cursor==i) { var col=c_lime; } else { var col=c_olive; } var yy=shop_y-(shop_itemheight*(i*3)); draw_set_color(col); draw_text(shop_x,yy,txt); } surface_reset_target(); draw_surface ( shop_surf, x, y ); }
Editor is loading...