UIMgrWrap.cs 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UIMgrWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UIMgr), typeof(SingletonMono<UIMgr>));
  9. L.RegFunction("InitMgr", InitMgr);
  10. L.RegFunction("SetClickLuaFun", SetClickLuaFun);
  11. L.RegFunction("ShowSplash", ShowSplash);
  12. L.RegFunction("RegisterPage", RegisterPage);
  13. L.RegFunction("GetCurUIStack", GetCurUIStack);
  14. L.RegFunction("Open", Open);
  15. L.RegFunction("HasExistPageByUIType", HasExistPageByUIType);
  16. L.RegFunction("LuaOpenUI", LuaOpenUI);
  17. L.RegFunction("ShowUIChangeTotalSortList", ShowUIChangeTotalSortList);
  18. L.RegFunction("CloseUIChangeTotalSortList", CloseUIChangeTotalSortList);
  19. L.RegFunction("Close", Close);
  20. L.RegFunction("Show", Show);
  21. L.RegFunction("Hide", Hide);
  22. L.RegFunction("CanOpen", CanOpen);
  23. L.RegFunction("PageInHideStack", PageInHideStack);
  24. L.RegFunction("GetPageFromRemoveList", GetPageFromRemoveList);
  25. L.RegFunction("GetNextPageOrderingSort", GetNextPageOrderingSort);
  26. L.RegFunction("GetAnimatorController", GetAnimatorController);
  27. L.RegFunction("GetPage", GetPage);
  28. L.RegFunction("HasBattleMainPage", HasBattleMainPage);
  29. L.RegFunction("GetCurrentBattlePageId", GetCurrentBattlePageId);
  30. L.RegFunction("ClosePageByMUIType", ClosePageByMUIType);
  31. L.RegFunction("CloseAllPage", CloseAllPage);
  32. L.RegFunction("CloseAllPagesExceptIdAndPersistentWnd", CloseAllPagesExceptIdAndPersistentWnd);
  33. L.RegFunction("CloseAllPagesExceptId", CloseAllPagesExceptId);
  34. L.RegFunction("HasOpenPage", HasOpenPage);
  35. L.RegFunction("ForceRebuildLayout", ForceRebuildLayout);
  36. L.RegFunction("ForceRebuildLayoutImmediate", ForceRebuildLayoutImmediate);
  37. L.RegFunction("OpenInputMask", OpenInputMask);
  38. L.RegFunction("CloseInputMask", CloseInputMask);
  39. L.RegFunction("ShowClickEffect", ShowClickEffect);
  40. L.RegFunction("RestoreBattleUIVisible", RestoreBattleUIVisible);
  41. L.RegFunction("ScreenPointToLocalPointInRectangle", ScreenPointToLocalPointInRectangle);
  42. L.RegFunction("__eq", op_Equality);
  43. L.RegFunction("__tostring", ToLua.op_ToString);
  44. L.RegVar("mUIStackCountLimit", get_mUIStackCountLimit, null);
  45. L.RegVar("SCREEN_WIDTH", get_SCREEN_WIDTH, set_SCREEN_WIDTH);
  46. L.RegVar("SCREEN_HEIGHT", get_SCREEN_HEIGHT, set_SCREEN_HEIGHT);
  47. L.RegVar("UIRootTrans", get_UIRootTrans, null);
  48. L.RegVar("UIBattleRootTrans", get_UIBattleRootTrans, null);
  49. L.RegVar("MainFunPage", get_MainFunPage, null);
  50. L.RegVar("ClickMousePos", get_ClickMousePos, null);
  51. L.RegVar("CurrentPage", get_CurrentPage, null);
  52. L.RegVar("PageCnt", get_PageCnt, null);
  53. L.RegVar("PageOrderingSort", get_PageOrderingSort, null);
  54. L.RegVar("IsUIOpening", get_IsUIOpening, null);
  55. L.EndClass();
  56. }
  57. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  58. static int InitMgr(IntPtr L)
  59. {
  60. try
  61. {
  62. ToLua.CheckArgsCount(L, 1);
  63. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  64. obj.InitMgr();
  65. return 0;
  66. }
  67. catch (Exception e)
  68. {
  69. return LuaDLL.toluaL_exception(L, e);
  70. }
  71. }
  72. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  73. static int SetClickLuaFun(IntPtr L)
  74. {
  75. try
  76. {
  77. ToLua.CheckArgsCount(L, 2);
  78. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  79. LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2);
  80. obj.SetClickLuaFun(arg0);
  81. return 0;
  82. }
  83. catch (Exception e)
  84. {
  85. return LuaDLL.toluaL_exception(L, e);
  86. }
  87. }
  88. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  89. static int ShowSplash(IntPtr L)
  90. {
  91. try
  92. {
  93. ToLua.CheckArgsCount(L, 1);
  94. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  95. obj.ShowSplash();
  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 RegisterPage(IntPtr L)
  105. {
  106. try
  107. {
  108. ToLua.CheckArgsCount(L, 3);
  109. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  110. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  111. UIBase.UIPageCreator arg1 = (UIBase.UIPageCreator)ToLua.CheckDelegate<UIBase.UIPageCreator>(L, 3);
  112. obj.RegisterPage(arg0, arg1);
  113. return 0;
  114. }
  115. catch (Exception e)
  116. {
  117. return LuaDLL.toluaL_exception(L, e);
  118. }
  119. }
  120. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  121. static int GetCurUIStack(IntPtr L)
  122. {
  123. try
  124. {
  125. ToLua.CheckArgsCount(L, 1);
  126. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  127. LuaUIBase[] o = obj.GetCurUIStack();
  128. ToLua.Push(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 Open(IntPtr L)
  138. {
  139. try
  140. {
  141. int count = LuaDLL.lua_gettop(L);
  142. if (count == 2)
  143. {
  144. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  145. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  146. obj.Open(arg0);
  147. return 0;
  148. }
  149. else if (count == 3)
  150. {
  151. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  152. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  153. object arg1 = ToLua.ToVarObject(L, 3);
  154. obj.Open(arg0, arg1);
  155. return 0;
  156. }
  157. else
  158. {
  159. return LuaDLL.luaL_throw(L, "invalid arguments to method: UIMgr.Open");
  160. }
  161. }
  162. catch (Exception e)
  163. {
  164. return LuaDLL.toluaL_exception(L, e);
  165. }
  166. }
  167. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  168. static int HasExistPageByUIType(IntPtr L)
  169. {
  170. try
  171. {
  172. ToLua.CheckArgsCount(L, 2);
  173. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  174. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  175. bool o = obj.HasExistPageByUIType(arg0);
  176. LuaDLL.lua_pushboolean(L, o);
  177. return 1;
  178. }
  179. catch (Exception e)
  180. {
  181. return LuaDLL.toluaL_exception(L, e);
  182. }
  183. }
  184. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  185. static int LuaOpenUI(IntPtr L)
  186. {
  187. try
  188. {
  189. int count = LuaDLL.lua_gettop(L);
  190. if (count == 6)
  191. {
  192. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  193. LuaTable arg0 = ToLua.CheckLuaTable(L, 2);
  194. LuaTable arg1 = ToLua.CheckLuaTable(L, 3);
  195. int arg2 = (int)LuaDLL.luaL_checknumber(L, 4);
  196. object arg3 = ToLua.ToVarObject(L, 5);
  197. int arg4 = (int)LuaDLL.luaL_checknumber(L, 6);
  198. obj.LuaOpenUI(arg0, arg1, arg2, arg3, arg4);
  199. return 0;
  200. }
  201. else if (count == 7)
  202. {
  203. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  204. LuaTable arg0 = ToLua.CheckLuaTable(L, 2);
  205. LuaTable arg1 = ToLua.CheckLuaTable(L, 3);
  206. int arg2 = (int)LuaDLL.luaL_checknumber(L, 4);
  207. object arg3 = ToLua.ToVarObject(L, 5);
  208. int arg4 = (int)LuaDLL.luaL_checknumber(L, 6);
  209. bool arg5 = LuaDLL.luaL_checkboolean(L, 7);
  210. obj.LuaOpenUI(arg0, arg1, arg2, arg3, arg4, arg5);
  211. return 0;
  212. }
  213. else
  214. {
  215. return LuaDLL.luaL_throw(L, "invalid arguments to method: UIMgr.LuaOpenUI");
  216. }
  217. }
  218. catch (Exception e)
  219. {
  220. return LuaDLL.toluaL_exception(L, e);
  221. }
  222. }
  223. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  224. static int ShowUIChangeTotalSortList(IntPtr L)
  225. {
  226. try
  227. {
  228. ToLua.CheckArgsCount(L, 3);
  229. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  230. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  231. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  232. obj.ShowUIChangeTotalSortList(arg0, arg1);
  233. return 0;
  234. }
  235. catch (Exception e)
  236. {
  237. return LuaDLL.toluaL_exception(L, e);
  238. }
  239. }
  240. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  241. static int CloseUIChangeTotalSortList(IntPtr L)
  242. {
  243. try
  244. {
  245. ToLua.CheckArgsCount(L, 2);
  246. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  247. UIBase arg0 = (UIBase)ToLua.CheckObject<UIBase>(L, 2);
  248. obj.CloseUIChangeTotalSortList(arg0);
  249. return 0;
  250. }
  251. catch (Exception e)
  252. {
  253. return LuaDLL.toluaL_exception(L, e);
  254. }
  255. }
  256. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  257. static int Close(IntPtr L)
  258. {
  259. try
  260. {
  261. int count = LuaDLL.lua_gettop(L);
  262. if (count == 2)
  263. {
  264. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  265. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  266. obj.Close(arg0);
  267. return 0;
  268. }
  269. else if (count == 3)
  270. {
  271. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  272. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  273. bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
  274. obj.Close(arg0, arg1);
  275. return 0;
  276. }
  277. else if (count == 4)
  278. {
  279. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  280. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  281. bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
  282. bool arg2 = LuaDLL.luaL_checkboolean(L, 4);
  283. obj.Close(arg0, arg1, arg2);
  284. return 0;
  285. }
  286. else
  287. {
  288. return LuaDLL.luaL_throw(L, "invalid arguments to method: UIMgr.Close");
  289. }
  290. }
  291. catch (Exception e)
  292. {
  293. return LuaDLL.toluaL_exception(L, e);
  294. }
  295. }
  296. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  297. static int Show(IntPtr L)
  298. {
  299. try
  300. {
  301. int count = LuaDLL.lua_gettop(L);
  302. if (count == 2)
  303. {
  304. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  305. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  306. obj.Show(arg0);
  307. return 0;
  308. }
  309. else if (count == 3)
  310. {
  311. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  312. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  313. object arg1 = ToLua.ToVarObject(L, 3);
  314. obj.Show(arg0, arg1);
  315. return 0;
  316. }
  317. else if (count == 4)
  318. {
  319. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  320. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  321. object arg1 = ToLua.ToVarObject(L, 3);
  322. bool arg2 = LuaDLL.luaL_checkboolean(L, 4);
  323. obj.Show(arg0, arg1, arg2);
  324. return 0;
  325. }
  326. else
  327. {
  328. return LuaDLL.luaL_throw(L, "invalid arguments to method: UIMgr.Show");
  329. }
  330. }
  331. catch (Exception e)
  332. {
  333. return LuaDLL.toluaL_exception(L, e);
  334. }
  335. }
  336. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  337. static int Hide(IntPtr L)
  338. {
  339. try
  340. {
  341. int count = LuaDLL.lua_gettop(L);
  342. if (count == 2)
  343. {
  344. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  345. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  346. obj.Hide(arg0);
  347. return 0;
  348. }
  349. else if (count == 3)
  350. {
  351. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  352. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  353. bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
  354. obj.Hide(arg0, arg1);
  355. return 0;
  356. }
  357. else
  358. {
  359. return LuaDLL.luaL_throw(L, "invalid arguments to method: UIMgr.Hide");
  360. }
  361. }
  362. catch (Exception e)
  363. {
  364. return LuaDLL.toluaL_exception(L, e);
  365. }
  366. }
  367. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  368. static int CanOpen(IntPtr L)
  369. {
  370. try
  371. {
  372. ToLua.CheckArgsCount(L, 1);
  373. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  374. bool o = obj.CanOpen();
  375. LuaDLL.lua_pushboolean(L, o);
  376. return 1;
  377. }
  378. catch (Exception e)
  379. {
  380. return LuaDLL.toluaL_exception(L, e);
  381. }
  382. }
  383. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  384. static int PageInHideStack(IntPtr L)
  385. {
  386. try
  387. {
  388. ToLua.CheckArgsCount(L, 2);
  389. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  390. UIBase arg0 = (UIBase)ToLua.CheckObject<UIBase>(L, 2);
  391. bool o = obj.PageInHideStack(arg0);
  392. LuaDLL.lua_pushboolean(L, o);
  393. return 1;
  394. }
  395. catch (Exception e)
  396. {
  397. return LuaDLL.toluaL_exception(L, e);
  398. }
  399. }
  400. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  401. static int GetPageFromRemoveList(IntPtr L)
  402. {
  403. try
  404. {
  405. ToLua.CheckArgsCount(L, 2);
  406. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  407. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  408. UIBase o = obj.GetPageFromRemoveList(arg0);
  409. ToLua.Push(L, o);
  410. return 1;
  411. }
  412. catch (Exception e)
  413. {
  414. return LuaDLL.toluaL_exception(L, e);
  415. }
  416. }
  417. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  418. static int GetNextPageOrderingSort(IntPtr L)
  419. {
  420. try
  421. {
  422. ToLua.CheckArgsCount(L, 3);
  423. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  424. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  425. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  426. int o = obj.GetNextPageOrderingSort(arg0, arg1);
  427. LuaDLL.lua_pushinteger(L, o);
  428. return 1;
  429. }
  430. catch (Exception e)
  431. {
  432. return LuaDLL.toluaL_exception(L, e);
  433. }
  434. }
  435. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  436. static int GetAnimatorController(IntPtr L)
  437. {
  438. try
  439. {
  440. ToLua.CheckArgsCount(L, 2);
  441. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  442. UI_ANIM arg0 = (UI_ANIM)ToLua.CheckObject(L, 2, typeof(UI_ANIM));
  443. UnityEngine.RuntimeAnimatorController o = obj.GetAnimatorController(arg0);
  444. ToLua.Push(L, o);
  445. return 1;
  446. }
  447. catch (Exception e)
  448. {
  449. return LuaDLL.toluaL_exception(L, e);
  450. }
  451. }
  452. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  453. static int GetPage(IntPtr L)
  454. {
  455. try
  456. {
  457. ToLua.CheckArgsCount(L, 2);
  458. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  459. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  460. UIBase o = obj.GetPage(arg0);
  461. ToLua.Push(L, o);
  462. return 1;
  463. }
  464. catch (Exception e)
  465. {
  466. return LuaDLL.toluaL_exception(L, e);
  467. }
  468. }
  469. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  470. static int HasBattleMainPage(IntPtr L)
  471. {
  472. try
  473. {
  474. ToLua.CheckArgsCount(L, 1);
  475. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  476. bool o = obj.HasBattleMainPage();
  477. LuaDLL.lua_pushboolean(L, o);
  478. return 1;
  479. }
  480. catch (Exception e)
  481. {
  482. return LuaDLL.toluaL_exception(L, e);
  483. }
  484. }
  485. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  486. static int GetCurrentBattlePageId(IntPtr L)
  487. {
  488. try
  489. {
  490. ToLua.CheckArgsCount(L, 1);
  491. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  492. int o = obj.GetCurrentBattlePageId();
  493. LuaDLL.lua_pushinteger(L, o);
  494. return 1;
  495. }
  496. catch (Exception e)
  497. {
  498. return LuaDLL.toluaL_exception(L, e);
  499. }
  500. }
  501. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  502. static int ClosePageByMUIType(IntPtr L)
  503. {
  504. try
  505. {
  506. ToLua.CheckArgsCount(L, 2);
  507. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  508. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  509. obj.ClosePageByMUIType(arg0);
  510. return 0;
  511. }
  512. catch (Exception e)
  513. {
  514. return LuaDLL.toluaL_exception(L, e);
  515. }
  516. }
  517. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  518. static int CloseAllPage(IntPtr L)
  519. {
  520. try
  521. {
  522. ToLua.CheckArgsCount(L, 1);
  523. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  524. obj.CloseAllPage();
  525. return 0;
  526. }
  527. catch (Exception e)
  528. {
  529. return LuaDLL.toluaL_exception(L, e);
  530. }
  531. }
  532. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  533. static int CloseAllPagesExceptIdAndPersistentWnd(IntPtr L)
  534. {
  535. try
  536. {
  537. ToLua.CheckArgsCount(L, 2);
  538. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  539. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  540. obj.CloseAllPagesExceptIdAndPersistentWnd(arg0);
  541. return 0;
  542. }
  543. catch (Exception e)
  544. {
  545. return LuaDLL.toluaL_exception(L, e);
  546. }
  547. }
  548. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  549. static int CloseAllPagesExceptId(IntPtr L)
  550. {
  551. try
  552. {
  553. ToLua.CheckArgsCount(L, 2);
  554. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  555. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  556. obj.CloseAllPagesExceptId(arg0);
  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 HasOpenPage(IntPtr L)
  566. {
  567. try
  568. {
  569. ToLua.CheckArgsCount(L, 2);
  570. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  571. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  572. bool o = obj.HasOpenPage(arg0);
  573. LuaDLL.lua_pushboolean(L, o);
  574. return 1;
  575. }
  576. catch (Exception e)
  577. {
  578. return LuaDLL.toluaL_exception(L, e);
  579. }
  580. }
  581. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  582. static int ForceRebuildLayout(IntPtr L)
  583. {
  584. try
  585. {
  586. ToLua.CheckArgsCount(L, 3);
  587. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  588. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  589. UnityEngine.RectTransform arg1 = (UnityEngine.RectTransform)ToLua.CheckObject(L, 3, typeof(UnityEngine.RectTransform));
  590. obj.ForceRebuildLayout(arg0, arg1);
  591. return 0;
  592. }
  593. catch (Exception e)
  594. {
  595. return LuaDLL.toluaL_exception(L, e);
  596. }
  597. }
  598. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  599. static int ForceRebuildLayoutImmediate(IntPtr L)
  600. {
  601. try
  602. {
  603. ToLua.CheckArgsCount(L, 2);
  604. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  605. UnityEngine.RectTransform arg0 = (UnityEngine.RectTransform)ToLua.CheckObject(L, 2, typeof(UnityEngine.RectTransform));
  606. obj.ForceRebuildLayoutImmediate(arg0);
  607. return 0;
  608. }
  609. catch (Exception e)
  610. {
  611. return LuaDLL.toluaL_exception(L, e);
  612. }
  613. }
  614. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  615. static int OpenInputMask(IntPtr L)
  616. {
  617. try
  618. {
  619. ToLua.CheckArgsCount(L, 2);
  620. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  621. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  622. obj.OpenInputMask(arg0);
  623. return 0;
  624. }
  625. catch (Exception e)
  626. {
  627. return LuaDLL.toluaL_exception(L, e);
  628. }
  629. }
  630. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  631. static int CloseInputMask(IntPtr L)
  632. {
  633. try
  634. {
  635. ToLua.CheckArgsCount(L, 1);
  636. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  637. obj.CloseInputMask();
  638. return 0;
  639. }
  640. catch (Exception e)
  641. {
  642. return LuaDLL.toluaL_exception(L, e);
  643. }
  644. }
  645. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  646. static int ShowClickEffect(IntPtr L)
  647. {
  648. try
  649. {
  650. ToLua.CheckArgsCount(L, 2);
  651. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  652. UnityEngine.Vector2 arg0 = ToLua.ToVector2(L, 2);
  653. obj.ShowClickEffect(arg0);
  654. return 0;
  655. }
  656. catch (Exception e)
  657. {
  658. return LuaDLL.toluaL_exception(L, e);
  659. }
  660. }
  661. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  662. static int RestoreBattleUIVisible(IntPtr L)
  663. {
  664. try
  665. {
  666. ToLua.CheckArgsCount(L, 1);
  667. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  668. obj.RestoreBattleUIVisible();
  669. return 0;
  670. }
  671. catch (Exception e)
  672. {
  673. return LuaDLL.toluaL_exception(L, e);
  674. }
  675. }
  676. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  677. static int ScreenPointToLocalPointInRectangle(IntPtr L)
  678. {
  679. try
  680. {
  681. ToLua.CheckArgsCount(L, 3);
  682. UIMgr obj = (UIMgr)ToLua.CheckObject<UIMgr>(L, 1);
  683. UnityEngine.RectTransform arg0 = (UnityEngine.RectTransform)ToLua.CheckObject(L, 2, typeof(UnityEngine.RectTransform));
  684. UnityEngine.Vector2 arg1 = ToLua.ToVector2(L, 3);
  685. UnityEngine.Vector2 o = obj.ScreenPointToLocalPointInRectangle(arg0, arg1);
  686. ToLua.Push(L, o);
  687. return 1;
  688. }
  689. catch (Exception e)
  690. {
  691. return LuaDLL.toluaL_exception(L, e);
  692. }
  693. }
  694. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  695. static int op_Equality(IntPtr L)
  696. {
  697. try
  698. {
  699. ToLua.CheckArgsCount(L, 2);
  700. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  701. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  702. bool o = arg0 == arg1;
  703. LuaDLL.lua_pushboolean(L, o);
  704. return 1;
  705. }
  706. catch (Exception e)
  707. {
  708. return LuaDLL.toluaL_exception(L, e);
  709. }
  710. }
  711. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  712. static int get_mUIStackCountLimit(IntPtr L)
  713. {
  714. object o = null;
  715. try
  716. {
  717. o = ToLua.ToObject(L, 1);
  718. UIMgr obj = (UIMgr)o;
  719. int ret = obj.mUIStackCountLimit;
  720. LuaDLL.lua_pushinteger(L, ret);
  721. return 1;
  722. }
  723. catch(Exception e)
  724. {
  725. return LuaDLL.toluaL_exception(L, e, o, "attempt to index mUIStackCountLimit on a nil value");
  726. }
  727. }
  728. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  729. static int get_SCREEN_WIDTH(IntPtr L)
  730. {
  731. try
  732. {
  733. LuaDLL.lua_pushinteger(L, UIMgr.SCREEN_WIDTH);
  734. return 1;
  735. }
  736. catch (Exception e)
  737. {
  738. return LuaDLL.toluaL_exception(L, e);
  739. }
  740. }
  741. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  742. static int get_SCREEN_HEIGHT(IntPtr L)
  743. {
  744. try
  745. {
  746. LuaDLL.lua_pushinteger(L, UIMgr.SCREEN_HEIGHT);
  747. return 1;
  748. }
  749. catch (Exception e)
  750. {
  751. return LuaDLL.toluaL_exception(L, e);
  752. }
  753. }
  754. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  755. static int get_UIRootTrans(IntPtr L)
  756. {
  757. object o = null;
  758. try
  759. {
  760. o = ToLua.ToObject(L, 1);
  761. UIMgr obj = (UIMgr)o;
  762. UnityEngine.Transform ret = obj.UIRootTrans;
  763. ToLua.Push(L, ret);
  764. return 1;
  765. }
  766. catch(Exception e)
  767. {
  768. return LuaDLL.toluaL_exception(L, e, o, "attempt to index UIRootTrans on a nil value");
  769. }
  770. }
  771. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  772. static int get_UIBattleRootTrans(IntPtr L)
  773. {
  774. object o = null;
  775. try
  776. {
  777. o = ToLua.ToObject(L, 1);
  778. UIMgr obj = (UIMgr)o;
  779. UnityEngine.Transform ret = obj.UIBattleRootTrans;
  780. ToLua.Push(L, ret);
  781. return 1;
  782. }
  783. catch(Exception e)
  784. {
  785. return LuaDLL.toluaL_exception(L, e, o, "attempt to index UIBattleRootTrans on a nil value");
  786. }
  787. }
  788. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  789. static int get_MainFunPage(IntPtr L)
  790. {
  791. object o = null;
  792. try
  793. {
  794. o = ToLua.ToObject(L, 1);
  795. UIMgr obj = (UIMgr)o;
  796. UnityEngine.Transform ret = obj.MainFunPage;
  797. ToLua.Push(L, ret);
  798. return 1;
  799. }
  800. catch(Exception e)
  801. {
  802. return LuaDLL.toluaL_exception(L, e, o, "attempt to index MainFunPage on a nil value");
  803. }
  804. }
  805. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  806. static int get_ClickMousePos(IntPtr L)
  807. {
  808. object o = null;
  809. try
  810. {
  811. o = ToLua.ToObject(L, 1);
  812. UIMgr obj = (UIMgr)o;
  813. UnityEngine.Vector3 ret = obj.ClickMousePos;
  814. ToLua.Push(L, ret);
  815. return 1;
  816. }
  817. catch(Exception e)
  818. {
  819. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ClickMousePos on a nil value");
  820. }
  821. }
  822. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  823. static int get_CurrentPage(IntPtr L)
  824. {
  825. object o = null;
  826. try
  827. {
  828. o = ToLua.ToObject(L, 1);
  829. UIMgr obj = (UIMgr)o;
  830. UIBase ret = obj.CurrentPage;
  831. ToLua.Push(L, ret);
  832. return 1;
  833. }
  834. catch(Exception e)
  835. {
  836. return LuaDLL.toluaL_exception(L, e, o, "attempt to index CurrentPage on a nil value");
  837. }
  838. }
  839. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  840. static int get_PageCnt(IntPtr L)
  841. {
  842. object o = null;
  843. try
  844. {
  845. o = ToLua.ToObject(L, 1);
  846. UIMgr obj = (UIMgr)o;
  847. int ret = obj.PageCnt;
  848. LuaDLL.lua_pushinteger(L, ret);
  849. return 1;
  850. }
  851. catch(Exception e)
  852. {
  853. return LuaDLL.toluaL_exception(L, e, o, "attempt to index PageCnt on a nil value");
  854. }
  855. }
  856. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  857. static int get_PageOrderingSort(IntPtr L)
  858. {
  859. object o = null;
  860. try
  861. {
  862. o = ToLua.ToObject(L, 1);
  863. UIMgr obj = (UIMgr)o;
  864. int ret = obj.PageOrderingSort;
  865. LuaDLL.lua_pushinteger(L, ret);
  866. return 1;
  867. }
  868. catch(Exception e)
  869. {
  870. return LuaDLL.toluaL_exception(L, e, o, "attempt to index PageOrderingSort on a nil value");
  871. }
  872. }
  873. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  874. static int get_IsUIOpening(IntPtr L)
  875. {
  876. object o = null;
  877. try
  878. {
  879. o = ToLua.ToObject(L, 1);
  880. UIMgr obj = (UIMgr)o;
  881. bool ret = obj.IsUIOpening;
  882. LuaDLL.lua_pushboolean(L, ret);
  883. return 1;
  884. }
  885. catch(Exception e)
  886. {
  887. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsUIOpening on a nil value");
  888. }
  889. }
  890. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  891. static int set_SCREEN_WIDTH(IntPtr L)
  892. {
  893. try
  894. {
  895. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  896. UIMgr.SCREEN_WIDTH = arg0;
  897. return 0;
  898. }
  899. catch (Exception e)
  900. {
  901. return LuaDLL.toluaL_exception(L, e);
  902. }
  903. }
  904. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  905. static int set_SCREEN_HEIGHT(IntPtr L)
  906. {
  907. try
  908. {
  909. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  910. UIMgr.SCREEN_HEIGHT = arg0;
  911. return 0;
  912. }
  913. catch (Exception e)
  914. {
  915. return LuaDLL.toluaL_exception(L, e);
  916. }
  917. }
  918. }