| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273 |
- ---@class StoryTalkItem__Generate_talkRgt_dsc
- ---@field public gameObject UnityEngine.GameObject
- ---@field public rectTransform UnityEngine.RectTransform
- ---@field public text UnityEngine.UI.Text
- ---@class StoryTalkItem__Generate_talkRgt_text
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class StoryTalkItem__Generate_talkRgt_bg
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class StoryTalkItem__Generate_talkRgt
- ---@field public gameObject UnityEngine.GameObject
- ---@field public rectTransform UnityEngine.RectTransform
- ---@field public bg StoryTalkItem__Generate_talkRgt_bg
- ---@field public text StoryTalkItem__Generate_talkRgt_text
- ---@field public dsc StoryTalkItem__Generate_talkRgt_dsc
- ---@field public next UnityEngine.GameObject
- ---@class StoryTalkItem__Generate_talkLft_dsc
- ---@field public gameObject UnityEngine.GameObject
- ---@field public rectTransform UnityEngine.RectTransform
- ---@field public text UnityEngine.UI.Text
- ---@class StoryTalkItem__Generate_talkLft_text
- ---@field public gameObject UnityEngine.GameObject
- ---@field public text UnityEngine.UI.Text
- ---@class StoryTalkItem__Generate_talkLft_bg
- ---@field public gameObject UnityEngine.GameObject
- ---@field public image UnityEngine.UI.Image
- ---@class StoryTalkItem__Generate_talkLft
- ---@field public gameObject UnityEngine.GameObject
- ---@field public rectTransform UnityEngine.RectTransform
- ---@field public bg StoryTalkItem__Generate_talkLft_bg
- ---@field public text StoryTalkItem__Generate_talkLft_text
- ---@field public dsc StoryTalkItem__Generate_talkLft_dsc
- ---@field public next UnityEngine.GameObject
- ---@class StoryTalkItem__Generate
- ---@field private gameObject UnityEngine.GameObject
- ---@field private transform UnityEngine.Transform
- ---@field private rectTransform UnityEngine.RectTransform
- ---@field private layoutElement UnityEngine.UI.LayoutElement
- ---@field private canvasGroup UnityEngine.CanvasGroup
- ---@field private talkLft StoryTalkItem__Generate_talkLft
- ---@field private talkRgt StoryTalkItem__Generate_talkRgt
- local StoryTalkItemView = class("StoryTalkItemView")
- function StoryTalkItemView:ctor()
- end
- ---@private
- function StoryTalkItemView:SetActive(result)
- self.gameObject:SetActive(result)
- end
- ---@private
- function StoryTalkItemView: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)
- end
- ---@private
- function StoryTalkItemView:InitGenerate__1(Root, data)
- --[[
- Root
- --]]
- self.rectTransform = Root:GetComponent(Enum.TypeInfo.RectTransform)
- self.layoutElement = Root:GetComponent(Enum.TypeInfo.LayoutElement)
- self.canvasGroup = Root:GetComponent(Enum.TypeInfo.CanvasGroup)
- end
- ---@private
- function StoryTalkItemView:InitGenerate__2(Root, data)
- --[[
- TalkLft
- --]]
- local tmp = Root:Find("TalkLft").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.talkLft = tmp
- tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
- end
- ---@private
- function StoryTalkItemView:InitGenerate__3(Root, data)
- --[[
- TalkLft/Name/bg
- --]]
- local tmp = Root:Find("TalkLft/Name/bg").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.talkLft.bg = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function StoryTalkItemView:InitGenerate__4(Root, data)
- --[[
- TalkLft/Name/Text
- --]]
- local tmp = Root:Find("TalkLft/Name/Text").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.talkLft.text = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function StoryTalkItemView:InitGenerate__5(Root, data)
- --[[
- TalkLft/Dsc
- --]]
- local tmp = Root:Find("TalkLft/Dsc").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.talkLft.dsc = tmp
- tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function StoryTalkItemView:InitGenerate__6(Root, data)
- --[[
- TalkLft/Next
- --]]
- local tmp = Root:Find("TalkLft/Next").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.talkLft.next = tmp
- end
- ---@private
- function StoryTalkItemView:InitGenerate__7(Root, data)
- --[[
- TalkRgt
- --]]
- local tmp = Root:Find("TalkRgt").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.talkRgt = tmp
- tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
- end
- ---@private
- function StoryTalkItemView:InitGenerate__8(Root, data)
- --[[
- TalkRgt/Name/bg
- --]]
- local tmp = Root:Find("TalkRgt/Name/bg").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.talkRgt.bg = tmp
- tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
- end
- ---@private
- function StoryTalkItemView:InitGenerate__9(Root, data)
- --[[
- TalkRgt/Name/Text
- --]]
- local tmp = Root:Find("TalkRgt/Name/Text").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.talkRgt.text = tmp
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function StoryTalkItemView:InitGenerate__10(Root, data)
- --[[
- TalkRgt/Dsc
- --]]
- local tmp = Root:Find("TalkRgt/Dsc").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.talkRgt.dsc = tmp
- tmp.rectTransform = tmp:GetComponent(Enum.TypeInfo.RectTransform)
- tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
- end
- ---@private
- function StoryTalkItemView:InitGenerate__11(Root, data)
- --[[
- TalkRgt/Next
- --]]
- local tmp = Root:Find("TalkRgt/Next").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.talkRgt.next = tmp
- end
- ---@private
- function StoryTalkItemView:GenerateDestroy()
- if tolua.getpeer(self.talkRgt.next) ~= nil then
- tolua.setpeer(self.talkRgt.next, nil)
- end
- if tolua.getpeer(self.talkRgt.dsc) ~= nil then
- tolua.setpeer(self.talkRgt.dsc, nil)
- end
- if tolua.getpeer(self.talkRgt.text) ~= nil then
- tolua.setpeer(self.talkRgt.text, nil)
- end
- if tolua.getpeer(self.talkRgt.bg) ~= nil then
- tolua.setpeer(self.talkRgt.bg, nil)
- end
- if tolua.getpeer(self.talkLft.next) ~= nil then
- tolua.setpeer(self.talkLft.next, nil)
- end
- if tolua.getpeer(self.talkLft.dsc) ~= nil then
- tolua.setpeer(self.talkLft.dsc, nil)
- end
- if tolua.getpeer(self.talkLft.text) ~= nil then
- tolua.setpeer(self.talkLft.text, nil)
- end
- if tolua.getpeer(self.talkLft.bg) ~= nil then
- tolua.setpeer(self.talkLft.bg, nil)
- end
- if tolua.getpeer(self.talkLft) ~= nil then
- tolua.setpeer(self.talkLft, nil)
- end
- self.talkLft = nil
- if tolua.getpeer(self.talkRgt) ~= nil then
- tolua.setpeer(self.talkRgt, nil)
- end
- self.talkRgt = nil
- self.transform = nil
- self.gameObject = nil
- self.inited = false
- end
- return StoryTalkItemView
|