GuildPeopleApplyItem_Generate.lua 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. ---@class GuildPeopleApplyItem__Generate_allowBtn
  2. ---@field public gameObject UnityEngine.GameObject
  3. ---@field public button UnityEngine.UI.Button
  4. ---@class GuildPeopleApplyItem__Generate_refuseBtn
  5. ---@field public gameObject UnityEngine.GameObject
  6. ---@field public button UnityEngine.UI.Button
  7. ---@class GuildPeopleApplyItem__Generate_onlineTxt
  8. ---@field public gameObject UnityEngine.GameObject
  9. ---@field public text UnityEngine.UI.Text
  10. ---@class GuildPeopleApplyItem__Generate_atkTxt
  11. ---@field public gameObject UnityEngine.GameObject
  12. ---@field public text UnityEngine.UI.Text
  13. ---@class GuildPeopleApplyItem__Generate_nameTxt
  14. ---@field public gameObject UnityEngine.GameObject
  15. ---@field public text UnityEngine.UI.Text
  16. ---@class GuildPeopleApplyItem__Generate_vipIcon
  17. ---@field public gameObject UnityEngine.GameObject
  18. ---@field public image UnityEngine.UI.Image
  19. ---@class GuildPeopleApplyItem__Generate_headItem
  20. ---@field public gameObject UnityEngine.GameObject
  21. ---@field public layoutElement UnityEngine.UI.LayoutElement
  22. ---@class GuildPeopleApplyItem__Generate
  23. ---@field private gameObject UnityEngine.GameObject
  24. ---@field private transform UnityEngine.Transform
  25. ---@field private headItem GuildPeopleApplyItem__Generate_headItem
  26. ---@field private vipIcon GuildPeopleApplyItem__Generate_vipIcon
  27. ---@field private nameTxt GuildPeopleApplyItem__Generate_nameTxt
  28. ---@field private atkTxt GuildPeopleApplyItem__Generate_atkTxt
  29. ---@field private onlineTxt GuildPeopleApplyItem__Generate_onlineTxt
  30. ---@field private refuseBtn GuildPeopleApplyItem__Generate_refuseBtn
  31. ---@field private allowBtn GuildPeopleApplyItem__Generate_allowBtn
  32. local GuildPeopleApplyItemView = class("GuildPeopleApplyItemView")
  33. function GuildPeopleApplyItemView:ctor()
  34. end
  35. ---@private
  36. function GuildPeopleApplyItemView:SetActive(result)
  37. self.gameObject:SetActive(result)
  38. end
  39. ---@private
  40. function GuildPeopleApplyItemView:InitGenerate(Root, data)
  41. self.transform = Root
  42. self.inited = true
  43. local tmp
  44. self:InitGenerate__1(Root,data)
  45. self:InitGenerate__2(Root,data)
  46. self:InitGenerate__3(Root,data)
  47. self:InitGenerate__4(Root,data)
  48. self:InitGenerate__5(Root,data)
  49. self:InitGenerate__6(Root,data)
  50. self:InitGenerate__7(Root,data)
  51. self:InitGenerate__8(Root,data)
  52. end
  53. ---@private
  54. function GuildPeopleApplyItemView:InitGenerate__1(Root, data)
  55. --[[
  56. Root
  57. --]]
  58. end
  59. ---@private
  60. function GuildPeopleApplyItemView:InitGenerate__2(Root, data)
  61. --[[
  62. HeadItem
  63. --]]
  64. local tmp = Root:Find("HeadItem").gameObject
  65. if tolua.getpeer(tmp) == nil then
  66. tolua.setpeer(tmp, {})
  67. end
  68. self.headItem = CommonUtil.BindGridViewItem2LuaStatic("HeadItem", tmp)
  69. self.headItem.prefabName = "HeadItem"
  70. tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
  71. end
  72. ---@private
  73. function GuildPeopleApplyItemView:InitGenerate__3(Root, data)
  74. --[[
  75. Name/VipIcon
  76. --]]
  77. local tmp = Root:Find("Name/VipIcon").gameObject
  78. if tolua.getpeer(tmp) == nil then
  79. tolua.setpeer(tmp, {})
  80. end
  81. self.vipIcon = tmp
  82. tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
  83. end
  84. ---@private
  85. function GuildPeopleApplyItemView:InitGenerate__4(Root, data)
  86. --[[
  87. Name/NameTxt
  88. --]]
  89. local tmp = Root:Find("Name/NameTxt").gameObject
  90. if tolua.getpeer(tmp) == nil then
  91. tolua.setpeer(tmp, {})
  92. end
  93. self.nameTxt = tmp
  94. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  95. end
  96. ---@private
  97. function GuildPeopleApplyItemView:InitGenerate__5(Root, data)
  98. --[[
  99. Atk/AtkTxt
  100. --]]
  101. local tmp = Root:Find("Atk/AtkTxt").gameObject
  102. if tolua.getpeer(tmp) == nil then
  103. tolua.setpeer(tmp, {})
  104. end
  105. self.atkTxt = tmp
  106. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  107. end
  108. ---@private
  109. function GuildPeopleApplyItemView:InitGenerate__6(Root, data)
  110. --[[
  111. Online/OnlineTxt
  112. --]]
  113. local tmp = Root:Find("Online/OnlineTxt").gameObject
  114. if tolua.getpeer(tmp) == nil then
  115. tolua.setpeer(tmp, {})
  116. end
  117. self.onlineTxt = tmp
  118. tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
  119. end
  120. ---@private
  121. function GuildPeopleApplyItemView:InitGenerate__7(Root, data)
  122. --[[
  123. Btns/RefuseBtn
  124. --]]
  125. local tmp = Root:Find("Btns/RefuseBtn").gameObject
  126. if tolua.getpeer(tmp) == nil then
  127. tolua.setpeer(tmp, {})
  128. end
  129. self.refuseBtn = tmp
  130. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  131. end
  132. ---@private
  133. function GuildPeopleApplyItemView:InitGenerate__8(Root, data)
  134. --[[
  135. Btns/AllowBtn
  136. --]]
  137. local tmp = Root:Find("Btns/AllowBtn").gameObject
  138. if tolua.getpeer(tmp) == nil then
  139. tolua.setpeer(tmp, {})
  140. end
  141. self.allowBtn = tmp
  142. tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
  143. end
  144. ---@private
  145. function GuildPeopleApplyItemView:GenerateDestroy()
  146. if self.headItem.GenerateDestroy ~= nil then
  147. self.headItem:GenerateDestroy()
  148. end
  149. if tolua.getpeer(self.headItem) ~= nil then
  150. tolua.setpeer(self.headItem, nil)
  151. end
  152. self.headItem = nil
  153. if tolua.getpeer(self.vipIcon) ~= nil then
  154. tolua.setpeer(self.vipIcon, nil)
  155. end
  156. self.vipIcon = nil
  157. if tolua.getpeer(self.nameTxt) ~= nil then
  158. tolua.setpeer(self.nameTxt, nil)
  159. end
  160. self.nameTxt = nil
  161. if tolua.getpeer(self.atkTxt) ~= nil then
  162. tolua.setpeer(self.atkTxt, nil)
  163. end
  164. self.atkTxt = nil
  165. if tolua.getpeer(self.onlineTxt) ~= nil then
  166. tolua.setpeer(self.onlineTxt, nil)
  167. end
  168. self.onlineTxt = nil
  169. if tolua.getpeer(self.refuseBtn) ~= nil then
  170. tolua.setpeer(self.refuseBtn, nil)
  171. end
  172. self.refuseBtn = nil
  173. if tolua.getpeer(self.allowBtn) ~= nil then
  174. tolua.setpeer(self.allowBtn, nil)
  175. end
  176. self.allowBtn = nil
  177. self.transform = nil
  178. self.gameObject = nil
  179. self.inited = false
  180. end
  181. return GuildPeopleApplyItemView