瀏覽代碼

摘星弹窗增加本次登录勾选按钮补充

huangxiaoyue 1 年之前
父節點
當前提交
e6489eb0fd

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Data/LuckyBoxDataManager.cs

@@ -245,7 +245,7 @@ namespace GFGGame
             else if (hasNum >= costNum)
             {
                 if(LuckyBoxDataManager.Instance.CHECK_TIPS_OPEN == false)
-                    AlertUI.Show(string.Format("是否花费{0}个{1}摘星{2}次?", costNum, itemCfg.name, times)).SetLeftButton(true).SetRightButton(true, "确定", (object data) => { onSuccess(); });
+                    AlertUI.Show(string.Format("是否花费{0}个{1}摘星{2}次?", costNum, itemCfg.name, times)).SetLeftButton(true).SetRightButton(true, "确定", (object data) => { onSuccess(); }).SetShowCheck(true);
                 else
                     onSuccess();
             }

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Common/UI_AlertUI.cs

@@ -7,6 +7,7 @@ namespace UI.Common
     public partial class UI_AlertUI
     {
         public GComponent target;
+        public Controller m_checkType;
         public GGraph m_graphBg;
         public GTextField m_txtContent;
         public GTextField m_txtTips;
@@ -60,6 +61,7 @@ namespace UI.Common
 
         private void Init(GComponent comp)
         {
+            m_checkType = comp.GetController("checkType");
             m_graphBg = (GGraph)comp.GetChild("graphBg");
             m_txtContent = (GTextField)comp.GetChild("txtContent");
             m_txtTips = (GTextField)comp.GetChild("txtTips");
@@ -69,6 +71,7 @@ namespace UI.Common
         }
         public void Dispose(bool disposeTarget = false)
         {
+            m_checkType = null;
             m_graphBg = null;
             m_txtContent = null;
             m_txtTips = null;

+ 10 - 0
GameClient/Assets/Game/HotUpdate/Views/Common/Alert/AlertWindow.cs

@@ -233,6 +233,16 @@ namespace GFGGame
             return this;
         }
 
+        public IAlert SetShowCheck(bool isShow = false)
+        {
+            if(isShow)
+                this._ui.m_checkType.selectedIndex = 1;
+            else
+                this._ui.m_checkType.selectedIndex = 0;
+
+            return this;
+        }
+
         public IAlert SetData(object data)
         {
             this.m_data = data;

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/Common/Alert/IAlert.cs

@@ -9,6 +9,7 @@ namespace GFGGame
         IAlert SetLeftButton(bool isShow, string textLeft = "取消", AlertCallback callback = null);
         IAlert SetRightButton(bool isShow, string textRight = "确认", AlertCallback callback = null);
         IAlert SetData(object data);
+        IAlert SetShowCheck(bool isShow);
         IAlert SetClickBlankToClose(bool value);
     }
 }

二進制
GameClient/Assets/ResIn/UI/Common/Common_fui.bytes