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


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


                int gen_param_count = LuaAPI.lua_gettop(L);

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

                    gen_to_be_invoked.DrawEllipse(
                        _fillColor);



                    return(0);
                }
                if (gen_param_count == 7 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <UnityEngine.Color>(L, 3) && translator.Assignable <UnityEngine.Color>(L, 4) && translator.Assignable <UnityEngine.Color>(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7))
                {
                    float             _lineSize = (float)LuaAPI.lua_tonumber(L, 2);
                    UnityEngine.Color _centerColor; translator.Get(L, 3, out _centerColor);
                    UnityEngine.Color _lineColor; translator.Get(L, 4, out _lineColor);
                    UnityEngine.Color _fillColor; translator.Get(L, 5, out _fillColor);
                    float             _startDegree = (float)LuaAPI.lua_tonumber(L, 6);
                    float             _endDegree   = (float)LuaAPI.lua_tonumber(L, 7);

                    gen_to_be_invoked.DrawEllipse(
                        _lineSize,
                        _centerColor,
                        _lineColor,
                        _fillColor,
                        _startDegree,
                        _endDegree);



                    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.Shape.DrawEllipse!"));
        }