【灵兽系统】 添加驱灵币跳转按钮 and 特权礼包排序
parent
d5afae7352
commit
d0a8e96d5e
|
|
@ -523,6 +523,7 @@ UpViewRechargeType = {
|
||||||
Celebration = 50003,--社稷赏
|
Celebration = 50003,--社稷赏
|
||||||
PuTiZi = 1203,--菩提子
|
PuTiZi = 1203,--菩提子
|
||||||
XianLingCao = 1202,--仙灵草
|
XianLingCao = 1202,--仙灵草
|
||||||
|
QuLingBi = 1205,--驱灵币
|
||||||
YHMF= 21,--妖魂魔符
|
YHMF= 21,--妖魂魔符
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -160,7 +160,11 @@ function GiftView:RefreshGiftData()
|
||||||
end
|
end
|
||||||
table.sort(shopData,function(a,b)
|
table.sort(shopData,function(a,b)
|
||||||
if a.sortId == b.sortId then
|
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
|
else
|
||||||
return a.sortId > b.sortId
|
return a.sortId > b.sortId
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,7 @@ local _ShowPlusType = {
|
||||||
UpViewRechargeType.XianLingCao,
|
UpViewRechargeType.XianLingCao,
|
||||||
UpViewRechargeType.PuTiZi,
|
UpViewRechargeType.PuTiZi,
|
||||||
UpViewRechargeType.YHMF,
|
UpViewRechargeType.YHMF,
|
||||||
|
UpViewRechargeType.QuLingBi,
|
||||||
}
|
}
|
||||||
|
|
||||||
-- 判断是否显示加号
|
-- 判断是否显示加号
|
||||||
|
|
@ -351,7 +352,8 @@ function UpView:RechargeType(_type)
|
||||||
_type==UpViewRechargeType.PuTiZi or
|
_type==UpViewRechargeType.PuTiZi or
|
||||||
_type==UpViewRechargeType.XianLingCao or
|
_type==UpViewRechargeType.XianLingCao or
|
||||||
_type==UpViewRechargeType.YHMF or
|
_type==UpViewRechargeType.YHMF or
|
||||||
_type==UpViewRechargeType.EndlessCoin
|
_type==UpViewRechargeType.EndlessCoin or
|
||||||
|
_type==UpViewRechargeType.QuLingBi
|
||||||
then
|
then
|
||||||
UIManager.OpenPanel(UIName.RewardItemSingleShowPopup, _type)
|
UIManager.OpenPanel(UIName.RewardItemSingleShowPopup, _type)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue