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


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



                {
                    float             _lineSize = (float)LuaAPI.lua_tonumber(L, 2);
                    UnityEngine.Color _lineColor; translator.Get(L, 3, out _lineColor);
                    UnityEngine.Color _fillColor; translator.Get(L, 4, out _fillColor);
                    float             _topLeftRadius     = (float)LuaAPI.lua_tonumber(L, 5);
                    float             _topRightRadius    = (float)LuaAPI.lua_tonumber(L, 6);
                    float             _bottomLeftRadius  = (float)LuaAPI.lua_tonumber(L, 7);
                    float             _bottomRightRadius = (float)LuaAPI.lua_tonumber(L, 8);

                    gen_to_be_invoked.DrawRoundRect(_lineSize, _lineColor, _fillColor, _topLeftRadius, _topRightRadius, _bottomLeftRadius, _bottomRightRadius);



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