UnityEngine_UI_TextWrap.cs 26 KB

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