GUI_Tips.lua 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140
  1. ---@class GUI
  2. GUI = {}
  3. local this = GUI
  4. ---@param handle UIKmlLuaControlHandler
  5. function this:AddOnClickEvent(handle, ui, callback, eventData) end
  6. ---@param control UIKmlLuaControl
  7. function this:SetToggleOnValueChange(control, ui, callback, eventData) end
  8. ---@param control UIKmlLuaControl
  9. ---@param parentControl UIKmlLuaControl
  10. function this:SetToggleGroup(control, parentControl) end
  11. ---@param control UIKmlLuaControl
  12. function this:SetSliderOnValueChange(control, ui, callback, eventData) end
  13. ---@param handler UIKmlLuaControlHandler
  14. ---@param ItemSizeFunc any @无限滚动列表下不等距回调函数,默认可不填
  15. ---@return void @初始化只需要调用一次,刷新界面的时候调用DataListUpdateData
  16. function this:DataListInitData(handler, ItemCountFunc, ItemGetFunc, ItemInitFunc, ItemUpdateFunc, ItemSizeFunc) end
  17. ---@param control UIKmlLuaControl
  18. ---@param immediately boolean 是否立即刷新,默认是false,防止同一帧多次刷新界面消耗增大,如果需要立即获取子控件,传入true
  19. function this:DataListUpdateData(control, immediately,callBack) end
  20. ---@param control UIKmlLuaControl
  21. function this:RemoveAllChildren(control) end
  22. ---@param control UIKmlLuaControl
  23. function this:RemoveFromParent(control) end
  24. ---@param control UIKmlLuaControl
  25. ---@return UIKmlLuaControl
  26. function this:GetParent(control) end
  27. ---@param control UIKmlLuaControl
  28. function this:GetParentByTransform(control) end
  29. function this:GetParentTransform(control) end
  30. function this:SetParent(control, parent) end
  31. ---@param handle UIKmlLuaControlHandler
  32. function this:GetChildren(handle) end
  33. ---@param handle UIKmlLuaControlHandler
  34. function this:GetChildrenCount(handle) end
  35. ---@param handle UIKmlLuaControlHandler
  36. function this:GetActiveChildrenCount(handle) end
  37. ---通过id获取子物体控件
  38. function this:GetChildrenByIndex(handle,index) end
  39. ---@param handler UIKmlLuaControlHandler
  40. function this:GetChildById(handler, id) end
  41. ---@param control UIKmlLuaControl
  42. function this:GetChildByTag(control, tag) end
  43. ---@param control UIKmlLuaControl
  44. ---@param child UIKmlLuaControl
  45. function this:AddChild(control, child) end
  46. ---@param control UIKmlLuaControl
  47. ---@param id string
  48. function this:RemoveChildById(control, id) end
  49. ---@param control UIKmlLuaControl
  50. ---@param x number
  51. ---@param y number
  52. ---@return Vector3
  53. function this:ConvertToWorldSpace(control, x, y) end
  54. ---@param control UIKmlLuaControl
  55. ---@param x number
  56. ---@param y number
  57. ---@return Vector3
  58. function this:ConvertToNodeSpace(control, x, y) end
  59. ---@param handle UIKmlLuaControlHandler
  60. ---@param callback function
  61. function this:AddOnTouchEvent(handle, ui, callback) end
  62. ---@param control UIKmlLuaControl
  63. function this:StopAllActions(control) end
  64. ---@param control UIKmlLuaControl
  65. function this:SetDropDownOnValueChange(control, ui, callback, eventData) end
  66. function this:GetPanelTransform(panelName) end
  67. function this:GetControlTransform(panelName, controlName) end
  68. function this:GetRectTransform(control) end
  69. function this:CloneControl(panelName, controlName, index) end
  70. function this:DelCloneControl(panelName, controlName) end
  71. function this:ScreenPointToWorldPointInRectangle(control,position) end
  72. function this:ScreenPointToLocalPointInRectangle(control,position) end
  73. --添加主界面隐藏/显示位置
  74. ---@param control UIKmlLuaPanelBase
  75. function this:AddMainPanelUIHideShowPos(control) end
  76. ---prefab标签控件加载完毕回调
  77. function this:SetOnPrefabControlLoaded(control,callback) end
  78. ---@return UIKmlLuaControl
  79. ---@param parent UIKmlLuaControl
  80. function this:UIVideo_Create(parent, luaTable) end
  81. function this:IsVideoPlaying(control) end
  82. ---@return boolean @是否在滚动条里面
  83. function this:IsInScrollView(panelName,controlName) end
  84. ---@param control UIKmlLuaControl
  85. function this:SetAttr(control,attrName,attrValue) end
  86. --region Common
  87. ---@param control UIKmlLuaControl
  88. ---@param x number
  89. ---@param y number
  90. function this:setPosition(control, x, y) end
  91. ---@param control UIKmlLuaControl
  92. ---@param value number
  93. function this:setPositionX(control, value) end
  94. ---@param control UIKmlLuaControl
  95. ---@param value number
  96. function this:setPositionY(control, value) end
  97. ---@param control UIKmlLuaControl
  98. ---@param value number
  99. function this:setPositionZ(control, value) end
  100. ---@param control UIKmlLuaControl
  101. function this:getPosition(control) end
  102. ---@param control UIKmlLuaControl
  103. function this:GetLocalPosition(control) end
  104. ---@param control UIKmlLuaControl
  105. function this:setLocalPosition(control, x, y, z) end
  106. ---@param kmlCtrl UIKmlLuaControl
  107. function this:GetWorldPosition(control) end
  108. ---@param kmlCtrl UIKmlLuaControl
  109. function this:SetWorldPosition(control, x, y, z) end
  110. ---@param control UIKmlLuaControl
  111. function this:getPositionX(control) end
  112. ---@param control UIKmlLuaControl
  113. function this:getPositionY(control) end
  114. ---@param control UIKmlLuaControl
  115. ---@param x number @ 0中 1左 2右
  116. ---@param y number @ 0中 1上 2下
  117. function this:setAnchorPoint(control, x, y) end
  118. function this:SetAnchorAdvanced(control, x, y) end
  119. ---@param control UIKmlLuaControl
  120. function this:getAnchorPoint(control) end
  121. ---@param control UIKmlLuaControl
  122. ---@param sizeW number
  123. ---@param sizeH number
  124. function this:setContentSize(control, sizeW, sizeH) end
  125. function this:getSizeDelta(control) end
  126. ---@param control UIKmlLuaControl
  127. function this:getBoundingBox(control) end
  128. ---@param control UIKmlLuaControl
  129. ---@param tag string
  130. function this:setTag(control, tag) end
  131. ---@param control UIKmlLuaControl
  132. function this:getTag(control) end
  133. ---@param control UIKmlLuaControl
  134. ---@param name string
  135. function this:setName(control, name) end
  136. function this:getName(control) end
  137. ---@param control UIKmlLuaControl
  138. ---@param grey boolean
  139. function this:setGrey(control, grey) end
  140. ---@param control UIKmlLuaControl
  141. function this:setRotation(control, rotation) end
  142. ---@param control UIKmlLuaControl
  143. function this:getRotation(control) end
  144. ---@param control UIKmlLuaControl
  145. function this:setAllRotation(control, rotation) end
  146. ---@param control UIKmlLuaControl
  147. function this:getAllRotation(control) end
  148. ---@param control UIKmlLuaControl
  149. function this:setRotationSkewX(control, rotation) end
  150. ---@param control UIKmlLuaControl
  151. function this:setRotationSkewY(control, rotation) end
  152. ---@param kmlCtrl UIKmlLuaControl
  153. ---@return number,number,number
  154. function this:GetLocalEulerAngles(control) end
  155. ---@param kmlCtrl UIKmlLuaControl
  156. function this:SetLocalEulerAngles(control,x,y,z) end
  157. ---@param kmlCtrl UIKmlLuaControl
  158. ---@return number,number,number
  159. function this:GetEulerAngles(control) end
  160. ---@param kmlCtrl UIKmlLuaControl
  161. function this:SetEulerAngles(control,x,y,z) end
  162. ---@param control UIKmlLuaControl
  163. ---@param visible boolean
  164. function this:setVisible(control, visible) end
  165. ---@param control UIKmlLuaControl
  166. function this:getVisible(control) end
  167. ---@param control UIKmlLuaControl
  168. ---@param alpha number
  169. function this:setAlpha(control, alpha) end
  170. ---@param control UIKmlLuaControl
  171. function this:getAlpha(control) end
  172. ---@param control UIKmlLuaControl
  173. ---@param scale number
  174. function this:setScale(control, scale) end
  175. ---@param control UIKmlLuaControl
  176. function this:getScale(control) end
  177. ---@param control UIKmlLuaControl
  178. ---@param scale number
  179. function this:setScaleX(control, scale) end
  180. ---@param control UIKmlLuaControl
  181. function this:getScaleX(control) end
  182. ---@param control UIKmlLuaControl
  183. ---@param scale number
  184. function this:setScaleY(control, scale) end
  185. ---@param control UIKmlLuaControl
  186. function this:getScaleY(control) end
  187. ---@param control UIKmlLuaControl
  188. ---@param value boolean
  189. function this:setFlippedX(control, value) end
  190. ---@param control UIKmlLuaControl
  191. function this:getFlippedX(control) end
  192. ---@param control UIKmlLuaControl
  193. function this:setFlippedY(control, value) end
  194. ---@param control UIKmlLuaControl
  195. function this:getFlippedY(control) end
  196. ---@param control UIKmlLuaControl
  197. ---@param value number
  198. function this:setLocalZOrder(control, value) end
  199. ---@param control UIKmlLuaControl
  200. function this:GetAnchoredPosition3D(control) end
  201. ---@param control UIKmlLuaControl
  202. function this:GetAnchoredPosition(control) end
  203. ---@param control UIKmlLuaControl
  204. function this:SetAnchoredPosition(control,pos) end
  205. ---@param control UIKmlLuaControl
  206. function this:setTouchEnabled(control, value) end
  207. ---@param control UIKmlLuaControl
  208. function this:getTouchEnabled(control) end
  209. ---@param control UIKmlLuaControl
  210. ---@param delay number
  211. function this:delayTouchEnabled(control, delay) end
  212. ---@param control UIKmlLuaControl
  213. ---@param value boolean
  214. function this:setSwallowTouches(control, value) end
  215. ---@param control UIKmlLuaControl
  216. function this:getSwallowTouches(control) end
  217. ---设置对象隐藏显示
  218. ---@param control UIKmlLuaControl
  219. ---@param isActive boolean
  220. function GUI:SetActive(control, isActive) end
  221. --region Image
  222. ---加载纹理图片
  223. ---@param control UIKmlLuaControl
  224. ---@param src string
  225. ---@param atlas string
  226. function GUI:Image_loadTexture(control, src, atlas) end
  227. ---设置图片为圆形类型
  228. ---@param control UIKmlLuaControl
  229. function this:Image_SetCircleType(control, isCircle) end
  230. ---加载纹理图片
  231. ---@param control UIKmlLuaControl
  232. ---@param src string
  233. ---@param atlas string
  234. function GUI:Image_SetTexture(control, tex) end
  235. ---@param tex UnityEngine.Texture
  236. function GUI:Image_GetTextureWidthAndHeight(tex) end
  237. ---设置图片填充值
  238. ---@param control UIKmlLuaControl
  239. function this:Image_setFillAmount(control,fillAmount) end
  240. ---设置图片九宫格
  241. ---@param control UIKmlLuaControl
  242. ---@param scale9l number
  243. ---@param scale9r number
  244. ---@param scale9t number
  245. ---@param scale9b number
  246. function GUI:Image_setScale9Slice(control, scale9l, scale9r, scale9t, scale9b) end
  247. ---设置图片是否变灰
  248. ---@param control UIKmlLuaControl
  249. ---@param isGrey boolean
  250. function GUI:Image_setGrey(control, isGrey) end
  251. ---设置图片透明度
  252. ---@param control UIKmlLuaControl
  253. ---@param value number
  254. function GUI:Image_setAlpha(control, value) end
  255. function this:Image_setType(handle,type,fillMethod,fillOrigin,fillClockwise) end
  256. --region Button
  257. ---设置按钮状态图片
  258. ---@param control UIKmlLuaControl
  259. ---@param Normalfilepath string
  260. ---@param Pressedfilepath string
  261. ---@param Disabledfilepath string
  262. ---@param atlas string
  263. function GUI:Button_loadTextures(control, Normalfilepath, Pressedfilepath, Disabledfilepath, atlas) end
  264. ---设置颜色(通用)
  265. ---@param control UIKmlLuaControl
  266. function GUI:setColor(control,color) end
  267. ---设置正常状态图片
  268. ---@param control UIKmlLuaControl
  269. ---@param Normalfilepath string
  270. ---@param atlas string
  271. function GUI:Button_loadTextureNormal(control, Normalfilepath, atlas) end
  272. ---设置按下状态图片
  273. ---@param control UIKmlLuaControl
  274. ---@param Pressedfilepath string
  275. ---@param atlas string
  276. function GUI:Button_loadTexturePressed(control, Pressedfilepath, atlas) end
  277. ---设置禁用状态图片
  278. ---@param control UIKmlLuaControl
  279. ---@param Disabledfilepath string
  280. ---@param atlas string
  281. function GUI:Button_loadTextureDisabled(control, Disabledfilepath, atlas) end
  282. ---设置按钮文字
  283. ---@param control UIKmlLuaControl
  284. ---@param value string
  285. function GUI:Button_setTitleText(control, value) end
  286. ---获取按钮文字
  287. ---@param control UIKmlLuaControl
  288. function GUI:Button_getTitleText(control) end
  289. ---设置按钮文字颜色
  290. ---@param control UIKmlLuaControl
  291. ---@param color string
  292. function GUI:Button_setTitleColor(control, color) end
  293. ---设置按钮文字大小
  294. ---@param control UIKmlLuaControl
  295. ---@param value number
  296. function GUI:Button_setTitleFontSize(control, value) end
  297. ---设置按钮文字样式 字体
  298. ---@param control UIKmlLuaControl
  299. ---@param fonttype string
  300. function GUI:Button_setTitleFontName(control, fonttype) end
  301. ---设置按钮文本最大宽度
  302. ---@param control UIKmlLuaControl
  303. ---@param value number
  304. function GUI:Button_setMaxLineWidth(control, value) end
  305. ---设置按钮文本加描边
  306. ---@param control UIKmlLuaControl
  307. ---@param color string
  308. ---@param outline number
  309. function GUI:Button_titleEnableOutline(control, color, outline) end
  310. ---取消按钮文本描边
  311. ---@param control UIKmlLuaControl
  312. function GUI:Button_titleDisableOutLine(control) end
  313. ---设置按钮是否禁用
  314. ---@param control UIKmlLuaControl
  315. ---@param value boolean
  316. function GUI:Button_setBright(control, value) end
  317. ---设置按钮是否灰态
  318. ---@param control UIKmlLuaControl
  319. ---@param isGrey boolean
  320. function GUI:Button_setGrey(control, isGrey) end
  321. ---设置按钮九宫格
  322. ---@param control UIKmlLuaControl
  323. ---@param scale9l number
  324. ---@param scale9r number
  325. ---@param scale9t number
  326. ---@param scale9b number
  327. function GUI:Button_setScale9Slice(control, scale9l, scale9r, scale9t, scale9b) end
  328. ---设置控件颜色rgba(kml)
  329. ------@param control UIKmlLuaControl
  330. function this:SetImageAlpha(control, r, g, b, a) end
  331. ---设置GridLayoutGroup控件的Child Alignment
  332. ------@param control UIKmlLuaControl
  333. function this:SetGridLayoutGroupChildAlignment(control, cellAlign) end
  334. ---设置图片NativeSize
  335. ------@param control UIKmlLuaControl
  336. function this:SetImageNativeSize(control) end
  337. ---设置输入控件text
  338. ---@param control UIKmlLuaControl
  339. function this:SetInputText(control, str) end
  340. ---获取输入控件text
  341. ---@param control UIKmlLuaControl
  342. function this:GetInputText(control) end
  343. ---设置输入控件激活
  344. ---@param control UIKmlLuaControl
  345. ---@param value boolean @是否激活
  346. function this:SetInputEnable(control, value) end
  347. --region Text
  348. ---设置文本
  349. ---@param control UIKmlLuaControl
  350. ---@param value string
  351. function GUI:Text_setString(control, value) end
  352. ---获取文本
  353. ---@param control UIKmlLuaControl
  354. function GUI:Text_getString(control) end
  355. ---设置文本颜色
  356. ---@param control UIKmlLuaControl
  357. ---@param color string
  358. function GUI:Text_setTextColor(control, color) end
  359. ---设置文本内容
  360. ---@param control UIKmlLuaControl
  361. ---@param str string
  362. function GUI:Text_setText(control, str) end
  363. ---设置字体透明度
  364. ---@param control UIKmlLuaControl
  365. ---@param alpha number
  366. function GUI:Text_setTextColorAlpha(control, alpha) end
  367. ---设置字体大小
  368. ---@param control UIKmlLuaControl
  369. ---@param value number
  370. function GUI:Text_setFontSize(control, value) end
  371. ---设置字体路径
  372. ---@param control UIKmlLuaControl
  373. ---@param fonttype string
  374. function GUI:Text_setFontName(control, fonttype) end
  375. ---设置字体描边
  376. ---@param control UIKmlLuaControl
  377. ---@param color string
  378. ---@param outline number
  379. function GUI:Text_enableOutline(control, color, outline) end
  380. ---设置是否启用下划线
  381. ---@param control UIKmlLuaControl
  382. ---@param underLineType number
  383. function GUI:Text_enableUnderline(control, underLineType) end
  384. ---设置文本最大行宽
  385. ---@param control UIKmlLuaControl
  386. ---@param value number
  387. function GUI:Text_setMaxLineWidth(control, value) end
  388. ---取消文本描边
  389. ---@param control UIKmlLuaControl
  390. function GUI:Text_disableOutLine(control) end
  391. ---设置文本垂直水平对齐
  392. ---@param control UIKmlLuaControl
  393. ---@param value string
  394. function GUI:Text_setTextAlignment(control, value) end
  395. ---设置文本尺寸
  396. ---@param control UIKmlLuaControl
  397. ---@param value {width = number, height = number}
  398. function GUI:Text_setTextAreaSize(control, value) end
  399. ---设置文本是否水平超框显示
  400. ---@param control UIKmlLuaControl
  401. ---@param value string
  402. function GUI:Text_sethorwrap(control, value) end
  403. ---设置文本是否自动换行
  404. ---@param control UIKmlLuaControl
  405. ---@param value string
  406. function GUI:Text_setmline(control, value) end
  407. ---设置RichText道具装备信息
  408. ---@param control UIKmlLuaControl
  409. ---@param value string
  410. function GUI:RichText_setchatiteminfo(control, value) end
  411. --region TextAtlas
  412. ---设置艺术字配置
  413. ---@param control UIKmlLuaControl
  414. ---@param stringValue string
  415. ---@param charMapFile string
  416. ---@param itemWidth number
  417. ---@param itemHeight number
  418. function GUI:TextAtlas_setProperty(control, stringValue, charMapFile, itemWidth, itemHeight) end
  419. ---设置艺术字文本
  420. ---@param control UIKmlLuaControl
  421. ---@param stringValue string
  422. function GUI:TextAtlas_setString(control, stringValue) end
  423. ---获取艺术字文本
  424. ---@param control UIKmlLuaControl
  425. function GUI:TextAtlas_getString(control) end
  426. --region Slider
  427. ---设置滚动条背景图
  428. ---@param control UIKmlLuaControl
  429. ---@param src string
  430. ---@param atlas string
  431. function GUI:Slider_loadBarTexture(control, src, atlas) end
  432. ---设置滚动条图片
  433. ---@param control UIKmlLuaControl
  434. ---@param src string
  435. ---@param atlas string
  436. function GUI:Slider_loadProgressBarTexture(control, src, atlas) end
  437. ---设置滚动条拖动块普通图片
  438. ---@param control UIKmlLuaControl
  439. ---@param src string
  440. ---@param atlas string
  441. function GUI:Slider_loadSlidBallTextureNormal(control, src, atlas) end
  442. ---设置滚动条进度
  443. ---@param control UIKmlLuaControl
  444. ---@param value number
  445. function GUI:Slider_setPercent(control, value) end
  446. ---获得滚动条进度
  447. ---@param control UIKmlLuaControl
  448. function GUI:Slider_getPercent(control) end
  449. ---设置滚动条最大进度值
  450. ---@param control UIKmlLuaControl
  451. ---@param value number
  452. function GUI:Slider_setMaxPercent(control, value) end
  453. ---设置滚动条最小进度值
  454. ---@param control UIKmlLuaControl
  455. ---@param value number
  456. function GUI:Slider_setMinPercent(control, value) end
  457. ---@param control UIKmlLuaControl
  458. ---@param callback function
  459. function GUI:Slider_addOnEvent(control, ui, callback, eventData) end
  460. ---设置模型
  461. ---@param control UIKmlLuaControl
  462. ---@param fonttype string
  463. function GUI:Item_setItemId(control, itemId) end
  464. ---设置道具数量
  465. ---@param control UIKmlLuaControl
  466. ---@param itemCount string|number
  467. function GUI:Item_setItemCount(control, itemCount) end
  468. function GUI:Item_UpdataData(control, luaTable) end
  469. function GUI:Item_Rotate(control, rotate) end
  470. function GUI:Item_Scale(control, scale) end
  471. ---设置model
  472. ---@param control UIKmlLuaControl
  473. ---@param src string
  474. ---@param scale string
  475. ---@param rotate string
  476. ---@param pos string
  477. ---@param mfixsize string
  478. function GUI:Model_setSrc(control, src, scale, rotate, pos,mfixsize) end
  479. ---@param control UIKmlLuaControl
  480. ---@param scale string @不填相当于不设置
  481. ---@param rotate string @不填相当于不设置
  482. ---@param pos string @不填相当于不设置
  483. ---@param mfixsize string @不填相当于不设置
  484. function GUI:Model_setParam(control, scale, rotate, pos,mfixsize) end
  485. ---设置model是否被修剪
  486. ---@param value number
  487. function GUI:Model_setnoclip(control, value) end
  488. ---@param propType number @ 1 浮点数 2 SetTextureOffset,SetTextureScale 3 颜色 4 Vector4
  489. ---@param matIndex number @材质索引编号,从0开始
  490. function GUI:Model_setMatParam(control,path, matIndex, propType, propName, propValue) end
  491. ---设置toggle图片
  492. ---@param control UIKmlLuaControl
  493. ---@param atlas string
  494. ---@param src string
  495. ---@param pimg string
  496. function GUI:Toggle_setSrc(control, atlas, src, pimg) end
  497. ---设置toggle是否选中
  498. ---@param control UIKmlLuaControl
  499. ---@param isOn boolean
  500. function this:Toggle_setIsOn(control, isOn) end
  501. ---获取toggle是否选中
  502. ---@param control UIKmlLuaControl
  503. ---@return boolean
  504. function this:Toggle_getIsOn(control) end
  505. ---@param control UIKmlLuaControl
  506. ---@param isAllow boolean
  507. function this:ToggleGroup_AllowSwitChoff(control,isAllow) end
  508. --region loadingbar
  509. ---设置进度条
  510. ---@param control UIKmlLuaControl
  511. ---@param stringValue number
  512. function GUI:SetLoadingbar_startper(control, stringValue) end
  513. ---设置时间
  514. ---@param control UIKmlLuaControl
  515. ---@param stringValue number
  516. function GUI:SetControl_time(control, stringValue) end
  517. ---设置移动位置
  518. ---@param control UIKmlLuaControl
  519. ---@param stringValue string
  520. function GUI:SetControl_moveto(control, stringValue) end
  521. ---设置倒计时图片旋转位置
  522. ---@param control UIKmlLuaControl
  523. ---@param stringValue number
  524. function GUI:SetCirclebar_startper(control, stringValue) end
  525. ---设置圆形进度条结束值
  526. ---@param control UIKmlLuaControl
  527. ---@param stringValue number
  528. function GUI:SetCirclebar_endper(control, stringValue) end
  529. ---设置圆形进度条滚动时间
  530. ---@param control UIKmlLuaControl
  531. ---@param stringValue number
  532. function GUI:SetCirclebar_time(control, stringValue) end
  533. ---设置滑动框进度
  534. ---@param control UIKmlLuaControl
  535. ---@param stringValue number
  536. function GUI:SetScrollView_scrollpos(control, stringValue) end
  537. --region inputfield
  538. ---@param control UIKmlLuaControl
  539. ---@param ui UIKmlLuaPanelBase
  540. ---@param callback function
  541. ---@param eventData any
  542. function this:Input_SetOnValueChange(control, ui, callback, eventData) end
  543. ---@param control UIKmlLuaControl
  544. ---@param ui UIKmlLuaPanelBase
  545. ---@param callback function
  546. ---@param eventData any
  547. function this:Input_SetOnEndEdit(control, ui, callback, eventData) end
  548. function this:SetMaxTextCount(control, maxCount) end
  549. ---@param control UIKmlLuaControl
  550. function this:GetNearCanvasZindex(control) end
  551. ---设置是否勾选复选框(不触发回调)
  552. ---@param control UIKmlLuaControl
  553. ---@param isOn boolean
  554. function GUI:SetIsOnWithoutNotify(control, isOn) end
  555. ---设置role
  556. ---@param ani string @动画名字(可缺省)
  557. function GUI:SetPlayerRoleInfo(control, model_list, equip_list,ani) end
  558. ---设置role动作
  559. ---@param control UIKmlLuaControl
  560. function GUI:SetPlayerRoleAni(control, ani) end
  561. function GUI:SetStreamAttr(control, strameCfgId) end
  562. function GUI:ResetStreamAttr(control) end
  563. function GUI:SetControlAnimation_stop(control, isStop) end
  564. ---@param control UIKmlLuaControl
  565. function GUI:GetID(control) end
  566. ---@param control UIKmlLuaControl
  567. function GUI:SetID(control, id) end
  568. ---@param control UIKmlLuaControl
  569. function GUI:GetDropDownValue(control) end
  570. ---@param control UIKmlLuaControl
  571. function GUI:GetControlWidth(control) end
  572. ---@param control UIKmlLuaControl
  573. function GUI:GetControlHeight(control) end
  574. ---@param handler UIKmlLuaControlHandler
  575. function this:OSAScrollView_Initialized(handler,itemGetFun,itemUpdateFun,ui) end
  576. ---@param control UIKmlLuaControl
  577. function this:OSAScrollView_RefreshList(control,count) end
  578. ---@param control UIKmlLuaControl
  579. function this:OSAScrollView_SetItemSizeGetFun(control,itemSizeGetFun,ui) end
  580. ---@param control UIKmlLuaControl
  581. function this:OSAScrollView_ScrollTo(control,index,duration,normalizedOffsetFromViewportStart,normalizedPositionOfItemPivotToUse) end
  582. ---@param control UIKmlLuaControl 获取所有可见的item
  583. function this:OSAScrollView_GetAllItems(control) end
  584. function GUI:GetTextPreferredWH(control) end
  585. ---@param control UIKmlLuaControl
  586. function GUI:SetOffsetMin(control,x,y) end
  587. ---@param control UIKmlLuaControl
  588. function this:GetOffsetMin(control) end
  589. ---@param control UIKmlLuaControl
  590. function GUI:SetOffsetMax(control,x,y) end
  591. ---@param control UIKmlLuaControl
  592. function this:GetOffsetMax(control) end
  593. function GUI:SetScrollViewRectMaskData(control,x,y, width, height) end
  594. function GUI:SetScrollView_DefaultItemSize(control,width,height) end
  595. ---@param control UIKmlLuaControl @控件隐藏的时候自动回收
  596. function GUI:AddMask(control) end
  597. function GUI:RemoveMask(control) end
  598. ---@param control UIKmlLuaControl @控件隐藏的时候自动回收
  599. function GUI:AddUIEmpty4Raycast(control) end
  600. ---@param control UIKmlLuaControl @控件隐藏的时候自动回收
  601. function GUI:ForceRebuildLayoutImmediate(control) end
  602. ---@param control UIKmlLuaControl
  603. ---@param id number @cfg_model_effect id
  604. function GUI:Effect_setEffectId(control, id) end
  605. --视频
  606. ---@param control UIKmlLuaControl
  607. function GUI:SetVideo(control, resPath,vwidth,vheight,playonwake,loop) end
  608. --视频
  609. ---@param control UIKmlLuaControl
  610. ---@param b string @ "1"播放 "0" 暂停
  611. function GUI:PlayVideo(control) end
  612. function GUI:StopVideo(control) end
  613. ---@param control UIKmlLuaControl
  614. function this:SetAsFirstSibling(control) end
  615. ---@param control UIKmlLuaControl
  616. function this:SetAsLastSibling(control) end
  617. ---@param control UIKmlLuaControl
  618. function this:SetTogDefaultThis(control) end
  619. ---@param control UIKmlLuaControl
  620. function this:GetRectSize(control) end
  621. ---@param control UIKmlLuaControl
  622. function this:GetWidth(control) end
  623. ---@param control UIKmlLuaControl
  624. function this:GetHeight(control) end
  625. ---@param control UIKmlLuaControl
  626. function this:GetGameObject(control) end
  627. ---@param control UIKmlLuaControl
  628. function this:HideAllChilds(control) end
  629. ---设置RichText玩家id
  630. ---@param control UIKmlLuaControl
  631. ---@param value string
  632. function GUI:RichText_setchatplayerid(control, value) end
  633. ---@param control UIKmlLuaControl
  634. function this:Image_DoColorFadeInKeepOut(control,fadeinTime,keepTime,fadeoutTime,onComplateFunc) end
  635. function this:Image_StopColorFadeInKeepOut(sequence) end
  636. ---@param control UIKmlLuaControl
  637. function this:DOAnchorPos(control,targetVec2,time) end
  638. ---@param control table @控件或者transform对象
  639. function this:DOMove(control,targetVec3,time) end
  640. ---@param control table @控件或者transform对象
  641. function this:DOMoveX(control,targetX,time) end
  642. ---@param control table @控件或者transform对象
  643. function this:DOMoveY(control,targetY,time) end
  644. ---@param control table @控件或者transform对象
  645. function this:DOMoveZ(control, targetZ, time) end
  646. ---@param control table @控件或者transform对象
  647. function this:DOMoveLocal(control,targetVec3,time) end
  648. ---@param control table @控件或者transform对象
  649. function this:DOMoveLocalX(control, targetX, time) end
  650. ---@param control table @控件或者transform对象
  651. function this:DOMoveLocalY(control, targetY, time) end
  652. ---@param control table @控件或者transform对象
  653. function this:DOMoveLocalZ(control, targetZ, time) end
  654. ---@param control UIKmlLuaControl
  655. function this:DOAnchorPosX(control,targetX,time) end
  656. ---@param control UIKmlLuaControl
  657. function this:DOAnchorPosY(control, targetY, time) end
  658. ---@param control UIKmlLuaControl
  659. ---@param leanRotateType ELeanRotateType
  660. function this:DORotate(control, targetVec3, time,leanRotateType) end
  661. ---@param control UIKmlLuaControl
  662. ---@param leanRotateRoundType ELeanRotateRoundType
  663. ---@param axis Vector3
  664. ---@param add number
  665. function this:DORotateRound(control, axis,add, time,leanRotateRoundType) end
  666. ---@param control UIKmlLuaControl
  667. ---@param leanRotateType ELeanRotateType
  668. function this:DOScale(control, targetVec3, time) end
  669. ---@param control UIKmlLuaControl
  670. function this:DOAlphaCanvasGroup(control, to, time, isRecursive) end
  671. ---@param control UIKmlLuaControl
  672. function this:DOAlphaImage(control, to, time, isRecursive) end
  673. function this:DOAlphaText(control, to, time,isRecursive) end
  674. ---@param callOnComplete boolean @ 中断Tween的时候是否调用完成的回调函数
  675. function this:DOKill(t,callOnComplete) end
  676. function this:TweenSetLoops(t,count) end
  677. ---@param type ELeanTweenType
  678. function this:TweenSetEase(t,type) end
  679. function this:TweenIsComplete(t) end
  680. function this:TweenSetRecursive(t,b) end
  681. function this:TweenSetOnComplete(t,func) end
  682. function this:TweenCreateSequence() end
  683. function this:TweenSequenceAppend(seq,t) end
  684. function this:TweenSequenceCancel(seq) end
  685. function this:SetZIndex(control, zindex) end
  686. ---@param parent UIKmlLuaControl
  687. ---@param baseUI UIKmlLuaPanelBase
  688. function GUI:UI_Open(list,filePath,baseUI,parent,args,isMulti,callback) end
  689. function GUI:IsWebGLAsync() end
  690. function GUI:CO_UI_Open(list,filePath,baseUI,parent,args,isMulti,isPreload,callback) end
  691. ---@return UIKmlLuaPanelBase
  692. function GUI:GetUI(filePath, isIncludeSubPanels) end
  693. ---@return UIKmlLuaPanelBase
  694. function GUI:GetUIByPanelName(panelName, isIncludeSubPanels) end
  695. ---@param ui UIKmlLuaPanelBase
  696. function GUI:IsUILoading(ui) end
  697. ---@param uipanel UIKmlLuaPanelBase
  698. ---@param uipanels table<string,UIKmlLuaPanelBase[]>
  699. function GUI:UI_Close(filePath,uipanel,uipanelId,uipanels) end
  700. ---@param baseUI UIKmlLuaPanelBase
  701. ---@param parent UIKmlLuaControl
  702. ---@return UIKmlLuaPanelBase
  703. function GUI:UIPanel_Open(filePath,parent,baseUI,args,isMulti,callback) end
  704. ---UIPanel_Close
  705. ---@param filePath string @界面lua路径
  706. ---@param uipanel UIKmlLuaPanelBase @可缺省,表示指定某个界面关闭,不填表示关闭所有filePath的界面
  707. ---@param uipanelId string
  708. ---@return void @上面的参数有一个找到即可
  709. function GUI:UIPanel_Close(filePath,uipanel,uipanelId,uipanels) end
  710. function GUI:UIPanel_CloseAll(exceptFilePaths, exceptsUIPanels, exceptsUIPanelIds) end
  711. function GUI:SetCacheUIPanel(path,panel, co) end
  712. function GUI:GetCacheUIPanel(path) end
  713. function GUI:StopUICloseCo(path) end
  714. ---SetUICacheTime
  715. ---@param path string
  716. ---@param cacheTime number @默认是0,表示不做缓存。非0情况下 UIPanel_Close 操作会调用OnHide。时间到了才会调用OnClose。-1,一直留在内存里面.只能设置一次,不能来回设置。
  717. ---并且只支持单例界面,非别的界面的子界面
  718. function GUI:SetUICacheTime(path,cacheTime) end
  719. function GUI:GetUICacheTime(path) end
  720. function GUI:PreLoadUI(path,count) end
  721. function GUI:UnPreLoadUI(path) end
  722. function GUI:HideAllIncludePreLoadUI() end
  723. function GUI:HideAllPreLoadUI(isForceHideAll) end
  724. function GUI:InPreLoadUI(path) end
  725. ---@param win UIKmlLuaPanelBase
  726. function GUI:PushPreLoadUI(path,win) end
  727. ---@param parent UIKmlLuaControl
  728. function GUI:PopPreLoadUI(path,parent) end
  729. function GUI:CloseAllUIWithoutMainUI() end
  730. ---@return UIKmlLuaControl
  731. ---@param parentHandler UIKmlLuaControlHandler
  732. function GUI:UIPanel_Create(parentHandler, luaTable) end
  733. ---@return UIKmlLuaControl
  734. ---@param handler UIKmlLuaControlHandler
  735. function GUI:Image_Create(handler, luaTable) end
  736. ---@return UIKmlLuaControl
  737. ---@param parentHandler UIKmlLuaControlHandler
  738. function GUI:Text_Create(parentHandler, luaTable) end
  739. ---@return UIKmlLuaControl
  740. ---@param parentHandler UIKmlLuaControlHandler
  741. function GUI:Button_Create(parentHandler, luaTable) end
  742. ---@return UIKmlLuaControl
  743. ---@param parentHandler UIKmlLuaControlHandler
  744. function GUI:CircleBar_Create(parentHandler, luaTable) end
  745. ---@return UIKmlLuaControl
  746. ---@param parentHandler UIKmlLuaControlHandler
  747. function GUI:CountDown_Create(parentHandler, luaTable) end
  748. ---@return UIKmlLuaControl
  749. ---@param parentHandler UIKmlLuaControlHandler
  750. function GUI:DataList_Create(parentHandler, luaTable) end
  751. ---@return UIKmlLuaControl
  752. ---@param parentHandler UIKmlLuaControlHandler
  753. function GUI:Dropdown_Create(parentHandler, luaTable) end
  754. ---@return UIKmlLuaControl
  755. ---@param parentHandler UIKmlLuaControlHandler
  756. function GUI:Effect_Create(parentHandler, luaTable) end
  757. ---@return UIKmlLuaControl
  758. ---@param parentHandler UIKmlLuaControlHandler
  759. function GUI:Equip_Create(parentHandler, luaTable) end
  760. ---@return UIKmlLuaControl
  761. ---@param parentHandler UIKmlLuaControlHandler
  762. function GUI:Frames_Create(parentHandler, luaTable) end
  763. ---@return UIKmlLuaControl
  764. ---@param parentHandler UIKmlLuaControlHandler
  765. function GUI:GridView_Create(parentHandler, luaTable) end
  766. ---@return UIKmlLuaControl
  767. ---@param parentHandler UIKmlLuaControlHandler
  768. function GUI:Input_Create(parentHandler, luaTable) end
  769. ---@return UIKmlLuaControl
  770. ---@param handler UIKmlLuaControlHandler
  771. function GUI:Item_Create(handler, luaTable) end
  772. ---@return UIKmlLuaControl
  773. ---@param parentHandler UIKmlLuaControlHandler
  774. function GUI:ItemGroup_Create(parentHandler, luaTable) end
  775. ---@return UIKmlLuaControl
  776. ---@param parentHandler UIKmlLuaControlHandler
  777. function GUI:Layout_Create(parentHandler, luaTable) end
  778. ---@return UIKmlLuaControl
  779. ---@param parentHandler UIKmlLuaControlHandler
  780. function GUI:LoadingBar_Create(parentHandler, luaTable) end
  781. ---@return UIKmlLuaControl
  782. ---@param parentHandler UIKmlLuaControlHandler
  783. function GUI:LuaLoopScrollView_Create(parentHandler, luaTable) end
  784. ---@return UIKmlLuaControl
  785. ---@param parentHandler UIKmlLuaControlHandler
  786. function GUI:Model_Create(parentHandler, luaTable) end
  787. ---@return UIKmlLuaControl
  788. ---@param parentHandler UIKmlLuaControlHandler
  789. function GUI:ModelDropdown_Create(parentHandler, luaTable) end
  790. ---@return UIKmlLuaControl
  791. ---@param parentHandler UIKmlLuaControlHandler
  792. function GUI:OSAScrollView_Create(parentHandler, luaTable) end
  793. ---@return UIKmlLuaControl
  794. ---@param parentHandler UIKmlLuaControlHandler
  795. function GUI:Panel_Create(parentHandler, luaTable) end
  796. ---@return UIKmlLuaControl
  797. ---@param parentHandler UIKmlLuaControlHandler
  798. function GUI:PercentImg_Create(parentHandler, luaTable) end
  799. ---@return UIKmlLuaControl
  800. ---@param parentHandler UIKmlLuaControlHandler
  801. function GUI:Prefab_Create(parentHandler, luaTable) end
  802. ---@return UIKmlLuaControl
  803. ---@param parentHandler UIKmlLuaControlHandler
  804. function GUI:RichText_Create(parentHandler, luaTable) end
  805. ---@return UIKmlLuaControl
  806. ---@param parentHandler UIKmlLuaControlHandler
  807. function GUI:Role_Create(parentHandler, luaTable) end
  808. ---@return UIKmlLuaControl
  809. ---@param parentHandler UIKmlLuaControlHandler
  810. function GUI:ScrollView_Create(parentHandler, luaTable) end
  811. ---@return UIKmlLuaControl
  812. ---@param parentHandler UIKmlLuaControlHandler
  813. function GUI:Slider_Create(parentHandler, luaTable) end
  814. ---@return UIKmlLuaControl
  815. ---@param parentHandler UIKmlLuaControlHandler
  816. function GUI:TextAtlas_Create(parentHandler, luaTable) end
  817. ---@return UIKmlLuaControl
  818. ---@param parentHandler UIKmlLuaControlHandler
  819. function GUI:Toggle_Create(parentHandler, luaTable) end
  820. ---@return UIKmlLuaControl
  821. ---@param parentHandler UIKmlLuaControlHandler
  822. function GUI:ToggleGroup_Create(parentHandler, luaTable) end
  823. ---@return UIKmlLuaControl
  824. ---@param parentHandler UIKmlLuaControlHandler
  825. function GUI:UISysPanel_Create(parentHandler, luaTable) end
  826. ---@return UIKmlLuaControl
  827. ---@param parentHandler UIKmlLuaControlHandler
  828. function GUI:UISysTemplate_Create(parentHandler, luaTable) end
  829. ---@param parentHandler UIKmlLuaControlHandler
  830. ---@param filePath string
  831. ---@return UIKmlLuaControl
  832. function GUI:LoadExport(parentHandler,filePath) end
  833. ---@param handler UIKmlLuaControlHandler
  834. ---@return UIKmlLuaControl
  835. function this:GetChildControl(handler,childIndex,id,kmlControlHandler) end
  836. function this:GetPath2UI_Pc(filePath) end