Browse Source

黑卡单品

zhaoyang 2 years ago
parent
commit
7faff15cb1
28 changed files with 317 additions and 27 deletions
  1. 2 1
      FGUIProject/assets/CommonGame/package.xml
  2. 25 0
      FGUIProject/assets/Store/StoreBlackCardRewardUI.xml
  3. 0 10
      FGUIProject/assets/Store/StoreMonthBlackCardRewardUI.xml
  4. 8 7
      FGUIProject/assets/Store/StoreMonthUI.xml
  5. 13 0
      FGUIProject/assets/Store/components/Button11.xml
  6. 16 0
      FGUIProject/assets/Store/components/ListBlackRewardtem.xml
  7. BIN
      FGUIProject/assets/Store/imagesNew/dikuang_SkillItem_zz.png
  8. BIN
      FGUIProject/assets/Store/imagesNew/dydp_db.png
  9. BIN
      FGUIProject/assets/Store/imagesNew/mrqd_kbq.png
  10. BIN
      FGUIProject/assets/Store/imagesNew/tb_wenhao.png
  11. BIN
      FGUIProject/assets/Store/imagesNew/wp_baseboard1.png
  12. BIN
      FGUIProject/assets/Store/imagesNew/wz_shengxing.png
  13. BIN
      FGUIProject/assets/Store/imagesNew/yf_db.png
  14. BIN
      FGUIProject/assets/Store/imagesNew/yk_hjkdp.png
  15. 11 1
      FGUIProject/assets/Store/package.xml
  16. 89 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Store/UI_ListBlackRewardtem.cs
  17. 1 1
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Store/UI_ListBlackRewardtem.cs.meta
  18. 10 7
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Store/UI_StoreBlackCardRewardUI.cs
  19. 11 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Store/UI_StoreBlackCardRewardUI.cs.meta
  20. 3 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Store/UI_StoreMonthUI.cs
  21. 110 0
      GameClient/Assets/Game/HotUpdate/Views/Store/StoreBlackCardRewardView.cs
  22. 11 0
      GameClient/Assets/Game/HotUpdate/Views/Store/StoreBlackCardRewardView.cs.meta
  23. 7 0
      GameClient/Assets/Game/HotUpdate/Views/Store/StoreMonthView.cs
  24. BIN
      GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0!a.png
  25. BIN
      GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0.png
  26. BIN
      GameClient/Assets/ResIn/UI/CommonGame/CommonGame_fui.bytes
  27. BIN
      GameClient/Assets/ResIn/UI/Store/Store_atlas0.png
  28. BIN
      GameClient/Assets/ResIn/UI/Store/Store_fui.bytes

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

@@ -302,7 +302,7 @@
     <image id="l500tlw" name="wpk_sz_db.png" path="/imagesNew/"/>
     <image id="l500tlx" name="wpk_zz.png" path="/imagesNew/"/>
     <component id="qik1tly" name="ComItemNew1.xml" path="/components/" exported="true"/>
-    <component id="qik1tlz" name="ComItemIconNew1.xml" path="/components/"/>
+    <component id="qik1tlz" name="ComItemIconNew1.xml" path="/components/" exported="true"/>
     <image id="hhx9j" name="wp_baseboard1.png" path="/imagesNew/"/>
     <image id="qik1tm0" name="dikuang_SkillLevel.png" path="/imagesNew/" scale="9grid" scale9grid="10,7,20,14"/>
     <component id="qik1tm1" name="BtnStyle000.xml" path="/components/" exported="true"/>
@@ -314,6 +314,7 @@
     <component id="qik1tcb" name="ComBg000.xml" path="/componentsBg/" exported="true"/>
     <image id="qik1tc9" name="lm_dt_zsx1.png" path="/componentsBg/"/>
     <image id="qik1tca" name="lm_dt_zsx2.png" path="/componentsBg/"/>
