四灵修改提交
parent
b331cfdac6
commit
4445f509af
|
@ -77,6 +77,7 @@ end
|
|||
|
||||
function FourTrailSingleHelpHero:SetIcon1(heroData,player)
|
||||
local tempData = MonsterCampManager.GetFriendHelpHero(self.curType)
|
||||
self.btn:GetComponent("Button").enabled = true
|
||||
if self.heifhtPower < heroData.warPower then
|
||||
self.select.sprite = Util.LoadSprite("s_silingshilian_zhanliguogao")
|
||||
self.selectText.text = ""
|
||||
|
@ -115,7 +116,6 @@ function FourTrailSingleHelpHero:SetIcon1(heroData,player)
|
|||
else
|
||||
self.select.sprite = Util.LoadSprite("r_hero_button_001")
|
||||
self.selectText.text = "选择神将"
|
||||
self.btn:GetComponent("Button").enabled = true
|
||||
Util.AddOnceClick(self.btn, function()
|
||||
if tempData and tempData.player and tempData.player.state == 0 then
|
||||
PopupTipPanel.ShowTip("已选择其他神将!")
|
||||
|
@ -137,7 +137,9 @@ function FourTrailSingleHelpHero:SetIcon2(heroData)
|
|||
LogGreen(heroData.dynamicId)
|
||||
local tempData = MonsterCampManager.GetMyHelpHero(self.curType)
|
||||
LogGreen(heroData.dynamicId)
|
||||
self.btn:GetComponent("Button").enabled = true
|
||||
if tempData and heroData.dynamicId == tempData.dynamicId then
|
||||
self.btn:GetComponent("Button").enabled = false
|
||||
self.select.sprite = Util.LoadSprite("s_silingshilian_zhiyuanzhong")
|
||||
self.select:SetNativeSize()
|
||||
self.selectText.text = ""
|
||||
|
|
Loading…
Reference in New Issue