591 lines
16 KiB
Lua
591 lines
16 KiB
Lua
---@class UIBattleSuccess__Generate_autoFightingBtn
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public button UnityEngine.UI.Button
|
|
|
|
---@class UIBattleSuccess__Generate_text_autofight_time
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public text TMPro.TextMeshProUGUI
|
|
|
|
---@class UIBattleSuccess__Generate_text_autofight
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public text TMPro.TextMeshProUGUI
|
|
|
|
---@class UIBattleSuccess__Generate_btn_autofight
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public image UnityEngine.UI.Image
|
|
---@field public button UnityEngine.UI.Button
|
|
---@field public switchSprite SwitchSprite
|
|
|
|
---@class UIBattleSuccess__Generate_backBtn
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public button UnityEngine.UI.Button
|
|
|
|
---@class UIBattleSuccess__Generate_drop_text
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public text UnityEngine.UI.Text
|
|
|
|
---@class UIBattleSuccess__Generate_drop
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public text UIBattleSuccess__Generate_drop_text
|
|
|
|
---@class UIBattleSuccess__Generate_coin_text
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public text UnityEngine.UI.Text
|
|
|
|
---@class UIBattleSuccess__Generate_coin
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public text UIBattleSuccess__Generate_coin_text
|
|
|
|
---@class UIBattleSuccess__Generate_expJob_text
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public text UnityEngine.UI.Text
|
|
|
|
---@class UIBattleSuccess__Generate_expJob
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public text UIBattleSuccess__Generate_expJob_text
|
|
|
|
---@class UIBattleSuccess__Generate_expParter_text
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public text UnityEngine.UI.Text
|
|
|
|
---@class UIBattleSuccess__Generate_expParter
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public text UIBattleSuccess__Generate_expParter_text
|
|
|
|
---@class UIBattleSuccess__Generate_zeny_text
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public text UnityEngine.UI.Text
|
|
|
|
---@class UIBattleSuccess__Generate_zeny
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public text UIBattleSuccess__Generate_zeny_text
|
|
|
|
---@class UIBattleSuccess__Generate_expBase_text
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public text UnityEngine.UI.Text
|
|
|
|
---@class UIBattleSuccess__Generate_expBase
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public text UIBattleSuccess__Generate_expBase_text
|
|
|
|
---@class UIBattleSuccess__Generate_awardContent
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public gridLayoutGroup UnityEngine.UI.GridLayoutGroup
|
|
|
|
---@class UIBattleSuccess__Generate_awardScrollView
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public loopHorizontalScrollRect UnityEngine.UI.LoopHorizontalScrollRect
|
|
|
|
---@class UIBattleSuccess__Generate_btnSendDanmu
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public button UnityEngine.UI.Button
|
|
|
|
---@class UIBattleSuccess__Generate_role4
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public image UnityEngine.UI.Image
|
|
|
|
---@class UIBattleSuccess__Generate_role3
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public image UnityEngine.UI.Image
|
|
|
|
---@class UIBattleSuccess__Generate_role2
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public image UnityEngine.UI.Image
|
|
|
|
---@class UIBattleSuccess__Generate_role1
|
|
---@field public gameObject UnityEngine.GameObject
|
|
---@field public image UnityEngine.UI.Image
|
|
|
|
---@class UIBattleSuccess__Generate
|
|
---@field private gameObject UnityEngine.GameObject
|
|
---@field private transform UnityEngine.Transform
|
|
---@field private role1 UIBattleSuccess__Generate_role1
|
|
---@field private role2 UIBattleSuccess__Generate_role2
|
|
---@field private role3 UIBattleSuccess__Generate_role3
|
|
---@field private role4 UIBattleSuccess__Generate_role4
|
|
---@field private btnSendDanmu UIBattleSuccess__Generate_btnSendDanmu
|
|
---@field private awardScrollView UIBattleSuccess__Generate_awardScrollView
|
|
---@field private awardContent UIBattleSuccess__Generate_awardContent
|
|
---@field private expBase UIBattleSuccess__Generate_expBase
|
|
---@field private zeny UIBattleSuccess__Generate_zeny
|
|
---@field private expParter UIBattleSuccess__Generate_expParter
|
|
---@field private expJob UIBattleSuccess__Generate_expJob
|
|
---@field private coin UIBattleSuccess__Generate_coin
|
|
---@field private drop UIBattleSuccess__Generate_drop
|
|
---@field private backBtn UIBattleSuccess__Generate_backBtn
|
|
---@field private btn_autofight UIBattleSuccess__Generate_btn_autofight
|
|
---@field private text_autofight UIBattleSuccess__Generate_text_autofight
|
|
---@field private text_autofight_time UIBattleSuccess__Generate_text_autofight_time
|
|
---@field private autoFightingBtn UIBattleSuccess__Generate_autoFightingBtn
|
|
local UIBattleSuccessView = class("UIBattleSuccessView", require("UIViewBase"))
|
|
|
|
function UIBattleSuccessView:ctor()
|
|
end
|
|
|
|
---@private
|
|
function UIBattleSuccessView:SetActive(result)
|
|
self.gameObject:SetActive(result)
|
|
end
|
|
---@private
|
|
function UIBattleSuccessView: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)
|
|
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)
|
|
self:InitGenerate__24(Root,data)
|
|
|
|
|
|
end
|
|
|
|
---@private
|
|
function UIBattleSuccessView:InitGenerate__1(Root, data)
|
|
--[[
|
|
Panel/Top/HeroList/Role1
|
|
--]]
|
|
local tmp = Root:Find("Panel/Top/HeroList/Role1").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.role1 = tmp
|
|
|
|
tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
|
|
end
|
|
|
|
---@private
|
|
function UIBattleSuccessView:InitGenerate__2(Root, data)
|
|
--[[
|
|
Panel/Top/HeroList/Role2
|
|
--]]
|
|
local tmp = Root:Find("Panel/Top/HeroList/Role2").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.role2 = tmp
|
|
|
|
tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
|
|
end
|
|
|
|
---@private
|
|
function UIBattleSuccessView:InitGenerate__3(Root, data)
|
|
--[[
|
|
Panel/Top/HeroList/Role3
|
|
--]]
|
|
local tmp = Root:Find("Panel/Top/HeroList/Role3").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.role3 = tmp
|
|
|
|
tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
|
|
end
|
|
|
|
---@private
|
|
function UIBattleSuccessView:InitGenerate__4(Root, data)
|
|
--[[
|
|
Panel/Top/HeroList/Role4
|
|
--]]
|
|
local tmp = Root:Find("Panel/Top/HeroList/Role4").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.role4 = tmp
|
|
|
|
tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
|
|
end
|
|
|
|
---@private
|
|
function UIBattleSuccessView:InitGenerate__5(Root, data)
|
|
--[[
|
|
Panel/CommentArea/BtnSendDanmu
|
|
--]]
|
|
local tmp = Root:Find("Panel/CommentArea/BtnSendDanmu").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.btnSendDanmu = tmp
|
|
|
|
tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
|
|
end
|
|
|
|
---@private
|
|
function UIBattleSuccessView:InitGenerate__6(Root, data)
|
|
--[[
|
|
Panel/AwardArea/Awards/AwardScrollView
|
|
--]]
|
|
local tmp = Root:Find("Panel/AwardArea/Awards/AwardScrollView").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.awardScrollView = tmp
|
|
|
|
tmp.loopHorizontalScrollRect = tmp:GetComponent(Enum.TypeInfo.LoopHorizontalScrollRect)
|
|
end
|
|
|
|
---@private
|
|
function UIBattleSuccessView:InitGenerate__7(Root, data)
|
|
--[[
|
|
Panel/AwardArea/Awards/AwardScrollView/Viewport/AwardContent
|
|
--]]
|
|
local tmp = Root:Find("Panel/AwardArea/Awards/AwardScrollView/Viewport/AwardContent").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.awardContent = tmp
|
|
|
|
tmp.gridLayoutGroup = tmp:GetComponent(Enum.TypeInfo.GridLayoutGroup)
|
|
end
|
|
|
|
---@private
|
|
function UIBattleSuccessView:InitGenerate__8(Root, data)
|
|
--[[
|
|
Panel/AwardArea/Group/ExpBase
|
|
--]]
|
|
local tmp = Root:Find("Panel/AwardArea/Group/ExpBase").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.expBase = tmp
|
|
end
|
|
|
|
---@private
|
|
function UIBattleSuccessView:InitGenerate__9(Root, data)
|
|
--[[
|
|
Panel/AwardArea/Group/ExpBase/Text
|
|
--]]
|
|
local tmp = Root:Find("Panel/AwardArea/Group/ExpBase/Text").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.expBase.text = tmp
|
|
|
|
tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
|
|
end
|
|
|
|
---@private
|
|
function UIBattleSuccessView:InitGenerate__10(Root, data)
|
|
--[[
|
|
Panel/AwardArea/Group/Zeny
|
|
--]]
|
|
local tmp = Root:Find("Panel/AwardArea/Group/Zeny").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.zeny = tmp
|
|
end
|
|
|
|
---@private
|
|
function UIBattleSuccessView:InitGenerate__11(Root, data)
|
|
--[[
|
|
Panel/AwardArea/Group/Zeny/Text
|
|
--]]
|
|
local tmp = Root:Find("Panel/AwardArea/Group/Zeny/Text").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.zeny.text = tmp
|
|
|
|
tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
|
|
end
|
|
|
|
---@private
|
|
function UIBattleSuccessView:InitGenerate__12(Root, data)
|
|
--[[
|
|
Panel/AwardArea/Group/ExpParter
|
|
--]]
|
|
local tmp = Root:Find("Panel/AwardArea/Group/ExpParter").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.expParter = tmp
|
|
end
|
|
|
|
---@private
|
|
function UIBattleSuccessView:InitGenerate__13(Root, data)
|
|
--[[
|
|
Panel/AwardArea/Group/ExpParter/Text
|
|
--]]
|
|
local tmp = Root:Find("Panel/AwardArea/Group/ExpParter/Text").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.expParter.text = tmp
|
|
|
|
tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
|
|
end
|
|
|
|
---@private
|
|
function UIBattleSuccessView:InitGenerate__14(Root, data)
|
|
--[[
|
|
Panel/AwardArea/Group/ExpJob
|
|
--]]
|
|
local tmp = Root:Find("Panel/AwardArea/Group/ExpJob").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.expJob = tmp
|
|
end
|
|
|
|
---@private
|
|
function UIBattleSuccessView:InitGenerate__15(Root, data)
|
|
--[[
|
|
Panel/AwardArea/Group/ExpJob/Text
|
|
--]]
|
|
local tmp = Root:Find("Panel/AwardArea/Group/ExpJob/Text").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.expJob.text = tmp
|
|
|
|
tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
|
|
end
|
|
|
|
---@private
|
|
function UIBattleSuccessView:InitGenerate__16(Root, data)
|
|
--[[
|
|
Panel/AwardArea/Group/Coin
|
|
--]]
|
|
local tmp = Root:Find("Panel/AwardArea/Group/Coin").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.coin = tmp
|
|
end
|
|
|
|
---@private
|
|
function UIBattleSuccessView:InitGenerate__17(Root, data)
|
|
--[[
|
|
Panel/AwardArea/Group/Coin/Text
|
|
--]]
|
|
local tmp = Root:Find("Panel/AwardArea/Group/Coin/Text").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.coin.text = tmp
|
|
|
|
tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
|
|
end
|
|
|
|
---@private
|
|
function UIBattleSuccessView:InitGenerate__18(Root, data)
|
|
--[[
|
|
Panel/AwardArea/Group/Drop
|
|
--]]
|
|
local tmp = Root:Find("Panel/AwardArea/Group/Drop").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.drop = tmp
|
|
end
|
|
|
|
---@private
|
|
function UIBattleSuccessView:InitGenerate__19(Root, data)
|
|
--[[
|
|
Panel/AwardArea/Group/Drop/Text
|
|
--]]
|
|
local tmp = Root:Find("Panel/AwardArea/Group/Drop/Text").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.drop.text = tmp
|
|
|
|
tmp.text = tmp:GetComponent(Enum.TypeInfo.Text)
|
|
end
|
|
|
|
---@private
|
|
function UIBattleSuccessView:InitGenerate__20(Root, data)
|
|
--[[
|
|
Panel/Bottom/BackBtn
|
|
--]]
|
|
local tmp = Root:Find("Panel/Bottom/BackBtn").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.backBtn = tmp
|
|
|
|
tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
|
|
end
|
|
|
|
---@private
|
|
function UIBattleSuccessView:InitGenerate__21(Root, data)
|
|
--[[
|
|
Panel/Bottom/btn_autofight
|
|
--]]
|
|
local tmp = Root:Find("Panel/Bottom/btn_autofight").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.btn_autofight = tmp
|
|
|
|
tmp.image = tmp:GetComponent(Enum.TypeInfo.Image)
|
|
|
|
tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
|
|
|
|
tmp.switchSprite = tmp:GetComponent(Enum.TypeInfo.SwitchSprite)
|
|
end
|
|
|
|
---@private
|
|
function UIBattleSuccessView:InitGenerate__22(Root, data)
|
|
--[[
|
|
Panel/Bottom/btn_autofight/text_autofight
|
|
--]]
|
|
local tmp = Root:Find("Panel/Bottom/btn_autofight/text_autofight").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.text_autofight = tmp
|
|
|
|
tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
|
|
end
|
|
|
|
---@private
|
|
function UIBattleSuccessView:InitGenerate__23(Root, data)
|
|
--[[
|
|
Panel/Bottom/btn_autofight/text_autofight_time
|
|
--]]
|
|
local tmp = Root:Find("Panel/Bottom/btn_autofight/text_autofight_time").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.text_autofight_time = tmp
|
|
|
|
tmp.text = tmp:GetComponent(Enum.TypeInfo.TextMeshProUGUI)
|
|
end
|
|
|
|
---@private
|
|
function UIBattleSuccessView:InitGenerate__24(Root, data)
|
|
--[[
|
|
Panel/Bottom/AutoFightingBtn
|
|
--]]
|
|
local tmp = Root:Find("Panel/Bottom/AutoFightingBtn").gameObject
|
|
if tolua.getpeer(tmp) == nil then
|
|
tolua.setpeer(tmp, {})
|
|
end
|
|
self.autoFightingBtn = tmp
|
|
|
|
tmp.button = tmp:GetComponent(Enum.TypeInfo.Button)
|
|
end
|
|
|
|
---@private
|
|
function UIBattleSuccessView:GenerateDestroy()
|
|
if tolua.getpeer(self.drop.text) ~= nil then
|
|
tolua.setpeer(self.drop.text, nil)
|
|
end
|
|
if tolua.getpeer(self.coin.text) ~= nil then
|
|
tolua.setpeer(self.coin.text, nil)
|
|
end
|
|
if tolua.getpeer(self.expJob.text) ~= nil then
|
|
tolua.setpeer(self.expJob.text, nil)
|
|
end
|
|
if tolua.getpeer(self.expParter.text) ~= nil then
|
|
tolua.setpeer(self.expParter.text, nil)
|
|
end
|
|
if tolua.getpeer(self.zeny.text) ~= nil then
|
|
tolua.setpeer(self.zeny.text, nil)
|
|
end
|
|
if tolua.getpeer(self.expBase.text) ~= nil then
|
|
tolua.setpeer(self.expBase.text, nil)
|
|
end
|
|
if tolua.getpeer(self.role1) ~= nil then
|
|
tolua.setpeer(self.role1, nil)
|
|
end
|
|
self.role1 = nil
|
|
if tolua.getpeer(self.role2) ~= nil then
|
|
tolua.setpeer(self.role2, nil)
|
|
end
|
|
self.role2 = nil
|
|
if tolua.getpeer(self.role3) ~= nil then
|
|
tolua.setpeer(self.role3, nil)
|
|
end
|
|
self.role3 = nil
|
|
if tolua.getpeer(self.role4) ~= nil then
|
|
tolua.setpeer(self.role4, nil)
|
|
end
|
|
self.role4 = nil
|
|
if tolua.getpeer(self.btnSendDanmu) ~= nil then
|
|
tolua.setpeer(self.btnSendDanmu, nil)
|
|
end
|
|
self.btnSendDanmu = nil
|
|
if tolua.getpeer(self.awardScrollView) ~= nil then
|
|
tolua.setpeer(self.awardScrollView, nil)
|
|
end
|
|
self.awardScrollView = nil
|
|
if tolua.getpeer(self.awardContent) ~= nil then
|
|
tolua.setpeer(self.awardContent, nil)
|
|
end
|
|
self.awardContent = nil
|
|
if tolua.getpeer(self.expBase) ~= nil then
|
|
tolua.setpeer(self.expBase, nil)
|
|
end
|
|
self.expBase = nil
|
|
if tolua.getpeer(self.zeny) ~= nil then
|
|
tolua.setpeer(self.zeny, nil)
|
|
end
|
|
self.zeny = nil
|
|
if tolua.getpeer(self.expParter) ~= nil then
|
|
tolua.setpeer(self.expParter, nil)
|
|
end
|
|
self.expParter = nil
|
|
if tolua.getpeer(self.expJob) ~= nil then
|
|
tolua.setpeer(self.expJob, nil)
|
|
end
|
|
self.expJob = nil
|
|
if tolua.getpeer(self.coin) ~= nil then
|
|
tolua.setpeer(self.coin, nil)
|
|
end
|
|
self.coin = nil
|
|
if tolua.getpeer(self.drop) ~= nil then
|
|
tolua.setpeer(self.drop, nil)
|
|
end
|
|
self.drop = nil
|
|
if tolua.getpeer(self.backBtn) ~= nil then
|
|
tolua.setpeer(self.backBtn, nil)
|
|
end
|
|
self.backBtn = nil
|
|
if tolua.getpeer(self.btn_autofight) ~= nil then
|
|
tolua.setpeer(self.btn_autofight, nil)
|
|
end
|
|
self.btn_autofight = nil
|
|
if tolua.getpeer(self.text_autofight) ~= nil then
|
|
tolua.setpeer(self.text_autofight, nil)
|
|
end
|
|
self.text_autofight = nil
|
|
if tolua.getpeer(self.text_autofight_time) ~= nil then
|
|
tolua.setpeer(self.text_autofight_time, nil)
|
|
end
|
|
self.text_autofight_time = nil
|
|
if tolua.getpeer(self.autoFightingBtn) ~= nil then
|
|
tolua.setpeer(self.autoFightingBtn, nil)
|
|
end
|
|
self.autoFightingBtn = nil
|
|
self.transform = nil
|
|
self.gameObject = nil
|
|
self.inited = false
|
|
end
|
|
return UIBattleSuccessView |