【bug】修复领取奖励报错的问题
parent
6f250d9cf8
commit
5fee9ee759
|
@ -1679,6 +1679,9 @@ function GetEquipSuitStr(Star,num)
|
|||
end
|
||||
|
||||
function GetCutOutStr(_str,_num)
|
||||
if not _str then
|
||||
return ""
|
||||
end
|
||||
local str=""
|
||||
if LengthString(_str) > _num + 1 then
|
||||
str=SubString(_str,_num) .. "..."
|
||||
|
|
|
@ -124,7 +124,7 @@ function ItemView:GetRewardShow(_itemData, effectLayer)
|
|||
self.innateImage:SetActive(false)
|
||||
self.iconGo:SetActive(true)
|
||||
self.circleFrameBg:SetActive(false)
|
||||
self.name:GetComponent("Text").text = GetCutOutStr(_itemData.configData.Name,4)
|
||||
self.name:GetComponent("Text").text = GetCutOutStr(_itemData.itemConfig.Name,4)
|
||||
Util.AddParticleSortLayer(self.UI_Effect_Kuang_JinSe, effectLayer - self.EffectOrginLayerQu)
|
||||
Util.AddParticleSortLayer(self.UI_Effect_Kuang_HongSe, effectLayer - self.EffectOrginLayerQu)
|
||||
Util.AddParticleSortLayer(self.UI_Effect_jinkuang_Fang, effectLayer - self.EffectOrginLayerQu)
|
||||
|
|
Loading…
Reference in New Issue