Ejemplo n.º 1
0
 static public int constructor(IntPtr l)
 {
     UnityEngine.UI.Scrollbar.ScrollEvent o;
     o = new UnityEngine.UI.Scrollbar.ScrollEvent();
     pushObject(l, o);
     return(1);
 }
 static public int constructor(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         UnityEngine.UI.Scrollbar.ScrollEvent o;
         o = new UnityEngine.UI.Scrollbar.ScrollEvent();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
 public ScrollbarData(Scrollbar sb)
 {
     direction      = sb.direction;
     handleRect     = new RectTransformData(sb.handleRect);
     numberOfSteps  = sb.numberOfSteps;
     onValueChanged = sb.onValueChanged;
     size           = sb.size;
     value          = sb.value;
 }
Ejemplo n.º 4
0
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.UI.Scrollbar.ScrollEvent o;
         o = new UnityEngine.UI.Scrollbar.ScrollEvent();
         pushValue(l, o);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int RemoveAllListeners(IntPtr l)
 {
     try {
         UnityEngine.UI.Scrollbar.ScrollEvent self = (UnityEngine.UI.Scrollbar.ScrollEvent)checkSelf(l);
         self.RemoveAllListeners();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int constructor(IntPtr l)
 {
     LuaDLL.lua_remove(l, 1);
     UnityEngine.UI.Scrollbar.ScrollEvent o;
     if (matchType(l, 1))
     {
         o = new UnityEngine.UI.Scrollbar.ScrollEvent();
         pushObject(l, o);
         return(1);
     }
     LuaDLL.luaL_error(l, "New object failed.");
     return(0);
 }
 static public int GetPersistentEventCount(IntPtr l)
 {
     try {
         UnityEngine.UI.Scrollbar.ScrollEvent self = (UnityEngine.UI.Scrollbar.ScrollEvent)checkSelf(l);
         var ret = self.GetPersistentEventCount();
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 public static int constructor(IntPtr l)
 {
     try {
         UnityEngine.UI.Scrollbar.ScrollEvent o;
         o=new UnityEngine.UI.Scrollbar.ScrollEvent();
         pushValue(l,true);
         pushValue(l,o);
         return 2;
     }
     catch(Exception e) {
         return error(l,e);
     }
 }
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.UI.Scrollbar.ScrollEvent o;
         o = new UnityEngine.UI.Scrollbar.ScrollEvent();
         pushValue(l, o);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
 static new public int ToString(IntPtr l)
 {
     try {
         UnityEngine.UI.Scrollbar.ScrollEvent self = (UnityEngine.UI.Scrollbar.ScrollEvent)checkSelf(l);
         var ret = self.ToString();
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 public static int constructor(IntPtr l)
 {
     try {
         UnityEngine.UI.Scrollbar.ScrollEvent o;
         o=new UnityEngine.UI.Scrollbar.ScrollEvent();
         pushValue(l,o);
         return 1;
     }
     catch(Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return 0;
     }
 }
 static public int RemoveListener(IntPtr l)
 {
     try {
         UnityEngine.UI.Scrollbar.ScrollEvent           self = (UnityEngine.UI.Scrollbar.ScrollEvent)checkSelf(l);
         UnityEngine.Events.UnityAction <System.Single> a1;
         LuaDelegation.checkDelegate(l, 2, out a1);
         self.RemoveListener(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int Invoke(IntPtr l)
 {
     try {
         UnityEngine.UI.Scrollbar.ScrollEvent self = (UnityEngine.UI.Scrollbar.ScrollEvent)checkSelf(l);
         System.Single a1;
         checkType(l, 2, out a1);
         self.Invoke(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 14
0
    static int QPYX_set_onValueChanged_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        UnityEngine.UI.Scrollbar QPYX_obj_YXQP = (UnityEngine.UI.Scrollbar)QPYX_o_YXQP;
            UnityEngine.UI.Scrollbar.ScrollEvent QPYX_arg0_YXQP = (UnityEngine.UI.Scrollbar.ScrollEvent)ToLua.CheckObject <UnityEngine.UI.Scrollbar.ScrollEvent>(L_YXQP, 2);
            QPYX_obj_YXQP.onValueChanged = QPYX_arg0_YXQP;
            return(0);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index onValueChanged on a nil value"));
        }
    }
Ejemplo n.º 15
0
    static int QPYX_get_onValueChanged_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        UnityEngine.UI.Scrollbar QPYX_obj_YXQP = (UnityEngine.UI.Scrollbar)QPYX_o_YXQP;
            UnityEngine.UI.Scrollbar.ScrollEvent QPYX_ret_YXQP = QPYX_obj_YXQP.onValueChanged;
            ToLua.PushObject(L_YXQP, QPYX_ret_YXQP);
            return(1);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index onValueChanged on a nil value"));
        }
    }
 static new public int Equals(IntPtr l)
 {
     try {
         UnityEngine.UI.Scrollbar.ScrollEvent self = (UnityEngine.UI.Scrollbar.ScrollEvent)checkSelf(l);
         System.Object a1;
         checkType(l, 2, out a1);
         var ret = self.Equals(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int GetPersistentTarget(IntPtr l)
 {
     try {
         UnityEngine.UI.Scrollbar.ScrollEvent self = (UnityEngine.UI.Scrollbar.ScrollEvent)checkSelf(l);
         System.Int32 a1;
         checkType(l, 2, out a1);
         var ret = self.GetPersistentTarget(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int SetPersistentListenerState(IntPtr l)
 {
     try {
         UnityEngine.UI.Scrollbar.ScrollEvent self = (UnityEngine.UI.Scrollbar.ScrollEvent)checkSelf(l);
         System.Int32 a1;
         checkType(l, 2, out a1);
         UnityEngine.Events.UnityEventCallState a2;
         checkEnum(l, 3, out a2);
         self.SetPersistentListenerState(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 19
0
    static int get_onValueChanged(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.UI.Scrollbar             obj = (UnityEngine.UI.Scrollbar)o;
            UnityEngine.UI.Scrollbar.ScrollEvent ret = obj.onValueChanged;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index onValueChanged on a nil value" : e.Message));
        }
    }
Ejemplo n.º 20
0
    static int set_onValueChanged(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.UI.Scrollbar             obj  = (UnityEngine.UI.Scrollbar)o;
            UnityEngine.UI.Scrollbar.ScrollEvent arg0 = (UnityEngine.UI.Scrollbar.ScrollEvent)ToLua.CheckObject(L, 2, typeof(UnityEngine.UI.Scrollbar.ScrollEvent));
            obj.onValueChanged = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index onValueChanged on a nil value" : e.Message));
        }
    }
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    UnityEngine.UI.Scrollbar.ScrollEvent gen_ret = new UnityEngine.UI.Scrollbar.ScrollEvent();
                    translator.Push(L, gen_ret);

                    return(1);
                }
            }
            catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.Scrollbar.ScrollEvent constructor!"));
        }
        static StackObject *set_onValueChanged_11(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.UI.Scrollbar.ScrollEvent value = (UnityEngine.UI.Scrollbar.ScrollEvent) typeof(UnityEngine.UI.Scrollbar.ScrollEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.UI.Scrollbar instance_of_this_method;
            instance_of_this_method = (UnityEngine.UI.Scrollbar) typeof(UnityEngine.UI.Scrollbar).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.onValueChanged = value;

            return(__ret);
        }
    static int _CreateUnityEngine_UI_Scrollbar_ScrollEvent(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                UnityEngine.UI.Scrollbar.ScrollEvent obj = new UnityEngine.UI.Scrollbar.ScrollEvent();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.UI.Scrollbar.ScrollEvent.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }