【优化】道具不能使用0个,且优化道具使用多个的上限(目前20过少)
parent
2e3ac84814
commit
a8bcdf14f4
|
|
@ -22968,7 +22968,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: -0.00000035050297}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: -894.3, y: -817.3}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
--- !u!114 &7488345345668227506
|
||||
|
|
|
|||
|
|
@ -308,7 +308,7 @@ function this.OnShowLayout3Data()
|
|||
this.Slider:GetComponent("Slider").value=1
|
||||
compoundNum= compoundNum>=compoundMaxNum and compoundMaxNum or compoundNum
|
||||
Log("compoundNum "..compoundNum)
|
||||
this.Slider:GetComponent("Slider").minValue=0
|
||||
this.Slider:GetComponent("Slider").minValue=1
|
||||
this.Slider:GetComponent("Slider").maxValue=compoundMaxNum
|
||||
--this.ShowCompoundNumData(compoundNum)
|
||||
this.ShowCompoundNumData(compoundMaxNum)
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ function FightSelectAreaShowMopUpPanel:ShowMopUpInfo(_curVal)
|
|||
end
|
||||
num=num>=10 and 10 or num
|
||||
self.Slider:GetComponent("Slider").maxValue=num
|
||||
self.Slider:GetComponent("Slider").minValue=0
|
||||
self.Slider:GetComponent("Slider").minValue=1
|
||||
self:ShowMopUpInfoData(_curVal)
|
||||
end
|
||||
function FightSelectAreaShowMopUpPanel:ShowMopUpInfoData(value)
|
||||
|
|
|
|||
|
|
@ -522,7 +522,7 @@ function this.ShowStartMopUpInfoData()
|
|||
local leftTimes = BagManager.GetItemCountById(itemId)
|
||||
this.buyGoNumTex.text = leftTimes
|
||||
this.Slider:GetComponent("Slider").maxValue = leftTimes
|
||||
this.Slider:GetComponent("Slider").minValue = 0
|
||||
this.Slider:GetComponent("Slider").minValue = 1
|
||||
if leftTimes > 0 then
|
||||
mopUpDeleNum = 1 -- 默认从1开始
|
||||
--this.Slider:GetComponent("Slider").minValue = 0
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ function CarbonBuyCountPopup:OnOpen(count)
|
|||
local maxValue = CarbonManager.getLeftBuyCount()
|
||||
sliderComp.maxValue = maxValue
|
||||
sliderComp.enabled = maxValue > 1
|
||||
sliderComp.minValue = maxValue > 1 and 1 or 0
|
||||
sliderComp.minValue = 1
|
||||
sliderComp.value = 1
|
||||
|
||||
-- 刷新选择条数据
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ function this.RefreshPanel()
|
|||
compoundNum= compoundNum>=compoundMaxNum and compoundMaxNum or compoundNum
|
||||
Log("compoundNum "..compoundNum)
|
||||
this.Slider:GetComponent("Slider").value=compoundNum
|
||||
this.Slider:GetComponent("Slider").minValue=0
|
||||
this.Slider:GetComponent("Slider").minValue=1
|
||||
this.Slider:GetComponent("Slider").maxValue=compoundMaxNum
|
||||
this.ShowCompoundNumData(compoundNum)
|
||||
end
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ function QuickCommonPurchasePart:Init()
|
|||
self.maxValue = self.maxValue > 999 and 999 or self.maxValue
|
||||
self.progressBar.enabled = self.maxValue > 1
|
||||
self.progressBar.maxValue = self.maxValue
|
||||
self.progressBar.minValue = 0
|
||||
self.progressBar.minValue = 1
|
||||
self.buyCountValue = self.maxValue > 0 and 1 or 0
|
||||
|
||||
-- 设置颜色
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ function QuickSpecialPurchasePart:Init()
|
|||
local canBuyMaxValue = ShopManager.GetShopItemMaxBuy(SHOP_TYPE.FUNCTION_SHOP, purChaseTypeIdDef[self.context.type][i])
|
||||
self.purChasePart[i].maxValue = math.min(self.purChasePart[i].remainBuyTimes, canBuyMaxValue)
|
||||
self.purChasePart[i].maxValue = self.purChasePart[i].maxValue > MaxBuyCount[i] and MaxBuyCount[i] or self.purChasePart[i].maxValue
|
||||
self.purChasePart[i].progressBar.minValue = 0
|
||||
self.purChasePart[i].progressBar.minValue = 1
|
||||
self.purChasePart[i].progressBar.maxValue = self.purChasePart[i].maxValue
|
||||
self.purChasePart[i].progressBar.enabled = self.purChasePart[i].maxValue >= 1
|
||||
self.purChasePart[i].progressBar.value = self.purChasePart[i].maxValue > 0 and 1 or 0
|
||||
|
|
|
|||
|
|
@ -189,11 +189,7 @@ function RewardBoxPanel:SetBottom()--设置底部滑动条
|
|||
maxOwnNum = BagManager.GetItemCountById(itemData.id)--拥有的最大数量
|
||||
maxNum = gameSetting[1].OpenBoxLimits--最大领取数量(配表)
|
||||
this.Slider:GetComponent("Slider").value=1
|
||||
if maxOwnNum == 1 then
|
||||
this.Slider:GetComponent("Slider").minValue = 0
|
||||
elseif maxOwnNum > 1 then
|
||||
this.Slider:GetComponent("Slider").minValue = 0
|
||||
end
|
||||
this.Slider:GetComponent("Slider").minValue = 1
|
||||
this.Slider:GetComponent("Slider").maxValue = maxOwnNum >= maxNum and maxNum or maxOwnNum--当前物品总数量
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -352,7 +352,7 @@ function this.SetSliderVal()
|
|||
num=matialNum
|
||||
end
|
||||
this.Slider:GetComponent("Slider").maxValue=num
|
||||
this.Slider:GetComponent("Slider").minValue=0
|
||||
this.Slider:GetComponent("Slider").minValue=1
|
||||
local curNum=num>0 and 1 or 0
|
||||
this.ShowMopUpInfoData(curNum)
|
||||
this.Slider:GetComponent("Slider").value=curNum
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ function WorkShopEquipReforgePreviewPanel:setEquipMainPro(context)
|
|||
local mainPropConfigInfo = mainPropInfo.PropertyConfig
|
||||
self.mainProName.text = mainPropConfigInfo.Info
|
||||
self.mainProValue.text = mainPropInfo.propertyValue
|
||||
local addProValue = WorkShopManager.WorkShopData.LvAddMainIdAndVales[context.equipConfig.PropertyMin[1]]
|
||||
local addProValue = WorkShopManager.WorkShopData.LvAddMainIdAndVales[context.equipConfig.PropertyMin[1]]
|
||||
local minValue, maxValue
|
||||
if addProValue then
|
||||
local basicPropertyMin = context.equipConfig.PropertyMin[2]
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ function WorkShopMaterialsCompoundPanel:OnOpen(...)
|
|||
this.Slider:GetComponent("Slider").value=materialPotPutNum
|
||||
materialPotPutNum= materialPotPutNum>=maxMaterialPotPutNum and maxMaterialPotPutNum or materialPotPutNum
|
||||
this.Slider:GetComponent("Slider").maxValue=maxMaterialPotPutNum
|
||||
this.Slider:GetComponent("Slider").minValue=0
|
||||
this.Slider:GetComponent("Slider").minValue=1
|
||||
self:UpdatePanelData(materialPotPutNum)
|
||||
end
|
||||
function WorkShopMaterialsCompoundPanel:UpdatePanelData(value)--curData
|
||||
|
|
|
|||
Loading…
Reference in New Issue