static int _CreateFairyGUI_Emoji(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1)
            {
                string         arg0 = ToLua.CheckString(L, 1);
                FairyGUI.Emoji obj  = new FairyGUI.Emoji(arg0);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 3)
            {
                string         arg0 = ToLua.CheckString(L, 1);
                int            arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
                int            arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
                FairyGUI.Emoji obj  = new FairyGUI.Emoji(arg0, arg1, arg2);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: FairyGUI.Emoji.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Example #2
0
 static public int constructor(IntPtr l)
 {
     try {
         int            argc = LuaDLL.lua_gettop(l);
         FairyGUI.Emoji o;
         if (argc == 4)
         {
             System.String a1;
             checkType(l, 2, out a1);
             System.Int32 a2;
             checkType(l, 3, out a2);
             System.Int32 a3;
             checkType(l, 4, out a3);
             o = new FairyGUI.Emoji(a1, a2, a3);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (argc == 2)
         {
             System.String a1;
             checkType(l, 2, out a1);
             o = new FairyGUI.Emoji(a1);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         return(error(l, "New object failed."));
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #3
0
 static public int get_width(IntPtr l)
 {
     try {
         FairyGUI.Emoji self = (FairyGUI.Emoji)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.width);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #4
0
 static public int set_width(IntPtr l)
 {
     try {
         FairyGUI.Emoji self = (FairyGUI.Emoji)checkSelf(l);
         System.Int32   v;
         checkType(l, 2, out v);
         self.width = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
    static int get_width(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.Emoji obj = (FairyGUI.Emoji)o;
            int            ret = obj.width;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index width on a nil value"));
        }
    }
    static int get_url(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.Emoji obj = (FairyGUI.Emoji)o;
            string         ret = obj.url;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index url on a nil value"));
        }
    }
    static int set_height(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.Emoji obj  = (FairyGUI.Emoji)o;
            int            arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj.height = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index height on a nil value"));
        }
    }
    static int set_url(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.Emoji obj  = (FairyGUI.Emoji)o;
            string         arg0 = ToLua.CheckString(L, 2);
            obj.url = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index url on a nil value"));
        }
    }