| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528 |
- ---@class ClimbingTowerTopItem__Generate_levelNum
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class ClimbingTowerTopItem__Generate_btnBuy_num
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class ClimbingTowerTopItem__Generate_btnBuy_icon
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class ClimbingTowerTopItem__Generate_btnBuy
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@field public icon ClimbingTowerTopItem__Generate_btnBuy_icon
- ---@field public num ClimbingTowerTopItem__Generate_btnBuy_num
- ---@class ClimbingTowerTopItem__Generate_iconSmallItem
- ---@field public gameObject UnityEngine.GameObject
- ---@field public rectTransform UnityEngine.RectTransform
- ---@field public layoutElement UnityEngine.UI.LayoutElement
- ---@class ClimbingTowerTopItem__Generate_scrollView
- ---@field public gameObject UnityEngine.GameObject
- ---@field public loopGridView SuperScrollView.LoopGridView
- ---@class ClimbingTowerTopItem__Generate_challengeBtn
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class ClimbingTowerTopItem__Generate_center
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class ClimbingTowerTopItem__Generate_right
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class ClimbingTowerTopItem__Generate_left
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class ClimbingTowerTopItem__Generate_btnMessage
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class ClimbingTowerTopItem__Generate_atknum
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class ClimbingTowerTopItem__Generate_servertext
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text TMPro.TextMeshProUGUI
- ---@class ClimbingTowerTopItem__Generate_nametext
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text TMPro.TextMeshProUGUI
- ---@class ClimbingTowerTopItem__Generate_roleModel
- ---@field public gameObject UnityEngine.GameObject
- ---@field public rawImage UnityEngine.UI.RawImage
- ---@field public uIEventTriggerListener UIEventTriggerListener
- ---@class ClimbingTowerTopItem__Generate_pos
- ---@field public gameObject UnityEngine.GameObject
- ---@field public rectTransform UnityEngine.RectTransform
- ---@field public image UnityEngine.UI.Image
- ---@class ClimbingTowerTopItem__Generate
- ---@field private gameObject UnityEngine.GameObject
- ---@field private transform UnityEngine.Transform
- ---@field private playerNode UnityEngine.GameObject
- ---@field private pos ClimbingTowerTopItem__Generate_pos
- ---@field private roleModel ClimbingTowerTopItem__Generate_roleModel
- ---@field private nametext ClimbingTowerTopItem__Generate_nametext
- ---@field private servertext ClimbingTowerTopItem__Generate_servertext
- ---@field private atknum ClimbingTowerTopItem__Generate_atknum
- ---@field private btnMessage ClimbingTowerTopItem__Generate_btnMessage
- ---@field private bottomNode UnityEngine.GameObject
- ---@field private left ClimbingTowerTopItem__Generate_left
- ---@field private right ClimbingTowerTopItem__Generate_right
- ---@field private center ClimbingTowerTopItem__Generate_center
- ---@field private challengeBtn ClimbingTowerTopItem__Generate_challengeBtn
- ---@field private passedNode UnityEngine.GameObject
- ---@field private cover UnityEngine.GameObject
- ---@field private rewards UnityEngine.GameObject
- ---@field private scrollView ClimbingTowerTopItem__Generate_scrollView
- ---@field private content UnityEngine.GameObject
- ---@field private iconSmallItem ClimbingTowerTopItem__Generate_iconSmallItem
- ---@field private btnBuy ClimbingTowerTopItem__Generate_btnBuy
- ---@field private levelNum ClimbingTowerTopItem__Generate_levelNum
- local ClimbingTowerTopItemView = class("ClimbingTowerTopItemView")
- function ClimbingTowerTopItemView:ctor()
- end
- ---@private
- function ClimbingTowerTopItemView:SetActive(result)
- self.gameObject:SetActive(result)
- end
- ---@private
- function ClimbingTowerTopItemView:InitGenerate(Root, data)
- self.transform = Root
- self.inited = true
- local tmp
- self:InitGenerate__1(Root,data)
- self:InitGenerate__2(Root,data)
- self:InitGenerate__3(Root,data)
- self:InitGenerate__4(Root,data)
- self:InitGenerate__5(Root,data)
- self:InitGenerate__6(Root,data)
- self:InitGenerate__7(Root,data)
- self:InitGenerate__8(Root,data)
- self:InitGenerate__9(Root,data)
- self:InitGenerate__10(Root,data)
- self:InitGenerate__11(Root,data)
- self:InitGenerate__12(Root,data)
- self:InitGenerate__13(Root,data)
- self:InitGenerate__14(Root,data)
- self:InitGenerate__15(Root,data)
- self:InitGenerate__16(Root,data)
- self:InitGenerate__17(Root,data)
- self:InitGenerate__18(Root,data)
- self:InitGenerate__19(Root,data)
- self:InitGenerate__20(Root,data)
- self:InitGenerate__21(Root,data)
- self:InitGenerate__22(Root,data)
- self:InitGenerate__23(Root,data)
- end
- ---@private
- function ClimbingTowerTopItemView:InitGenerate__1(Root, data)
- --[[
- Root
- --]]
- end
- ---@private
- function ClimbingTowerTopItemView:InitGenerate__2(Root, data)
- --[[
- PlayerNode
- --]]
- local tmp = Root:Find("PlayerNode").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.playerNode = tmp
- end
- ---@private
- function ClimbingTowerTopItemView:InitGenerate__3(Root, data)
- --[[
- PlayerNode/Pos
- --]]
- local tmp = Root:Find("PlayerNode/Pos").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.pos = tmp
- tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function ClimbingTowerTopItemView:InitGenerate__4(Root, data)
- --[[
- PlayerNode/RoleModel
- --]]
- local tmp = Root:Find("PlayerNode/RoleModel").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.roleModel = tmp
- tmp.rawImage = tmp:GetComponent(Enum.TypeInfo.RawImage)
- tmp.uIEventTriggerListener = tmp:GetComponent(Enum.TypeInfo.UIEventTriggerListener)
- end
- ---@private
- function ClimbingTowerTopItemView:InitGenerate__5(Root, data)
- --[[
- PlayerNode/Info/nametext
- --]]
- local tmp = Root:Find("PlayerNode/Info/nametext").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.nametext = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
- end
- ---@private
- function ClimbingTowerTopItemView:InitGenerate__6(Root, data)
- --[[
- PlayerNode/Info/servertext
- --]]
- local tmp = Root:Find("PlayerNode/Info/servertext").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.servertext = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
- end
- ---@private
- function ClimbingTowerTopItemView:InitGenerate__7(Root, data)
- --[[
- PlayerNode/Info/Atk/atknum
- --]]
- local tmp = Root:Find("PlayerNode/Info/Atk/atknum").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.atknum = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function ClimbingTowerTopItemView:InitGenerate__8(Root, data)
- --[[
- PlayerNode/Info/BtnMessage
- --]]
- local tmp = Root:Find("PlayerNode/Info/BtnMessage").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.btnMessage = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function ClimbingTowerTopItemView:InitGenerate__9(Root, data)
- --[[
- Bottom
- --]]
- local tmp = Root:Find("Bottom").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.bottomNode = tmp
- end
- ---@private
- function ClimbingTowerTopItemView:InitGenerate__10(Root, data)
- --[[
- Bottom/left
- --]]
- local tmp = Root:Find("Bottom/left").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.left = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function ClimbingTowerTopItemView:InitGenerate__11(Root, data)
- --[[
- Bottom/right
- --]]
- local tmp = Root:Find("Bottom/right").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.right = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function ClimbingTowerTopItemView:InitGenerate__12(Root, data)
- --[[
- Bottom/center
- --]]
- local tmp = Root:Find("Bottom/center").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.center = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function ClimbingTowerTopItemView:InitGenerate__13(Root, data)
- --[[
- ChallengeBtn
- --]]
- local tmp = Root:Find("ChallengeBtn").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.challengeBtn = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function ClimbingTowerTopItemView:InitGenerate__14(Root, data)
- --[[
- PassedNode
- --]]
- local tmp = Root:Find("PassedNode").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.passedNode = tmp
- end
- ---@private
- function ClimbingTowerTopItemView:InitGenerate__15(Root, data)
- --[[
- Cover
- --]]
- local tmp = Root:Find("Cover").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.cover = tmp
- end
- ---@private
- function ClimbingTowerTopItemView:InitGenerate__16(Root, data)
- --[[
- Rewards
- --]]
- local tmp = Root:Find("Rewards").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.rewards = tmp
- end
- ---@private
- function ClimbingTowerTopItemView:InitGenerate__17(Root, data)
- --[[
- Rewards/Flag/ScrollView
- --]]
- local tmp = Root:Find("Rewards/Flag/ScrollView").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.scrollView = tmp
- tmp.loopGridView = tmp:GetComponent(Enum.TypeInfo.LoopGridView)
- end
- ---@private
- function ClimbingTowerTopItemView:InitGenerate__18(Root, data)
- --[[
- Rewards/Flag/ScrollView/Viewport/Content
- --]]
- local tmp = Root:Find("Rewards/Flag/ScrollView/Viewport/Content").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.content = tmp
- end
- ---@private
- function ClimbingTowerTopItemView:InitGenerate__19(Root, data)
- --[[
- Rewards/Flag/ScrollView/Viewport/Content/IconSmallItem
- --]]
- local tmp = Root:Find("Rewards/Flag/ScrollView/Viewport/Content/IconSmallItem").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.iconSmallItem = CommonUtil.BindGridViewItem2LuaStatic("IconItem", tmp)
- self.iconSmallItem.prefabName = "IconItem"
- tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
- tmp.layoutElement = tmp:GetComponent(Enum.TypeInfo.LayoutElement)
- end
- ---@private
- function ClimbingTowerTopItemView:InitGenerate__20(Root, data)
- --[[
- BtnBuy
- --]]
- local tmp = Root:Find("BtnBuy").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.btnBuy = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function ClimbingTowerTopItemView:InitGenerate__21(Root, data)
- --[[
- BtnBuy/Content/Icon
- --]]
- local tmp = Root:Find("BtnBuy/Content/Icon").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.btnBuy.icon = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function ClimbingTowerTopItemView:InitGenerate__22(Root, data)
- --[[
- BtnBuy/Content/num
- --]]
- local tmp = Root:Find("BtnBuy/Content/num").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.btnBuy.num = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function ClimbingTowerTopItemView:InitGenerate__23(Root, data)
- --[[
- Top/LevelNumTxt
- --]]
- local tmp = Root:Find("Top/LevelNumTxt").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.levelNum = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function ClimbingTowerTopItemView:GenerateDestroy()
- if tolua.getpeer(self.levelNum) ~= nil then
- tolua.setpeer(self.levelNum, nil)
- end
- if tolua.getpeer(self.btnBuy.num) ~= nil then
- tolua.setpeer(self.btnBuy.num, nil)
- end
- if tolua.getpeer(self.btnBuy.icon) ~= nil then
- tolua.setpeer(self.btnBuy.icon, nil)
- end
- if tolua.getpeer(self.btnBuy) ~= nil then
- tolua.setpeer(self.btnBuy, nil)
- end
- if tolua.getpeer(self.cover) ~= nil then
- tolua.setpeer(self.cover, nil)
- end
- if tolua.getpeer(self.passedNode) ~= nil then
- tolua.setpeer(self.passedNode, nil)
- end
- if tolua.getpeer(self.challengeBtn) ~= nil then
- tolua.setpeer(self.challengeBtn, nil)
- end
- if tolua.getpeer(self.bottomNode) ~= nil then
- tolua.setpeer(self.bottomNode, nil)
- end
- if tolua.getpeer(self.btnMessage) ~= nil then
- tolua.setpeer(self.btnMessage, nil)
- end
- if tolua.getpeer(self.atknum) ~= nil then
- tolua.setpeer(self.atknum, nil)
- end
- if tolua.getpeer(self.servertext) ~= nil then
- tolua.setpeer(self.servertext, nil)
- end
- if tolua.getpeer(self.nametext) ~= nil then
- tolua.setpeer(self.nametext, nil)
- end
- if tolua.getpeer(self.roleModel) ~= nil then
- tolua.setpeer(self.roleModel, nil)
- end
- if tolua.getpeer(self.pos) ~= nil then
- tolua.setpeer(self.pos, nil)
- end
- if tolua.getpeer(self.playerNode) ~= nil then
- tolua.setpeer(self.playerNode, nil)
- end
- if tolua.getpeer(self.left) ~= nil then
- tolua.setpeer(self.left, nil)
- end
- self.left = nil
- if tolua.getpeer(self.right) ~= nil then
- tolua.setpeer(self.right, nil)
- end
- self.right = nil
- if tolua.getpeer(self.center) ~= nil then
- tolua.setpeer(self.center, nil)
- end
- self.center = nil
- if tolua.getpeer(self.rewards) ~= nil then
- tolua.setpeer(self.rewards, nil)
- end
- self.rewards = nil
- if tolua.getpeer(self.scrollView) ~= nil then
- tolua.setpeer(self.scrollView, nil)
- end
- self.scrollView = nil
- if tolua.getpeer(self.content) ~= nil then
- tolua.setpeer(self.content, nil)
- end
- self.content = nil
- if self.iconSmallItem.GenerateDestroy ~= nil then
- self.iconSmallItem:GenerateDestroy()
- end
- if tolua.getpeer(self.iconSmallItem) ~= nil then
- tolua.setpeer(self.iconSmallItem, nil)
- end
- self.iconSmallItem = nil
- self.transform = nil
- self.gameObject = nil
- self.inited = false
- end
- return ClimbingTowerTopItemView
|