【背包碎片合成】======添加好感度碎片
parent
5120ccdf8c
commit
a37d9fb93a
|
@ -134,7 +134,8 @@ function BagResolveAnCompoundPanel:BindEvent()
|
||||||
end)
|
end)
|
||||||
Util.AddClick(this.btnCompound, function()
|
Util.AddClick(this.btnCompound, function()
|
||||||
if itemData.itemConfig.ItemType==ItemType.HeroDebris
|
if itemData.itemConfig.ItemType==ItemType.HeroDebris
|
||||||
or itemData.itemConfig.ItemType==ItemType.ZuoQiChip then--碎片
|
or itemData.itemConfig.ItemType==ItemType.ZuoQiChip
|
||||||
|
or itemData.itemConfig.ItemType==ItemType.likeabilityItemChip then--碎片
|
||||||
if compoundNum>0 then
|
if compoundNum>0 then
|
||||||
local item={}
|
local item={}
|
||||||
item.itemId=itemData.id
|
item.itemId=itemData.id
|
||||||
|
@ -303,7 +304,9 @@ function this.OnShowLayout3Data()
|
||||||
this.propertyIma:SetActive(false)
|
this.propertyIma:SetActive(false)
|
||||||
local gameSetting = ConfigManager.GetConfigData(ConfigName.GameSetting, 1)
|
local gameSetting = ConfigManager.GetConfigData(ConfigName.GameSetting, 1)
|
||||||
if itemData.itemConfig.ItemType==ItemType.HeroDebris
|
if itemData.itemConfig.ItemType==ItemType.HeroDebris
|
||||||
or itemData.itemConfig.ItemType==ItemType.ZuoQiChip then--碎片
|
or itemData.itemConfig.ItemType==ItemType.ZuoQiChip
|
||||||
|
or itemData.itemConfig.ItemType==ItemType.likeabilityItemChip
|
||||||
|
then--碎片
|
||||||
this.chipFrame:SetActive(true)
|
this.chipFrame:SetActive(true)
|
||||||
this.chipFrame:GetComponent("Image").sprite = this.spLoader:LoadSprite(GetHeroChipQuantityImageByquality(itemData.itemConfig.Quantity))
|
this.chipFrame:GetComponent("Image").sprite = this.spLoader:LoadSprite(GetHeroChipQuantityImageByquality(itemData.itemConfig.Quantity))
|
||||||
if itemData.itemConfig.PropertyName and itemData.itemConfig.PropertyName > 0 then
|
if itemData.itemConfig.PropertyName and itemData.itemConfig.PropertyName > 0 then
|
||||||
|
@ -317,7 +320,7 @@ function this.OnShowLayout3Data()
|
||||||
this.btnCompoundText.text=Language[10193]
|
this.btnCompoundText.text=Language[10193]
|
||||||
local maxCompoundValue = math.floor(itemData.num/itemData.itemConfig.UsePerCount)
|
local maxCompoundValue = math.floor(itemData.num/itemData.itemConfig.UsePerCount)
|
||||||
--
|
--
|
||||||
if itemData.itemConfig.ItemType==ItemType.HeroDebris then -- 神将碎片
|
if itemData.itemConfig.ItemType==ItemType.HeroDebris or itemData.itemConfig.ItemType==ItemType.likeabilityItemChip then -- 神将碎片
|
||||||
compoundMaxNum = math.min(maxCompoundValue, gameSetting.HeroCompoundLimit, gameSetting.HeroNumlimit-LengthOfTable(HeroManager.GetAllHeroDatas()))
|
compoundMaxNum = math.min(maxCompoundValue, gameSetting.HeroCompoundLimit, gameSetting.HeroNumlimit-LengthOfTable(HeroManager.GetAllHeroDatas()))
|
||||||
elseif itemData.itemConfig.ItemType==ItemType.ZuoQiChip then -- 坐骑碎片
|
elseif itemData.itemConfig.ItemType==ItemType.ZuoQiChip then -- 坐骑碎片
|
||||||
compoundMaxNum = math.min(maxCompoundValue, gameSetting.HeroCompoundLimit)
|
compoundMaxNum = math.min(maxCompoundValue, gameSetting.HeroCompoundLimit)
|
||||||
|
@ -449,6 +452,7 @@ function this.SendBackResolveReCallBack(drop)
|
||||||
end
|
end
|
||||||
function this.SendBackCompoundReCallBack(drop)
|
function this.SendBackCompoundReCallBack(drop)
|
||||||
this:ClosePanel()
|
this:ClosePanel()
|
||||||
|
LogError("#drop=="..#drop)
|
||||||
UIManager.OpenPanel(UIName.RewardItemPopup,drop,1,function ()
|
UIManager.OpenPanel(UIName.RewardItemPopup,drop,1,function ()
|
||||||
--UIManager.OpenPanel(UIName.BagPanel)
|
--UIManager.OpenPanel(UIName.BagPanel)
|
||||||
if callBackFun then
|
if callBackFun then
|
||||||
|
@ -465,7 +469,8 @@ function this.ShowCompoundNumData(value)
|
||||||
this.Slider:GetComponent("Slider").value=value
|
this.Slider:GetComponent("Slider").value=value
|
||||||
this.numText1.text = value
|
this.numText1.text = value
|
||||||
if itemData.itemConfig.ItemType==ItemType.HeroDebris
|
if itemData.itemConfig.ItemType==ItemType.HeroDebris
|
||||||
or itemData.itemConfig.ItemType==ItemType.ZuoQiChip then--碎片
|
or itemData.itemConfig.ItemType==ItemType.ZuoQiChip
|
||||||
|
or itemData.itemConfig.ItemType==ItemType.likeabilityItemChip then--碎片
|
||||||
this.numText.text= Language[10198]..value*itemData.itemConfig.UsePerCount..Language[10199]..value..Language[10200].. string.gsub(GetLanguageStrById(itemData.itemConfig.Name),Language[10201],"")
|
this.numText.text= Language[10198]..value*itemData.itemConfig.UsePerCount..Language[10199]..value..Language[10200].. string.gsub(GetLanguageStrById(itemData.itemConfig.Name),Language[10201],"")
|
||||||
elseif itemData.itemConfig.ItemType==ItemType.Box then--宝箱
|
elseif itemData.itemConfig.ItemType==ItemType.Box then--宝箱
|
||||||
this.numText.text= Language[10202]..value..Language[10200]..GetLanguageStrById(itemData.itemConfig.Name).."。"
|
this.numText.text= Language[10202]..value..Language[10200]..GetLanguageStrById(itemData.itemConfig.Name).."。"
|
||||||
|
|
Loading…
Reference in New Issue