+    <image id="qik1tm7" name="db_jiajian_1.png" path="/images/"/>
   </resources>
   <publish name="" path="../GameClient/Assets/ResIn/UI/CommonGame" packageCount="2" genCode="true" extractAlpha="true"/>
 </packageDescription>

+ 25 - 0
FGUIProject/assets/Store/StoreBlackCardRewardUI.xml

@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<component size="1080,992">
+  <displayList>
+    <component id="n0_qik1" name="comBg" src="qik1tcb" fileName="componentsBg/ComBg000.xml" pkg="eg2y0ldp" xy="0,0">
+      <property target="txtTitle" propertyId="0" value="黑金卡专属"/>
+    </component>
+    <image id="n6_qik1" name="n6" src="wm603t" fileName="imagesNew/lm_zhuangshixian_duan.png" pkg="eg2y0ldp" xy="132,796"/>
+    <text id="n7_qik1" name="n7" xy="241,822" size="682,86" fontSize="32" color="#a88656" align="center" autoSize="none" text="黑金卡玩家,每月1日5点起,可免费领取黑金卡 专属单品,请注意及时领取,逾期失效。"/>
+    <list id="n14_qik1" name="list" xy="147,176" size="809,590" layout="flow_hz" lineGap="10" colGap="20" defaultItem="ui://p9mtgheoqik1tcj" autoClearItems="true">
+      <item/>
+      <item/>
+      <item/>
+      <item/>
+      <item/>
+      <item/>
+      <item/>
+      <item/>
+      <item/>
+      <item/>
+      <item/>
+      <item/>
+    </list>
+  </displayList>
+  <customProperty target="" propertyId="0"/>
+</component>

+ 0 - 10
FGUIProject/assets/Store/StoreMonthBlackCardRewardUI.xml

@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<component size="1080,992">
-  <displayList>
-    <component id="n0_qik1" name="comBg" src="qik1tcb" fileName="componentsBg/ComBg000.xml" pkg="eg2y0ldp" xy="6,0">
-      <property target="txtTitle" propertyId="0" value="黑金卡专属"/>
-    </component>
-    <image id="n6_qik1" name="n6" src="wm603t" fileName="imagesNew/lm_zhuangshixian_duan.png" pkg="eg2y0ldp" xy="132,770"/>
-  </displayList>
-  <customProperty target="" propertyId="0"/>
-</component>

+ 8 - 7
FGUIProject/assets/Store/StoreMonthUI.xml

@@ -6,25 +6,25 @@
     </image>
     <image id="n2_qik1" name="n2" src="hhx918" fileName="imagesNew/MonthCard_bg.png" xy="90,552"/>
     <component id="n41_qik1" name="valueBar" src="v3541v" fileName="components/ComponentValueBar.xml" pkg="eg2y0ldp" xy="0,95" controller="c1,10"/>
-    <component id="n3_qik1" name="btnRule" src="psphtkg" fileName="components/BtnRule.xml" pkg="eg2y0ldp" xy="919,564" size="52,52">
+    <component id="n3_qik1" name="btnRule" src="psphtkg" fileName="components/BtnRule.xml" pkg="eg2y0ldp" xy="908,564" size="52,52">
       <Button icon="ui://p9mtgheofqortar"/>
     </component>
     <loader id="n33_qik1" name="loaCard" xy="190,612" size="592,340" url="ui://p9mtgheohhx91a" autoSize="true"/>
-    <text id="n4_qik1" name="txtTime" xy="759,570" pivot="1,0" size="143,39" fontSize="28" color="#675c50" vars="true" text="{value=29}天后到期"/>
+    <text id="n4_qik1" name="txtTime" xy="727,570" pivot="1,0" size="143,39" fontSize="28" color="#675c50" vars="true" text="{value=29}天后到期"/>
     <image id="n5_qik1" name="n5" src="hhx919" fileName="imagesNew/MonthCard_Devide_baseboard.png" xy="127,1004" size="826,240"/>
     <component id="n32_qik1" name="btnBuy" src="qik1tc2" fileName="components/Button10.xml" xy="415,864"/>
     <text id="n6_qik1" name="txtTips" xy="149,954" pivot="0.5,0" size="781,36" fontSize="26" color="#8c8580" vars="true" text="购买/续费可获得{value=300}会员积分(剩余天数超过{day=300}天后无法继续续费)"/>
