Пример #1
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    FairyGUI.Image gen_ret = new FairyGUI.Image();
                    translator.Push(L, gen_ret);

                    return(1);
                }
                if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <FairyGUI.NTexture>(L, 2))
                {
                    FairyGUI.NTexture _texture = (FairyGUI.NTexture)translator.GetObject(L, 2, typeof(FairyGUI.NTexture));

                    FairyGUI.Image gen_ret = new FairyGUI.Image(_texture);
                    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.Image constructor!"));
        }
Пример #2
0
        static int _s_set_tileGridIndice(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.Image gen_to_be_invoked = (FairyGUI.Image)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.tileGridIndice = LuaAPI.xlua_tointeger(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Пример #3
0
        static int _s_set_fillAmount(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.Image gen_to_be_invoked = (FairyGUI.Image)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.fillAmount = (float)LuaAPI.lua_tonumber(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Пример #4
0
        static int _s_set_texture(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.Image gen_to_be_invoked = (FairyGUI.Image)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.texture = (FairyGUI.NTexture)translator.GetObject(L, 2, typeof(FairyGUI.NTexture));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Пример #5
0
        static int _g_get_scaleByTile(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.Image gen_to_be_invoked = (FairyGUI.Image)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.scaleByTile);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Пример #6
0
        static int _g_get_fillMethod(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.Image gen_to_be_invoked = (FairyGUI.Image)translator.FastGetCSObj(L, 1);
                translator.PushFairyGUIFillMethod(L, gen_to_be_invoked.fillMethod);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Пример #7
0
        static int _g_get_textureScale(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.Image gen_to_be_invoked = (FairyGUI.Image)translator.FastGetCSObj(L, 1);
                translator.PushUnityEngineVector2(L, gen_to_be_invoked.textureScale);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Пример #8
0
        static int _s_set_scale9Grid(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.Image gen_to_be_invoked = (FairyGUI.Image)translator.FastGetCSObj(L, 1);
                System.Nullable <UnityEngine.Rect> gen_value; translator.Get(L, 2, out gen_value);
                gen_to_be_invoked.scale9Grid = gen_value;
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Пример #9
0
        static int _s_set_fillMethod(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.Image      gen_to_be_invoked = (FairyGUI.Image)translator.FastGetCSObj(L, 1);
                FairyGUI.FillMethod gen_value; translator.Get(L, 2, out gen_value);
                gen_to_be_invoked.fillMethod = gen_value;
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Пример #10
0
        static int _m_SetNativeSize(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    gen_to_be_invoked.SetNativeSize(  );



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Пример #11
0
        static int _m_SliceFill(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    FairyGUI.VertexBuffer _vb = (FairyGUI.VertexBuffer)translator.GetObject(L, 2, typeof(FairyGUI.VertexBuffer));

                    gen_to_be_invoked.SliceFill(_vb);



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