예제 #1
0
    static int get_inputType(IntPtr L)
    {
        object o = null;

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

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