【灵兽系统】 添加驱灵币跳转按钮 and 特权礼包排序

dev_chengFeng
zhangqiang 2020-11-02 14:36:21 +08:00
parent c90e209fd6
commit 3bbaab27be
3 changed files with 9 additions and 2 deletions

View File

@ -523,6 +523,7 @@ UpViewRechargeType = {
Celebration = 50003,--社稷赏
PuTiZi = 1203,--菩提子
XianLingCao = 1202,--仙灵草
QuLingBi = 1205,--驱灵币
YHMF= 21,--妖魂魔符
}

View File

@ -160,7 +160,11 @@ function GiftView:RefreshGiftData()
end
table.sort(shopData,function(a,b)
if a.sortId == b.sortId then
return a.DataType > b.DataType
if a.DataType == b.DataType and a.DataType == DataType.Direct and b.DataType == DataType.Direct then
return rechargeCommodityConfig[a.data.goodsId].Sequence < rechargeCommodityConfig[b.data.goodsId].Sequence
else
return a.DataType > b.DataType
end
else
return a.sortId > b.sortId
end

View File

@ -48,6 +48,7 @@ local _ShowPlusType = {
UpViewRechargeType.XianLingCao,
UpViewRechargeType.PuTiZi,
UpViewRechargeType.YHMF,
UpViewRechargeType.QuLingBi,
}
-- 判断是否显示加号
@ -352,7 +353,8 @@ function UpView:RechargeType(_type)
_type==UpViewRechargeType.PuTiZi or
_type==UpViewRechargeType.XianLingCao or
_type==UpViewRechargeType.YHMF or
_type==UpViewRechargeType.EndlessCoin
_type==UpViewRechargeType.EndlessCoin or
_type==UpViewRechargeType.QuLingBi
then
UIManager.OpenPanel(UIName.RewardItemSingleShowPopup, _type)
end