[背包]====直冲卡添加使用
parent
efe732d91d
commit
f1c0a2fcd8
|
|
@ -1119,6 +1119,7 @@ ItemType = {
|
||||||
EquipChip = 36, --装备碎片
|
EquipChip = 36, --装备碎片
|
||||||
GMzck =42, --gm直冲卡
|
GMzck =42, --gm直冲卡
|
||||||
GMzcq=43,--gm真充卡
|
GMzcq=43,--gm真充卡
|
||||||
|
GMBigZck =49, --gm直冲卡
|
||||||
CommonChip=50,--通用碎片
|
CommonChip=50,--通用碎片
|
||||||
}
|
}
|
||||||
JumpType = {
|
JumpType = {
|
||||||
|
|
|
||||||
|
|
@ -112,6 +112,7 @@ function BagResolveAnCompoundPanel:BindEvent()
|
||||||
Util.AddClick(this.addBtn, function()
|
Util.AddClick(this.addBtn, function()
|
||||||
if itemData.itemConfig.ItemType == ItemType.Box
|
if itemData.itemConfig.ItemType == ItemType.Box
|
||||||
or itemData.itemConfig.ItemType == ItemType.GMzck
|
or itemData.itemConfig.ItemType == ItemType.GMzck
|
||||||
|
or itemData.itemConfig.ItemType == ItemType.GMBigZck
|
||||||
or itemData.itemConfig.ItemType == ItemType.GMzcq then--宝箱
|
or itemData.itemConfig.ItemType == ItemType.GMzcq then--宝箱
|
||||||
if compoundNum<compoundMaxNum then
|
if compoundNum<compoundMaxNum then
|
||||||
compoundNum=compoundNum+1
|
compoundNum=compoundNum+1
|
||||||
|
|
@ -153,6 +154,7 @@ function BagResolveAnCompoundPanel:BindEvent()
|
||||||
end
|
end
|
||||||
elseif itemData.itemConfig.ItemType==ItemType.Box
|
elseif itemData.itemConfig.ItemType==ItemType.Box
|
||||||
or itemData.itemConfig.ItemType == ItemType.GMzck
|
or itemData.itemConfig.ItemType == ItemType.GMzck
|
||||||
|
or itemData.itemConfig.ItemType == ItemType.GMBigZck
|
||||||
or itemData.itemConfig.ItemType == ItemType.GMzcq then
|
or itemData.itemConfig.ItemType == ItemType.GMzcq then
|
||||||
if compoundNum>0 then
|
if compoundNum>0 then
|
||||||
local item={}
|
local item={}
|
||||||
|
|
@ -344,6 +346,7 @@ function this.OnShowLayout3Data()
|
||||||
|
|
||||||
elseif itemData.itemConfig.ItemType==ItemType.Box
|
elseif itemData.itemConfig.ItemType==ItemType.Box
|
||||||
or itemData.itemConfig.ItemType == ItemType.GMzck
|
or itemData.itemConfig.ItemType == ItemType.GMzck
|
||||||
|
or itemData.itemConfig.ItemType == ItemType.GMBigZck
|
||||||
or itemData.itemConfig.ItemType == ItemType.GMzcq then--宝箱
|
or itemData.itemConfig.ItemType == ItemType.GMzcq then--宝箱
|
||||||
this.nameText.text=Language[10194]
|
this.nameText.text=Language[10194]
|
||||||
this.btnCompoundText.text=Language[10195]
|
this.btnCompoundText.text=Language[10195]
|
||||||
|
|
@ -495,6 +498,7 @@ function this.ShowCompoundNumData(value)
|
||||||
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
|
elseif itemData.itemConfig.ItemType==ItemType.Box
|
||||||
or itemData.itemConfig.ItemType == ItemType.GMzck
|
or itemData.itemConfig.ItemType == ItemType.GMzck
|
||||||
|
or itemData.itemConfig.ItemType == ItemType.GMBigZck
|
||||||
or itemData.itemConfig.ItemType == ItemType.GMzcq then
|
or itemData.itemConfig.ItemType == ItemType.GMzcq 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).."。"
|
||||||
elseif itemData.itemConfig.ItemType==ItemType.TimeIsGold then--挂机奖励
|
elseif itemData.itemConfig.ItemType==ItemType.TimeIsGold then--挂机奖励
|
||||||
|
|
|
||||||
|
|
@ -141,6 +141,7 @@ function RewardItemSingleShowPopup:BindEvent()
|
||||||
end
|
end
|
||||||
elseif itemConfigData.ItemType == ItemType.Box
|
elseif itemConfigData.ItemType == ItemType.Box
|
||||||
or itemConfigData.ItemType == ItemType.GMzck
|
or itemConfigData.ItemType == ItemType.GMzck
|
||||||
|
or itemConfigData.ItemType == ItemType.GMBigZck
|
||||||
or itemConfigData.ItemType == ItemType.GMzcq then
|
or itemConfigData.ItemType == ItemType.GMzcq then
|
||||||
LogError("1111111111111111111")
|
LogError("1111111111111111111")
|
||||||
local _itemData = BagManager.bagDatas[itemSid]
|
local _itemData = BagManager.bagDatas[itemSid]
|
||||||
|
|
@ -358,7 +359,10 @@ function RewardItemSingleShowPopup:OnShow()
|
||||||
then
|
then
|
||||||
this.btnSureText.text = Language[10193]
|
this.btnSureText.text = Language[10193]
|
||||||
this.btnSure:SetActive(true)
|
this.btnSure:SetActive(true)
|
||||||
elseif isBagPanel and (itemConfigData.ItemType == 10 or itemConfigData.ItemType == ItemType.GMzck or itemConfigData.ItemType == ItemType.GMzcq) and func then--是否宝箱可使用
|
elseif isBagPanel and (itemConfigData.ItemType == 10
|
||||||
|
or itemConfigData.ItemType == ItemType.GMzck
|
||||||
|
or itemConfigData.ItemType == ItemType.GMBigZck
|
||||||
|
or itemConfigData.ItemType == ItemType.GMzcq) and func then--是否宝箱可使用
|
||||||
this.btnSure:SetActive(true)
|
this.btnSure:SetActive(true)
|
||||||
this.btnSureText.text = Language[10195]
|
this.btnSureText.text = Language[10195]
|
||||||
elseif isBagPanel and itemConfigData.ItemType == 12 and func then-- 改名卡
|
elseif isBagPanel and itemConfigData.ItemType == 12 and func then-- 改名卡
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue