SetPlaySettings() public method

Play from the start to end, repeat times, set to endAt on complete. 从start帧开始,播放到end帧(-1表示结尾),重复times次(0表示无限循环),循环结束后,停止在endAt帧(-1表示参数end)
public SetPlaySettings ( int start, int end, int times, int endAt ) : void
start int Start frame
end int End frame. -1 indicates the last frame.
times int Repeat times. 0 indicates infinite loop.
endAt int Stop frame. -1 indicates to equal to the end parameter.
return void
Ejemplo n.º 1
0
 static int SetPlaySettings(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 5);
         FairyGUI.GMovieClip obj = (FairyGUI.GMovieClip)ToLua.CheckObject <FairyGUI.GMovieClip>(L, 1);
         int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
         int arg2 = (int)LuaDLL.luaL_checknumber(L, 4);
         int arg3 = (int)LuaDLL.luaL_checknumber(L, 5);
         obj.SetPlaySettings(arg0, arg1, arg2, arg3);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Ejemplo n.º 2
0
 static public int SetPlaySettings(IntPtr l)
 {
     try {
         FairyGUI.GMovieClip self = (FairyGUI.GMovieClip)checkSelf(l);
         System.Int32        a1;
         checkType(l, 2, out a1);
         System.Int32 a2;
         checkType(l, 3, out a2);
         System.Int32 a3;
         checkType(l, 4, out a3);
         System.Int32 a4;
         checkType(l, 5, out a4);
         self.SetPlaySettings(a1, a2, a3, a4);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }