| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269 |
- ---@class RewardInfoItem__Generate_getBtn
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@field public text UnityEngine.GameObject
- ---@class RewardInfoItem__Generate_gotoBtn
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@field public text UnityEngine.GameObject
- ---@class RewardInfoItem__Generate_content
- ---@field public gameObject UnityEngine.GameObject
- ---@field public horizontalLayoutGroup UnityEngine.UI.HorizontalLayoutGroup
- ---@class RewardInfoItem__Generate_goodsItems
- ---@field public gameObject UnityEngine.GameObject
- ---@field public loopHorizontalScrollRect UnityEngine.UI.LoopHorizontalScrollRect
- ---@class RewardInfoItem__Generate_doNumTxt
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class RewardInfoItem__Generate_progress
- ---@field public gameObject UnityEngine.GameObject
- ---@field public scrollbar UnityEngine.UI.Scrollbar
- ---@class RewardInfoItem__Generate_taskName
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class RewardInfoItem__Generate
- ---@field private gameObject UnityEngine.GameObject
- ---@field private transform UnityEngine.Transform
- ---@field private taskName RewardInfoItem__Generate_taskName
- ---@field private progress RewardInfoItem__Generate_progress
- ---@field private doNumTxt RewardInfoItem__Generate_doNumTxt
- ---@field private goodsItems RewardInfoItem__Generate_goodsItems
- ---@field private content RewardInfoItem__Generate_content
- ---@field private gotoBtn RewardInfoItem__Generate_gotoBtn
- ---@field private getBtn RewardInfoItem__Generate_getBtn
- ---@field private sealBtn UnityEngine.GameObject
- ---@field private endBtn UnityEngine.GameObject
- local RewardInfoItemView = class("RewardInfoItemView")
- function RewardInfoItemView:ctor()
- end
- ---@private
- function RewardInfoItemView:SetActive(result)
- self.gameObject:SetActive(result)
- end
- ---@private
- function RewardInfoItemView: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)
- end
- ---@private
- function RewardInfoItemView:InitGenerate__1(Root, data)
- --[[
- Root
- --]]
- end
- ---@private
- function RewardInfoItemView:InitGenerate__2(Root, data)
- --[[
- TaskName
- --]]
- local tmp = Root:Find("TaskName").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.taskName = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function RewardInfoItemView:InitGenerate__3(Root, data)
- --[[
- Scrollbar
- --]]
- local tmp = Root:Find("Scrollbar").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.progress = tmp
- tmp.scrollbar = tmp:GetComponent(Enum.TypeInfo.Scrollbar)
- end
- ---@private
- function RewardInfoItemView:InitGenerate__4(Root, data)
- --[[
- Ratio
- --]]
- local tmp = Root:Find("Ratio").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.doNumTxt = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function RewardInfoItemView:InitGenerate__5(Root, data)
- --[[
- GoodsItems
- --]]
- local tmp = Root:Find("GoodsItems").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.goodsItems = tmp
- tmp.loopHorizontalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopHorizontalScrollRect)
- end
- ---@private
- function RewardInfoItemView:InitGenerate__6(Root, data)
- --[[
- GoodsItems/Viewport/Content
- --]]
- local tmp = Root:Find("GoodsItems/Viewport/Content").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.content = tmp
- tmp.horizontalLayoutGroup = tmp:GetComponent(Enum.TypeInfo.HorizontalLayoutGroup)
- end
- ---@private
- function RewardInfoItemView:InitGenerate__7(Root, data)
- --[[
- BtnGoto
- --]]
- local tmp = Root:Find("BtnGoto").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.gotoBtn = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function RewardInfoItemView:InitGenerate__8(Root, data)
- --[[
- BtnGoto/Text
- --]]
- local tmp = Root:Find("BtnGoto/Text").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.gotoBtn.text = tmp
- end
- ---@private
- function RewardInfoItemView:InitGenerate__9(Root, data)
- --[[
- BtnGet
- --]]
- local tmp = Root:Find("BtnGet").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.getBtn = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function RewardInfoItemView:InitGenerate__10(Root, data)
- --[[
- BtnGet/Text
- --]]
- local tmp = Root:Find("BtnGet/Text").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.getBtn.text = tmp
- end
- ---@private
- function RewardInfoItemView:InitGenerate__11(Root, data)
- --[[
- Seal
- --]]
- local tmp = Root:Find("Seal").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.sealBtn = tmp
- end
- ---@private
- function RewardInfoItemView:InitGenerate__12(Root, data)
- --[[
- End
- --]]
- local tmp = Root:Find("End").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.endBtn = tmp
- end
- ---@private
- function RewardInfoItemView:GenerateDestroy()
- if tolua.getpeer(self.endBtn) ~= nil then
- tolua.setpeer(self.endBtn, nil)
- end
- if tolua.getpeer(self.sealBtn) ~= nil then
- tolua.setpeer(self.sealBtn, nil)
- end
- if tolua.getpeer(self.getBtn.text) ~= nil then
- tolua.setpeer(self.getBtn.text, nil)
- end
- if tolua.getpeer(self.getBtn) ~= nil then
- tolua.setpeer(self.getBtn, nil)
- end
- if tolua.getpeer(self.gotoBtn.text) ~= nil then
- tolua.setpeer(self.gotoBtn.text, nil)
- end
- if tolua.getpeer(self.gotoBtn) ~= nil then
- tolua.setpeer(self.gotoBtn, nil)
- end
- if tolua.getpeer(self.doNumTxt) ~= nil then
- tolua.setpeer(self.doNumTxt, nil)
- end
- if tolua.getpeer(self.progress) ~= nil then
- tolua.setpeer(self.progress, nil)
- end
- if tolua.getpeer(self.taskName) ~= nil then
- tolua.setpeer(self.taskName, nil)
- end
- if tolua.getpeer(self.goodsItems) ~= nil then
- tolua.setpeer(self.goodsItems, nil)
- end
- self.goodsItems = nil
- if tolua.getpeer(self.content) ~= nil then
- tolua.setpeer(self.content, nil)
- end
- self.content = nil
- self.transform = nil
- self.gameObject = nil
- self.inited = false
- end
- return RewardInfoItemView
|