源战役客户端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

165 行
4.2 KiB

  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class VHScrollRectWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(VHScrollRect), typeof(UnityEngine.UI.ScrollRect));
  9. L.RegFunction("OnBeginDrag", OnBeginDrag);
  10. L.RegFunction("OnDrag", OnDrag);
  11. L.RegFunction("OnEndDrag", OnEndDrag);
  12. L.RegFunction("__eq", op_Equality);
  13. L.RegFunction("__tostring", ToLua.op_ToString);
  14. L.RegVar("parentScroll", get_parentScroll, set_parentScroll);
  15. L.RegVar("isVertical", get_isVertical, set_isVertical);
  16. L.EndClass();
  17. }
  18. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  19. static int OnBeginDrag(IntPtr L)
  20. {
  21. try
  22. {
  23. ToLua.CheckArgsCount(L, 2);
  24. VHScrollRect obj = (VHScrollRect)ToLua.CheckObject(L, 1, typeof(VHScrollRect));
  25. UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));
  26. obj.OnBeginDrag(arg0);
  27. return 0;
  28. }
  29. catch(Exception e)
  30. {
  31. return LuaDLL.toluaL_exception(L, e);
  32. }
  33. }
  34. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  35. static int OnDrag(IntPtr L)
  36. {
  37. try
  38. {
  39. ToLua.CheckArgsCount(L, 2);
  40. VHScrollRect obj = (VHScrollRect)ToLua.CheckObject(L, 1, typeof(VHScrollRect));
  41. UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));
  42. obj.OnDrag(arg0);
  43. return 0;
  44. }
  45. catch(Exception e)
  46. {
  47. return LuaDLL.toluaL_exception(L, e);
  48. }
  49. }
  50. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  51. static int OnEndDrag(IntPtr L)
  52. {
  53. try
  54. {
  55. ToLua.CheckArgsCount(L, 2);
  56. VHScrollRect obj = (VHScrollRect)ToLua.CheckObject(L, 1, typeof(VHScrollRect));
  57. UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));
  58. obj.OnEndDrag(arg0);
  59. return 0;
  60. }
  61. catch(Exception e)
  62. {
  63. return LuaDLL.toluaL_exception(L, e);
  64. }
  65. }
  66. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  67. static int op_Equality(IntPtr L)
  68. {
  69. try
  70. {
  71. ToLua.CheckArgsCount(L, 2);
  72. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  73. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  74. bool o = arg0 == arg1;
  75. LuaDLL.lua_pushboolean(L, o);
  76. return 1;
  77. }
  78. catch(Exception e)
  79. {
  80. return LuaDLL.toluaL_exception(L, e);
  81. }
  82. }
  83. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  84. static int get_parentScroll(IntPtr L)
  85. {
  86. object o = null;
  87. try
  88. {
  89. o = ToLua.ToObject(L, 1);
  90. VHScrollRect obj = (VHScrollRect)o;
  91. UnityEngine.UI.ScrollRect ret = obj.parentScroll;
  92. ToLua.Push(L, ret);
  93. return 1;
  94. }
  95. catch(Exception e)
  96. {
  97. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index parentScroll on a nil value" : e.Message);
  98. }
  99. }
  100. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  101. static int get_isVertical(IntPtr L)
  102. {
  103. object o = null;
  104. try
  105. {
  106. o = ToLua.ToObject(L, 1);
  107. VHScrollRect obj = (VHScrollRect)o;
  108. bool ret = obj.isVertical;
  109. LuaDLL.lua_pushboolean(L, ret);
  110. return 1;
  111. }
  112. catch(Exception e)
  113. {
  114. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index isVertical on a nil value" : e.Message);
  115. }
  116. }
  117. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  118. static int set_parentScroll(IntPtr L)
  119. {
  120. object o = null;
  121. try
  122. {
  123. o = ToLua.ToObject(L, 1);
  124. VHScrollRect obj = (VHScrollRect)o;
  125. UnityEngine.UI.ScrollRect arg0 = (UnityEngine.UI.ScrollRect)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.UI.ScrollRect));
  126. obj.parentScroll = arg0;
  127. return 0;
  128. }
  129. catch(Exception e)
  130. {
  131. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index parentScroll on a nil value" : e.Message);
  132. }
  133. }
  134. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  135. static int set_isVertical(IntPtr L)
  136. {
  137. object o = null;
  138. try
  139. {
  140. o = ToLua.ToObject(L, 1);
  141. VHScrollRect obj = (VHScrollRect)o;
  142. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  143. obj.isVertical = arg0;
  144. return 0;
  145. }
  146. catch(Exception e)
  147. {
  148. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index isVertical on a nil value" : e.Message);
  149. }
  150. }
  151. }