Exemplo n.º 1
0
        static int _m_HitTest(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    UnityEngine.Rect    _contentRect; translator.Get(L, 2, out _contentRect);
                    UnityEngine.Vector2 _point; translator.Get(L, 3, out _point);

                    bool gen_ret = gen_to_be_invoked.HitTest(_contentRect, _point);
                    LuaAPI.lua_pushboolean(L, gen_ret);



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

                FairyGUI.PolygonMesh gen_to_be_invoked = (FairyGUI.PolygonMesh)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.colors = (UnityEngine.Color32[])translator.GetObject(L, 2, typeof(UnityEngine.Color32[]));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Exemplo n.º 3
0
        static int _s_set_usePercentPositions(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.PolygonMesh gen_to_be_invoked = (FairyGUI.PolygonMesh)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.usePercentPositions = LuaAPI.lua_toboolean(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Exemplo n.º 4
0
        static int _g_get_colors(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.PolygonMesh gen_to_be_invoked = (FairyGUI.PolygonMesh)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.colors);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Exemplo n.º 5
0
        static int _s_set_lineWidth(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.PolygonMesh gen_to_be_invoked = (FairyGUI.PolygonMesh)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.lineWidth = (float)LuaAPI.lua_tonumber(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Exemplo n.º 6
0
        static int _s_set_fillColor(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.PolygonMesh gen_to_be_invoked = (FairyGUI.PolygonMesh)translator.FastGetCSObj(L, 1);
                System.Nullable <UnityEngine.Color32> gen_value; translator.Get(L, 2, out gen_value);
                gen_to_be_invoked.fillColor = gen_value;
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Exemplo n.º 7
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    FairyGUI.PolygonMesh gen_ret = new FairyGUI.PolygonMesh();
                    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.PolygonMesh constructor!"));
        }
Exemplo n.º 8
0
        static int _m_GetMeshFactoryPM(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    FairyGUI.PolygonMesh gen_ret = gen_to_be_invoked.GetMeshFactoryPM(  );
                    translator.Push(L, gen_ret);



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


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && translator.Assignable <UnityEngine.Vector2>(L, 2))
                {
                    UnityEngine.Vector2 _point; translator.Get(L, 2, out _point);

                    gen_to_be_invoked.Add(_point);



                    return(0);
                }
                if (gen_param_count == 3 && translator.Assignable <UnityEngine.Vector2>(L, 2) && translator.Assignable <UnityEngine.Vector2>(L, 3))
                {
                    UnityEngine.Vector2 _point; translator.Get(L, 2, out _point);
                    UnityEngine.Vector2 _texcoord; translator.Get(L, 3, out _texcoord);

                    gen_to_be_invoked.Add(_point, _texcoord);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to FairyGUI.PolygonMesh.Add!"));
        }
Exemplo n.º 10
0
        static int _m_OnPopulateMesh(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



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

                    gen_to_be_invoked.OnPopulateMesh(_vb);



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