static int GetGlyph(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); int arg0 = (int)LuaScriptMgr.GetNumber(L, 1); int arg1 = (int)LuaScriptMgr.GetNumber(L, 2); NGUIText.GlyphInfo o = NGUIText.GetGlyph(arg0, arg1); LuaScriptMgr.PushObject(L, o); return(1); }
static public int GetGlyph_s(IntPtr l) { try { System.Int32 a1; checkType(l, 1, out a1); System.Int32 a2; checkType(l, 2, out a2); var ret = NGUIText.GetGlyph(a1, a2); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
static int GetGlyph(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); NGUIText.GlyphInfo o = NGUIText.GetGlyph(arg0, arg1); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
private static int GetGlyph(IntPtr L) { int result; try { ToLua.CheckArgsCount(L, 2); int ch = (int)LuaDLL.luaL_checknumber(L, 1); int prev = (int)LuaDLL.luaL_checknumber(L, 2); NGUIText.GlyphInfo glyph = NGUIText.GetGlyph(ch, prev); ToLua.PushObject(L, glyph); result = 1; } catch (Exception e) { result = LuaDLL.toluaL_exception(L, e, null); } return(result); }