FairyGUI.ScrollPane.SetCurrentPageX C# (CSharp) Method

SetCurrentPageX() public method

public SetCurrentPageX ( int value, bool ani ) : void
value int
ani bool
return void
        public void SetCurrentPageX(int value, bool ani)
        {
            if (_xOverlap > 0)
                this.SetPosX(value * _pageSize.x, ani);
        }

Usage Example

 static int SetCurrentPageX(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         FairyGUI.ScrollPane obj = (FairyGUI.ScrollPane)ToLua.CheckObject(L, 1, typeof(FairyGUI.ScrollPane));
         int  arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
         obj.SetCurrentPageX(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }