好感度位置修改
parent
af63daaeaf
commit
75049d619c
|
@ -82,7 +82,7 @@ function HeroLikeAbilityPanel:OnPointerDown1(go, data)
|
|||
self.num = 0
|
||||
self.numCount = 0
|
||||
if LikabilityManager.CheckIsMaxLv(curHeroData.Id) then
|
||||
PopupTipPanel.ShowTip("神将好感度最达最佳,无需更多赠予~")
|
||||
PopupTipPanel.ShowTip("神将好感度已达最佳,无需更多赠予~")
|
||||
return
|
||||
end
|
||||
if LikabilityManager.GetRemainTimes() < 1 then
|
||||
|
|
|
@ -422,7 +422,7 @@ function this.SetProvalue(prolist,proType,tag,nextLv,indexType,_color)
|
|||
local str1 = ""
|
||||
if proType == 1 then
|
||||
str1 = PropertyConfig[k].Info..string.format(" <color=#%s>+%s</color>",_color,GetPropertyFormatStrOne(PropertyConfig[k].Style, v) )
|
||||
if nextLv and list[nextLv] then
|
||||
if nextLv and not this.CheckIsMaxLv2(indexType,nextLv) then
|
||||
local pro1 = LikabilityManager.GetProData(indexType,nextLv,nextLv)
|
||||
if pro1[k] and pro1[k] > 0 then
|
||||
str1 = str1.." "..string.format("<color=#%s>(下级额外 +%s)</color>",color1,pro1[k])
|
||||
|
@ -440,4 +440,19 @@ function this.SetProvalue(prolist,proType,tag,nextLv,indexType,_color)
|
|||
return str
|
||||
end
|
||||
|
||||
function this.CheckIsMaxLv2(indexType,nextLv)
|
||||
local list = {}
|
||||
if indexType == 1 then
|
||||
list = this.TotalLvList
|
||||
else
|
||||
list = this.HeroLvList
|
||||
end
|
||||
for i = 1,#list do
|
||||
if list[i].lv == nextLv then
|
||||
return false
|
||||
end
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
return this
|
|
@ -4,7 +4,7 @@ LikeAbilityPanel = Inherit(BasePanel)
|
|||
--<size=32><color=#fc902c>特权</color></size>--橙色
|
||||
--<size=32><color=#fed97f>总好感度属性:</color></size> --黄色
|
||||
--<color=#5dc446>+500</color></size> --绿色
|
||||
|
||||
local pos = {["h_haogandu_1"] = Vector3.zero,["h_haogandu_2"] = Vector3.zero,["h_haogandu_3"] = Vector3.New(-16.15,0,0) }
|
||||
local sortOrder = 0
|
||||
local tabs = {}
|
||||
local tabsImg = {"z_icon_01_zh", "r_hero_huo 1_zh", "r_hero_feng 1_zh", "r_hero_shui 1_zh", "r_hero_dadi 1_zh"}
|
||||
|
@ -100,6 +100,7 @@ function LikeAbilityPanel:UpdateTopLayoutPanel()
|
|||
local num,lv,totalNum = LikabilityManager.GetTotalHeroLikeLv(-1)
|
||||
local config = ConfigManager.GetConfigDataByDoubleKey(ConfigName.LikeAbility,"Type",1,"Level",lv)
|
||||
self.likeabilityDi.sprite = self.spLoader:LoadSprite(config.Bg)
|
||||
self.likeabilitymask.transform.localPosition = pos[config.Bg]
|
||||
self.lv.text = lv
|
||||
if LikabilityManager.CheckIsMaxLv(-1) then
|
||||
self.likeabilitymask.fillAmount = 1
|
||||
|
|
Loading…
Reference in New Issue