身外化身属性预览界面修改

(cherry picked from commit cf6de3c6e5)
develop_bt_ob2
PC-202302260912\Administrator 2023-07-07 17:48:19 +08:00 committed by wangzhenxing
parent 8a8cf0c0c6
commit 87d1be6c2e
2 changed files with 4858 additions and 3890 deletions

View File

@ -66,26 +66,34 @@ function this.UpdateItemInfo(go,_cardId,star)
maxLevel.text=cardConfig.LevelMax..""
skillDes.text="技能:"..IncarnationManager.GetSkillDesStr(_cardId,star)
local propList={}
for k,v in pairs(maxStarProp) do
if propList[v[1]] then
propList[v[1]]=propList[v[1]]+v[2]
else
propList[v[1]]=v[2]
end
-- for k,v in pairs(maxStarProp) do
-- if propList[v[1]] then
-- propList[v[1]]=propList[v[1]]+v[2]
-- else
-- propList[v[1]]=v[2]
-- end
-- end
-- for k,v in pairs(maxLevelProp) do
-- if propList[v[1]] then
-- propList[v[1]]=propList[v[1]]+v[2]
-- else
-- propList[v[1]]=v[2]
-- end
-- end
propList=IncarnationManager.GetChangeCardPropertyAdd(_cardId,cardConfig.LevelMax,star)
local index=1
LogError("#propList======="..#propList)
for i = 1, 6 do
LogError("i==============="..i)
Util.GetGameObject(go, "propLayout/grid/propText"..i).gameObject:SetActive(false)
end
for k,v in pairs(maxLevelProp) do
if propList[v[1]] then
propList[v[1]]=propList[v[1]]+v[2]
else
propList[v[1]]=v[2]
end
end
local index=0
for k,v in pairs(propList) do
local propText=propGrid.transform:GetChild(index):GetComponent("Text")
local propText= Util.GetGameObject(go, "propLayout/grid/propText"..index):GetComponent("Text") --propGrid.transform:GetChild(index):GetComponent("Text")
propText.text = PropertyConfig[k].Info.."+"..GetPropertyFormatStrOne(PropertyConfig[k].Style,v)
propText.gameObject:SetActive(true)
index=index+1
end
end