From 33a7491279f965a2f7404c9af49f8b194893e402 Mon Sep 17 00:00:00 2001 From: zhangqiang <657634622@qq.com> Date: Mon, 4 Jan 2021 16:47:04 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90bug=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modules/Popup/View/GeneralPopup_PokemonChipCompound.lua | 2 +- .../~Lua/Modules/QuickPurchase/QuickCommonPurchasePart.lua | 4 ++-- .../~Lua/Modules/QuickPurchase/QuickSpecialPurchasePart.lua | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_PokemonChipCompound.lua b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_PokemonChipCompound.lua index cb46b66155..b2ea1471cf 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_PokemonChipCompound.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_PokemonChipCompound.lua @@ -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=1 + this.Slider:GetComponent("Slider").minValue=0 this.Slider:GetComponent("Slider").maxValue=compoundMaxNum this.ShowCompoundNumData(compoundNum) end diff --git a/Assets/ManagedResources/~Lua/Modules/QuickPurchase/QuickCommonPurchasePart.lua b/Assets/ManagedResources/~Lua/Modules/QuickPurchase/QuickCommonPurchasePart.lua index 3147d653f4..e431c9bf79 100644 --- a/Assets/ManagedResources/~Lua/Modules/QuickPurchase/QuickCommonPurchasePart.lua +++ b/Assets/ManagedResources/~Lua/Modules/QuickPurchase/QuickCommonPurchasePart.lua @@ -117,14 +117,14 @@ 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 = 1 + self.progressBar.minValue = 0 self.buyCountValue = self.maxValue > 0 and 1 or 0 -- 设置颜色 self:OnBuyValueChanged() self.buyCountText.color = self.maxValue > 0 and Color.New(0.55,0.59,0.62,1) or UIColor.NOT_ENOUGH_RED Util.SetGray(self.confirmBtn.gameObject, self.maxValue <= 0) - --self.confirmBtn.enabled = self.maxValue > 0 + self.confirmBtn.enabled = self.maxValue > 0 end function QuickCommonPurchasePart:SetBasicInfo(context) diff --git a/Assets/ManagedResources/~Lua/Modules/QuickPurchase/QuickSpecialPurchasePart.lua b/Assets/ManagedResources/~Lua/Modules/QuickPurchase/QuickSpecialPurchasePart.lua index 8f91c6fed1..814111220e 100644 --- a/Assets/ManagedResources/~Lua/Modules/QuickPurchase/QuickSpecialPurchasePart.lua +++ b/Assets/ManagedResources/~Lua/Modules/QuickPurchase/QuickSpecialPurchasePart.lua @@ -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 = 1 + self.purChasePart[i].progressBar.minValue = 0 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