UIBaseWrap.cs 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UIBaseWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UIBase), typeof(MonoBase));
  9. L.RegFunction("GetRoot", GetRoot);
  10. L.RegFunction("FindElementGo", FindElementGo);
  11. L.RegFunction("Show", Show);
  12. L.RegFunction("Hide", Hide);
  13. L.RegFunction("Close", Close);
  14. L.RegFunction("Dispose", Dispose);
  15. L.RegFunction("BackIn", BackIn);
  16. L.RegFunction("OnSubCloseAnimEnd", OnSubCloseAnimEnd);
  17. L.RegFunction("AddButtonExitListener", AddButtonExitListener);
  18. L.RegFunction("AddButtonEventListener", AddButtonEventListener);
  19. L.RegFunction("AddButtonUniqueEventListener", AddButtonUniqueEventListener);
  20. L.RegFunction("AddToggleEventListener", AddToggleEventListener);
  21. L.RegFunction("AddToggleUniqueEventListener", AddToggleUniqueEventListener);
  22. L.RegFunction("AddSliderEventListener", AddSliderEventListener);
  23. L.RegFunction("AddSliderUniqueEventListener", AddSliderUniqueEventListener);
  24. L.RegFunction("AddInputFileEventListener", AddInputFileEventListener);
  25. L.RegFunction("AddTMPInputFileEventListener", AddTMPInputFileEventListener);
  26. L.RegFunction("AddDropdownEventListener", AddDropdownEventListener);
  27. L.RegFunction("AddUIEventHandlerClickListener", AddUIEventHandlerClickListener);
  28. L.RegFunction("AddScrollRectValueChangeListener", AddScrollRectValueChangeListener);
  29. L.RegFunction("InvokeToggle", InvokeToggle);
  30. L.RegFunction("FindChildGo", FindChildGo);
  31. L.RegFunction("__eq", op_Equality);
  32. L.RegFunction("__tostring", ToLua.op_ToString);
  33. L.RegVar("animListener", get_animListener, set_animListener);
  34. L.RegVar("initSortingOrder", get_initSortingOrder, set_initSortingOrder);
  35. L.RegVar("ParentId", get_ParentId, set_ParentId);
  36. L.RegVar("NeedParentKeep", get_NeedParentKeep, set_NeedParentKeep);
  37. L.RegVar("IsBattleMainPage", get_IsBattleMainPage, set_IsBattleMainPage);
  38. L.RegVar("Inited", get_Inited, null);
  39. L.RegVar("PageId", get_PageId, set_PageId);
  40. L.RegVar("PageUniqueID", get_PageUniqueID, null);
  41. L.RegVar("MPageName", get_MPageName, set_MPageName);
  42. L.RegVar("MSourceUIID", get_MSourceUIID, set_MSourceUIID);
  43. L.RegVar("ShowTopBtn", get_ShowTopBtn, set_ShowTopBtn);
  44. L.RegVar("MOutList", get_MOutList, set_MOutList);
  45. L.RegVar("IsActive", get_IsActive, null);
  46. L.RegVar("Data", get_Data, null);
  47. L.RegVar("IsHide", get_IsHide, null);
  48. L.RegVar("NeedCache", get_NeedCache, set_NeedCache);
  49. L.RegVar("CanPlaySound", get_CanPlaySound, set_CanPlaySound);
  50. L.RegVar("MUIType", get_MUIType, set_MUIType);
  51. L.RegVar("MPersistentStatus", get_MPersistentStatus, set_MPersistentStatus);
  52. L.RegVar("PageType", get_PageType, set_PageType);
  53. L.RegVar("SortingOrder", get_SortingOrder, set_SortingOrder);
  54. L.RegVar("PageBody", get_PageBody, null);
  55. L.RegVar("PageTrans", get_PageTrans, null);
  56. L.RegVar("StrAssetBundle", get_StrAssetBundle, set_StrAssetBundle);
  57. L.RegVar("ChildPaths", get_ChildPaths, set_ChildPaths);
  58. L.RegVar("IsEnabled", get_IsEnabled, set_IsEnabled);
  59. L.RegVar("IsDisposed", get_IsDisposed, null);
  60. L.RegVar("IsOpened", get_IsOpened, null);
  61. L.RegVar("PageAnimInType", get_PageAnimInType, set_PageAnimInType);
  62. L.RegVar("PageAnimOutType", get_PageAnimOutType, set_PageAnimOutType);
  63. L.RegVar("IsPageAnimation", get_IsPageAnimation, null);
  64. L.RegVar("CanvasEnabled", get_CanvasEnabled, set_CanvasEnabled);
  65. L.RegVar("IsShowed", get_IsShowed, null);
  66. L.RegVar("UICanvas", get_UICanvas, null);
  67. L.RegFunction("ButtonListener", UIBase_ButtonListener);
  68. L.RegFunction("ButtonListenerWithParam", UIBase_ButtonListenerWithParam);
  69. L.RegFunction("ToggleListener", UIBase_ToggleListener);
  70. L.RegFunction("ToggleListenerWithParams", UIBase_ToggleListenerWithParams);
  71. L.EndClass();
  72. }
  73. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  74. static int GetRoot(IntPtr L)
  75. {
  76. try
  77. {
  78. ToLua.CheckArgsCount(L, 1);
  79. UIBase obj = (UIBase)ToLua.CheckObject<UIBase>(L, 1);
  80. UnityEngine.GameObject o = obj.GetRoot();
  81. ToLua.PushSealed(L, o);
  82. return 1;
  83. }
  84. catch (Exception e)
  85. {
  86. return LuaDLL.toluaL_exception(L, e);
  87. }
  88. }
  89. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  90. static int FindElementGo(IntPtr L)
  91. {
  92. try
  93. {
  94. int count = LuaDLL.lua_gettop(L);
  95. if (count == 2)
  96. {
  97. UIBase obj = (UIBase)ToLua.CheckObject<UIBase>(L, 1);
  98. string arg0 = ToLua.CheckString(L, 2);
  99. UnityEngine.GameObject o = obj.FindElementGo(arg0);
  100. ToLua.PushSealed(L, o);
  101. return 1;
  102. }
  103. else if (count == 3)
  104. {
  105. UIBase obj = (UIBase)ToLua.CheckObject<UIBase>(L, 1);
  106. UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject));
  107. string arg1 = ToLua.CheckString(L, 3);
  108. UnityEngine.GameObject o = obj.FindElementGo(arg0, arg1);
  109. ToLua.PushSealed(L, o);
  110. return 1;
  111. }
  112. else
  113. {
  114. return LuaDLL.luaL_throw(L, "invalid arguments to method: UIBase.FindElementGo");
  115. }
  116. }
  117. catch (Exception e)
  118. {
  119. return LuaDLL.toluaL_exception(L, e);
  120. }
  121. }
  122. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  123. static int Show(IntPtr L)
  124. {
  125. try
  126. {
  127. int count = LuaDLL.lua_gettop(L);
  128. if (count == 1)
  129. {
  130. UIBase obj = (UIBase)ToLua.CheckObject<UIBase>(L, 1);
  131. obj.Show();
  132. return 0;
  133. }
  134. else if (count == 2)
  135. {
  136. UIBase obj = (UIBase)ToLua.CheckObject<UIBase>(L, 1);
  137. object arg0 = ToLua.ToVarObject(L, 2);
  138. obj.Show(arg0);
  139. return 0;
  140. }
  141. else if (count == 3)
  142. {
  143. UIBase obj = (UIBase)ToLua.CheckObject<UIBase>(L, 1);
  144. object arg0 = ToLua.ToVarObject(L, 2);
  145. bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
  146. obj.Show(arg0, arg1);
  147. return 0;
  148. }
  149. else
  150. {
  151. return LuaDLL.luaL_throw(L, "invalid arguments to method: UIBase.Show");
  152. }
  153. }
  154. catch (Exception e)
  155. {
  156. return LuaDLL.toluaL_exception(L, e);
  157. }
  158. }
  159. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  160. static int Hide(IntPtr L)
  161. {
  162. try
  163. {
  164. int count = LuaDLL.lua_gettop(L);
  165. if (count == 1)
  166. {
  167. UIBase obj = (UIBase)ToLua.CheckObject<UIBase>(L, 1);
  168. obj.Hide();
  169. return 0;
  170. }
  171. else if (count == 2)
  172. {
  173. UIBase obj = (UIBase)ToLua.CheckObject<UIBase>(L, 1);
  174. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  175. obj.Hide(arg0);
  176. return 0;
  177. }
  178. else
  179. {
  180. return LuaDLL.luaL_throw(L, "invalid arguments to method: UIBase.Hide");
  181. }
  182. }
  183. catch (Exception e)
  184. {
  185. return LuaDLL.toluaL_exception(L, e);
  186. }
  187. }
  188. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  189. static int Close(IntPtr L)
  190. {
  191. try
  192. {
  193. int count = LuaDLL.lua_gettop(L);
  194. if (count == 1)
  195. {
  196. UIBase obj = (UIBase)ToLua.CheckObject<UIBase>(L, 1);
  197. obj.Close();
  198. return 0;
  199. }
  200. else if (count == 2)
  201. {
  202. UIBase obj = (UIBase)ToLua.CheckObject<UIBase>(L, 1);
  203. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  204. obj.Close(arg0);
  205. return 0;
  206. }
  207. else
  208. {
  209. return LuaDLL.luaL_throw(L, "invalid arguments to method: UIBase.Close");
  210. }
  211. }
  212. catch (Exception e)
  213. {
  214. return LuaDLL.toluaL_exception(L, e);
  215. }
  216. }
  217. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  218. static int Dispose(IntPtr L)
  219. {
  220. try
  221. {
  222. ToLua.CheckArgsCount(L, 1);
  223. UIBase obj = (UIBase)ToLua.CheckObject<UIBase>(L, 1);
  224. obj.Dispose();
  225. return 0;
  226. }
  227. catch (Exception e)
  228. {
  229. return LuaDLL.toluaL_exception(L, e);
  230. }
  231. }
  232. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  233. static int BackIn(IntPtr L)
  234. {
  235. try
  236. {
  237. ToLua.CheckArgsCount(L, 1);
  238. UIBase obj = (UIBase)ToLua.CheckObject<UIBase>(L, 1);
  239. obj.BackIn();
  240. return 0;
  241. }
  242. catch (Exception e)
  243. {
  244. return LuaDLL.toluaL_exception(L, e);
  245. }
  246. }
  247. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  248. static int OnSubCloseAnimEnd(IntPtr L)
  249. {
  250. try
  251. {
  252. ToLua.CheckArgsCount(L, 2);
  253. UIBase obj = (UIBase)ToLua.CheckObject<UIBase>(L, 1);
  254. string arg0 = ToLua.CheckString(L, 2);
  255. obj.OnSubCloseAnimEnd(arg0);
  256. return 0;
  257. }
  258. catch (Exception e)
  259. {
  260. return LuaDLL.toluaL_exception(L, e);
  261. }
  262. }
  263. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  264. static int AddButtonExitListener(IntPtr L)
  265. {
  266. try
  267. {
  268. int count = LuaDLL.lua_gettop(L);
  269. UIBase obj = (UIBase)ToLua.CheckObject<UIBase>(L, 1);
  270. UnityEngine.UI.Button arg0 = (UnityEngine.UI.Button)ToLua.CheckObject<UnityEngine.UI.Button>(L, 2);
  271. LuaTable arg1 = ToLua.CheckLuaTable(L, 3);
  272. LuaFunction arg2 = ToLua.CheckLuaFunction(L, 4);
  273. object[] arg3 = ToLua.ToParamsObject(L, 5, count - 4);
  274. obj.AddButtonExitListener(arg0, arg1, arg2, arg3);
  275. return 0;
  276. }
  277. catch (Exception e)
  278. {
  279. return LuaDLL.toluaL_exception(L, e);
  280. }
  281. }
  282. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  283. static int AddButtonEventListener(IntPtr L)
  284. {
  285. try
  286. {
  287. int count = LuaDLL.lua_gettop(L);
  288. if (count == 3 && TypeChecker.CheckTypes<UIBase, UnityEngine.UI.Button, UIBase.ButtonListener>(L, 1))
  289. {
  290. UIBase obj = (UIBase)ToLua.ToObject(L, 1);
  291. UnityEngine.UI.Button arg0 = (UnityEngine.UI.Button)ToLua.ToObject(L, 2);
  292. UIBase.ButtonListener arg1 = (UIBase.ButtonListener)ToLua.ToObject(L, 3);
  293. obj.AddButtonEventListener(arg0, arg1);
  294. return 0;
  295. }
  296. else if (count == 3 && TypeChecker.CheckTypes<UIBase, UnityEngine.UI.Button, LuaInterface.LuaFunction>(L, 1))
  297. {
  298. UIBase obj = (UIBase)ToLua.ToObject(L, 1);
  299. UnityEngine.UI.Button arg0 = (UnityEngine.UI.Button)ToLua.ToObject(L, 2);
  300. LuaFunction arg1 = ToLua.ToLuaFunction(L, 3);
  301. obj.AddButtonEventListener(arg0, arg1);
  302. return 0;
  303. }
  304. else if (count == 4 && TypeChecker.CheckTypes<UIBase, UnityEngine.UI.Button, LuaInterface.LuaTable, LuaInterface.LuaFunction>(L, 1))
  305. {
  306. UIBase obj = (UIBase)ToLua.ToObject(L, 1);
  307. UnityEngine.UI.Button arg0 = (UnityEngine.UI.Button)ToLua.ToObject(L, 2);
  308. LuaTable arg1 = ToLua.ToLuaTable(L, 3);
  309. LuaFunction arg2 = ToLua.ToLuaFunction(L, 4);
  310. obj.AddButtonEventListener(arg0, arg1, arg2);
  311. return 0;
  312. }
  313. else if (TypeChecker.CheckTypes<UIBase, UnityEngine.UI.Button, LuaInterface.LuaTable, LuaInterface.LuaFunction>(L, 1) && TypeChecker.CheckParamsType<object>(L, 5, count - 4))
  314. {
  315. UIBase obj = (UIBase)ToLua.ToObject(L, 1);
  316. UnityEngine.UI.Button arg0 = (UnityEngine.UI.Button)ToLua.ToObject(L, 2);
  317. LuaTable arg1 = ToLua.ToLuaTable(L, 3);
  318. LuaFunction arg2 = ToLua.ToLuaFunction(L, 4);
  319. object[] arg3 = ToLua.ToParamsObject(L, 5, count - 4);
  320. obj.AddButtonEventListener(arg0, arg1, arg2, arg3);
  321. return 0;
  322. }
  323. else if (TypeChecker.CheckTypes<UIBase, UnityEngine.UI.Button, UIBase.ButtonListenerWithParam>(L, 1) && TypeChecker.CheckParamsType<object>(L, 4, count - 3))
  324. {
  325. UIBase obj = (UIBase)ToLua.ToObject(L, 1);
  326. UnityEngine.UI.Button arg0 = (UnityEngine.UI.Button)ToLua.ToObject(L, 2);
  327. UIBase.ButtonListenerWithParam arg1 = (UIBase.ButtonListenerWithParam)ToLua.ToObject(L, 3);
  328. object[] arg2 = ToLua.ToParamsObject(L, 4, count - 3);
  329. obj.AddButtonEventListener(arg0, arg1, arg2);
  330. return 0;
  331. }
  332. else
  333. {
  334. return LuaDLL.luaL_throw(L, "invalid arguments to method: UIBase.AddButtonEventListener");
  335. }
  336. }
  337. catch (Exception e)
  338. {
  339. return LuaDLL.toluaL_exception(L, e);
  340. }
  341. }
  342. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  343. static int AddButtonUniqueEventListener(IntPtr L)
  344. {
  345. try
  346. {
  347. int count = LuaDLL.lua_gettop(L);
  348. UIBase obj = (UIBase)ToLua.CheckObject<UIBase>(L, 1);
  349. UnityEngine.UI.Button arg0 = (UnityEngine.UI.Button)ToLua.CheckObject<UnityEngine.UI.Button>(L, 2);
  350. LuaTable arg1 = ToLua.CheckLuaTable(L, 3);
  351. LuaFunction arg2 = ToLua.CheckLuaFunction(L, 4);
  352. object[] arg3 = ToLua.ToParamsObject(L, 5, count - 4);
  353. obj.AddButtonUniqueEventListener(arg0, arg1, arg2, arg3);
  354. return 0;
  355. }
  356. catch (Exception e)
  357. {
  358. return LuaDLL.toluaL_exception(L, e);
  359. }
  360. }
  361. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  362. static int AddToggleEventListener(IntPtr L)
  363. {
  364. try
  365. {
  366. int count = LuaDLL.lua_gettop(L);
  367. if (count == 3 && TypeChecker.CheckTypes<UIBase, UnityEngine.UI.Toggle, UIBase.ToggleListener>(L, 1))
  368. {
  369. UIBase obj = (UIBase)ToLua.ToObject(L, 1);
  370. UnityEngine.UI.Toggle arg0 = (UnityEngine.UI.Toggle)ToLua.ToObject(L, 2);
  371. UIBase.ToggleListener arg1 = (UIBase.ToggleListener)ToLua.ToObject(L, 3);
  372. obj.AddToggleEventListener(arg0, arg1);
  373. return 0;
  374. }
  375. else if (count == 3 && TypeChecker.CheckTypes<UIBase, UnityEngine.UI.Toggle, LuaInterface.LuaFunction>(L, 1))
  376. {
  377. UIBase obj = (UIBase)ToLua.ToObject(L, 1);
  378. UnityEngine.UI.Toggle arg0 = (UnityEngine.UI.Toggle)ToLua.ToObject(L, 2);
  379. LuaFunction arg1 = ToLua.ToLuaFunction(L, 3);
  380. obj.AddToggleEventListener(arg0, arg1);
  381. return 0;
  382. }
  383. else if (count == 5 && TypeChecker.CheckTypes<UIBase, UnityEngine.UI.Toggle, LuaInterface.LuaTable, LuaInterface.LuaFunction, object>(L, 1))
  384. {
  385. UIBase obj = (UIBase)ToLua.ToObject(L, 1);
  386. UnityEngine.UI.Toggle arg0 = (UnityEngine.UI.Toggle)ToLua.ToObject(L, 2);
  387. LuaTable arg1 = ToLua.ToLuaTable(L, 3);
  388. LuaFunction arg2 = ToLua.ToLuaFunction(L, 4);
  389. object arg3 = ToLua.ToVarObject(L, 5);
  390. obj.AddToggleEventListener(arg0, arg1, arg2, arg3);
  391. return 0;
  392. }
  393. else if (TypeChecker.CheckTypes<UIBase, UnityEngine.UI.Toggle, UIBase.ToggleListenerWithParams>(L, 1) && TypeChecker.CheckParamsType<object>(L, 4, count - 3))
  394. {
  395. UIBase obj = (UIBase)ToLua.ToObject(L, 1);
  396. UnityEngine.UI.Toggle arg0 = (UnityEngine.UI.Toggle)ToLua.ToObject(L, 2);
  397. UIBase.ToggleListenerWithParams arg1 = (UIBase.ToggleListenerWithParams)ToLua.ToObject(L, 3);
  398. object[] arg2 = ToLua.ToParamsObject(L, 4, count - 3);
  399. obj.AddToggleEventListener(arg0, arg1, arg2);
  400. return 0;
  401. }
  402. else if (TypeChecker.CheckTypes<UIBase, UnityEngine.UI.Toggle, LuaInterface.LuaFunction>(L, 1) && TypeChecker.CheckParamsType<object>(L, 4, count - 3))
  403. {
  404. UIBase obj = (UIBase)ToLua.ToObject(L, 1);
  405. UnityEngine.UI.Toggle arg0 = (UnityEngine.UI.Toggle)ToLua.ToObject(L, 2);
  406. LuaFunction arg1 = ToLua.ToLuaFunction(L, 3);
  407. object[] arg2 = ToLua.ToParamsObject(L, 4, count - 3);
  408. obj.AddToggleEventListener(arg0, arg1, arg2);
  409. return 0;
  410. }
  411. else
  412. {
  413. return LuaDLL.luaL_throw(L, "invalid arguments to method: UIBase.AddToggleEventListener");
  414. }
  415. }
  416. catch (Exception e)
  417. {
  418. return LuaDLL.toluaL_exception(L, e);
  419. }
  420. }
  421. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  422. static int AddToggleUniqueEventListener(IntPtr L)
  423. {
  424. try
  425. {
  426. int count = LuaDLL.lua_gettop(L);
  427. UIBase obj = (UIBase)ToLua.CheckObject<UIBase>(L, 1);
  428. UnityEngine.UI.Toggle arg0 = (UnityEngine.UI.Toggle)ToLua.CheckObject<UnityEngine.UI.Toggle>(L, 2);
  429. LuaTable arg1 = ToLua.CheckLuaTable(L, 3);
  430. LuaFunction arg2 = ToLua.CheckLuaFunction(L, 4);
  431. object[] arg3 = ToLua.ToParamsObject(L, 5, count - 4);
  432. obj.AddToggleUniqueEventListener(arg0, arg1, arg2, arg3);
  433. return 0;
  434. }
  435. catch (Exception e)
  436. {
  437. return LuaDLL.toluaL_exception(L, e);
  438. }
  439. }
  440. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  441. static int AddSliderEventListener(IntPtr L)
  442. {
  443. try
  444. {
  445. int count = LuaDLL.lua_gettop(L);
  446. UIBase obj = (UIBase)ToLua.CheckObject<UIBase>(L, 1);
  447. UnityEngine.UI.Slider arg0 = (UnityEngine.UI.Slider)ToLua.CheckObject<UnityEngine.UI.Slider>(L, 2);
  448. LuaTable arg1 = ToLua.CheckLuaTable(L, 3);
  449. LuaFunction arg2 = ToLua.CheckLuaFunction(L, 4);
  450. object[] arg3 = ToLua.ToParamsObject(L, 5, count - 4);
  451. obj.AddSliderEventListener(arg0, arg1, arg2, arg3);
  452. return 0;
  453. }
  454. catch (Exception e)
  455. {
  456. return LuaDLL.toluaL_exception(L, e);
  457. }
  458. }
  459. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  460. static int AddSliderUniqueEventListener(IntPtr L)
  461. {
  462. try
  463. {
  464. int count = LuaDLL.lua_gettop(L);
  465. UIBase obj = (UIBase)ToLua.CheckObject<UIBase>(L, 1);
  466. UnityEngine.UI.Slider arg0 = (UnityEngine.UI.Slider)ToLua.CheckObject<UnityEngine.UI.Slider>(L, 2);
  467. LuaTable arg1 = ToLua.CheckLuaTable(L, 3);
  468. LuaFunction arg2 = ToLua.CheckLuaFunction(L, 4);
  469. object[] arg3 = ToLua.ToParamsObject(L, 5, count - 4);
  470. obj.AddSliderUniqueEventListener(arg0, arg1, arg2, arg3);
  471. return 0;
  472. }
  473. catch (Exception e)
  474. {
  475. return LuaDLL.toluaL_exception(L, e);
  476. }
  477. }
  478. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  479. static int AddInputFileEventListener(IntPtr L)
  480. {
  481. try
  482. {
  483. ToLua.CheckArgsCount(L, 3);
  484. UIBase obj = (UIBase)ToLua.CheckObject<UIBase>(L, 1);
  485. UnityEngine.UI.InputField arg0 = (UnityEngine.UI.InputField)ToLua.CheckObject<UnityEngine.UI.InputField>(L, 2);
  486. LuaFunction arg1 = ToLua.CheckLuaFunction(L, 3);
  487. obj.AddInputFileEventListener(arg0, arg1);
  488. return 0;
  489. }
  490. catch (Exception e)
  491. {
  492. return LuaDLL.toluaL_exception(L, e);
  493. }
  494. }
  495. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  496. static int AddTMPInputFileEventListener(IntPtr L)
  497. {
  498. try
  499. {
  500. ToLua.CheckArgsCount(L, 3);
  501. UIBase obj = (UIBase)ToLua.CheckObject<UIBase>(L, 1);
  502. TMPro.TMP_InputField arg0 = (TMPro.TMP_InputField)ToLua.CheckObject<TMPro.TMP_InputField>(L, 2);
  503. LuaFunction arg1 = ToLua.CheckLuaFunction(L, 3);
  504. obj.AddTMPInputFileEventListener(arg0, arg1);
  505. return 0;
  506. }
  507. catch (Exception e)
  508. {
  509. return LuaDLL.toluaL_exception(L, e);
  510. }
  511. }
  512. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  513. static int AddDropdownEventListener(IntPtr L)
  514. {
  515. try
  516. {
  517. ToLua.CheckArgsCount(L, 3);
  518. UIBase obj = (UIBase)ToLua.CheckObject<UIBase>(L, 1);
  519. UnityEngine.UI.Dropdown arg0 = (UnityEngine.UI.Dropdown)ToLua.CheckObject<UnityEngine.UI.Dropdown>(L, 2);
  520. LuaFunction arg1 = ToLua.CheckLuaFunction(L, 3);
  521. obj.AddDropdownEventListener(arg0, arg1);
  522. return 0;
  523. }
  524. catch (Exception e)
  525. {
  526. return LuaDLL.toluaL_exception(L, e);
  527. }
  528. }
  529. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  530. static int AddUIEventHandlerClickListener(IntPtr L)
  531. {
  532. try
  533. {
  534. ToLua.CheckArgsCount(L, 3);
  535. UIBase obj = (UIBase)ToLua.CheckObject<UIBase>(L, 1);
  536. UIEventHandler arg0 = (UIEventHandler)ToLua.CheckObject<UIEventHandler>(L, 2);
  537. LuaFunction arg1 = ToLua.CheckLuaFunction(L, 3);
  538. obj.AddUIEventHandlerClickListener(arg0, arg1);
  539. return 0;
  540. }
  541. catch (Exception e)
  542. {
  543. return LuaDLL.toluaL_exception(L, e);
  544. }
  545. }
  546. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  547. static int AddScrollRectValueChangeListener(IntPtr L)
  548. {
  549. try
  550. {
  551. ToLua.CheckArgsCount(L, 4);
  552. UIBase obj = (UIBase)ToLua.CheckObject<UIBase>(L, 1);
  553. UnityEngine.UI.ScrollRect arg0 = (UnityEngine.UI.ScrollRect)ToLua.CheckObject<UnityEngine.UI.ScrollRect>(L, 2);
  554. LuaTable arg1 = ToLua.CheckLuaTable(L, 3);
  555. LuaFunction arg2 = ToLua.CheckLuaFunction(L, 4);
  556. obj.AddScrollRectValueChangeListener(arg0, arg1, arg2);
  557. return 0;
  558. }
  559. catch (Exception e)
  560. {
  561. return LuaDLL.toluaL_exception(L, e);
  562. }
  563. }
  564. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  565. static int InvokeToggle(IntPtr L)
  566. {
  567. try
  568. {
  569. ToLua.CheckArgsCount(L, 3);
  570. UIBase obj = (UIBase)ToLua.CheckObject<UIBase>(L, 1);
  571. UnityEngine.UI.Toggle arg0 = (UnityEngine.UI.Toggle)ToLua.CheckObject<UnityEngine.UI.Toggle>(L, 2);
  572. bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
  573. obj.InvokeToggle(arg0, arg1);
  574. return 0;
  575. }
  576. catch (Exception e)
  577. {
  578. return LuaDLL.toluaL_exception(L, e);
  579. }
  580. }
  581. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  582. static int FindChildGo(IntPtr L)
  583. {
  584. try
  585. {
  586. ToLua.CheckArgsCount(L, 2);
  587. UIBase obj = (UIBase)ToLua.CheckObject<UIBase>(L, 1);
  588. string arg0 = ToLua.CheckString(L, 2);
  589. UnityEngine.GameObject o = obj.FindChildGo(arg0);
  590. ToLua.PushSealed(L, o);
  591. return 1;
  592. }
  593. catch (Exception e)
  594. {
  595. return LuaDLL.toluaL_exception(L, e);
  596. }
  597. }
  598. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  599. static int op_Equality(IntPtr L)
  600. {
  601. try
  602. {
  603. ToLua.CheckArgsCount(L, 2);
  604. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  605. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  606. bool o = arg0 == arg1;
  607. LuaDLL.lua_pushboolean(L, o);
  608. return 1;
  609. }
  610. catch (Exception e)
  611. {
  612. return LuaDLL.toluaL_exception(L, e);
  613. }
  614. }
  615. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  616. static int get_animListener(IntPtr L)
  617. {
  618. object o = null;
  619. try
  620. {
  621. o = ToLua.ToObject(L, 1);
  622. UIBase obj = (UIBase)o;
  623. UIAnimationListener ret = obj.animListener;
  624. ToLua.Push(L, ret);
  625. return 1;
  626. }
  627. catch(Exception e)
  628. {
  629. return LuaDLL.toluaL_exception(L, e, o, "attempt to index animListener on a nil value");
  630. }
  631. }
  632. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  633. static int get_initSortingOrder(IntPtr L)
  634. {
  635. object o = null;
  636. try
  637. {
  638. o = ToLua.ToObject(L, 1);
  639. UIBase obj = (UIBase)o;
  640. int ret = obj.initSortingOrder;
  641. LuaDLL.lua_pushinteger(L, ret);
  642. return 1;
  643. }
  644. catch(Exception e)
  645. {
  646. return LuaDLL.toluaL_exception(L, e, o, "attempt to index initSortingOrder on a nil value");
  647. }
  648. }
  649. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  650. static int get_ParentId(IntPtr L)
  651. {
  652. object o = null;
  653. try
  654. {
  655. o = ToLua.ToObject(L, 1);
  656. UIBase obj = (UIBase)o;
  657. int ret = obj.ParentId;
  658. LuaDLL.lua_pushinteger(L, ret);
  659. return 1;
  660. }
  661. catch(Exception e)
  662. {
  663. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ParentId on a nil value");
  664. }
  665. }
  666. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  667. static int get_NeedParentKeep(IntPtr L)
  668. {
  669. object o = null;
  670. try
  671. {
  672. o = ToLua.ToObject(L, 1);
  673. UIBase obj = (UIBase)o;
  674. bool ret = obj.NeedParentKeep;
  675. LuaDLL.lua_pushboolean(L, ret);
  676. return 1;
  677. }
  678. catch(Exception e)
  679. {
  680. return LuaDLL.toluaL_exception(L, e, o, "attempt to index NeedParentKeep on a nil value");
  681. }
  682. }
  683. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  684. static int get_IsBattleMainPage(IntPtr L)
  685. {
  686. object o = null;
  687. try
  688. {
  689. o = ToLua.ToObject(L, 1);
  690. UIBase obj = (UIBase)o;
  691. bool ret = obj.IsBattleMainPage;
  692. LuaDLL.lua_pushboolean(L, ret);
  693. return 1;
  694. }
  695. catch(Exception e)
  696. {
  697. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsBattleMainPage on a nil value");
  698. }
  699. }
  700. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  701. static int get_Inited(IntPtr L)
  702. {
  703. object o = null;
  704. try
  705. {
  706. o = ToLua.ToObject(L, 1);
  707. UIBase obj = (UIBase)o;
  708. bool ret = obj.Inited;
  709. LuaDLL.lua_pushboolean(L, ret);
  710. return 1;
  711. }
  712. catch(Exception e)
  713. {
  714. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Inited on a nil value");
  715. }
  716. }
  717. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  718. static int get_PageId(IntPtr L)
  719. {
  720. object o = null;
  721. try
  722. {
  723. o = ToLua.ToObject(L, 1);
  724. UIBase obj = (UIBase)o;
  725. int ret = obj.PageId;
  726. LuaDLL.lua_pushinteger(L, ret);
  727. return 1;
  728. }
  729. catch(Exception e)
  730. {
  731. return LuaDLL.toluaL_exception(L, e, o, "attempt to index PageId on a nil value");
  732. }
  733. }
  734. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  735. static int get_PageUniqueID(IntPtr L)
  736. {
  737. object o = null;
  738. try
  739. {
  740. o = ToLua.ToObject(L, 1);
  741. UIBase obj = (UIBase)o;
  742. int ret = obj.PageUniqueID;
  743. LuaDLL.lua_pushinteger(L, ret);
  744. return 1;
  745. }
  746. catch(Exception e)
  747. {
  748. return LuaDLL.toluaL_exception(L, e, o, "attempt to index PageUniqueID on a nil value");
  749. }
  750. }
  751. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  752. static int get_MPageName(IntPtr L)
  753. {
  754. object o = null;
  755. try
  756. {
  757. o = ToLua.ToObject(L, 1);
  758. UIBase obj = (UIBase)o;
  759. string ret = obj.MPageName;
  760. LuaDLL.lua_pushstring(L, ret);
  761. return 1;
  762. }
  763. catch(Exception e)
  764. {
  765. return LuaDLL.toluaL_exception(L, e, o, "attempt to index MPageName on a nil value");
  766. }
  767. }
  768. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  769. static int get_MSourceUIID(IntPtr L)
  770. {
  771. object o = null;
  772. try
  773. {
  774. o = ToLua.ToObject(L, 1);
  775. UIBase obj = (UIBase)o;
  776. int ret = obj.MSourceUIID;
  777. LuaDLL.lua_pushinteger(L, ret);
  778. return 1;
  779. }
  780. catch(Exception e)
  781. {
  782. return LuaDLL.toluaL_exception(L, e, o, "attempt to index MSourceUIID on a nil value");
  783. }
  784. }
  785. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  786. static int get_ShowTopBtn(IntPtr L)
  787. {
  788. object o = null;
  789. try
  790. {
  791. o = ToLua.ToObject(L, 1);
  792. UIBase obj = (UIBase)o;
  793. bool ret = obj.ShowTopBtn;
  794. LuaDLL.lua_pushboolean(L, ret);
  795. return 1;
  796. }
  797. catch(Exception e)
  798. {
  799. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ShowTopBtn on a nil value");
  800. }
  801. }
  802. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  803. static int get_MOutList(IntPtr L)
  804. {
  805. object o = null;
  806. try
  807. {
  808. o = ToLua.ToObject(L, 1);
  809. UIBase obj = (UIBase)o;
  810. bool ret = obj.MOutList;
  811. LuaDLL.lua_pushboolean(L, ret);
  812. return 1;
  813. }
  814. catch(Exception e)
  815. {
  816. return LuaDLL.toluaL_exception(L, e, o, "attempt to index MOutList on a nil value");
  817. }
  818. }
  819. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  820. static int get_IsActive(IntPtr L)
  821. {
  822. object o = null;
  823. try
  824. {
  825. o = ToLua.ToObject(L, 1);
  826. UIBase obj = (UIBase)o;
  827. bool ret = obj.IsActive;
  828. LuaDLL.lua_pushboolean(L, ret);
  829. return 1;
  830. }
  831. catch(Exception e)
  832. {
  833. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsActive on a nil value");
  834. }
  835. }
  836. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  837. static int get_Data(IntPtr L)
  838. {
  839. object o = null;
  840. try
  841. {
  842. o = ToLua.ToObject(L, 1);
  843. UIBase obj = (UIBase)o;
  844. object ret = obj.Data;
  845. ToLua.Push(L, ret);
  846. return 1;
  847. }
  848. catch(Exception e)
  849. {
  850. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Data on a nil value");
  851. }
  852. }
  853. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  854. static int get_IsHide(IntPtr L)
  855. {
  856. object o = null;
  857. try
  858. {
  859. o = ToLua.ToObject(L, 1);
  860. UIBase obj = (UIBase)o;
  861. bool ret = obj.IsHide;
  862. LuaDLL.lua_pushboolean(L, ret);
  863. return 1;
  864. }
  865. catch(Exception e)
  866. {
  867. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsHide on a nil value");
  868. }
  869. }
  870. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  871. static int get_NeedCache(IntPtr L)
  872. {
  873. object o = null;
  874. try
  875. {
  876. o = ToLua.ToObject(L, 1);
  877. UIBase obj = (UIBase)o;
  878. bool ret = obj.NeedCache;
  879. LuaDLL.lua_pushboolean(L, ret);
  880. return 1;
  881. }
  882. catch(Exception e)
  883. {
  884. return LuaDLL.toluaL_exception(L, e, o, "attempt to index NeedCache on a nil value");
  885. }
  886. }
  887. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  888. static int get_CanPlaySound(IntPtr L)
  889. {
  890. object o = null;
  891. try
  892. {
  893. o = ToLua.ToObject(L, 1);
  894. UIBase obj = (UIBase)o;
  895. bool ret = obj.CanPlaySound;
  896. LuaDLL.lua_pushboolean(L, ret);
  897. return 1;
  898. }
  899. catch(Exception e)
  900. {
  901. return LuaDLL.toluaL_exception(L, e, o, "attempt to index CanPlaySound on a nil value");
  902. }
  903. }
  904. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  905. static int get_MUIType(IntPtr L)
  906. {
  907. object o = null;
  908. try
  909. {
  910. o = ToLua.ToObject(L, 1);
  911. UIBase obj = (UIBase)o;
  912. int ret = obj.MUIType;
  913. LuaDLL.lua_pushinteger(L, ret);
  914. return 1;
  915. }
  916. catch(Exception e)
  917. {
  918. return LuaDLL.toluaL_exception(L, e, o, "attempt to index MUIType on a nil value");
  919. }
  920. }
  921. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  922. static int get_MPersistentStatus(IntPtr L)
  923. {
  924. object o = null;
  925. try
  926. {
  927. o = ToLua.ToObject(L, 1);
  928. UIBase obj = (UIBase)o;
  929. bool ret = obj.MPersistentStatus;
  930. LuaDLL.lua_pushboolean(L, ret);
  931. return 1;
  932. }
  933. catch(Exception e)
  934. {
  935. return LuaDLL.toluaL_exception(L, e, o, "attempt to index MPersistentStatus on a nil value");
  936. }
  937. }
  938. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  939. static int get_PageType(IntPtr L)
  940. {
  941. object o = null;
  942. try
  943. {
  944. o = ToLua.ToObject(L, 1);
  945. UIBase obj = (UIBase)o;
  946. EUIPageType ret = obj.PageType;
  947. ToLua.Push(L, ret);
  948. return 1;
  949. }
  950. catch(Exception e)
  951. {
  952. return LuaDLL.toluaL_exception(L, e, o, "attempt to index PageType on a nil value");
  953. }
  954. }
  955. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  956. static int get_SortingOrder(IntPtr L)
  957. {
  958. object o = null;
  959. try
  960. {
  961. o = ToLua.ToObject(L, 1);
  962. UIBase obj = (UIBase)o;
  963. int ret = obj.SortingOrder;
  964. LuaDLL.lua_pushinteger(L, ret);
  965. return 1;
  966. }
  967. catch(Exception e)
  968. {
  969. return LuaDLL.toluaL_exception(L, e, o, "attempt to index SortingOrder on a nil value");
  970. }
  971. }
  972. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  973. static int get_PageBody(IntPtr L)
  974. {
  975. object o = null;
  976. try
  977. {
  978. o = ToLua.ToObject(L, 1);
  979. UIBase obj = (UIBase)o;
  980. UnityEngine.GameObject ret = obj.PageBody;
  981. ToLua.PushSealed(L, ret);
  982. return 1;
  983. }
  984. catch(Exception e)
  985. {
  986. return LuaDLL.toluaL_exception(L, e, o, "attempt to index PageBody on a nil value");
  987. }
  988. }
  989. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  990. static int get_PageTrans(IntPtr L)
  991. {
  992. object o = null;
  993. try
  994. {
  995. o = ToLua.ToObject(L, 1);
  996. UIBase obj = (UIBase)o;
  997. UnityEngine.Transform ret = obj.PageTrans;
  998. ToLua.Push(L, ret);
  999. return 1;
  1000. }
  1001. catch(Exception e)
  1002. {
  1003. return LuaDLL.toluaL_exception(L, e, o, "attempt to index PageTrans on a nil value");
  1004. }
  1005. }
  1006. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1007. static int get_StrAssetBundle(IntPtr L)
  1008. {
  1009. object o = null;
  1010. try
  1011. {
  1012. o = ToLua.ToObject(L, 1);
  1013. UIBase obj = (UIBase)o;
  1014. string ret = obj.StrAssetBundle;
  1015. LuaDLL.lua_pushstring(L, ret);
  1016. return 1;
  1017. }
  1018. catch(Exception e)
  1019. {
  1020. return LuaDLL.toluaL_exception(L, e, o, "attempt to index StrAssetBundle on a nil value");
  1021. }
  1022. }
  1023. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1024. static int get_ChildPaths(IntPtr L)
  1025. {
  1026. object o = null;
  1027. try
  1028. {
  1029. o = ToLua.ToObject(L, 1);
  1030. UIBase obj = (UIBase)o;
  1031. string ret = obj.ChildPaths;
  1032. LuaDLL.lua_pushstring(L, ret);
  1033. return 1;
  1034. }
  1035. catch(Exception e)
  1036. {
  1037. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ChildPaths on a nil value");
  1038. }
  1039. }
  1040. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1041. static int get_IsEnabled(IntPtr L)
  1042. {
  1043. object o = null;
  1044. try
  1045. {
  1046. o = ToLua.ToObject(L, 1);
  1047. UIBase obj = (UIBase)o;
  1048. bool ret = obj.IsEnabled;
  1049. LuaDLL.lua_pushboolean(L, ret);
  1050. return 1;
  1051. }
  1052. catch(Exception e)
  1053. {
  1054. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsEnabled on a nil value");
  1055. }
  1056. }
  1057. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1058. static int get_IsDisposed(IntPtr L)
  1059. {
  1060. object o = null;
  1061. try
  1062. {
  1063. o = ToLua.ToObject(L, 1);
  1064. UIBase obj = (UIBase)o;
  1065. bool ret = obj.IsDisposed;
  1066. LuaDLL.lua_pushboolean(L, ret);
  1067. return 1;
  1068. }
  1069. catch(Exception e)
  1070. {
  1071. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsDisposed on a nil value");
  1072. }
  1073. }
  1074. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1075. static int get_IsOpened(IntPtr L)
  1076. {
  1077. object o = null;
  1078. try
  1079. {
  1080. o = ToLua.ToObject(L, 1);
  1081. UIBase obj = (UIBase)o;
  1082. bool ret = obj.IsOpened;
  1083. LuaDLL.lua_pushboolean(L, ret);
  1084. return 1;
  1085. }
  1086. catch(Exception e)
  1087. {
  1088. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsOpened on a nil value");
  1089. }
  1090. }
  1091. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1092. static int get_PageAnimInType(IntPtr L)
  1093. {
  1094. object o = null;
  1095. try
  1096. {
  1097. o = ToLua.ToObject(L, 1);
  1098. UIBase obj = (UIBase)o;
  1099. UI_ANIM ret = obj.PageAnimInType;
  1100. ToLua.Push(L, ret);
  1101. return 1;
  1102. }
  1103. catch(Exception e)
  1104. {
  1105. return LuaDLL.toluaL_exception(L, e, o, "attempt to index PageAnimInType on a nil value");
  1106. }
  1107. }
  1108. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1109. static int get_PageAnimOutType(IntPtr L)
  1110. {
  1111. object o = null;
  1112. try
  1113. {
  1114. o = ToLua.ToObject(L, 1);
  1115. UIBase obj = (UIBase)o;
  1116. UI_ANIM ret = obj.PageAnimOutType;
  1117. ToLua.Push(L, ret);
  1118. return 1;
  1119. }
  1120. catch(Exception e)
  1121. {
  1122. return LuaDLL.toluaL_exception(L, e, o, "attempt to index PageAnimOutType on a nil value");
  1123. }
  1124. }
  1125. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1126. static int get_IsPageAnimation(IntPtr L)
  1127. {
  1128. object o = null;
  1129. try
  1130. {
  1131. o = ToLua.ToObject(L, 1);
  1132. UIBase obj = (UIBase)o;
  1133. bool ret = obj.IsPageAnimation;
  1134. LuaDLL.lua_pushboolean(L, ret);
  1135. return 1;
  1136. }
  1137. catch(Exception e)
  1138. {
  1139. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsPageAnimation on a nil value");
  1140. }
  1141. }
  1142. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1143. static int get_CanvasEnabled(IntPtr L)
  1144. {
  1145. object o = null;
  1146. try
  1147. {
  1148. o = ToLua.ToObject(L, 1);
  1149. UIBase obj = (UIBase)o;
  1150. bool ret = obj.CanvasEnabled;
  1151. LuaDLL.lua_pushboolean(L, ret);
  1152. return 1;
  1153. }
  1154. catch(Exception e)
  1155. {
  1156. return LuaDLL.toluaL_exception(L, e, o, "attempt to index CanvasEnabled on a nil value");
  1157. }
  1158. }
  1159. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1160. static int get_IsShowed(IntPtr L)
  1161. {
  1162. object o = null;
  1163. try
  1164. {
  1165. o = ToLua.ToObject(L, 1);
  1166. UIBase obj = (UIBase)o;
  1167. bool ret = obj.IsShowed;
  1168. LuaDLL.lua_pushboolean(L, ret);
  1169. return 1;
  1170. }
  1171. catch(Exception e)
  1172. {
  1173. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsShowed on a nil value");
  1174. }
  1175. }
  1176. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1177. static int get_UICanvas(IntPtr L)
  1178. {
  1179. object o = null;
  1180. try
  1181. {
  1182. o = ToLua.ToObject(L, 1);
  1183. UIBase obj = (UIBase)o;
  1184. UnityEngine.Canvas ret = obj.UICanvas;
  1185. ToLua.PushSealed(L, ret);
  1186. return 1;
  1187. }
  1188. catch(Exception e)
  1189. {
  1190. return LuaDLL.toluaL_exception(L, e, o, "attempt to index UICanvas on a nil value");
  1191. }
  1192. }
  1193. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1194. static int set_animListener(IntPtr L)
  1195. {
  1196. object o = null;
  1197. try
  1198. {
  1199. o = ToLua.ToObject(L, 1);
  1200. UIBase obj = (UIBase)o;
  1201. UIAnimationListener arg0 = (UIAnimationListener)ToLua.CheckObject<UIAnimationListener>(L, 2);
  1202. obj.animListener = arg0;
  1203. return 0;
  1204. }
  1205. catch(Exception e)
  1206. {
  1207. return LuaDLL.toluaL_exception(L, e, o, "attempt to index animListener on a nil value");
  1208. }
  1209. }
  1210. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1211. static int set_initSortingOrder(IntPtr L)
  1212. {
  1213. object o = null;
  1214. try
  1215. {
  1216. o = ToLua.ToObject(L, 1);
  1217. UIBase obj = (UIBase)o;
  1218. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  1219. obj.initSortingOrder = arg0;
  1220. return 0;
  1221. }
  1222. catch(Exception e)
  1223. {
  1224. return LuaDLL.toluaL_exception(L, e, o, "attempt to index initSortingOrder on a nil value");
  1225. }
  1226. }
  1227. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1228. static int set_ParentId(IntPtr L)
  1229. {
  1230. object o = null;
  1231. try
  1232. {
  1233. o = ToLua.ToObject(L, 1);
  1234. UIBase obj = (UIBase)o;
  1235. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  1236. obj.ParentId = arg0;
  1237. return 0;
  1238. }
  1239. catch(Exception e)
  1240. {
  1241. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ParentId on a nil value");
  1242. }
  1243. }
  1244. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1245. static int set_NeedParentKeep(IntPtr L)
  1246. {
  1247. object o = null;
  1248. try
  1249. {
  1250. o = ToLua.ToObject(L, 1);
  1251. UIBase obj = (UIBase)o;
  1252. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1253. obj.NeedParentKeep = arg0;
  1254. return 0;
  1255. }
  1256. catch(Exception e)
  1257. {
  1258. return LuaDLL.toluaL_exception(L, e, o, "attempt to index NeedParentKeep on a nil value");
  1259. }
  1260. }
  1261. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1262. static int set_IsBattleMainPage(IntPtr L)
  1263. {
  1264. object o = null;
  1265. try
  1266. {
  1267. o = ToLua.ToObject(L, 1);
  1268. UIBase obj = (UIBase)o;
  1269. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1270. obj.IsBattleMainPage = arg0;
  1271. return 0;
  1272. }
  1273. catch(Exception e)
  1274. {
  1275. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsBattleMainPage on a nil value");
  1276. }
  1277. }
  1278. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1279. static int set_PageId(IntPtr L)
  1280. {
  1281. object o = null;
  1282. try
  1283. {
  1284. o = ToLua.ToObject(L, 1);
  1285. UIBase obj = (UIBase)o;
  1286. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  1287. obj.PageId = arg0;
  1288. return 0;
  1289. }
  1290. catch(Exception e)
  1291. {
  1292. return LuaDLL.toluaL_exception(L, e, o, "attempt to index PageId on a nil value");
  1293. }
  1294. }
  1295. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1296. static int set_MPageName(IntPtr L)
  1297. {
  1298. object o = null;
  1299. try
  1300. {
  1301. o = ToLua.ToObject(L, 1);
  1302. UIBase obj = (UIBase)o;
  1303. string arg0 = ToLua.CheckString(L, 2);
  1304. obj.MPageName = arg0;
  1305. return 0;
  1306. }
  1307. catch(Exception e)
  1308. {
  1309. return LuaDLL.toluaL_exception(L, e, o, "attempt to index MPageName on a nil value");
  1310. }
  1311. }
  1312. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1313. static int set_MSourceUIID(IntPtr L)
  1314. {
  1315. object o = null;
  1316. try
  1317. {
  1318. o = ToLua.ToObject(L, 1);
  1319. UIBase obj = (UIBase)o;
  1320. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  1321. obj.MSourceUIID = arg0;
  1322. return 0;
  1323. }
  1324. catch(Exception e)
  1325. {
  1326. return LuaDLL.toluaL_exception(L, e, o, "attempt to index MSourceUIID on a nil value");
  1327. }
  1328. }
  1329. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1330. static int set_ShowTopBtn(IntPtr L)
  1331. {
  1332. object o = null;
  1333. try
  1334. {
  1335. o = ToLua.ToObject(L, 1);
  1336. UIBase obj = (UIBase)o;
  1337. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1338. obj.ShowTopBtn = arg0;
  1339. return 0;
  1340. }
  1341. catch(Exception e)
  1342. {
  1343. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ShowTopBtn on a nil value");
  1344. }
  1345. }
  1346. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1347. static int set_MOutList(IntPtr L)
  1348. {
  1349. object o = null;
  1350. try
  1351. {
  1352. o = ToLua.ToObject(L, 1);
  1353. UIBase obj = (UIBase)o;
  1354. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1355. obj.MOutList = arg0;
  1356. return 0;
  1357. }
  1358. catch(Exception e)
  1359. {
  1360. return LuaDLL.toluaL_exception(L, e, o, "attempt to index MOutList on a nil value");
  1361. }
  1362. }
  1363. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1364. static int set_NeedCache(IntPtr L)
  1365. {
  1366. object o = null;
  1367. try
  1368. {
  1369. o = ToLua.ToObject(L, 1);
  1370. UIBase obj = (UIBase)o;
  1371. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1372. obj.NeedCache = arg0;
  1373. return 0;
  1374. }
  1375. catch(Exception e)
  1376. {
  1377. return LuaDLL.toluaL_exception(L, e, o, "attempt to index NeedCache on a nil value");
  1378. }
  1379. }
  1380. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1381. static int set_CanPlaySound(IntPtr L)
  1382. {
  1383. object o = null;
  1384. try
  1385. {
  1386. o = ToLua.ToObject(L, 1);
  1387. UIBase obj = (UIBase)o;
  1388. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1389. obj.CanPlaySound = arg0;
  1390. return 0;
  1391. }
  1392. catch(Exception e)
  1393. {
  1394. return LuaDLL.toluaL_exception(L, e, o, "attempt to index CanPlaySound on a nil value");
  1395. }
  1396. }
  1397. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1398. static int set_MUIType(IntPtr L)
  1399. {
  1400. object o = null;
  1401. try
  1402. {
  1403. o = ToLua.ToObject(L, 1);
  1404. UIBase obj = (UIBase)o;
  1405. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  1406. obj.MUIType = arg0;
  1407. return 0;
  1408. }
  1409. catch(Exception e)
  1410. {
  1411. return LuaDLL.toluaL_exception(L, e, o, "attempt to index MUIType on a nil value");
  1412. }
  1413. }
  1414. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1415. static int set_MPersistentStatus(IntPtr L)
  1416. {
  1417. object o = null;
  1418. try
  1419. {
  1420. o = ToLua.ToObject(L, 1);
  1421. UIBase obj = (UIBase)o;
  1422. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1423. obj.MPersistentStatus = arg0;
  1424. return 0;
  1425. }
  1426. catch(Exception e)
  1427. {
  1428. return LuaDLL.toluaL_exception(L, e, o, "attempt to index MPersistentStatus on a nil value");
  1429. }
  1430. }
  1431. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1432. static int set_PageType(IntPtr L)
  1433. {
  1434. object o = null;
  1435. try
  1436. {
  1437. o = ToLua.ToObject(L, 1);
  1438. UIBase obj = (UIBase)o;
  1439. EUIPageType arg0 = (EUIPageType)ToLua.CheckObject(L, 2, typeof(EUIPageType));
  1440. obj.PageType = arg0;
  1441. return 0;
  1442. }
  1443. catch(Exception e)
  1444. {
  1445. return LuaDLL.toluaL_exception(L, e, o, "attempt to index PageType on a nil value");
  1446. }
  1447. }
  1448. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1449. static int set_SortingOrder(IntPtr L)
  1450. {
  1451. object o = null;
  1452. try
  1453. {
  1454. o = ToLua.ToObject(L, 1);
  1455. UIBase obj = (UIBase)o;
  1456. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  1457. obj.SortingOrder = arg0;
  1458. return 0;
  1459. }
  1460. catch(Exception e)
  1461. {
  1462. return LuaDLL.toluaL_exception(L, e, o, "attempt to index SortingOrder on a nil value");
  1463. }
  1464. }
  1465. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1466. static int set_StrAssetBundle(IntPtr L)
  1467. {
  1468. object o = null;
  1469. try
  1470. {
  1471. o = ToLua.ToObject(L, 1);
  1472. UIBase obj = (UIBase)o;
  1473. string arg0 = ToLua.CheckString(L, 2);
  1474. obj.StrAssetBundle = arg0;
  1475. return 0;
  1476. }
  1477. catch(Exception e)
  1478. {
  1479. return LuaDLL.toluaL_exception(L, e, o, "attempt to index StrAssetBundle on a nil value");
  1480. }
  1481. }
  1482. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1483. static int set_ChildPaths(IntPtr L)
  1484. {
  1485. object o = null;
  1486. try
  1487. {
  1488. o = ToLua.ToObject(L, 1);
  1489. UIBase obj = (UIBase)o;
  1490. string arg0 = ToLua.CheckString(L, 2);
  1491. obj.ChildPaths = arg0;
  1492. return 0;
  1493. }
  1494. catch(Exception e)
  1495. {
  1496. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ChildPaths on a nil value");
  1497. }
  1498. }
  1499. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1500. static int set_IsEnabled(IntPtr L)
  1501. {
  1502. object o = null;
  1503. try
  1504. {
  1505. o = ToLua.ToObject(L, 1);
  1506. UIBase obj = (UIBase)o;
  1507. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1508. obj.IsEnabled = arg0;
  1509. return 0;
  1510. }
  1511. catch(Exception e)
  1512. {
  1513. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsEnabled on a nil value");
  1514. }
  1515. }
  1516. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1517. static int set_PageAnimInType(IntPtr L)
  1518. {
  1519. object o = null;
  1520. try
  1521. {
  1522. o = ToLua.ToObject(L, 1);
  1523. UIBase obj = (UIBase)o;
  1524. UI_ANIM arg0 = (UI_ANIM)ToLua.CheckObject(L, 2, typeof(UI_ANIM));
  1525. obj.PageAnimInType = arg0;
  1526. return 0;
  1527. }
  1528. catch(Exception e)
  1529. {
  1530. return LuaDLL.toluaL_exception(L, e, o, "attempt to index PageAnimInType on a nil value");
  1531. }
  1532. }
  1533. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1534. static int set_PageAnimOutType(IntPtr L)
  1535. {
  1536. object o = null;
  1537. try
  1538. {
  1539. o = ToLua.ToObject(L, 1);
  1540. UIBase obj = (UIBase)o;
  1541. UI_ANIM arg0 = (UI_ANIM)ToLua.CheckObject(L, 2, typeof(UI_ANIM));
  1542. obj.PageAnimOutType = arg0;
  1543. return 0;
  1544. }
  1545. catch(Exception e)
  1546. {
  1547. return LuaDLL.toluaL_exception(L, e, o, "attempt to index PageAnimOutType on a nil value");
  1548. }
  1549. }
  1550. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1551. static int set_CanvasEnabled(IntPtr L)
  1552. {
  1553. object o = null;
  1554. try
  1555. {
  1556. o = ToLua.ToObject(L, 1);
  1557. UIBase obj = (UIBase)o;
  1558. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1559. obj.CanvasEnabled = arg0;
  1560. return 0;
  1561. }
  1562. catch(Exception e)
  1563. {
  1564. return LuaDLL.toluaL_exception(L, e, o, "attempt to index CanvasEnabled on a nil value");
  1565. }
  1566. }
  1567. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1568. static int UIBase_ButtonListener(IntPtr L)
  1569. {
  1570. try
  1571. {
  1572. int count = LuaDLL.lua_gettop(L);
  1573. LuaFunction func = ToLua.CheckLuaFunction(L, 1);
  1574. if (count == 1)
  1575. {
  1576. Delegate arg1 = DelegateTraits<UIBase.ButtonListener>.Create(func);
  1577. ToLua.Push(L, arg1);
  1578. }
  1579. else
  1580. {
  1581. LuaTable self = ToLua.CheckLuaTable(L, 2);
  1582. Delegate arg1 = DelegateTraits<UIBase.ButtonListener>.Create(func, self);
  1583. ToLua.Push(L, arg1);
  1584. }
  1585. return 1;
  1586. }
  1587. catch(Exception e)
  1588. {
  1589. return LuaDLL.toluaL_exception(L, e);
  1590. }
  1591. }
  1592. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1593. static int UIBase_ButtonListenerWithParam(IntPtr L)
  1594. {
  1595. try
  1596. {
  1597. int count = LuaDLL.lua_gettop(L);
  1598. LuaFunction func = ToLua.CheckLuaFunction(L, 1);
  1599. if (count == 1)
  1600. {
  1601. Delegate arg1 = DelegateTraits<UIBase.ButtonListenerWithParam>.Create(func);
  1602. ToLua.Push(L, arg1);
  1603. }
  1604. else
  1605. {
  1606. LuaTable self = ToLua.CheckLuaTable(L, 2);
  1607. Delegate arg1 = DelegateTraits<UIBase.ButtonListenerWithParam>.Create(func, self);
  1608. ToLua.Push(L, arg1);
  1609. }
  1610. return 1;
  1611. }
  1612. catch(Exception e)
  1613. {
  1614. return LuaDLL.toluaL_exception(L, e);
  1615. }
  1616. }
  1617. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1618. static int UIBase_ToggleListener(IntPtr L)
  1619. {
  1620. try
  1621. {
  1622. int count = LuaDLL.lua_gettop(L);
  1623. LuaFunction func = ToLua.CheckLuaFunction(L, 1);
  1624. if (count == 1)
  1625. {
  1626. Delegate arg1 = DelegateTraits<UIBase.ToggleListener>.Create(func);
  1627. ToLua.Push(L, arg1);
  1628. }
  1629. else
  1630. {
  1631. LuaTable self = ToLua.CheckLuaTable(L, 2);
  1632. Delegate arg1 = DelegateTraits<UIBase.ToggleListener>.Create(func, self);
  1633. ToLua.Push(L, arg1);
  1634. }
  1635. return 1;
  1636. }
  1637. catch(Exception e)
  1638. {
  1639. return LuaDLL.toluaL_exception(L, e);
  1640. }
  1641. }
  1642. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1643. static int UIBase_ToggleListenerWithParams(IntPtr L)
  1644. {
  1645. try
  1646. {
  1647. int count = LuaDLL.lua_gettop(L);
  1648. LuaFunction func = ToLua.CheckLuaFunction(L, 1);
  1649. if (count == 1)
  1650. {
  1651. Delegate arg1 = DelegateTraits<UIBase.ToggleListenerWithParams>.Create(func);
  1652. ToLua.Push(L, arg1);
  1653. }
  1654. else
  1655. {
  1656. LuaTable self = ToLua.CheckLuaTable(L, 2);
  1657. Delegate arg1 = DelegateTraits<UIBase.ToggleListenerWithParams>.Create(func, self);
  1658. ToLua.Push(L, arg1);
  1659. }
  1660. return 1;
  1661. }
  1662. catch(Exception e)
  1663. {
  1664. return LuaDLL.toluaL_exception(L, e);
  1665. }
  1666. }
  1667. }