ShowModalWait() public method

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

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

            if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(FairyGUI.Window)))
            {
                FairyGUI.Window obj = (FairyGUI.Window)ToLua.ToObject(L, 1);
                obj.ShowModalWait();
                return(0);
            }
            else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(FairyGUI.Window), typeof(int)))
            {
                FairyGUI.Window obj  = (FairyGUI.Window)ToLua.ToObject(L, 1);
                int             arg0 = (int)LuaDLL.lua_tonumber(L, 2);
                obj.ShowModalWait(arg0);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: FairyGUI.Window.ShowModalWait"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
 static public int ShowModalWait(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 1)
         {
             FairyGUI.Window self = (FairyGUI.Window)checkSelf(l);
             self.ShowModalWait();
             pushValue(l, true);
             return(1);
         }
         else if (argc == 2)
         {
             FairyGUI.Window self = (FairyGUI.Window)checkSelf(l);
             System.Int32    a1;
             checkType(l, 2, out a1);
             self.ShowModalWait(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));
     }
 }