Exemplo n.º 1
0
    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);
    }
Exemplo n.º 2
0
 static public int get_u0(IntPtr l)
 {
     try {
         NGUIText.GlyphInfo self = (NGUIText.GlyphInfo)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.u0);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 3
0
 static public int constructor(IntPtr l)
 {
     try {
         NGUIText.GlyphInfo o;
         o = new NGUIText.GlyphInfo();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 4
0
 static int set_glyph(IntPtr L)
 {
     try
     {
         NGUIText.GlyphInfo arg0 = (NGUIText.GlyphInfo)ToLua.CheckObject(L, 2, typeof(NGUIText.GlyphInfo));
         NGUIText.glyph = arg0;
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 5
0
 static public int set_u0(IntPtr l)
 {
     try {
         NGUIText.GlyphInfo  self = (NGUIText.GlyphInfo)checkSelf(l);
         UnityEngine.Vector2 v;
         checkType(l, 2, out v);
         self.u0 = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 6
0
 static public int set_channel(IntPtr l)
 {
     try {
         NGUIText.GlyphInfo self = (NGUIText.GlyphInfo)checkSelf(l);
         System.Int32       v;
         checkType(l, 2, out v);
         self.channel = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 7
0
 static public int set_advance(IntPtr l)
 {
     try {
         NGUIText.GlyphInfo self = (NGUIText.GlyphInfo)checkSelf(l);
         System.Single      v;
         checkType(l, 2, out v);
         self.advance = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 8
0
 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));
     }
 }
Exemplo n.º 9
0
    private static int set_glyph(IntPtr L)
    {
        int result;

        try
        {
            NGUIText.GlyphInfo glyph = (NGUIText.GlyphInfo)ToLua.CheckObject(L, 2, typeof(NGUIText.GlyphInfo));
            NGUIText.glyph = glyph;
            result         = 0;
        }
        catch (Exception e)
        {
            result = LuaDLL.toluaL_exception(L, e, null);
        }
        return(result);
    }
Exemplo n.º 10
0
    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);
    }