【优化】背包分类优化

dev_chengFeng
jiaoyangna 2020-12-28 21:08:25 +08:00
parent eba0a867da
commit 19d984a641
3 changed files with 3 additions and 3 deletions

View File

@ -612,7 +612,7 @@ function this.ItemsSortDataV2(_itemDatas)
if a.itemConfig.Sort == b.itemConfig.Sort then
return a.itemConfig.Id < b.itemConfig.Id
else
return a.itemConfig.sort < b.itemConfig.sort
return a.itemConfig.Sort < b.itemConfig.Sort
end
end)
end

View File

@ -134,7 +134,7 @@ function ShopBuyPopup:OnOpen(shopType, shopItemId)
-- 设置滑动范围
this.slider.enabled = this.maxNum > 1
this.slider.maxValue = this.maxNum
this.slider.minValue = 0
this.slider.minValue = 1
this.slider.value = this.maxNum > 0 and 1 or 0
-- 设置颜色
this.buyNumLab.color = this.maxNum > 0 and Color.New(0.55,0.59,0.62,1) or UIColor.NOT_ENOUGH_RED

View File

@ -119,7 +119,7 @@ function ShopExchangePopup:OnOpen(shopType, shopItemId, titleName)
-- 设置滑动范围
this.slider.enabled = this.maxNum > 1
this.slider.maxValue = this.maxNum
this.slider.minValue = 0
this.slider.minValue = 1
this.slider.value = this.maxNum > 0 and 1 or 0
-- 刷新显示