变身卡无法升星修改,法宝超过10级显示修改

dev_fengTi_And
wangzhenxing 2023-08-02 14:46:18 +08:00
parent 073d87eda7
commit c32b71d3fc
4 changed files with 7 additions and 6 deletions

View File

@ -1532,8 +1532,8 @@ Language = {
[11531] = GetLanguageStrById("徐风细清辉,明日望君归"),
[11532] = GetLanguageStrById("%s【+%s激活】"),
[11533] = GetLanguageStrById("已激活"),
[11534] = GetLanguageStrById("<color=#D89623><size=40>【+%s激活】</size></color>\n %s%s%s"),
[11535] = GetLanguageStrById("<color=#D89623><size=40>【+%s激活】</size></color>\n%s%s"),
[11534] = GetLanguageStrById("<color=#66FF00><size=40>【+%s激活】</size></color>\n %s%s"),
[11535] = GetLanguageStrById("<color=#D89623><size=40>【+%s激活】</size></color>\n %s%s"),
[11536] = GetLanguageStrById("<color=#D89623><size=40>[特性]</size></color>"),
[11537] = GetLanguageStrById("是否消耗<color=#0BE102>%s</color>%s购买一次挑战次数"),
[11538] = GetLanguageStrById("装备出售"),

View File

@ -9,7 +9,7 @@ local curLevel
local PropertyConfig = ConfigManager.GetConfig(ConfigName.PropertyConfig)
local curSelectMat={}
local starConfig=nil
local costEnough=false
local costEnough=true
function this:InitComponent()
this.spLoader = SpriteLoader.New()
this.mask = Util.GetGameObject(self.gameObject, "mask")

View File

@ -156,7 +156,7 @@ function this.Show()
for n=1,#dowerData do
if dowerData[n].Level<=50 then
if curLv>=dowerData[n].Level then
strTable[n]= string.format( Language[11534], "<color=#66FF00>",dowerData[n].Level,GetLanguageStrById(passiveSkillConfig[dowerData[n].OpenSkillRules[1]].Desc),"</color>\n")
strTable[n]= string.format( Language[11534], dowerData[n].Level,GetLanguageStrById(passiveSkillConfig[dowerData[n].OpenSkillRules[1]].Desc),"\n")
else
strTable[n]=string.format( Language[11535],dowerData[n].Level,GetLanguageStrById(passiveSkillConfig[dowerData[n].OpenSkillRules[1]].Desc),"\n")
end

View File

@ -263,9 +263,9 @@ function this.OnShowHeroAndTalisman()
for n=1,#dowerData do
if dowerData[n].Level<=maxLv then
if curLv>=dowerData[n].Level then --如果已激活 显示绿色
strTable[n]= string.format( Language[11534], "<color=#66FF00>",dowerData[n].Level,GetLanguageStrById(passiveSkillConfig[dowerData[n].OpenSkillRules[1]].Desc),"</color>\n")
strTable[n]= string.format(Language[11534], dowerData[n].Level,GetLanguageStrById(passiveSkillConfig[dowerData[n].OpenSkillRules[1]].Desc),"\n")
else --否则就正常显示
strTable[n]=string.format( Language[11535], dowerData[n].Level,GetLanguageStrById(passiveSkillConfig[dowerData[n].OpenSkillRules[1]].Desc),"\n")
strTable[n]=string.format(Language[11535], dowerData[n].Level,GetLanguageStrById(passiveSkillConfig[dowerData[n].OpenSkillRules[1]].Desc),"\n")
end
if dowerData[n].Level==30 or dowerData[n].Level==50 then --特性显示
strTable[n]=string.gsub(strTable[n],"·","")
@ -276,6 +276,7 @@ function this.OnShowHeroAndTalisman()
end
local str=string.sub(table.concat(strTable),1,-2)--将表里字符串拼接 --去除最后\n
LogError("str====="..str)
this.dowerText.text=str
end
function this.RefrehsHeroAndTalisman()