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