示例#1
0
    static int get_onValueChange(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIInputFieldSubmit obj = (UIInputFieldSubmit)o;
            UIInputFieldSubmit.OnChangeEvent ret = obj.onValueChange;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index onValueChange on a nil value" : e.Message));
        }
    }
示例#2
0
    static int set_onValueChange(IntPtr L)
    {
        object o = null;

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