From f49bb4904163bc82481e8b39527195758b69cdc9 Mon Sep 17 00:00:00 2001 From: gaoxin Date: Thu, 8 Apr 2021 20:20:09 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=AF=8F=E6=97=A5=E8=B1=AA=E7=A4=BC?= =?UTF-8?q?=E3=80=91=E9=87=91=E9=92=B1=E6=98=BE=E7=A4=BA=E8=B5=B0=E6=B4=BB?= =?UTF-8?q?=E5=8A=A8=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/DailyRecharge/DailyRechargePanel.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/DailyRecharge/DailyRechargePanel.lua b/Assets/ManagedResources/~Lua/Modules/DailyRecharge/DailyRechargePanel.lua index 7ab7769035..4ec12172b2 100644 --- a/Assets/ManagedResources/~Lua/Modules/DailyRecharge/DailyRechargePanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/DailyRecharge/DailyRechargePanel.lua @@ -40,8 +40,10 @@ function DailyRechargePanel:InitComponent() end if not self.moneyNum then + local dailyActInfo = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.DailyRecharge) + local actRewardConfig = ConfigManager.GetConfigData(ConfigName.ActivityRewardConfig, dailyActInfo.mission[1].missionId) self.moneyNum = SubUIManager.Open(SubUIConfig.MoneyNumView, Util.GetGameObject(self.transform,"frame/bg/descbg").transform, - math.round(MoneyUtil.GetMoney(18)), MoneyNumViewType.Image_Horizontal, "LevelFont", 42, 1, Vector2.New(60, 100), Vector2.New(20, 0), MoneyNumViewImageType.Big_1) + actRewardConfig.Values[1][1], MoneyNumViewType.Image_Horizontal, "LevelFont", 42, 1, Vector2.New(60, 100), Vector2.New(20, 0), MoneyNumViewImageType.Big_1) end self.moneyNum:SetOffsetPosition(Vector2.New(480, -90)) self.moneyNum:SetOffsetRotation(Vector3.New(0, 0, -10)) @@ -102,7 +104,6 @@ function DailyRechargePanel:RefreshPanel() self.extraIcon.sprite = Util.LoadSprite(rechargeBgDef[4]) self.dealText.text = Language[10420] self.moneyNum.gameObject:SetActive(true) - self.moneyNum:SetNum(actRewardConfig.Values[1][1]) else if DailyRechargeManager.ReceivedEnabled() then self.extraIcon.sprite = Util.LoadSprite(rechargeBgDef[3]) @@ -114,7 +115,6 @@ function DailyRechargePanel:RefreshPanel() -- remainValue = remainValue < 0 and 0 or remainValue self.dealText.text = Language[10420] self.moneyNum.gameObject:SetActive(true) - self.moneyNum:SetNum(actRewardConfig.Values[1][1]) end end else