Beispiel #1
0
    static int Show(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1)
            {
                cs.GuiControl obj = (cs.GuiControl)ToLua.CheckObject <cs.GuiControl>(L, 1);
                obj.Show();
                return(0);
            }
            else if (count == 2)
            {
                cs.GuiControl obj  = (cs.GuiControl)ToLua.CheckObject <cs.GuiControl>(L, 1);
                bool          arg0 = LuaDLL.luaL_checkboolean(L, 2);
                obj.Show(arg0);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: cs.GuiControl.Show"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }