From b071e12e295e64d6d5609003b7dd5aca90a33061 Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Sat, 29 May 2021 20:04:48 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E7=A7=98=E5=AE=9D=E6=8F=8F=E8=BF=B0?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Popup/View/GeneralPopup_HeavenUnlockExtraRewardPanel.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_HeavenUnlockExtraRewardPanel.lua b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_HeavenUnlockExtraRewardPanel.lua index c21bcc17ec..da8c46052a 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_HeavenUnlockExtraRewardPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_HeavenUnlockExtraRewardPanel.lua @@ -70,7 +70,7 @@ function this:OnShow(_parent,...) elseif curType == 3 then rewardData,rewardData1 = EndLessMapManager.GetAllRewardData() this:showRewardWuJin(rewardData,rewardData1) - this.tip.text = Language[12287] + this.tip.text = "解锁秘宝,激活进阶专属奖励+2000积分,可获取980妖晶" end end From 9eee295a1f5f20c76c532165c438c1da70a5737b Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Sat, 29 May 2021 20:17:50 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E4=BB=B7=E6=A0=BC=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Prefabs/UI/Popup/GeneralPopup.prefab | 84 ++++++++++++++++++- ...eralPopup_HeavenUnlockExtraRewardPanel.lua | 9 ++ 2 files changed, 91 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/Prefabs/UI/Popup/GeneralPopup.prefab b/Assets/ManagedResources/Prefabs/UI/Popup/GeneralPopup.prefab index de6c37f5f8..961b52f6bc 100644 --- a/Assets/ManagedResources/Prefabs/UI/Popup/GeneralPopup.prefab +++ b/Assets/ManagedResources/Prefabs/UI/Popup/GeneralPopup.prefab @@ -11983,6 +11983,85 @@ MonoBehaviour: m_LineSpacing: 1 m_Text: "\u786E \u8BA4" LanguageIndex: 10123 +--- !u!1 &2570075562108282243 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7858246822778438727} + - component: {fileID: 5413660572345632513} + - component: {fileID: 643456947987941065} + m_Layer: 5 + m_Name: Text + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 0 +--- !u!224 &7858246822778438727 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2570075562108282243} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 4002341678660140781} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: -0} + m_SizeDelta: {x: 167.6, y: 51.1} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &5413660572345632513 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2570075562108282243} + m_CullTransparentMesh: 0 +--- !u!114 &643456947987941065 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2570075562108282243} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 0.8588236, b: 0.60784316, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_FontData: + m_Font: {fileID: 12800000, guid: 6fa15837529b0e640af6620b07d3207d, type: 3} + m_FontSize: 43 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 51 + m_Alignment: 4 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: "98\u5143" --- !u!1 &2608535148006920750 GameObject: m_ObjectHideFlags: 0 @@ -14831,7 +14910,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 + m_IsActive: 0 --- !u!224 &7801970642132342922 RectTransform: m_ObjectHideFlags: 0 @@ -16391,7 +16470,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 0 + m_IsActive: 1 --- !u!224 &952792893445881680 RectTransform: m_ObjectHideFlags: 0 @@ -29573,6 +29652,7 @@ RectTransform: m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 7801970642132342922} + - {fileID: 7858246822778438727} m_Father: {fileID: 7846968063202130352} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_HeavenUnlockExtraRewardPanel.lua b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_HeavenUnlockExtraRewardPanel.lua index da8c46052a..45ae8ea7bd 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_HeavenUnlockExtraRewardPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_HeavenUnlockExtraRewardPanel.lua @@ -24,6 +24,7 @@ function this:InitComponent(gameObject) this.btnBack = Util.GetGameObject(gameObject, "frame/bg/closeBtn") this.dealBtn = Util.GetGameObject(gameObject, "frame/bg/dealBtn") this.dealBtnIma = Util.GetGameObject(this.dealBtn, "Image"):GetComponent("Image") + this.dealBtnText = Util.GetGameObject(this.dealBtn, "Text"):GetComponent("Text") if MoneyUtil.MT == MoneyType.RMB then this.dealBtnIma.sprite = this.spLoader:LoadSprite("q_qinlongmibao_jiesuozhenbao198") else @@ -63,14 +64,22 @@ function this:OnShow(_parent,...) rewardData = TreasureOfHeavenManger.GetAllRewardData() this:showRewardTianGong() this.tip.text = Language[12286] + this.dealBtnIma.gameObject:SetActive(true) + this.dealBtnText.gameObject:SetActive(false) elseif curType == 2 then rewardData = QinglongSerectTreasureManager.GetAllRewardData() this:showRewardQinglong() this.tip.text = Language[12287] + this.dealBtnIma.gameObject:SetActive(true) + this.dealBtnText.gameObject:SetActive(false) elseif curType == 3 then rewardData,rewardData1 = EndLessMapManager.GetAllRewardData() this:showRewardWuJin(rewardData,rewardData1) this.tip.text = "解锁秘宝,激活进阶专属奖励+2000积分,可获取980妖晶" + this.dealBtnIma.gameObject:SetActive(false) + this.dealBtnText.gameObject:SetActive(true) + local config = ConfigManager.GetConfigData(ConfigName.RechargeCommodityConfig,type[curType].id) + this.dealBtnText.text = MoneyUtil.GetMoneyUnitNameWithMoney(config.Price) end end From 9275f0f011059f010ff5fe849a4a99705f7acd6b Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Sat, 29 May 2021 20:22:55 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E5=AD=97=E4=BF=AE=E6=94=B9=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Prefabs/UI/Popup/GeneralPopup.prefab | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Assets/ManagedResources/Prefabs/UI/Popup/GeneralPopup.prefab b/Assets/ManagedResources/Prefabs/UI/Popup/GeneralPopup.prefab index 961b52f6bc..6fde6a5bfb 100644 --- a/Assets/ManagedResources/Prefabs/UI/Popup/GeneralPopup.prefab +++ b/Assets/ManagedResources/Prefabs/UI/Popup/GeneralPopup.prefab @@ -9624,8 +9624,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 4.899994, y: -338} - m_SizeDelta: {x: 600, y: 115.1} + m_AnchoredPosition: {x: -2.0000916, y: -338} + m_SizeDelta: {x: 632.8, y: 115.1} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &8029727511439798878 CanvasRenderer: @@ -9659,14 +9659,14 @@ MonoBehaviour: m_Font: {fileID: 12800000, guid: 4b73e9e4512d17e4daeea351e090d33c, type: 3} m_FontSize: 35 m_FontStyle: 0 - m_BestFit: 1 + m_BestFit: 0 m_MinSize: 3 m_MaxSize: 35 m_Alignment: 4 m_AlignByGeometry: 0 m_RichText: 1 m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 + m_VerticalOverflow: 1 m_LineSpacing: 1 m_Text: "\u89E3\u9501\u79D8\u5B9D\uFF0C\u53EF\u4EE5\u9886\u53D6\u989D\u5916\u4E13\u5C5E\u5956\u52B1\uFF0C\u5E76\u76F4\u63A5\u83B7\u5F97200\u79EF\u5206\uFF0C\u53EF\u83B7\u53D61980\u5996\u6676\uFF0C\u90AE\u4EF6\u9886\u53D6" LanguageIndex: 0 @@ -16470,7 +16470,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 + m_IsActive: 0 --- !u!224 &952792893445881680 RectTransform: m_ObjectHideFlags: 0 From 6fbec8a36ef24b2d959517d10b0570c61cdd2e6c Mon Sep 17 00:00:00 2001 From: gaoxin Date: Sat, 29 May 2021 20:25:52 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E3=80=90=E6=A3=AE=E7=BD=97=E5=B9=BB?= =?UTF-8?q?=E5=A2=83=E3=80=91=E8=BD=AC=E7=9B=98=E5=B0=8F=E6=B8=B8=E6=88=8F?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8A=BD=E4=B8=AD=E9=9D=9E=E7=89=A9=E5=93=81?= =?UTF-8?q?=E6=97=B6=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Map/TrialMiniGame/Logic/Game_17.lua | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Map/TrialMiniGame/Logic/Game_17.lua b/Assets/ManagedResources/~Lua/Modules/Map/TrialMiniGame/Logic/Game_17.lua index 5f737a6f53..dc624dafab 100644 --- a/Assets/ManagedResources/~Lua/Modules/Map/TrialMiniGame/Logic/Game_17.lua +++ b/Assets/ManagedResources/~Lua/Modules/Map/TrialMiniGame/Logic/Game_17.lua @@ -29,9 +29,8 @@ function this.Init(context, root, gameType, gameId, gameParams) end -local id -local num -local itemId +local resultId +local stopId local isStart local timeSpace = 0 local lastTime = 0 @@ -61,9 +60,8 @@ function this.Show() this.btnStart:GetComponent("Button").interactable = false TrialMiniGameManager.GameOperate(0, function(msg) --转起来 - id = msg.drop.itemlist[1].itemId - num = msg.drop.itemlist[1].itemNum - LogYellow("掉落的Id:"..id.." 数量:"..num) + resultId = msg.resultId + LogYellow("掉落的Id:"..resultId) this.test() --4秒后显示掉落 -- Timer.New(function() @@ -100,11 +98,11 @@ function this.test() -- coroutine.wait(0.1) -- end -- 减速 - for i = 0, 30 do + for i = 0, 20 do timeSpace = timeSpace + 0.01 coroutine.wait(0.1) end - itemId = id + stopId = resultId end) isStart = true @@ -122,18 +120,18 @@ function this.tableTurnEffect() redNext:SetActive(true) index = index + 1 --检测最后的奖励 - if itemId and id == this.TrialGameConfig[this.list[index]].RewardID and num == this.TrialGameConfig[this.list[index]].Max then - -- this.turnEffect:Stop() + local cfg = this.TrialGameConfig[this.list[index]] + if stopId and stopId == cfg.Id then --游戏结束显示掉落 Timer.New(function() if TrialMiniGameManager.IsGameDone() then TrialMiniGameManager.EndGame() end - local data = TrialMiniGameManager.IdToNameIconNum(id,num) + local data = TrialMiniGameManager.IdToNameIconNum(cfg.RewardID, cfg.Max) PopupTipPanel.ShowColorTip(data[1],data[2],data[3]) - isStart = true - itemId = nil end, 1,1,true):Start() + isStart = false + stopId = nil end end From b1fcc5d4e5d457597b5d2fd99117fb09c0533aa5 Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Sat, 29 May 2021 20:36:26 +0800 Subject: [PATCH 5/6] =?UTF-8?q?[=E9=99=90=E6=97=B6=E6=B4=BB=E5=8A=A8?= =?UTF-8?q?=EF=BC=8C=E7=A6=8F=E5=88=A9=E7=BA=A2=E5=8C=85]=3D=3D=3D=3D=3D?= =?UTF-8?q?=3D=3Dbug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UI/GeneralPanel/GeneralBigPopup.prefab | 30 +++++++++---------- .../DynamicActivity/QianKunBoxBuyOnePanel.lua | 2 ++ .../View/GeneralBigPopup_RecrutDetail.lua | 5 +++- .../Guild/RedPacketView/RedPacket_GetView.lua | 3 -- 4 files changed, 21 insertions(+), 19 deletions(-) diff --git a/Assets/ManagedResources/Prefabs/UI/GeneralPanel/GeneralBigPopup.prefab b/Assets/ManagedResources/Prefabs/UI/GeneralPanel/GeneralBigPopup.prefab index fd8ac6d462..08731b6fc9 100644 --- a/Assets/ManagedResources/Prefabs/UI/GeneralPanel/GeneralBigPopup.prefab +++ b/Assets/ManagedResources/Prefabs/UI/GeneralPanel/GeneralBigPopup.prefab @@ -726,7 +726,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 478.37, y: -181.18} + m_AnchoredPosition: {x: 478.37, y: -181} m_SizeDelta: {x: 876.74, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &7315193775080684413 @@ -1610,7 +1610,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 458.5, y: 0} + m_AnchoredPosition: {x: 458.5, y: -0.000015258789} m_SizeDelta: {x: 917, y: 45} m_Pivot: {x: 0.5, y: 1} --- !u!222 &5582656793896342774 @@ -3137,7 +3137,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 478.37, y: -231.23999} + m_AnchoredPosition: {x: 478.37, y: -231} m_SizeDelta: {x: 876.74, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &2151967174801510196 @@ -3563,7 +3563,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 478.37, y: -281.3} + m_AnchoredPosition: {x: 478.37, y: -281} m_SizeDelta: {x: 876.74, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &418754132621401042 @@ -3739,7 +3739,7 @@ RectTransform: m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} m_AnchoredPosition: {x: 458.5, y: -837} - m_SizeDelta: {x: 917, y: 315.1} + m_SizeDelta: {x: 917, y: 309.7} m_Pivot: {x: 0.5, y: 1} --- !u!114 &5787845084316277716 MonoBehaviour: @@ -4075,7 +4075,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: -364.6, y: 0} + m_AnchoredPosition: {x: -364.59998, y: 0} m_SizeDelta: {x: -774.9, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &7052788287217176819 @@ -4818,8 +4818,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 1} m_AnchorMax: {x: 0.5, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 916, y: 331.36} + m_AnchoredPosition: {x: 0, y: 0.00004163427} + m_SizeDelta: {x: 916, y: 351} m_Pivot: {x: 0.5, y: 1} --- !u!114 &5918842748614186787 MonoBehaviour: @@ -4837,9 +4837,9 @@ MonoBehaviour: m_Left: 40 m_Right: 0 m_Top: 31 - m_Bottom: 0 + m_Bottom: 20 m_ChildAlignment: 0 - m_Spacing: 50.06 + m_Spacing: 50 m_ChildForceExpandWidth: 0 m_ChildForceExpandHeight: 0 m_ChildControlWidth: 0 @@ -5489,7 +5489,7 @@ RectTransform: m_AnchorMin: {x: 0.5, y: 1} m_AnchorMax: {x: 0.5, y: 1} m_AnchoredPosition: {x: -1.7999878, y: -413} - m_SizeDelta: {x: 917, y: 1152.1} + m_SizeDelta: {x: 917, y: 1146.7} m_Pivot: {x: 0.5, y: 1} --- !u!114 &2484587132639556036 MonoBehaviour: @@ -6012,7 +6012,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 478.37, y: -331.36} + m_AnchoredPosition: {x: 478.37, y: -331} m_SizeDelta: {x: 876.74, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &3669278989709283071 @@ -6934,7 +6934,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 540, y: -434.96982} + m_AnchoredPosition: {x: 540, y: -434.96985} m_SizeDelta: {x: 800, y: 64.08} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &181288018036704300 @@ -7286,7 +7286,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 478.37, y: -81.06} + m_AnchoredPosition: {x: 478.37, y: -81} m_SizeDelta: {x: 876.74, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &5022706840854498964 @@ -10501,7 +10501,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 478.37, y: -131.12} + m_AnchoredPosition: {x: 478.37, y: -131} m_SizeDelta: {x: 876.74, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &7288597641011106736 diff --git a/Assets/ManagedResources/~Lua/Modules/DynamicActivity/QianKunBoxBuyOnePanel.lua b/Assets/ManagedResources/~Lua/Modules/DynamicActivity/QianKunBoxBuyOnePanel.lua index be98a0a7b4..4df974d0a3 100644 --- a/Assets/ManagedResources/~Lua/Modules/DynamicActivity/QianKunBoxBuyOnePanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/DynamicActivity/QianKunBoxBuyOnePanel.lua @@ -60,6 +60,8 @@ function QianKunBoxBuyOnePanel:BindEvent() Util.AddClick(this.openOneAgainButton, function () if isLimitUpHero then if this.func then + self.bg.gameObject:SetActive(false) + self.bg.gameObject:SetActive(true) this.func() end return diff --git a/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_RecrutDetail.lua b/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_RecrutDetail.lua index ab1d472324..7c06dab2c3 100644 --- a/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_RecrutDetail.lua +++ b/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_RecrutDetail.lua @@ -109,9 +109,12 @@ function this:ReFreshUpItem(UpItem,rateList) end end +local hero --限时up英雄 function this:ShowUpItem(config,actId) - local hero=SubUIManager.Open(SubUIConfig.ItemView,this.itemGrid.transform) + if not hero then + hero=SubUIManager.Open(SubUIConfig.ItemView,this.itemGrid.transform) + end local wishUpConfig=ConfigManager.TryGetConfigDataByKey(ConfigName.WishActivityUp,"ActivityId",actId) local num=0 for i = 1, #wishUpConfig.UpList do diff --git a/Assets/ManagedResources/~Lua/Modules/Guild/RedPacketView/RedPacket_GetView.lua b/Assets/ManagedResources/~Lua/Modules/Guild/RedPacketView/RedPacket_GetView.lua index a0353b9747..bd6887943c 100644 --- a/Assets/ManagedResources/~Lua/Modules/Guild/RedPacketView/RedPacket_GetView.lua +++ b/Assets/ManagedResources/~Lua/Modules/Guild/RedPacketView/RedPacket_GetView.lua @@ -87,7 +87,6 @@ function this:InitGetView() if value.isGet==0 and (config.Num-value.getCount)>0 and isAuto then if config.BaseType~=2 or PlayerManager.dailyRedPack< tonumber(SpecialConfig.Value) then isAuto=false - --LogError("redid============"..value.redId) NetManager.GetRobRedPackageRequest(value.redId,function(msg) local success=msg.isSuccess local itemId=msg.itemId @@ -105,8 +104,6 @@ function this:InitGetView() LogError(Language[11047]) PopupTipPanel.ShowTip(Language[11047]) end - this:InitGetView() - --检测可领取红包的数量 end) return end From 028a31941fe9a9d8b5e00faff9a6dc73b37a0c88 Mon Sep 17 00:00:00 2001 From: zhangqiang <657634622@qq.com> Date: Sat, 29 May 2021 20:44:43 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E3=80=90=E8=83=8C=E5=8C=85=E3=80=91?= =?UTF-8?q?=E8=83=8C=E5=8C=85=E4=B8=AD=E9=81=93=E5=85=B7=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E2=80=9C=E4=BD=BF=E7=94=A8=E2=80=9D=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modules/Popup/RewardItemSingleShowPopup.lua | 6 ++---- Assets/ManagedResources/~Lua/View/ItemView.lua | 16 ++++++++-------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/RewardItemSingleShowPopup.lua b/Assets/ManagedResources/~Lua/Modules/Popup/RewardItemSingleShowPopup.lua index 871bf0d52d..65d6f014d6 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/RewardItemSingleShowPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/RewardItemSingleShowPopup.lua @@ -253,9 +253,7 @@ function RewardItemSingleShowPopup:OnOpen(...) if data[2] then func = data[2] end - if data[4] then - isNoShowSureBtn = data[4] - end + isNoShowSureBtn = data[4] and data[4] or false end function RewardItemSingleShowPopup:OnShow() this.innateImage:SetActive(false) @@ -281,7 +279,7 @@ function RewardItemSingleShowPopup:OnShow() this.btnSure:SetActive(false) this.btnSureText.text = Language[10197] end - this.btnJump:SetActive(itemConfigData.UseJump and itemConfigData.UseJump > 0 and isBagPanel and isNoShowSureBtn) + this.btnJump:SetActive(itemConfigData.UseJump and itemConfigData.UseJump > 0 and isBagPanel and not isNoShowSureBtn) Log("itemConfigData.Id " .. itemConfigData.Id) this.equipQuaText.text = GetStringByEquipQua(itemConfigData.Quantity, GetQuaStringByEquipQua(itemConfigData.Quantity)) this.itemName.text = GetStringByEquipQua(itemConfigData.Quantity, GetLanguageStrById(itemConfigData.Name)) diff --git a/Assets/ManagedResources/~Lua/View/ItemView.lua b/Assets/ManagedResources/~Lua/View/ItemView.lua index 8477a1d062..e7b0e1b85b 100644 --- a/Assets/ManagedResources/~Lua/View/ItemView.lua +++ b/Assets/ManagedResources/~Lua/View/ItemView.lua @@ -417,7 +417,7 @@ function ItemView:NoGetRewardShow(_reward, effectLayer, isShowAddImage) self.frame.sprite = self.spLoader:LoadSprite(GetQuantityImageByquality(itemConfig[itemSId].Quantity)) self.icon.sprite = self.spLoader:LoadSprite(GetResourcePath(itemConfig[itemSId].ResourceID)) Util.AddOnceClick(self.frameBtn, function() - UIManager.OpenPanel(UIName.RewardItemSingleShowPopup, itemSId,nil,self.isRewardItemPop,false) + UIManager.OpenPanel(UIName.RewardItemSingleShowPopup, itemSId,nil,self.isRewardItemPop,true) end) elseif itemDataConFig.ItemType == ItemType.Hero then -- 1角色 @@ -455,7 +455,7 @@ function ItemView:NoGetRewardShow(_reward, effectLayer, isShowAddImage) self.fragmentIcon:GetComponent("Image").sprite = self.spLoader:LoadSprite(GetProStrImageByProNum(propertyName)) end Util.AddOnceClick(self.frameBtn, function() - UIManager.OpenPanel(UIName.RewardItemSingleShowPopup, itemSId,nil,self.isRewardItemPop,false) + UIManager.OpenPanel(UIName.RewardItemSingleShowPopup, itemSId,nil,self.isRewardItemPop,true) end) elseif itemDataConFig.ItemType == ItemType.Equip then --3装备 @@ -487,7 +487,7 @@ function ItemView:NoGetRewardShow(_reward, effectLayer, isShowAddImage) --self.pokemonFrame:GetComponent("Image").sprite = self.spLoader:LoadSprite(YaoHunFrame[itemConfig[itemSId].Quantity]) --self.pokemonImage.sprite = self.spLoader:LoadSprite(GetResourcePath(itemConfig[itemSId].ResourceID)) Util.AddOnceClick(self.frameBtn, function() - UIManager.OpenPanel(UIName.RewardItemSingleShowPopup, itemSId,nil,self.isRewardItemPop,false) + UIManager.OpenPanel(UIName.RewardItemSingleShowPopup, itemSId,nil,self.isRewardItemPop,true) end) if effectLayer > 0 then self.UI_Effect_Kuang_JinSe:SetActive(itemConfig[itemSId].Quantity == 5) @@ -510,7 +510,7 @@ function ItemView:NoGetRewardShow(_reward, effectLayer, isShowAddImage) self.frame.sprite = self.spLoader:LoadSprite(GetQuantityImageByquality(itemConfig[itemSId].Quantity)) self.icon.sprite = self.spLoader:LoadSprite(GetResourcePath(itemConfig[itemSId].ResourceID)) Util.AddOnceClick(self.frameBtn, function() - UIManager.OpenPanel(UIName.RewardItemSingleShowPopup, itemSId,nil,self.isRewardItemPop,false) + UIManager.OpenPanel(UIName.RewardItemSingleShowPopup, itemSId,nil,self.isRewardItemPop,true) end) if itemDataConFig.RingLevel > 0 then self.innateImage:SetActive(true) @@ -580,7 +580,7 @@ function ItemView:NoGetRewardShow(_reward, effectLayer, isShowAddImage) self:SetFrameEffectLayer(effectLayer) self:SetFrameEffectScale(self.scale * 0.7) Util.AddOnceClick(self.frameBtn, function() - UIManager.OpenPanel(UIName.RewardItemSingleShowPopup,itemSId,nil,self.isRewardItemPop,false) + UIManager.OpenPanel(UIName.RewardItemSingleShowPopup,itemSId,nil,self.isRewardItemPop,true) end) elseif itemDataConFig.ItemType == ItemType.SelfBox then self.frame.sprite = self.spLoader:LoadSprite(GetQuantityImageByquality(itemConfig[itemSId].Quantity)) @@ -601,14 +601,14 @@ function ItemView:NoGetRewardShow(_reward, effectLayer, isShowAddImage) local star = _reward[4] or itemConfig[itemSId].HeroStar[1] SetHeroStars(self.starGrid, star,1,Vector2.New(32.5,32.5),-15) Util.AddOnceClick(self.frameBtn, function() - UIManager.OpenPanel(UIName.RewardItemSingleShowPopup, itemSId,nil,self.isRewardItemPop,false) + UIManager.OpenPanel(UIName.RewardItemSingleShowPopup, itemSId,nil,self.isRewardItemPop,true) end) else --,5随机道具,6符文 self.frame.sprite = self.spLoader:LoadSprite(GetQuantityImageByquality(itemConfig[itemSId].Quantity)) self.icon.sprite = self.spLoader:LoadSprite(GetResourcePath(itemConfig[itemSId].ResourceID)) Util.AddOnceClick(self.frameBtn, function() - UIManager.OpenPanel(UIName.RewardItemSingleShowPopup, itemSId, nil, self.isRewardItemPop,false) + UIManager.OpenPanel(UIName.RewardItemSingleShowPopup, itemSId, nil, self.isRewardItemPop,true) end) end if itemNum <= 0 then @@ -665,7 +665,7 @@ function ItemView:OnBtnCkickEvent(itemSId) --道具自选箱 UIManager.OpenPanel(UIName.RewardBoxPanel,nil,itemDataConFig.Id) else - UIManager.OpenPanel(UIName.RewardItemSingleShowPopup, itemDataConFig.Id,nil,self.isRewardItemPop,false) + UIManager.OpenPanel(UIName.RewardItemSingleShowPopup, itemDataConFig.Id,nil,self.isRewardItemPop,true) end end function ItemView:OnShowUIeffectItemViewSaoguang()