Example #1
0
    static int get_contentType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIInputFieldSubmit             obj = (UIInputFieldSubmit)o;
            UIInputFieldSubmit.ContentType ret = obj.contentType;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index contentType on a nil value" : e.Message));
        }
    }
Example #2
0
    static int set_contentType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIInputFieldSubmit             obj  = (UIInputFieldSubmit)o;
            UIInputFieldSubmit.ContentType arg0 = (UIInputFieldSubmit.ContentType)ToLua.CheckObject(L, 2, typeof(UIInputFieldSubmit.ContentType));
            obj.contentType = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index contentType on a nil value" : e.Message));
        }
    }