【功能】====装备合成添加特效
parent
f16bb7ed8e
commit
70ebab2fe1
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -8353,8 +8353,8 @@ local passivityList = {
|
|||
end
|
||||
role.Event:AddEvent(BattleEventName.RoleTurnStart,onRoleTurnStart,nil,nil,role)
|
||||
end,
|
||||
--直接伤害击杀目标溢出伤害的[a]%将对生命百分比[b]的目标造成伤害
|
||||
-- a[float]
|
||||
--直接伤害击杀目标溢出伤害的[a]%将对当前生命绝对值[b]的目标造成伤害
|
||||
-- a[float],b[int]
|
||||
[353]=function(role,args,id,judge)
|
||||
local f1 = args[1]
|
||||
local type = args[2] or 0
|
||||
|
|
|
@ -28,6 +28,7 @@ local bagPosEquips = {}
|
|||
local needGoldNum = 0
|
||||
local needOtherNum=0
|
||||
local otherId=1258
|
||||
local allGo = {}
|
||||
function this:InitComponent(gameObject)
|
||||
this.spLoader = SpriteLoader.New()
|
||||
this.tabBox = Util.GetGameObject(gameObject, "CompoundPanel_Equip/TabBox")
|
||||
|
@ -107,6 +108,9 @@ end
|
|||
local sortingOrder = 0
|
||||
function this:OnSortingOrderChange(_sortingOrder)
|
||||
sortingOrder = _sortingOrder
|
||||
for i, v in pairs(allGo) do
|
||||
Util.AddParticleSortLayer(v, _sortingOrder - sortingOrder )
|
||||
end
|
||||
end
|
||||
function this.OnClickTabBtn(_curIndex)
|
||||
curIndex = _curIndex
|
||||
|
@ -205,6 +209,8 @@ function this.ShowTitleEquipData(_go,_itemData,curEquipStarsConfig)
|
|||
Util.GetGameObject(_go.transform,"frame"):GetComponent("Image").sprite=this.spLoader:LoadSprite(GetQuantityImageByquality(curEquipStarsConfig.Quality))
|
||||
Util.GetGameObject(_go.transform,"icon"):GetComponent("Image").sprite=this.spLoader:LoadSprite(GetResourcePath(itemConfig[_itemData.Id].ResourceID))
|
||||
Util.GetGameObject(_go.transform,"name"):GetComponent("Text").text = GetLanguageStrById(itemConfig[_itemData.Id].Name)
|
||||
local effect=Util.GetGameObject(_go.transform,"UI_effect_WuCai_Kuang")
|
||||
effect:SetActive(curEquipStarsConfig.Quality>=7)
|
||||
--Util.GetGameObject(_go.transform,"name"):GetComponent("Text").text=_itemData.Name
|
||||
SetHeroStars(this.spLoader, Util.GetGameObject(_go.transform, "star"), curEquipStarsConfig.Stars,1,nil,-15)
|
||||
Util.AddClick(Util.GetGameObject(_go.transform,"icon"), function()
|
||||
|
@ -217,9 +223,14 @@ function this.ShowTitleEquipData(_go,_itemData,curEquipStarsConfig)
|
|||
end
|
||||
|
||||
function this.SingleItemDataShow(_go,_itemData,curEquipStarsConfig)
|
||||
if not allGo[_go] then
|
||||
allGo[_go] = _go
|
||||
Util.AddParticleSortLayer(_go, sortingOrder)
|
||||
end
|
||||
Util.GetGameObject(_go.transform,"frame"):GetComponent("Image").sprite=this.spLoader:LoadSprite(GetQuantityImageByquality(curEquipStarsConfig.Quality))
|
||||
Util.GetGameObject(_go.transform,"icon"):GetComponent("Image").sprite=this.spLoader:LoadSprite(GetResourcePath(itemConfig[_itemData.Id].ResourceID))
|
||||
Util.GetGameObject(_go.transform,"name"):GetComponent("Text").text=SubString2(GetLanguageStrById(_itemData.Name),8)
|
||||
Util.GetGameObject(_go.transform,"UI_effect_WuCai_Kuang"):SetActive(curEquipStarsConfig.Quality>=7)
|
||||
SetHeroStars(this.spLoader, Util.GetGameObject(_go.transform, "star"), curEquipStarsConfig.Stars,1,nil,-15)
|
||||
local choosed =Util.GetGameObject(_go.transform, "choosed")
|
||||
choosed:SetActive(curSelectEquip.Id == _itemData .Id)
|
||||
|
@ -416,6 +427,7 @@ end
|
|||
function this:OnDestroy()
|
||||
this.spLoader:Destroy()
|
||||
needGoldNum=0
|
||||
allGo = {}
|
||||
end
|
||||
|
||||
return this
|
||||
|
|
|
@ -47,7 +47,7 @@ function RoleEquipChangePopup:InitComponent()
|
|||
this.equipPanel[i].powerUPorDown1=Util.GetGameObject(this.equipPanel[i].equipInfo,"powerUPorDown")
|
||||
this.equipPanel[i].bg1Star=Util.GetGameObject(this.equipPanel[i].equipInfo,"star")
|
||||
this.equipPanel[i].proGrid = Util.GetGameObject(this.equipPanel[i].equipInfo,"proGrid")
|
||||
|
||||
this.equipPanel[i].effect = Util.GetGameObject(this.equipPanel[i].equipInfo,"UI_effect_WuCai_Kuang")
|
||||
this.equipPanel[i].curEquipTypeText=Util.GetGameObject(this.equipPanel[i].proGrid,"equipTypeText"):GetComponent("Text")
|
||||
this.equipPanel[i].curEquipLvText=Util.GetGameObject(this.equipPanel[i].proGrid,"equipLvText")
|
||||
this.equipPanel[i].curEquipLvText:SetActive(false)
|
||||
|
@ -217,7 +217,7 @@ function this.SetEquipData(index,data,equipConfigData,itemConfigData)
|
|||
this.equipPanel[index].powerNum1.text=EquipManager.CalculateWarForce(data.id)
|
||||
EquipManager.SetEquipStarShow(this.spLoader, this.equipPanel[index].bg1Star,data.id)
|
||||
this.equipPanel[index].desc.text= GetLanguageStrById(itemConfigData.ItemDescribe)
|
||||
|
||||
this.equipPanel[index].effect:SetActive(equipConfigData.Quality>=7)
|
||||
this.equipPanel[index].qualityText.text= GetStringByEquipQua(equipConfigData.Quality,GetQuaStringByEquipQua(equipConfigData.Quality))
|
||||
this.equipPanel[index].curEquipName.text=GetStringByEquipQua(equipConfigData.Quality,GetLanguageStrById(equipConfigData.Name))
|
||||
this.equipPanel[index].curEquipFrame.sprite = this.spLoader:LoadSprite(GetQuantityImageByquality(equipConfigData.Quality))
|
||||
|
|
Loading…
Reference in New Issue