【优化】背包分类优化
parent
eba0a867da
commit
19d984a641
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
-- 刷新显示
|
||||
|
|
Loading…
Reference in New Issue