Code: Select all
...
draw:
handle_pen_keys(handle_st_down, handle_st_move, handle_st_up)
handle_hard_keys(handle_play, 0)
handle_press
if (simulate = 1)
{
if (get_timer(0) >= sp)
{
next_matrix
start_timer(0)
}
}
paint
if (record = 0)
{
frame(stepsp)
}
else
{
frame(sp)
}
goto draw
handle_st_down:
...
if(gpr(button_shot_x - b_x /2, button_shot_y - b_y / 2, b_x, b_y) = 1)
{
handle_shot
ret
}
...
ret
...
handle_shot:
if (record != 1 & file_dialog(str, "Сохранение снимка в gif", "gif", "record.ini") = 1)
{
video_export_gif(str, -w / 2, -h / 2, w, h - panel_size) //после этой команды дальше идти не хочет
frame(100)
stop_video_export
}
ret
...