-    <text id="n7_qik1" name="n7" xy="296,1025" size="182,42" group="n10_qik1" fontSize="30" color="#8c8580" vars="true" text="购买立即获得"/>
+    <text id="n7_qik1" name="n7" xy="296,1025" size="182,41" group="n10_qik1" fontSize="30" color="#8c8580" vars="true" text="购买立即获得"/>
     <loader id="n11_qik1" name="loaMoney" xy="513,1026" size="40,40" group="n15_qik1" aspect="true" url="ui://eg2y0ldpkztethq" fill="scale"/>
-    <text id="n13_qik1" name="n13" xy="554,1026" size="19,42" group="n15_qik1" fontSize="30" color="#8c8580" vars="true" text="*"/>
-    <text id="n14_qik1" name="txtMoneyCount" xy="572,1025" size="47,42" group="n15_qik1" fontSize="30" color="#8c8580" vars="true" text="300"/>
+    <text id="n13_qik1" name="n13" xy="554,1026" size="19,41" group="n15_qik1" fontSize="30" color="#8c8580" vars="true" text="*"/>
+    <text id="n14_qik1" name="txtMoneyCount" xy="572,1025" size="47,41" group="n15_qik1" fontSize="30" color="#8c8580" vars="true" text="300"/>
     <group id="n15_qik1" name="n15" xy="513,1025" size="106,43" group="n10_qik1" advanced="true"/>
-    <text id="n20_qik1" name="n20" xy="654,1026" size="63,42" group="n19_qik1" fontSize="30" color="#8c8580" vars="true" text="特权"/>
+    <text id="n20_qik1" name="n20" xy="654,1026" size="63,41" group="n19_qik1" fontSize="30" color="#8c8580" vars="true" text="特权"/>
     <text id="n17_qik1" name="n17" xy="717,1026" size="19,41" group="n19_qik1" fontSize="30" color="#8c8580" vars="true" text="*"/>
     <text id="n18_qik1" name="txtPrivilegeCount" xy="736,1025" size="47,41" group="n19_qik1" fontSize="30" color="#8c8580" vars="true" text="300"/>
     <group id="n19_qik1" name="n19" xy="654,1025" size="129,43" group="n10_qik1" advanced="true"/>
     <group id="n10_qik1" name="n10" xy="296,1025" size="487,43" advanced="true" layout="hz" colGap="35" excludeInvisibles="true"/>
-    <text id="n21_qik1" name="n21" xy="349,1080" size="241,42" group="n30_qik1" fontSize="30" color="#8c8580" vars="true" text="金卡期间每天获得"/>
+    <text id="n21_qik1" name="n21" xy="349,1080" size="241,41" group="n30_qik1" fontSize="30" color="#8c8580" vars="true" text="金卡期间每天获得"/>
     <loader id="n22_qik1" name="loaDailyMoney" xy="625,1081" size="40,40" group="n25_qik1" aspect="true" url="ui://eg2y0ldpkztethq" fill="scale"/>
     <text id="n23_qik1" name="n23" xy="666,1081" size="19,41" group="n25_qik1" fontSize="30" color="#8c8580" vars="true" text="*"/>
     <text id="n24_qik1" name="txtDailyMoneyCount" xy="684,1080" size="47,41" group="n25_qik1" fontSize="30" color="#8c8580" vars="true" text="300"/>
@@ -49,5 +49,6 @@
     <component id="n39_qik1" name="n39" src="hhx90" fileName="components/ComZhuangShi.xml" xy="690,1420">
       <relation target="" sidePair="right-right,bottom-bottom"/>
     </component>
+    <component id="n42_qik1" name="btnBlackReward" src="qik1tcm" fileName="components/Button11.xml" xy="869,617"/>
   </displayList>
 </component>

