require "args";
require "animation";
require "timer";
require "evar";

function bang_pause_test( str )
    message_box( LSLUA_VERSION );
    timer.pause( str );
    message_box( evar.LiteStepDir );
end

function bang_args_test( str )
    params = args.qsplit( str );
    for i, v in ipairs( params ) do
        message_box( v );
    end
end

function test1()
    for i = 1, 20 do
        exec( "!LabelMoveBy", "anitest1", 5, 0 );
        timer.pause( 1000 );
        animation.end_frame();
    end
end

function test2()
    for i = 1, 20 do
        exec( "!LabelMoveBy", "anitest2", 0, 5 );
        timer.pause( 10 );
        animation.end_frame();
    end
end

function bang_animation_test( str )
    local cotest1 = animation.create( test1 );
    local cotest2 = animation.create( test2 );
    --animation.run( cotest1 );
    --animation.run( cotest2 );
    local cotest1 = animation.create( test1 );
    local cotest2 = animation.create( test2 );
    animation.run( cotest1, cotest2 );
end
