コード例 #1
0
    static int AddToggleLisenter(IntPtr L)
    {
        try
        {
            ToLua.CheckArgsCount(L, 3);
            UIBases obj  = (UIBases)ToLua.CheckObject(L, 1, typeof(UIBases));
            string  arg0 = ToLua.CheckString(L, 2);
            UnityEngine.Events.UnityAction <bool> arg1 = null;
            LuaTypes funcType3 = LuaDLL.lua_type(L, 3);

            if (funcType3 != LuaTypes.LUA_TFUNCTION)
            {
                arg1 = (UnityEngine.Events.UnityAction <bool>)ToLua.CheckObject(L, 3, typeof(UnityEngine.Events.UnityAction <bool>));
            }
            else
            {
                LuaFunction func = ToLua.ToLuaFunction(L, 3);
                arg1 = DelegateFactory.CreateDelegate(typeof(UnityEngine.Events.UnityAction <bool>), func) as UnityEngine.Events.UnityAction <bool>;
            }

            obj.AddToggleLisenter(arg0, arg1);
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
コード例 #2
0
    static int InitialPanle(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UIBases), typeof(UnityEngine.Object)))
            {
                UIBases                obj  = (UIBases)ToLua.ToObject(L, 1);
                UnityEngine.Object     arg0 = (UnityEngine.Object)ToLua.ToObject(L, 2);
                UnityEngine.GameObject o    = obj.InitialPanle(arg0);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UIBases), typeof(string)))
            {
                UIBases obj              = (UIBases)ToLua.ToObject(L, 1);
                string  arg0             = ToLua.ToString(L, 2);
                UnityEngine.GameObject o = obj.InitialPanle(arg0);
                ToLua.Push(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: UIBases.InitialPanle"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
コード例 #3
0
 static int AddComponentToChild(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UIBases obj = (UIBases)ToLua.CheckObject(L, 1, typeof(UIBases));
         obj.AddComponentToChild();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #4
0
 static int OnDestroy(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UIBases obj = (UIBases)ToLua.CheckObject(L, 1, typeof(UIBases));
         obj.OnDestroy();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #5
0
 static int Initial(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UIBases obj = (UIBases)ToLua.CheckObject(L, 1, typeof(UIBases));
         UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Transform));
         obj.Initial(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #6
0
 static int LoadResources(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UIBases            obj  = (UIBases)ToLua.CheckObject(L, 1, typeof(UIBases));
         string             arg0 = ToLua.CheckString(L, 2);
         UnityEngine.Object o    = obj.LoadResources(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #7
0
 static int GetSubManager(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UIBases      obj  = (UIBases)ToLua.CheckObject(L, 1, typeof(UIBases));
         string       arg0 = ToLua.CheckString(L, 2);
         UISubManager o    = obj.GetSubManager(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #8
0
 static int InitialGameObj(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UIBases obj = (UIBases)ToLua.CheckObject(L, 1, typeof(UIBases));
         UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.GameObject));
         UnityEngine.GameObject o    = obj.InitialGameObj(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #9
0
 public LoadingCtrl(UIBases tmpBase)
 {
     monoBase = tmpBase;
 }
コード例 #10
0
 public FilledImagManager(UIBases tmpBase)
 {
     owerBase = tmpBase;
 }
コード例 #11
0
ファイル: UILoadingCtrl.cs プロジェクト: kamen132/TEACHER-JIE
    public UILoadingCtrl(UIBases tmpBase)

    {
        tmpMono = tmpBase;
    }