+ 13 - 0
FGUIProject/assets/Store/components/Button11.xml

@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<component size="130,129" extention="Button">
+  <Button/>
+  <controller name="button" pages="0,up,1,down,2,over,3,selectedOver"/>
+  <displayList>
+    <image id="n0_qik1" src="qik1tcc" name="n0" xy="0,0">
+      <relation target="" sidePair="width,height"/>
+    </image>
+    <text id="n1_qik1" name="title" xy="0,0" size="130,129" fontSize="30" autoSize="none" align="center" vAlign="middle" singleLine="true">
+      <relation target="" sidePair="width,height"/>
+    </text>
+  </displayList>
+</component>

+ 16 - 0
FGUIProject/assets/Store/components/ListBlackRewardtem.xml

@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<component size="185,182">
+  <controller name="c1" pages="0,,1,,2,,3," selected="0"/>
+  <displayList>
+    <image id="n19_qik1" name="n19" src="qik1tcl" fileName="imagesNew/wp_baseboard1.png" xy="0,2"/>
+    <loader id="n20_qik1" name="loaIcon" xy="96,97" pivot="0.5,0.5" anchor="true" size="122,122" aspect="true" url="ui://xz8kxrecng0i27" fill="scale"/>
+    <image id="n9_qik1" name="n9" src="qik1tci" fileName="imagesNew/yf_db.png" xy="103,0" group="n14_qik1"/>
+    <text id="n10_qik1" name="txtMonth" xy="101,17" pivot="0.5,0" size="84,39" group="n14_qik1" fontSize="28" color="#9a4e16" align="center" letterSpacing="-2" text="十二月"/>
+    <group id="n14_qik1" name="grpMonth" xy="101,0" size="84,79" advanced="true"/>
+    <image id="n11_qik1" name="n11" src="qik1tce" fileName="imagesNew/dydp_db.png" xy="26,135" group="n15_qik1"/>
+    <text id="n12_qik1" name="n12" xy="31,133" pivot="0.5,0" size="126,44" group="n15_qik1" fontSize="32" color="#7c4527" align="center" letterSpacing="-2" text="当月单品"/>
+    <group id="n15_qik1" name="grpName" xy="26,133" size="140,45" advanced="true"/>
+    <image id="n13_qik1" name="imgMask" src="qik1tcd" fileName="imagesNew/dikuang_SkillItem_zz.png" xy="1,1"/>
+    <image id="n16_qik1" name="imggot" src="qik1tck" fileName="imagesNew/mrqd_kbq.png" xy="-14,38"/>
+  </displayList>
+</component>

BIN
FGUIProject/assets/Store/imagesNew/dikuang_SkillItem_zz.png


BIN
FGUIProject/assets/Store/imagesNew/dydp_db.png


BIN
FGUIProject/assets/Store/imagesNew/mrqd_kbq.png


BIN
FGUIProject/assets/Store/imagesNew/tb_wenhao.png


BIN
FGUIProject/assets/Store/imagesNew/wp_baseboard1.png


BIN
FGUIProject/assets/Store/imagesNew/wz_shengxing.png


BIN
FGUIProject/assets/Store/imagesNew/yf_db.png


BIN
FGUIProject/assets/Store/imagesNew/yk_hjkdp.png


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

@@ -148,7 +148,17 @@
     <image id="qik1tc5" name="sc_tab_duihuan.png" path="/imagesNew/"/>
     <image id="qik1tc6" name="sc_tab_duihuan_xuanzhong.png" path="/imagesNew/"/>
     <image id="qik1tc7" name="sc_tab_feihualing.png" path="/imagesNew/"/>
