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_DrawGlyph(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.BitmapFont gen_to_be_invoked = (FairyGUI.BitmapFont)translator.FastGetCSObj(L, 1); { float _x = (float)LuaAPI.lua_tonumber(L, 2); float _y = (float)LuaAPI.lua_tonumber(L, 3); System.Collections.Generic.List <UnityEngine.Vector3> _vertList = (System.Collections.Generic.List <UnityEngine.Vector3>)translator.GetObject(L, 4, typeof(System.Collections.Generic.List <UnityEngine.Vector3>)); System.Collections.Generic.List <UnityEngine.Vector2> _uvList = (System.Collections.Generic.List <UnityEngine.Vector2>)translator.GetObject(L, 5, typeof(System.Collections.Generic.List <UnityEngine.Vector2>)); System.Collections.Generic.List <UnityEngine.Vector2> _uv2List = (System.Collections.Generic.List <UnityEngine.Vector2>)translator.GetObject(L, 6, typeof(System.Collections.Generic.List <UnityEngine.Vector2>)); System.Collections.Generic.List <UnityEngine.Color32> _colList = (System.Collections.Generic.List <UnityEngine.Color32>)translator.GetObject(L, 7, typeof(System.Collections.Generic.List <UnityEngine.Color32>)); int gen_ret = gen_to_be_invoked.DrawGlyph(_x, _y, _vertList, _uvList, _uv2List, _colList); LuaAPI.xlua_pushinteger(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_AddChar(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.BitmapFont.BMGlyph _glyph = (FairyGUI.BitmapFont.BMGlyph)translator.GetObject(L, 3, typeof(FairyGUI.BitmapFont.BMGlyph)); gen_to_be_invoked.AddChar( _ch, _glyph); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_HasCharacter(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); bool gen_ret = gen_to_be_invoked.HasCharacter( _ch); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } } 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)); } }
static int _m_SetFormat(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.BitmapFont gen_to_be_invoked = (FairyGUI.BitmapFont)translator.FastGetCSObj(L, 1); { FairyGUI.TextFormat _format = (FairyGUI.TextFormat)translator.GetObject(L, 2, typeof(FairyGUI.TextFormat)); float _fontSizeScale = (float)LuaAPI.lua_tonumber(L, 3); gen_to_be_invoked.SetFormat( _format, _fontSizeScale); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _s_set_hasChannel(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.BitmapFont gen_to_be_invoked = (FairyGUI.BitmapFont)translator.FastGetCSObj(L, 1); gen_to_be_invoked.hasChannel = LuaAPI.lua_toboolean(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _g_get_resizable(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.BitmapFont gen_to_be_invoked = (FairyGUI.BitmapFont)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.resizable); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { FairyGUI.BitmapFont gen_ret = new FairyGUI.BitmapFont(); 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.BitmapFont constructor!")); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <FairyGUI.PackageItem>(L, 2)) { FairyGUI.PackageItem _item = (FairyGUI.PackageItem)translator.GetObject(L, 2, typeof(FairyGUI.PackageItem)); FairyGUI.BitmapFont gen_ret = new FairyGUI.BitmapFont(_item); 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.BitmapFont constructor!")); }
static int _m_GetLineHeight(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.BitmapFont gen_to_be_invoked = (FairyGUI.BitmapFont)translator.FastGetCSObj(L, 1); { int _size = LuaAPI.xlua_tointeger(L, 2); int gen_ret = gen_to_be_invoked.GetLineHeight(_size); LuaAPI.xlua_pushinteger(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }