[背包]====直冲卡添加使用

dev_chengFeng
wangzhenxing 2022-09-23 15:50:28 +08:00
parent efe732d91d
commit f1c0a2fcd8
3 changed files with 11 additions and 2 deletions

View File

@ -1119,6 +1119,7 @@ ItemType = {
EquipChip = 36, --装备碎片
GMzck =42, --gm直冲卡
GMzcq=43,--gm真充卡
GMBigZck =49, --gm直冲卡
CommonChip=50,--通用碎片
}
JumpType = {

View File

@ -111,7 +111,8 @@ function BagResolveAnCompoundPanel:BindEvent()
end)
Util.AddClick(this.addBtn, function()
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--宝箱
if compoundNum<compoundMaxNum then
compoundNum=compoundNum+1
@ -153,6 +154,7 @@ function BagResolveAnCompoundPanel:BindEvent()
end
elseif itemData.itemConfig.ItemType==ItemType.Box
or itemData.itemConfig.ItemType == ItemType.GMzck
or itemData.itemConfig.ItemType == ItemType.GMBigZck
or itemData.itemConfig.ItemType == ItemType.GMzcq then
if compoundNum>0 then
local item={}
@ -344,6 +346,7 @@ function this.OnShowLayout3Data()
elseif itemData.itemConfig.ItemType==ItemType.Box
or itemData.itemConfig.ItemType == ItemType.GMzck
or itemData.itemConfig.ItemType == ItemType.GMBigZck
or itemData.itemConfig.ItemType == ItemType.GMzcq then--宝箱
this.nameText.text=Language[10194]
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],"")
elseif itemData.itemConfig.ItemType==ItemType.Box
or itemData.itemConfig.ItemType == ItemType.GMzck
or itemData.itemConfig.ItemType == ItemType.GMBigZck
or itemData.itemConfig.ItemType == ItemType.GMzcq then
this.numText.text= Language[10202]..value..Language[10200]..GetLanguageStrById(itemData.itemConfig.Name)..""
elseif itemData.itemConfig.ItemType==ItemType.TimeIsGold then--挂机奖励

View File

@ -141,6 +141,7 @@ function RewardItemSingleShowPopup:BindEvent()
end
elseif itemConfigData.ItemType == ItemType.Box
or itemConfigData.ItemType == ItemType.GMzck
or itemConfigData.ItemType == ItemType.GMBigZck
or itemConfigData.ItemType == ItemType.GMzcq then
LogError("1111111111111111111")
local _itemData = BagManager.bagDatas[itemSid]
@ -358,7 +359,10 @@ function RewardItemSingleShowPopup:OnShow()
then
this.btnSureText.text = Language[10193]
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.btnSureText.text = Language[10195]
elseif isBagPanel and itemConfigData.ItemType == 12 and func then-- 改名卡