| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221 |
- ---@class WjBattleBuffInfoItem__Generate_getBtn_icon
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class WjBattleBuffInfoItem__Generate_getBtn_number
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text TMPro.TextMeshProUGUI
- ---@class WjBattleBuffInfoItem__Generate_getBtn_shadow
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class WjBattleBuffInfoItem__Generate_getBtn
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@field public shadow WjBattleBuffInfoItem__Generate_getBtn_shadow
- ---@field public number WjBattleBuffInfoItem__Generate_getBtn_number
- ---@field public icon WjBattleBuffInfoItem__Generate_getBtn_icon
- ---@class WjBattleBuffInfoItem__Generate_descTxt
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class WjBattleBuffInfoItem__Generate_itemIcon
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class WjBattleBuffInfoItem__Generate_itemName
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class WjBattleBuffInfoItem__Generate
- ---@field private gameObject UnityEngine.GameObject
- ---@field private transform UnityEngine.Transform
- ---@field private itemName WjBattleBuffInfoItem__Generate_itemName
- ---@field private itemIcon WjBattleBuffInfoItem__Generate_itemIcon
- ---@field private sealBtn UnityEngine.GameObject
- ---@field private descTxt WjBattleBuffInfoItem__Generate_descTxt
- ---@field private getBtn WjBattleBuffInfoItem__Generate_getBtn
- local WjBattleBuffInfoItemView = class("WjBattleBuffInfoItemView")
- function WjBattleBuffInfoItemView:ctor()
- end
- ---@private
- function WjBattleBuffInfoItemView:SetActive(result)
- self.gameObject:SetActive(result)
- end
- ---@private
- function WjBattleBuffInfoItemView: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)
- end
- ---@private
- function WjBattleBuffInfoItemView:InitGenerate__1(Root, data)
- --[[
- Root
- --]]
- end
- ---@private
- function WjBattleBuffInfoItemView:InitGenerate__2(Root, data)
- --[[
- GoodsName/ItemName
- --]]
- local tmp = Root:Find("GoodsName/ItemName").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.itemName = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function WjBattleBuffInfoItemView:InitGenerate__3(Root, data)
- --[[
- ItemIcon
- --]]
- local tmp = Root:Find("ItemIcon").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.itemIcon = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function WjBattleBuffInfoItemView:InitGenerate__4(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 WjBattleBuffInfoItemView:InitGenerate__5(Root, data)
- --[[
- DescTxt
- --]]
- local tmp = Root:Find("DescTxt").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.descTxt = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function WjBattleBuffInfoItemView:InitGenerate__6(Root, data)
- --[[
- GetBtn
- --]]
- local tmp = Root:Find("GetBtn").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.getBtn = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function WjBattleBuffInfoItemView:InitGenerate__7(Root, data)
- --[[
- GetBtn/shadow
- --]]
- local tmp = Root:Find("GetBtn/shadow").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.getBtn.shadow = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function WjBattleBuffInfoItemView:InitGenerate__8(Root, data)
- --[[
- GetBtn/Number
- --]]
- local tmp = Root:Find("GetBtn/Number").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.getBtn.number = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
- end
- ---@private
- function WjBattleBuffInfoItemView:InitGenerate__9(Root, data)
- --[[
- GetBtn/Icon
- --]]
- local tmp = Root:Find("GetBtn/Icon").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.getBtn.icon = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function WjBattleBuffInfoItemView:GenerateDestroy()
- if tolua.getpeer(self.getBtn.icon) ~= nil then
- tolua.setpeer(self.getBtn.icon, nil)
- end
- if tolua.getpeer(self.getBtn.number) ~= nil then
- tolua.setpeer(self.getBtn.number, nil)
- end
- if tolua.getpeer(self.getBtn.shadow) ~= nil then
- tolua.setpeer(self.getBtn.shadow, nil)
- end
- if tolua.getpeer(self.itemName) ~= nil then
- tolua.setpeer(self.itemName, nil)
- end
- self.itemName = nil
- if tolua.getpeer(self.itemIcon) ~= nil then
- tolua.setpeer(self.itemIcon, nil)
- end
- self.itemIcon = nil
- if tolua.getpeer(self.sealBtn) ~= nil then
- tolua.setpeer(self.sealBtn, nil)
- end
- self.sealBtn = nil
- if tolua.getpeer(self.descTxt) ~= nil then
- tolua.setpeer(self.descTxt, nil)
- end
- self.descTxt = nil
- if tolua.getpeer(self.getBtn) ~= nil then
- tolua.setpeer(self.getBtn, nil)
- end
- self.getBtn = nil
- self.transform = nil
- self.gameObject = nil
- self.inited = false
- end
- return WjBattleBuffInfoItemView
|