static int _m_GetGlyph(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.BitmapFont gen_to_be_invoked = (FairyGUI.BitmapFont)translator.FastGetCSObj(L, 1); { char _ch = (char)LuaAPI.xlua_tointeger(L, 2); float _width; float _height; float _baseline; bool gen_ret = gen_to_be_invoked.GetGlyph(_ch, out _width, out _height, out _baseline); LuaAPI.lua_pushboolean(L, gen_ret); LuaAPI.lua_pushnumber(L, _width); LuaAPI.lua_pushnumber(L, _height); LuaAPI.lua_pushnumber(L, _baseline); return(4); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetGlyph(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.BitmapFont gen_to_be_invoked = (FairyGUI.BitmapFont)translator.FastGetCSObj(L, 1); { char _ch = (char)LuaAPI.xlua_tointeger(L, 2); FairyGUI.GlyphInfo _glyph; translator.Get(L, 3, out _glyph); bool gen_ret = gen_to_be_invoked.GetGlyph( _ch, ref _glyph); LuaAPI.lua_pushboolean(L, gen_ret); translator.Push(L, _glyph); translator.Update(L, 3, _glyph); return(2); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }