Example #1
0
        static int _m_DrawEllipse(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    float             _aWidth  = (float)LuaAPI.lua_tonumber(L, 2);
                    float             _aHeight = (float)LuaAPI.lua_tonumber(L, 3);
                    UnityEngine.Color _fillColor; translator.Get(L, 4, out _fillColor);

                    gen_to_be_invoked.DrawEllipse(_aWidth, _aHeight, _fillColor);



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


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



                {
                    FairyGUI.Utils.ByteBuffer _buffer = (FairyGUI.Utils.ByteBuffer)translator.GetObject(L, 2, typeof(FairyGUI.Utils.ByteBuffer));
                    int _beginPos = LuaAPI.xlua_tointeger(L, 3);

                    gen_to_be_invoked.Setup_BeforeAdd(
                        _buffer,
                        _beginPos);



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

                FairyGUI.GGraph gen_to_be_invoked = (FairyGUI.GGraph)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.shape);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Example #4
0
        static int _s_set_color(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.GGraph   gen_to_be_invoked = (FairyGUI.GGraph)translator.FastGetCSObj(L, 1);
                UnityEngine.Color gen_value; translator.Get(L, 2, out gen_value);
                gen_to_be_invoked.color = gen_value;
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Example #5
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    FairyGUI.GGraph gen_ret = new FairyGUI.GGraph();
                    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.GGraph constructor!"));
        }
Example #6
0
        static int _m_DrawPolygon(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <System.Collections.Generic.IList <UnityEngine.Vector2> >(L, 4) && translator.Assignable <UnityEngine.Color>(L, 5))
                {
                    float _aWidth  = (float)LuaAPI.lua_tonumber(L, 2);
                    float _aHeight = (float)LuaAPI.lua_tonumber(L, 3);
                    System.Collections.Generic.IList <UnityEngine.Vector2> _points = (System.Collections.Generic.IList <UnityEngine.Vector2>)translator.GetObject(L, 4, typeof(System.Collections.Generic.IList <UnityEngine.Vector2>));
                    UnityEngine.Color _fillColor; translator.Get(L, 5, out _fillColor);

                    gen_to_be_invoked.DrawPolygon(_aWidth, _aHeight, _points, _fillColor);



                    return(0);
                }
                if (gen_param_count == 7 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <System.Collections.Generic.IList <UnityEngine.Vector2> >(L, 4) && translator.Assignable <UnityEngine.Color>(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && translator.Assignable <UnityEngine.Color>(L, 7))
                {
                    float _aWidth  = (float)LuaAPI.lua_tonumber(L, 2);
                    float _aHeight = (float)LuaAPI.lua_tonumber(L, 3);
                    System.Collections.Generic.IList <UnityEngine.Vector2> _points = (System.Collections.Generic.IList <UnityEngine.Vector2>)translator.GetObject(L, 4, typeof(System.Collections.Generic.IList <UnityEngine.Vector2>));
                    UnityEngine.Color _fillColor; translator.Get(L, 5, out _fillColor);
                    float             _lineSize = (float)LuaAPI.lua_tonumber(L, 6);
                    UnityEngine.Color _lineColor; translator.Get(L, 7, out _lineColor);

                    gen_to_be_invoked.DrawPolygon(_aWidth, _aHeight, _points, _fillColor, _lineSize, _lineColor);



                    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.GGraph.DrawPolygon!"));
        }
Example #7
0
        static StackObject *Enqueue_2(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            FairyGUI.GGraph @item = (FairyGUI.GGraph) typeof(FairyGUI.GGraph).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.Collections.Generic.Queue <FairyGUI.GGraph> instance_of_this_method = (System.Collections.Generic.Queue <FairyGUI.GGraph>) typeof(System.Collections.Generic.Queue <FairyGUI.GGraph>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Enqueue(@item);

            return(__ret);
        }
Example #8
0
        static int _m_AddBeforeMe(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    FairyGUI.GObject _target = (FairyGUI.GObject)translator.GetObject(L, 2, typeof(FairyGUI.GObject));

                    gen_to_be_invoked.AddBeforeMe(_target);



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


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



                {
                    FairyGUI.DisplayObject _obj = (FairyGUI.DisplayObject)translator.GetObject(L, 2, typeof(FairyGUI.DisplayObject));

                    gen_to_be_invoked.SetNativeObject(_obj);



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