-    <component id="qik1tc8" name="StoreMonthBlackCardRewardUI.xml" path="/" exported="true"/>
+    <component id="qik1tc8" name="StoreBlackCardRewardUI.xml" path="/" exported="true"/>
+    <image id="qik1tcc" name="yk_hjkdp.png" path="/imagesNew/"/>
+    <image id="qik1tcd" name="dikuang_SkillItem_zz.png" path="/imagesNew/"/>
+    <image id="qik1tce" name="dydp_db.png" path="/imagesNew/"/>
+    <image id="qik1tcg" name="tb_wenhao.png" path="/imagesNew/"/>
+    <image id="qik1tch" name="wz_shengxing.png" path="/imagesNew/"/>
+    <image id="qik1tci" name="yf_db.png" path="/imagesNew/"/>
+    <component id="qik1tcj" name="ListBlackRewardtem.xml" path="/components/"/>
+    <image id="qik1tck" name="mrqd_kbq.png" path="/imagesNew/"/>
+    <image id="qik1tcl" name="wp_baseboard1.png" path="/imagesNew/"/>
+    <component id="qik1tcm" name="Button11.xml" path="/components/"/>
   </resources>
   <publish name="" path="../GameClient/Assets/ResIn/UI/Store" packageCount="2" genCode="true"/>
 </packageDescription>

+ 89 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Store/UI_ListBlackRewardtem.cs

