源战役客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

297 lines
7.3 KiB

  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class ButtonExtendWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(ButtonExtend), typeof(UnityEngine.UI.Button));
  9. L.RegFunction("SetTarget", SetTarget);
  10. L.RegFunction("SetOriginalSacle", SetOriginalSacle);
  11. L.RegFunction("SetPressScale", SetPressScale);
  12. L.RegFunction("SetNormalScale", SetNormalScale);
  13. L.RegFunction("OnPointerDown", OnPointerDown);
  14. L.RegFunction("OnPointerUp", OnPointerUp);
  15. L.RegFunction("__eq", op_Equality);
  16. L.RegFunction("__tostring", ToLua.op_ToString);
  17. L.RegVar("scale_enabled", get_scale_enabled, set_scale_enabled);
  18. L.RegVar("scale_target", get_scale_target, set_scale_target);
  19. L.RegVar("press_scale", get_press_scale, set_press_scale);
  20. L.RegVar("normal_scale", get_normal_scale, set_normal_scale);
  21. L.EndClass();
  22. }
  23. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  24. static int SetTarget(IntPtr L)
  25. {
  26. try
  27. {
  28. ToLua.CheckArgsCount(L, 2);
  29. ButtonExtend obj = (ButtonExtend)ToLua.CheckObject(L, 1, typeof(ButtonExtend));
  30. UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Transform));
  31. obj.SetTarget(arg0);
  32. return 0;
  33. }
  34. catch(Exception e)
  35. {
  36. return LuaDLL.toluaL_exception(L, e);
  37. }
  38. }
  39. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  40. static int SetOriginalSacle(IntPtr L)
  41. {
  42. try
  43. {
  44. ToLua.CheckArgsCount(L, 2);
  45. ButtonExtend obj = (ButtonExtend)ToLua.CheckObject(L, 1, typeof(ButtonExtend));
  46. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  47. obj.SetOriginalSacle(arg0);
  48. return 0;
  49. }
  50. catch(Exception e)
  51. {
  52. return LuaDLL.toluaL_exception(L, e);
  53. }
  54. }
  55. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  56. static int SetPressScale(IntPtr L)
  57. {
  58. try
  59. {
  60. ToLua.CheckArgsCount(L, 2);
  61. ButtonExtend obj = (ButtonExtend)ToLua.CheckObject(L, 1, typeof(ButtonExtend));
  62. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  63. obj.SetPressScale(arg0);
  64. return 0;
  65. }
  66. catch(Exception e)
  67. {
  68. return LuaDLL.toluaL_exception(L, e);
  69. }
  70. }
  71. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  72. static int SetNormalScale(IntPtr L)
  73. {
  74. try
  75. {
  76. ToLua.CheckArgsCount(L, 2);
  77. ButtonExtend obj = (ButtonExtend)ToLua.CheckObject(L, 1, typeof(ButtonExtend));
  78. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  79. obj.SetNormalScale(arg0);
  80. return 0;
  81. }
  82. catch(Exception e)
  83. {
  84. return LuaDLL.toluaL_exception(L, e);
  85. }
  86. }
  87. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  88. static int OnPointerDown(IntPtr L)
  89. {
  90. try
  91. {
  92. ToLua.CheckArgsCount(L, 2);
  93. ButtonExtend obj = (ButtonExtend)ToLua.CheckObject(L, 1, typeof(ButtonExtend));
  94. UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));
  95. obj.OnPointerDown(arg0);
  96. return 0;
  97. }
  98. catch(Exception e)
  99. {
  100. return LuaDLL.toluaL_exception(L, e);
  101. }
  102. }
  103. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  104. static int OnPointerUp(IntPtr L)
  105. {
  106. try
  107. {
  108. ToLua.CheckArgsCount(L, 2);
  109. ButtonExtend obj = (ButtonExtend)ToLua.CheckObject(L, 1, typeof(ButtonExtend));
  110. UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));
  111. obj.OnPointerUp(arg0);
  112. return 0;
  113. }
  114. catch(Exception e)
  115. {
  116. return LuaDLL.toluaL_exception(L, e);
  117. }
  118. }
  119. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  120. static int op_Equality(IntPtr L)
  121. {
  122. try
  123. {
  124. ToLua.CheckArgsCount(L, 2);
  125. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  126. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  127. bool o = arg0 == arg1;
  128. LuaDLL.lua_pushboolean(L, o);
  129. return 1;
  130. }
  131. catch(Exception e)
  132. {
  133. return LuaDLL.toluaL_exception(L, e);
  134. }
  135. }
  136. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  137. static int get_scale_enabled(IntPtr L)
  138. {
  139. object o = null;
  140. try
  141. {
  142. o = ToLua.ToObject(L, 1);
  143. ButtonExtend obj = (ButtonExtend)o;
  144. bool ret = obj.scale_enabled;
  145. LuaDLL.lua_pushboolean(L, ret);
  146. return 1;
  147. }
  148. catch(Exception e)
  149. {
  150. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index scale_enabled on a nil value" : e.Message);
  151. }
  152. }
  153. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  154. static int get_scale_target(IntPtr L)
  155. {
  156. object o = null;
  157. try
  158. {
  159. o = ToLua.ToObject(L, 1);
  160. ButtonExtend obj = (ButtonExtend)o;
  161. UnityEngine.Transform ret = obj.scale_target;
  162. ToLua.Push(L, ret);
  163. return 1;
  164. }
  165. catch(Exception e)
  166. {
  167. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index scale_target on a nil value" : e.Message);
  168. }
  169. }
  170. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  171. static int get_press_scale(IntPtr L)
  172. {
  173. object o = null;
  174. try
  175. {
  176. o = ToLua.ToObject(L, 1);
  177. ButtonExtend obj = (ButtonExtend)o;
  178. UnityEngine.Vector3 ret = obj.press_scale;
  179. ToLua.Push(L, ret);
  180. return 1;
  181. }
  182. catch(Exception e)
  183. {
  184. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index press_scale on a nil value" : e.Message);
  185. }
  186. }
  187. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  188. static int get_normal_scale(IntPtr L)
  189. {
  190. object o = null;
  191. try
  192. {
  193. o = ToLua.ToObject(L, 1);
  194. ButtonExtend obj = (ButtonExtend)o;
  195. UnityEngine.Vector3 ret = obj.normal_scale;
  196. ToLua.Push(L, ret);
  197. return 1;
  198. }
  199. catch(Exception e)
  200. {
  201. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index normal_scale on a nil value" : e.Message);
  202. }
  203. }
  204. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  205. static int set_scale_enabled(IntPtr L)
  206. {
  207. object o = null;
  208. try
  209. {
  210. o = ToLua.ToObject(L, 1);
  211. ButtonExtend obj = (ButtonExtend)o;
  212. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  213. obj.scale_enabled = arg0;
  214. return 0;
  215. }
  216. catch(Exception e)
  217. {
  218. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index scale_enabled on a nil value" : e.Message);
  219. }
  220. }
  221. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  222. static int set_scale_target(IntPtr L)
  223. {
  224. object o = null;
  225. try
  226. {
  227. o = ToLua.ToObject(L, 1);
  228. ButtonExtend obj = (ButtonExtend)o;
  229. UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Transform));
  230. obj.scale_target = arg0;
  231. return 0;
  232. }
  233. catch(Exception e)
  234. {
  235. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index scale_target on a nil value" : e.Message);
  236. }
  237. }
  238. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  239. static int set_press_scale(IntPtr L)
  240. {
  241. object o = null;
  242. try
  243. {
  244. o = ToLua.ToObject(L, 1);
  245. ButtonExtend obj = (ButtonExtend)o;
  246. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  247. obj.press_scale = arg0;
  248. return 0;
  249. }
  250. catch(Exception e)
  251. {
  252. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index press_scale on a nil value" : e.Message);
  253. }
  254. }
  255. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  256. static int set_normal_scale(IntPtr L)
  257. {
  258. object o = null;
  259. try
  260. {
  261. o = ToLua.ToObject(L, 1);
  262. ButtonExtend obj = (ButtonExtend)o;
  263. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  264. obj.normal_scale = arg0;
  265. return 0;
  266. }
  267. catch(Exception e)
  268. {
  269. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index normal_scale on a nil value" : e.Message);
  270. }
  271. }
  272. }