瀏覽代碼

每日签到

zhaoyang 2 年之前
父節點
當前提交
bedf1a8dc0

+ 2 - 1
FGUIProject/assets/DailyWelfare/components/ComProBonus.xml

@@ -7,6 +7,7 @@
     <image id="n17_qik1" name="n17" src="qik1d" fileName="images/mrqd_sz_db.png" xy="34,57" group="n13_fqor"/>
     <text id="n15_fqor" name="txtCount" xy="35,46" pivot="0.5,0" size="45,39" group="n13_fqor" fontSize="28" color="#ffffff" align="center" autoClearText="true" text="000"/>
     <text id="n12_fqor" name="txtDay" xy="39,103" pivot="0.5,0" anchor="true" size="35,44" group="n13_fqor" fontSize="32" color="#643323" align="center" text="30"/>
-    <group id="n13_fqor" name="n13" xy="0,0" size="80,147"/>
+    <image id="n19_qik1" name="imgGot" src="qik1k" fileName="images/yz_yhd.png" xy="-19,20" pivot="0.5,0" group="n13_fqor" scale="0.7,0.7"/>
+    <group id="n13_fqor" name="n13" xy="-19,0" size="119,147"/>
   </displayList>
 </component>

+ 2 - 1
FGUIProject/assets/Store/package.xml

@@ -103,7 +103,7 @@
     <image id="hhx914" name="font_save_7.png" path="/font/"/>
     <image id="hhx915" name="font_save_8.png" path="/font/"/>
     <image id="hhx916" name="font_save_9.png" path="/font/"/>
-    <image id="hhx917" name="MonthCard_baseboard.png" path="/imagesNew/"/>
+    <image id="hhx917" name="MonthCard_baseboard.png" path="/imagesNew/" scale="9grid" scale9grid="243,346,486,692"/>
     <image id="hhx918" name="MonthCard_bg.png" path="/imagesNew/"/>
     <image id="hhx919" name="MonthCard_Devide_baseboard.png" path="/imagesNew/"/>
     <image id="hhx91a" name="MonthCard_Icon.png" path="/imagesNew/"/>
@@ -140,6 +140,7 @@
     <image id="qik1tbx" name="bt_to.png" path="/imagesNew/"/>
     <component id="qik1tby" name="ListVipItem.xml" path="/components/"/>
     <component id="qik1tbz" name="Button8.xml" path="/components/"/>
+    <component id="qik1tc0" name="StoreMonthUI.xml" path="/"/>
   </resources>
   <publish name="" path="../GameClient/Assets/ResIn/UI/Store" packageCount="2" genCode="true"/>
 </packageDescription>

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/DailyWelfare/UI_ComProBonus.cs

@@ -10,6 +10,7 @@ namespace UI.DailyWelfare
         public GLoader m_loaIcon;
         public GTextField m_txtCount;
         public GTextField m_txtDay;
+        public GImage m_imgGot;
         public const string URL = "ui://t8nwuj7ifqor8";
         public const string PACKAGE_NAME = "DailyWelfare";
         public const string RES_NAME = "ComProBonus";
@@ -60,12 +61,14 @@ namespace UI.DailyWelfare
             m_loaIcon = (GLoader)comp.GetChild("loaIcon");
             m_txtCount = (GTextField)comp.GetChild("txtCount");
             m_txtDay = (GTextField)comp.GetChild("txtDay");
+            m_imgGot = (GImage)comp.GetChild("imgGot");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_loaIcon = null;
             m_txtCount = null;
             m_txtDay = null;
+            m_imgGot = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 3 - 1
GameClient/Assets/Game/HotUpdate/Views/DailyWelfare/DailySignView.cs

@@ -111,7 +111,9 @@ namespace GFGGame
                     item.target.onClick.Add(OnBtnGetProBonus);
                 }
                 item.target.data = signCfgs[i];
-                bool canGet = _signCount >= signCfgs[i].day && !MathHelper.isBitSet(GameGlobal.myNumericComponent.GetAsInt(NumericType.SignReward), signCfgs[i].day);
+                bool isGot = MathHelper.isBitSet(GameGlobal.myNumericComponent.GetAsInt(NumericType.SignReward), signCfgs[i].day);
+                item.m_imgGot.visible = isGot;
+                bool canGet = _signCount >= signCfgs[i].day && !isGot;
                 RedDotController.Instance.SetComRedDot(item.target, canGet);
                 UI_ComProBonus.ProxyEnd();
             }

二進制
GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_fui.bytes