跨服战界面膜拜按钮调整

dev_chengFeng
yuanshuai 2022-04-28 16:49:18 +08:00
parent 99ae5cb8ec
commit e8efc2e7e6
1 changed files with 6 additions and 0 deletions

View File

@ -266,6 +266,12 @@ function this.ShowSingleData(go,data,i)
Util.GetGameObject(go, "sdBtn/Text"):SetActive(not data.hadProud) Util.GetGameObject(go, "sdBtn/Text"):SetActive(not data.hadProud)
Util.GetGameObject(go, "sdBtn/dianzanImage/Text"):GetComponent("Text").text = data.worshipTime Util.GetGameObject(go, "sdBtn/dianzanImage/Text"):GetComponent("Text").text = data.worshipTime
dianzanImage:SetActive(data.hadProud) dianzanImage:SetActive(data.hadProud)
if data.hadProud then
sdBtn:GetComponent("Image").sprite = this.spLoader:LoadSprite("r_hero_button_001")
else
sdBtn:GetComponent("Image").sprite = this.spLoader:LoadSprite("f_feishengshi_huanganniu")
end
Util.AddOnceClick(sdBtn,function() Util.AddOnceClick(sdBtn,function()
if not data.hadProud then if not data.hadProud then