| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203 |
- ---@class UISimpleWeb__Generate_reloadBtn
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UISimpleWeb__Generate_goForwardBtn
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UISimpleWeb__Generate_goBackBtn
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UISimpleWeb__Generate_btnClose
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UISimpleWeb__Generate_webView
- ---@field public gameObject UnityEngine.GameObject
- ---@field public wentingCanvasWebVewPrefab Vuplex.WebView.WentingCanvasWebVewPrefab
- ---@class UISimpleWeb__Generate_AnyBtn
- ---@field public gameObject UnityEngine.GameObject
- ---@field public button UnityEngine.UI.Button
- ---@class UISimpleWeb__Generate
- ---@field private gameObject UnityEngine.GameObject
- ---@field private transform UnityEngine.Transform
- ---@field private AnyBtn UISimpleWeb__Generate_AnyBtn
- ---@field private webView UISimpleWeb__Generate_webView
- ---@field private btnClose UISimpleWeb__Generate_btnClose
- ---@field private webBtns UnityEngine.GameObject
- ---@field private goBackBtn UISimpleWeb__Generate_goBackBtn
- ---@field private goForwardBtn UISimpleWeb__Generate_goForwardBtn
- ---@field private reloadBtn UISimpleWeb__Generate_reloadBtn
- local UISimpleWebView = class("UISimpleWebView", require("UIViewBase"))
- function UISimpleWebView:ctor()
- end
- ---@private
- function UISimpleWebView:SetActive(result)
- self.gameObject:SetActive(result)
- end
- ---@private
- function UISimpleWebView:InitGenerate(Root, data)
- self.transform = Root
- self.inited = true
- if self.super.Init then
- self.super.Init(self)
- end
- 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)
- end
- ---@private
- function UISimpleWebView:InitGenerate__1(Root, data)
- --[[
- Root
- --]]
- end
- ---@private
- function UISimpleWebView:InitGenerate__2(Root, data)
- --[[
- Alpha
- --]]
- local tmp = Root:Find("Alpha").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.AnyBtn = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function UISimpleWebView:InitGenerate__3(Root, data)
- --[[
- Window/WebView
- --]]
- local tmp = Root:Find("Window/WebView").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.webView = tmp
- tmp.wentingCanvasWebVewPrefab = tmp:GetComponent(Enum.TypeInfo.WentingCanvasWebVewPrefab)
- end
- ---@private
- function UISimpleWebView:InitGenerate__4(Root, data)
- --[[
- Window/BtnClose
- --]]
- local tmp = Root:Find("Window/BtnClose").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.btnClose = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function UISimpleWebView:InitGenerate__5(Root, data)
- --[[
- Window/WebBtns
- --]]
- local tmp = Root:Find("Window/WebBtns").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.webBtns = tmp
- end
- ---@private
- function UISimpleWebView:InitGenerate__6(Root, data)
- --[[
- Window/WebBtns/GoBackBtn
- --]]
- local tmp = Root:Find("Window/WebBtns/GoBackBtn").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.goBackBtn = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function UISimpleWebView:InitGenerate__7(Root, data)
- --[[
- Window/WebBtns/GoForwardBtn
- --]]
- local tmp = Root:Find("Window/WebBtns/GoForwardBtn").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.goForwardBtn = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function UISimpleWebView:InitGenerate__8(Root, data)
- --[[
- Window/WebBtns/ReloadBtn
- --]]
- local tmp = Root:Find("Window/WebBtns/ReloadBtn").gameObject
- if tolua.getpeer(tmp) == nil then
- tolua.setpeer(tmp, {})
- end
- self.reloadBtn = tmp
- tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
- end
- ---@private
- function UISimpleWebView:GenerateDestroy()
- if tolua.getpeer(self.AnyBtn) ~= nil then
- tolua.setpeer(self.AnyBtn, nil)
- end
- self.AnyBtn = nil
- if tolua.getpeer(self.webView) ~= nil then
- tolua.setpeer(self.webView, nil)
- end
- self.webView = nil
- if tolua.getpeer(self.btnClose) ~= nil then
- tolua.setpeer(self.btnClose, nil)
- end
- self.btnClose = nil
- if tolua.getpeer(self.webBtns) ~= nil then
- tolua.setpeer(self.webBtns, nil)
- end
- self.webBtns = nil
- if tolua.getpeer(self.goBackBtn) ~= nil then
- tolua.setpeer(self.goBackBtn, nil)
- end
- self.goBackBtn = nil
- if tolua.getpeer(self.goForwardBtn) ~= nil then
- tolua.setpeer(self.goForwardBtn, nil)
- end
- self.goForwardBtn = nil
- if tolua.getpeer(self.reloadBtn) ~= nil then
- tolua.setpeer(self.reloadBtn, nil)
- end
- self.reloadBtn = nil
- self.transform = nil
- self.gameObject = nil
- self.inited = false
- end
- return UISimpleWebView
|