ScrollBottom() public method

public ScrollBottom ( ) : void
return void
    static int ScrollBottom(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1)
            {
                FairyGUI.ScrollPane obj = (FairyGUI.ScrollPane)ToLua.CheckObject <FairyGUI.ScrollPane>(L, 1);
                obj.ScrollBottom();
                return(0);
            }
            else if (count == 2)
            {
                FairyGUI.ScrollPane obj = (FairyGUI.ScrollPane)ToLua.CheckObject <FairyGUI.ScrollPane>(L, 1);
                bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
                obj.ScrollBottom(arg0);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: FairyGUI.ScrollPane.ScrollBottom"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
    static int ScrollBottom(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(FairyGUI.ScrollPane)))
            {
                FairyGUI.ScrollPane obj = (FairyGUI.ScrollPane)ToLua.ToObject(L, 1);
                obj.ScrollBottom();
                return(0);
            }
            else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(FairyGUI.ScrollPane), typeof(bool)))
            {
                FairyGUI.ScrollPane obj = (FairyGUI.ScrollPane)ToLua.ToObject(L, 1);
                bool arg0 = LuaDLL.lua_toboolean(L, 2);
                obj.ScrollBottom(arg0);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: FairyGUI.ScrollPane.ScrollBottom"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Beispiel #3
0
 static public int ScrollBottom(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 1)
         {
             FairyGUI.ScrollPane self = (FairyGUI.ScrollPane)checkSelf(l);
             self.ScrollBottom();
             pushValue(l, true);
             return(1);
         }
         else if (argc == 2)
         {
             FairyGUI.ScrollPane self = (FairyGUI.ScrollPane)checkSelf(l);
             System.Boolean      a1;
             checkType(l, 2, out a1);
             self.ScrollBottom(a1);
             pushValue(l, true);
             return(1);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }