parent
8a8cf0c0c6
commit
87d1be6c2e
File diff suppressed because it is too large
Load Diff
|
|
@ -66,26 +66,34 @@ function this.UpdateItemInfo(go,_cardId,star)
|
||||||
maxLevel.text=cardConfig.LevelMax.."级"
|
maxLevel.text=cardConfig.LevelMax.."级"
|
||||||
skillDes.text="技能:"..IncarnationManager.GetSkillDesStr(_cardId,star)
|
skillDes.text="技能:"..IncarnationManager.GetSkillDesStr(_cardId,star)
|
||||||
local propList={}
|
local propList={}
|
||||||
for k,v in pairs(maxStarProp) do
|
-- for k,v in pairs(maxStarProp) do
|
||||||
if propList[v[1]] then
|
-- if propList[v[1]] then
|
||||||
propList[v[1]]=propList[v[1]]+v[2]
|
-- propList[v[1]]=propList[v[1]]+v[2]
|
||||||
else
|
-- else
|
||||||
propList[v[1]]=v[2]
|
-- propList[v[1]]=v[2]
|
||||||
end
|
-- 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
|
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
|
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.text = PropertyConfig[k].Info.."+"..GetPropertyFormatStrOne(PropertyConfig[k].Style,v)
|
||||||
|
propText.gameObject:SetActive(true)
|
||||||
index=index+1
|
index=index+1
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue