多对塔名称修改

tcx_xiyou_solider
PC-202302260912\Administrator 2024-04-25 20:51:54 +08:00
parent a9d417cb4c
commit 704a9b44c6
1 changed files with 3 additions and 1 deletions

View File

@ -37,7 +37,7 @@ end
function GodsWayListPanel:OnOpen()
self.UpView:OnOpen({showType = UpViewOpenType.ShowLeft, panelType = PanelType.Main})
end
local nameList={"双队试炼","三队试炼"}
--界面打开时调用(用于子类重写)
function GodsWayListPanel:OnShow(...)
local dataList=GodsWayTowerManager.GetTowerData()
@ -48,12 +48,14 @@ function GodsWayListPanel:OnShow(...)
local rankTxt=Util.GetGameObject(self.itemList[i], "rankTxt"):GetComponent("Text")
local freeTxt=Util.GetGameObject(self.itemList[i], "sweepTxt"):GetComponent("Text")
local buyTxt=Util.GetGameObject(self.itemList[i], "buyTxt"):GetComponent("Text")
local nameTxt=Util.GetGameObject(self.itemList[i], "nameImg"):GetComponent("Text")
local btn=Util.GetGameObject(self.itemList[i], "btn")
local redpoint=Util.GetGameObject(self.itemList[i], "redPoint")
local config=ConfigManager.GetConfigData(ConfigName.DuoDuiTowerConfig,i)
local freeTime,buyTime=GodsWayTowerManager.GetTimeTip(i)
freeTxt.text="今日可扫荡次数:"..freeTime
buyTxt.text="今日可购买扫荡次数:"..buyTime
nameTxt.text=nameList[i]
redpoint:SetActive(freeTime>0 and CheckFunctionOpen(138+i) )
if data then
if data.floor<=0 then