[装备合成]=======装备详情显示修改
parent
c68de7d7a8
commit
1cc17d4e4b
File diff suppressed because it is too large
Load Diff
|
@ -247,8 +247,8 @@ QualityNameDef = {
|
|||
[4] = Language[10178],
|
||||
[5] = Language[10176], --原橙色改为金色
|
||||
[6] = Language[10177],
|
||||
[7] = "白金",
|
||||
[8] = "蓝白",
|
||||
[7] = "贪狼",
|
||||
[8] = "九宵",
|
||||
}
|
||||
|
||||
--装备类型描述定义
|
||||
|
|
|
@ -1483,6 +1483,8 @@ function GetQuaStringByEquipQua(_Qua)
|
|||
return Language[12051]
|
||||
elseif _Qua == 7 then
|
||||
return Language[12052]
|
||||
elseif _Qua == 8 then
|
||||
return Language[12052]
|
||||
end
|
||||
end
|
||||
--通过item稀有度获取改颜色的文字
|
||||
|
@ -1501,6 +1503,8 @@ function GetStringByEquipQua(_Qua, _Str)
|
|||
return string.format("<color=#C66366FF>%s</color>", _Str)
|
||||
elseif _Qua == 7 then
|
||||
return string.format("<color=#FFEDA1FF>%s</color>", _Str)
|
||||
elseif _Qua == 8 then
|
||||
return string.format("<color=#FFEDA1FF>%s</color>", _Str)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -23,6 +23,8 @@ function RewardEquipSingleShowPopup2:InitComponent()
|
|||
--装备详情--topBar
|
||||
self.topBar = Util.GetGameObject(self.transform, "Content/topBar")
|
||||
self.eqiopName = Util.GetGameObject(self.topBar, "name"):GetComponent("Text")
|
||||
self.UI_effect_WuCai_Kuang = Util.GetGameObject(self.topBar, "UI_effect_WuCai_Kuang")
|
||||
self.c_ui_qinyan_duan = Util.GetGameObject(self.topBar, "c_ui_qinyan_duan")
|
||||
self.icon = Util.GetGameObject(self.topBar, "icon"):GetComponent("Image")
|
||||
self.frame = Util.GetGameObject(self.topBar, "frame"):GetComponent("Image")
|
||||
self.equipType=Util.GetGameObject(self.topBar, "equipType"):GetComponent("Text")
|
||||
|
@ -200,6 +202,8 @@ end
|
|||
|
||||
function RewardEquipSingleShowPopup2:OnSortingOrderChange()
|
||||
Util.SetParticleSortLayer(self.effectbaijin,self.sortingOrder + 1)
|
||||
SetParticleSortLayer(self.c_ui_qinyan_duan,self.sortingOrder + 1)
|
||||
SetParticleSortLayer(self.UI_effect_WuCai_Kuang,self.sortingOrder + 1)
|
||||
end
|
||||
|
||||
--界面打开时调用(用于子类重写)
|
||||
|
@ -239,11 +243,13 @@ function RewardEquipSingleShowPopup2:OnShow()
|
|||
local itemConfigData=ConfigManager.GetConfigData(ConfigName.ItemConfig, tonumber(self.equipData.id))
|
||||
local aaa=equipConfigData.Quality
|
||||
if equipConfigData.Quality==8 then
|
||||
aaa=7
|
||||
aaa=7
|
||||
end
|
||||
self.topBar:GetComponent("Image").sprite = self.spLoader:LoadSprite("t_tongyong_di_"..aaa)
|
||||
self.equipQuaText.text=GetStringByEquipQua(equipConfigData.Quality,GetQuaStringByEquipQua(equipConfigData.Quality))
|
||||
self.eqiopName.text=GetStringByEquipQua(equipConfigData.Quality,GetLanguageStrById(equipConfigData.Name))
|
||||
self.c_ui_qinyan_duan:SetActive(equipConfigData.Quality==8)
|
||||
self.UI_effect_WuCai_Kuang:SetActive(equipConfigData.Quality==7)
|
||||
self.frame.sprite = self.spLoader:LoadSprite(GetQuantityImageByquality(equipConfigData.Quality))
|
||||
self.icon.sprite = self.spLoader:LoadSprite(GetResourcePath(itemConfigData.ResourceID))
|
||||
self.equipInfoText.text=GetLanguageStrById(itemConfigData.ItemDescribe)
|
||||
|
@ -321,6 +327,10 @@ function RewardEquipSingleShowPopup2:OnShow()
|
|||
else
|
||||
vText.text = GetPropertyFormatStr(proConfigData.Style, prop[2]).."<color=#00ff00>(提升至白金装备解锁)</color"
|
||||
end
|
||||
|
||||
if num==2 then
|
||||
_BaseProList[num]:SetActive(false)
|
||||
end
|
||||
end
|
||||
end
|
||||
else
|
||||
|
@ -405,7 +415,12 @@ function RewardEquipSingleShowPopup2:OnShow()
|
|||
if not _superProList[num] then
|
||||
_superProList[num] = newObjToParent(self.superProPre, self.superProGrid)
|
||||
end
|
||||
_superProList[num].gameObject:SetActive(true)
|
||||
if num==1 then
|
||||
_superProList[num].gameObject:SetActive(false)
|
||||
else
|
||||
_superProList[num].gameObject:SetActive(true)
|
||||
end
|
||||
|
||||
local name = Util.GetGameObject( _superProList[num], "Name"):GetComponent("Text")
|
||||
local value = Util.GetGameObject( _superProList[num], "Name/vale"):GetComponent("Text")
|
||||
name.text = "<color=#00ff00>不朽天赋:(提升至白金装备解锁)</color>"
|
||||
|
|
Loading…
Reference in New Issue