四灵 修改
parent
955bd044f1
commit
d3e6de38bb
|
@ -42,6 +42,7 @@ function this:InitComponent(gameObject)
|
|||
this.fightBtn.gameObject:SetActive(true)
|
||||
this.returnLook=Util.GetGameObject(gameObject,"returnLook")
|
||||
this.returnLook.gameObject:SetActive(true)
|
||||
this.tip = Util.GetGameObject(gameObject,"tip"):GetComponent("Text")
|
||||
end
|
||||
|
||||
function this:BindEvent()
|
||||
|
@ -118,6 +119,7 @@ function this:SetIcon()
|
|||
this.fightBtnNum.gameObject:SetActive(false)
|
||||
this.sureBtn:GetComponent("Image").sprite = Util.LoadSprite("r_hero_button_002")
|
||||
if waveId == data.monsterWave then
|
||||
this.tip.text = "扫荡奖励"
|
||||
if freeTime > 0 then
|
||||
this.fightBtnText.text = string.format("<color=#%s>%s</color>","17232A","免费扫荡")
|
||||
else
|
||||
|
@ -137,9 +139,11 @@ function this:SetIcon()
|
|||
end
|
||||
end
|
||||
elseif (waveId == data.monsterWave + 1) then
|
||||
this.tip.text = "战斗奖励"
|
||||
this.sureBtn:GetComponent("Image").sprite = Util.LoadSprite("r_hero_button_001")
|
||||
this.fightBtnText.text = string.format("<color=#%s>%s</color>","17232A","挑 战")
|
||||
else
|
||||
this.tip.text = "战斗奖励"
|
||||
this.fightBtnText.text =string.format("<color=#%s>%s</color>","17232A","确定")
|
||||
end
|
||||
end
|
||||
|
|
|
@ -5,6 +5,7 @@ local orginLayer
|
|||
local monsterGroup = ConfigManager.GetConfig(ConfigName.MonsterGroup)
|
||||
local monsterConfig = ConfigManager.GetConfig(ConfigName.MonsterConfig)
|
||||
local attriConfig = ConfigManager.GetConfigDataByKey(ConfigName.GodHoodTreeSetting,"Id",0)
|
||||
local campTowerSetting = ConfigManager.GetConfigDataByKey(ConfigName.CampTowerSetting,"Id",1)
|
||||
local trails = {}
|
||||
local redTrailType = {
|
||||
[1] = RedPointType.PersonTrail,
|
||||
|
@ -128,7 +129,12 @@ function MonsterCampMainPanel:SetSingleTrailData(go,data)
|
|||
local openTime = Util.GetGameObject(go, "openTime"):GetComponent("Text")
|
||||
title.sprite = Util.LoadSprite(FourElementNameImage[data.fourElementType])
|
||||
curwave.text = (data.monsterWave + 1).."层"
|
||||
canFightWave.text = "可挑战层数:"..data.canFightTime
|
||||
if data.canFightTime >= campTowerSetting.TimesStoreMax then
|
||||
canFightWave.text = string.format("可挑战层数:<color = #%s>%s</color>","FFD695",data.canFightTime)
|
||||
else
|
||||
canFightWave.text = string.format("可挑战层数:<color = #%s>%s</color>","FFEED3",data.canFightTime)
|
||||
end
|
||||
|
||||
openTime.text = this:GetOpenTime(data.fourElementType).."开启"
|
||||
Util.SetGray(go, data.openState == 0)
|
||||
Util.AddOnceClick(go,function()
|
||||
|
|
Loading…
Reference in New Issue