@@ -0,0 +1,89 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.Store
+{
+    public partial class UI_ListBlackRewardtem
+    {
+        public GComponent target;
+        public Controller m_c1;
+        public GLoader m_loaIcon;
+        public GTextField m_txtMonth;
+        public GGroup m_grpMonth;
+        public GGroup m_grpName;
+        public GImage m_imgMask;
+        public GImage m_imggot;
+        public const string URL = "ui://p9mtgheoqik1tcj";
+        public const string PACKAGE_NAME = "Store";
+        public const string RES_NAME = "ListBlackRewardtem";
+        private static UI_ListBlackRewardtem _proxy;
+
+        public static UI_ListBlackRewardtem Create(GObject gObject = null)
+        {
+            var ui = new UI_ListBlackRewardtem();
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static UI_ListBlackRewardtem Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_ListBlackRewardtem();
+            }
+            var ui = _proxy;
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static void ProxyEnd()
+        {
+            if (_proxy != null)
+            {
+                _proxy.Dispose();
+            }
+        }
+
+        public static void ClearProxy()
+        {
+            ProxyEnd();
+            _proxy = null;
+        }
+
+        private void Init(GComponent comp)
+        {
+            m_c1 = comp.GetController("c1");
+            m_loaIcon = (GLoader)comp.GetChild("loaIcon");
+            m_txtMonth = (GTextField)comp.GetChild("txtMonth");
+            m_grpMonth = (GGroup)comp.GetChild("grpMonth");
+            m_grpName = (GGroup)comp.GetChild("grpName");
+            m_imgMask = (GImage)comp.GetChild("imgMask");
+            m_imggot = (GImage)comp.GetChild("imggot");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_c1 = null;
+            m_loaIcon = null;
+            m_txtMonth = null;
+            m_grpMonth = null;
+            m_grpName = null;
+            m_imgMask = null;
+            m_imggot = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

+ 1 - 1
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Store/UI_StoreMonthBlackCardRewardUI.cs.meta → GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Store/UI_ListBlackRewardtem.cs.meta

@@ -1,5 +1,5 @@
 fileFormatVersion: 2
-guid: d307c817ae8cccc469ab1ef693812e19
+guid: 49d80878fa696a44a9a9c4915410b258
 MonoImporter:
   externalObjects: {}
   serializedVersion: 2

+ 10 - 7
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Store/UI_StoreMonthBlackCardRewardUI.cs → GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Store/UI_StoreBlackCardRewardUI.cs

@@ -4,18 +4,19 @@ using FairyGUI;
 
 namespace UI.Store
 {
-    public partial class UI_StoreMonthBlackCardRewardUI
+    public partial class UI_StoreBlackCardRewardUI
     {
         public GComponent target;
         public GComponent m_comBg;
+        public GList m_list;
         public const string URL = "ui://p9mtgheoqik1tc8";
         public const string PACKAGE_NAME = "Store";
-        public const string RES_NAME = "StoreMonthBlackCardRewardUI";
-        private static UI_StoreMonthBlackCardRewardUI _proxy;
+        public const string RES_NAME = "StoreBlackCardRewardUI";
+        private static UI_StoreBlackCardRewardUI _proxy;
 
-        public static UI_StoreMonthBlackCardRewardUI Create(GObject gObject = null)
+        public static UI_StoreBlackCardRewardUI Create(GObject gObject = null)
         {
-            var ui = new UI_StoreMonthBlackCardRewardUI();
+            var ui = new UI_StoreBlackCardRewardUI();
             if(gObject == null)
             	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
             else
@@ -24,11 +25,11 @@ namespace UI.Store
             return ui;
         }
 
-        public static UI_StoreMonthBlackCardRewardUI Proxy(GObject gObject = null)
+        public static UI_StoreBlackCardRewardUI Proxy(GObject gObject = null)
         {
             if(_proxy == null)
             {
-                _proxy = new UI_StoreMonthBlackCardRewardUI();
+                _proxy = new UI_StoreBlackCardRewardUI();
             }
             var ui = _proxy;
             if(gObject == null)
@@ -56,10 +57,12 @@ namespace UI.Store
         private void Init(GComponent comp)
         {
             m_comBg = (GComponent)comp.GetChild("comBg");
+            m_list = (GList)comp.GetChild("list");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_comBg = null;
+            m_list = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Store/UI_StoreBlackCardRewardUI.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 06b80a29fdd024546b526219865fdea9
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Store/UI_StoreMonthUI.cs

@@ -21,6 +21,7 @@ namespace UI.Store
         public GButton m_btnGet;
         public GTextField m_txtGiftBag;
         public GList m_list;
+        public GButton m_btnBlackReward;
         public const string URL = "ui://p9mtgheoqik1tc0";
         public const string PACKAGE_NAME = "Store";
         public const string RES_NAME = "StoreMonthUI";
@@ -82,6 +83,7 @@ namespace UI.Store
             m_btnGet = (GButton)comp.GetChild("btnGet");
             m_txtGiftBag = (GTextField)comp.GetChild("txtGiftBag");
             m_list = (GList)comp.GetChild("list");
+            m_btnBlackReward = (GButton)comp.GetChild("btnBlackReward");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -100,6 +102,7 @@ namespace UI.Store
             m_btnGet = null;
             m_txtGiftBag = null;
             m_list = null;
+            m_btnBlackReward = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 110 - 0
GameClient/Assets/Game/HotUpdate/Views/Store/StoreBlackCardRewardView.cs

@@ -0,0 +1,110 @@
+using System;
+using ET;
+using FairyGUI;
+using UI.Store;
+using UI.CommonGame;
+namespace GFGGame
+{
+    public class StoreBlackCardRewardView : BaseWindow
+    {
+        private UI_StoreBlackCardRewardUI _ui;
+        private int _month;
+        private int _day;
+        public override void Dispose()
+        {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
+            base.Dispose();
+        }
+
+        protected override void OnInit()
+        {
+            base.OnInit();
+            packageName = UI_StoreBlackCardRewardUI.PACKAGE_NAME;
+            _ui = UI_StoreBlackCardRewardUI.Create();
+            this.viewCom = _ui.target;
+            this.viewCom.Center();
+            this.modal = true;
+            viewAnimationType = EnumViewAnimationType.ZOOM_CENTER;
+
+            _ui.m_comBg.GetChild("btnClose").asCom.onClick.Add(Hide);
+            _ui.m_list.itemRenderer = RenderListItem;
+
+        }
+        protected override void AddEventListener()
+        {
+            base.AddEventListener();
+
+        }
+        protected override void OnShown()
+        {
+            base.OnShown();
+
+
+            if (TimeHelper.ClientNow() < TimeUtil.GetCurDayTime(GlobalCfgArray.globalCfg.refreshTime))
+            {
+                if (DateTime.Now.Month == 1)
+                {
+                    _month = 12;
+                }
+                else
+                {
+                    _month = DateTime.Now.Month - 1;
+                }
+            }
+            else
+            {
+                _month = DateTime.Now.Month;
+            }
+            MonthlyCardCfg cardCfg = MonthlyCardCfgArray.Instance.GetCfg(MonthCardType.BlackGold);
+            _ui.m_list.numItems = cardCfg.clothesIdArr.Length;
+        }
+
+        protected override void OnHide()
+        {
+            base.OnHide();
+
+        }
+
+        protected override void RemoveEventListener()
+        {
+            base.RemoveEventListener();
+
+        }
+
+        private void RenderListItem(int index, GObject obj)
+        {
+            MonthlyCardCfg cardCfg = MonthlyCardCfgArray.Instance.GetCfg(MonthCardType.BlackGold);
+            ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(cardCfg.clothesIdArr[index]);
+
+            UI_ListBlackRewardtem item = UI_ListBlackRewardtem.Proxy(obj);
+
+            item.m_loaIcon.url = ResPathUtil.GetIconPath(itemCfg);
+            item.m_txtMonth.text = string.Format("{0}月", NumberUtil.GetChiniseNumberText(index + 1));
+
+            bool isCurMonth = index + 1 == _month;
+            item.m_imgMask.visible = !isCurMonth;
+            item.m_grpMonth.visible = isCurMonth;
+            item.m_grpName.visible = isCurMonth;
+
+            if (item.target.data == null)
+            {
+                item.target.onClick.Add(OnBtnGetClick);
+            }
+            item.target.data = _month;
+
+            UI_ListBlackRewardtem.ProxyEnd();
+        }
+
+        private void OnBtnGetClick(EventContext context)
+        {
+            GObject obj = context.sender as GObject;
+
+            int month = (int)obj.data;
+
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/Views/Store/StoreBlackCardRewardView.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 05b9802f6b5980c4598ae4067a6aa2f3
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 7 - 0
GameClient/Assets/Game/HotUpdate/Views/Store/StoreMonthView.cs

@@ -41,6 +41,7 @@ namespace GFGGame
             _ui.m_list.itemRenderer = ListItemRenderer;
             _ui.m_btnBuy.target.onClick.Add(OnBtnBuyCardClick);
             _ui.m_btnGet.onClick.Add(OnBtnGetClick);
+            _ui.m_btnBlackReward.onClick.Add(OnBtnBlackRewardClick);
         }
         protected override void AddEventListener()
         {
@@ -65,6 +66,10 @@ namespace GFGGame
         {
             base.RemoveEventListener();
         }
+        private void OnBtnBlackRewardClick()
+        {
+            ViewManager.Show<StoreBlackCardRewardView>();
+        }
         private void UpdateView()
         {
             int menu2 = (int)this.viewData;
@@ -96,6 +101,7 @@ namespace GFGGame
                     }
                     _ui.m_txtMoneyCount.text = privilegeCfg.value1Arr[0].ToString();
                     _ui.m_txtDailyMoneyCount.text = privilegeCfg.value1Arr[1].ToString();
+                    _ui.m_btnBlackReward.visible = false;
                     break;
                 case ConstStoreSubId.STORE_MONTH_BLACK_CARD:
                     iconUrl = "ui://Store/MonthCard_Icon";
@@ -113,6 +119,7 @@ namespace GFGGame
 
                     _ui.m_txtMoneyCount.text = privilegeCfg.value2Arr[0].ToString();
                     _ui.m_txtDailyMoneyCount.text = privilegeCfg.value2Arr[1].ToString();
+                    _ui.m_btnBlackReward.visible = true;
                     break;
             }
 

BIN
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0!a.png


BIN
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0.png


BIN
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_fui.bytes


BIN
GameClient/Assets/ResIn/UI/Store/Store_atlas0.png


BIN
GameClient/Assets/ResIn/UI/Store/Store_fui.bytes