예제 #1
0
        static int _m_GetItemByName(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.UIPackage gen_to_be_invoked = (FairyGUI.UIPackage)translator.FastGetCSObj(L, 1);



                {
                    string _itemName = LuaAPI.lua_tostring(L, 2);

                    FairyGUI.PackageItem gen_ret = gen_to_be_invoked.GetItemByName(
                        _itemName);
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
예제 #2
0
        static int _m_SetItemAsset(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.UIPackage gen_to_be_invoked = (FairyGUI.UIPackage)translator.FastGetCSObj(L, 1);



                {
                    FairyGUI.PackageItem _item = (FairyGUI.PackageItem)translator.GetObject(L, 2, typeof(FairyGUI.PackageItem));
                    object _asset = translator.GetObject(L, 3, typeof(object));
                    FairyGUI.DestroyMethod _destroyMethod; translator.Get(L, 4, out _destroyMethod);

                    gen_to_be_invoked.SetItemAsset(_item, _asset, _destroyMethod);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
예제 #3
0
        static int _g_get_skeletonAnchor(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.PackageItem gen_to_be_invoked = (FairyGUI.PackageItem)translator.FastGetCSObj(L, 1);
                translator.PushUnityEngineVector2(L, gen_to_be_invoked.skeletonAnchor);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
예제 #4
0
        static int _s_set_translated(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.PackageItem gen_to_be_invoked = (FairyGUI.PackageItem)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.translated = LuaAPI.lua_toboolean(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
예제 #5
0
        static int _s_set_skeletonAsset(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.PackageItem gen_to_be_invoked = (FairyGUI.PackageItem)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.skeletonAsset = translator.GetObject(L, 2, typeof(object));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
예제 #6
0
        static int _s_set_extensionCreator(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.PackageItem gen_to_be_invoked = (FairyGUI.PackageItem)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.extensionCreator = translator.GetDelegate <FairyGUI.UIObjectFactory.GComponentCreator>(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
예제 #7
0
        static int _g_get_audioClip(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.PackageItem gen_to_be_invoked = (FairyGUI.PackageItem)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.audioClip);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
예제 #8
0
        static int _g_get_tileGridIndice(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.PackageItem gen_to_be_invoked = (FairyGUI.PackageItem)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.tileGridIndice);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
예제 #9
0
        static int _s_set_skeletonAnchor(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.PackageItem gen_to_be_invoked = (FairyGUI.PackageItem)translator.FastGetCSObj(L, 1);
                UnityEngine.Vector2  gen_value; translator.Get(L, 2, out gen_value);
                gen_to_be_invoked.skeletonAnchor = gen_value;
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
        static int _m_NewObject_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 1 && translator.Assignable <FairyGUI.ObjectType>(L, 1))
                {
                    FairyGUI.ObjectType _type; translator.Get(L, 1, out _type);

                    FairyGUI.GObject gen_ret = FairyGUI.UIObjectFactory.NewObject(_type);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && translator.Assignable <FairyGUI.PackageItem>(L, 1) && translator.Assignable <System.Type>(L, 2))
                {
                    FairyGUI.PackageItem _pi        = (FairyGUI.PackageItem)translator.GetObject(L, 1, typeof(FairyGUI.PackageItem));
                    System.Type          _userClass = (System.Type)translator.GetObject(L, 2, typeof(System.Type));

                    FairyGUI.GObject gen_ret = FairyGUI.UIObjectFactory.NewObject(_pi, _userClass);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 1 && translator.Assignable <FairyGUI.PackageItem>(L, 1))
                {
                    FairyGUI.PackageItem _pi = (FairyGUI.PackageItem)translator.GetObject(L, 1, typeof(FairyGUI.PackageItem));

                    FairyGUI.GObject gen_ret = FairyGUI.UIObjectFactory.NewObject(_pi);
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to FairyGUI.UIObjectFactory.NewObject!"));
        }
예제 #11
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    FairyGUI.PackageItem gen_ret = new FairyGUI.PackageItem();
                    translator.Push(L, gen_ret);

                    return(1);
                }
            }
            catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(LuaAPI.luaL_error(L, "invalid arguments to FairyGUI.PackageItem constructor!"));
        }
예제 #12
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <FairyGUI.PackageItem>(L, 2))
                {
                    FairyGUI.PackageItem _item = (FairyGUI.PackageItem)translator.GetObject(L, 2, typeof(FairyGUI.PackageItem));

                    FairyGUI.BitmapFont gen_ret = new FairyGUI.BitmapFont(_item);
                    translator.Push(L, gen_ret);

                    return(1);
                }
            }
            catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(LuaAPI.luaL_error(L, "invalid arguments to FairyGUI.BitmapFont constructor!"));
        }
예제 #13
0
        static int _m_TranslateComponent_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    FairyGUI.PackageItem _item = (FairyGUI.PackageItem)translator.GetObject(L, 1, typeof(FairyGUI.PackageItem));

                    FairyGUI.TranslationHelper.TranslateComponent(_item);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
예제 #14
0
        static int _m_GetItemAsset(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.UIPackage gen_to_be_invoked = (FairyGUI.UIPackage)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
                {
                    string _resName = LuaAPI.lua_tostring(L, 2);

                    object gen_ret = gen_to_be_invoked.GetItemAsset(
                        _resName);
                    translator.PushAny(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && translator.Assignable <FairyGUI.PackageItem>(L, 2))
                {
                    FairyGUI.PackageItem _item = (FairyGUI.PackageItem)translator.GetObject(L, 2, typeof(FairyGUI.PackageItem));

                    object gen_ret = gen_to_be_invoked.GetItemAsset(
                        _item);
                    translator.PushAny(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to FairyGUI.UIPackage.GetItemAsset!"));
        }
예제 #15
0
        static int _m_GetItemByURL_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    string _url = LuaAPI.lua_tostring(L, 1);

                    FairyGUI.PackageItem gen_ret = FairyGUI.UIPackage.GetItemByURL(_url);
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_CreateObject_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    FairyGUI.PackageItem _item = (FairyGUI.PackageItem)translator.GetObject(L, 1, typeof(FairyGUI.PackageItem));
                    FairyGUI.UIPackage.CreateObjectCallback _callback = translator.GetDelegate <FairyGUI.UIPackage.CreateObjectCallback>(L, 2);

                    FairyGUI.AsyncCreationHelper.CreateObject(_item, _callback);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
예제 #17
0
        static int _m_getHighResolution(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.PackageItem gen_to_be_invoked = (FairyGUI.PackageItem)translator.FastGetCSObj(L, 1);



                {
                    FairyGUI.PackageItem gen_ret = gen_to_be_invoked.getHighResolution(  );
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
예제 #18
0
        public void __Gen_Delegate_Imp38(string p0, string p1, System.Type p2, FairyGUI.PackageItem p3)
        {
#if THREAD_SAFE || HOTFIX_ENABLE
            lock (luaEnv.luaEnvLock)
            {
#endif
            RealStatePtr L = luaEnv.rawL;
            int errFunc    = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference);
            ObjectTranslator translator = luaEnv.translator;
            LuaAPI.lua_pushstring(L, p0);
            LuaAPI.lua_pushstring(L, p1);
            translator.Push(L, p2);
            translator.Push(L, p3);

            PCall(L, 4, 0, errFunc);



            LuaAPI.lua_settop(L, errFunc - 1);

#if THREAD_SAFE || HOTFIX_ENABLE
        }
#endif
        }