Răsfoiți Sursa

摘星预览里获得的服装加上“已拥有”标志

zhaoyang 3 ani în urmă
părinte
comite
a228bbcac7

+ 2 - 1
FGUIProject/assets/CommonGame/components/ComItem.xml

@@ -5,7 +5,8 @@
     <loader id="n12_ehs9" name="loaIcon" xy="110,96" pivot="0.5,0.5" anchor="true" size="116,116" group="n21_qr4e" aspect="true" url="ui://eg2y0ldpm9wm8v" fill="scale"/>
     <loader id="n12_ehs9" name="loaIcon" xy="110,96" pivot="0.5,0.5" anchor="true" size="116,116" group="n21_qr4e" aspect="true" url="ui://eg2y0ldpm9wm8v" fill="scale"/>
     <text id="n14_ehs9" name="txtName" xy="111,194" pivot="0.5,0" anchor="true" size="228,44" group="n21_qr4e" fontSize="32" color="#9b7f61" text="赵钱孙李·巴拉"/>
     <text id="n14_ehs9" name="txtName" xy="111,194" pivot="0.5,0" anchor="true" size="228,44" group="n21_qr4e" fontSize="32" color="#9b7f61" text="赵钱孙李·巴拉"/>
     <image id="n16_j8b3" name="imgGot" src="j48o9b" fileName="images/yx_yilq.png" xy="23,80" group="n21_qr4e"/>
     <image id="n16_j8b3" name="imgGot" src="j48o9b" fileName="images/yx_yilq.png" xy="23,80" group="n21_qr4e"/>
-    <image id="n22_cs8j" name="imgNotHas" src="cs8jthx" fileName="images/yx_whd.png" xy="21,83" group="n21_qr4e"/>
+    <image id="n23_slyz" name="imgHas" src="slyzthy" fileName="images/yx_yihd.png" xy="21,80" group="n21_qr4e"/>
+    <image id="n22_cs8j" name="imgNotHas" src="cs8jthx" fileName="images/yx_whd.png" xy="21,80" group="n21_qr4e"/>
     <text id="n17_j48o" name="txtHasCount" xy="112,243" pivot="0.5,0" anchor="true" size="105,36" group="n21_qr4e" fontSize="26" color="#a28d77" vars="true" text="已拥有:{count=0}"/>
     <text id="n17_j48o" name="txtHasCount" xy="112,243" pivot="0.5,0" anchor="true" size="105,36" group="n21_qr4e" fontSize="26" color="#a28d77" vars="true" text="已拥有:{count=0}"/>
     <loader id="n18_j48o" name="loaRarity" xy="164,0" size="44,94" group="n21_qr4e" url="ui://eg2y0ldpd4iw52" autoSize="true"/>
     <loader id="n18_j48o" name="loaRarity" xy="164,0" size="44,94" group="n21_qr4e" url="ui://eg2y0ldpd4iw52" autoSize="true"/>
     <loader id="n19_tc53" name="loaShouTongReward" xy="32,81" size="160,40" group="n21_qr4e" url="ui://eg2y0ldptc539z" autoSize="true"/>
     <loader id="n19_tc53" name="loaShouTongReward" xy="32,81" size="160,40" group="n21_qr4e" url="ui://eg2y0ldptc539z" autoSize="true"/>

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

@@ -193,6 +193,7 @@
     <image id="a97wthv" name="huoyuedu.png" path="/imagesExport/" exported="true"/>
     <image id="a97wthv" name="huoyuedu.png" path="/imagesExport/" exported="true"/>
     <image id="cs8jthw" name="yx_wilq.png" path="/images/"/>
     <image id="cs8jthw" name="yx_wilq.png" path="/images/"/>
     <image id="cs8jthx" name="yx_whd.png" path="/images/"/>
     <image id="cs8jthx" name="yx_whd.png" path="/images/"/>
+    <image id="slyzthy" name="yx_yihd.png" path="/images/"/>
   </resources>
   </resources>
   <publish name="" path="..\GameClient\Assets\ResIn\UI\CommonGame" packageCount="2" genCode="true" extractAlpha="true"/>
   <publish name="" path="..\GameClient\Assets\ResIn\UI\CommonGame" packageCount="2" genCode="true" extractAlpha="true"/>
 </packageDescription>
 </packageDescription>

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/CommonGame/UI_ComItem.cs

@@ -10,6 +10,7 @@ namespace UI.CommonGame
         public GLoader m_loaIcon;
         public GLoader m_loaIcon;
         public GTextField m_txtName;
         public GTextField m_txtName;
         public GImage m_imgGot;
         public GImage m_imgGot;
+        public GImage m_imgHas;
         public GImage m_imgNotHas;
         public GImage m_imgNotHas;
         public GTextField m_txtHasCount;
         public GTextField m_txtHasCount;
         public GLoader m_loaRarity;
         public GLoader m_loaRarity;
@@ -66,6 +67,7 @@ namespace UI.CommonGame
             m_loaIcon = (GLoader)comp.GetChild("loaIcon");
             m_loaIcon = (GLoader)comp.GetChild("loaIcon");
             m_txtName = (GTextField)comp.GetChild("txtName");
             m_txtName = (GTextField)comp.GetChild("txtName");
             m_imgGot = (GImage)comp.GetChild("imgGot");
             m_imgGot = (GImage)comp.GetChild("imgGot");
+            m_imgHas = (GImage)comp.GetChild("imgHas");
             m_imgNotHas = (GImage)comp.GetChild("imgNotHas");
             m_imgNotHas = (GImage)comp.GetChild("imgNotHas");
             m_txtHasCount = (GTextField)comp.GetChild("txtHasCount");
             m_txtHasCount = (GTextField)comp.GetChild("txtHasCount");
             m_loaRarity = (GLoader)comp.GetChild("loaRarity");
             m_loaRarity = (GLoader)comp.GetChild("loaRarity");
@@ -78,6 +80,7 @@ namespace UI.CommonGame
             m_loaIcon = null;
             m_loaIcon = null;
             m_txtName = null;
             m_txtName = null;
             m_imgGot = null;
             m_imgGot = null;
+            m_imgHas = null;
             m_imgNotHas = null;
             m_imgNotHas = null;
             m_txtHasCount = null;
             m_txtHasCount = null;
             m_loaRarity = null;
             m_loaRarity = null;

+ 20 - 1
GameClient/Assets/Game/HotUpdate/Views/CommonGame/ItemView.cs

@@ -11,6 +11,7 @@ namespace GFGGame
         private GTextField _txtHasCount;
         private GTextField _txtHasCount;
         private GImage _imgGot;
         private GImage _imgGot;
         private GImage _imgNotHas;
         private GImage _imgNotHas;
+        private GImage _imgHas;
         private GLoader _loaShouTongRewardVisble;
         private GLoader _loaShouTongRewardVisble;
         private GGroup _grpCount;
         private GGroup _grpCount;
 
 
@@ -26,6 +27,7 @@ namespace GFGGame
             _txtHasCount = obj.GetChild("txtHasCount") as GTextField;
             _txtHasCount = obj.GetChild("txtHasCount") as GTextField;
             _imgGot = obj.GetChild("imgGot") as GImage;
             _imgGot = obj.GetChild("imgGot") as GImage;
             _imgNotHas = obj.GetChild("imgNotHas") as GImage;
             _imgNotHas = obj.GetChild("imgNotHas") as GImage;
+            _imgHas = obj.GetChild("imgHas") as GImage;
             _loaShouTongRewardVisble = obj.GetChild("loaShouTongReward") as GLoader;
             _loaShouTongRewardVisble = obj.GetChild("loaShouTongReward") as GLoader;
             _grpCount = obj.GetChild("grpCount") as GGroup;
             _grpCount = obj.GetChild("grpCount") as GGroup;
             AddClickListener();
             AddClickListener();
@@ -52,6 +54,7 @@ namespace GFGGame
             RarityIconController.UpdateRarityIcon(_loaRarity, _itemData.id, false);
             RarityIconController.UpdateRarityIcon(_loaRarity, _itemData.id, false);
             _imgGot.visible = false;
             _imgGot.visible = false;
             _imgNotHas.visible = false;
             _imgNotHas.visible = false;
+            _imgHas.visible = false;
             _loaShouTongRewardVisble.visible = false;
             _loaShouTongRewardVisble.visible = false;
             _grpCount.visible = true;
             _grpCount.visible = true;
             _showTips = true;
             _showTips = true;
@@ -76,8 +79,22 @@ namespace GFGGame
                 _imgGot.visible = value;
                 _imgGot.visible = value;
             }
             }
         }
         }
+        /// “已获得”显示状态
+        /// </summary>
+        /// <value></value>
+        public bool ImgHasVisible
+        {
+            get
+            {
+                return _imgHas.visible;
+            }
+            set
+            {
+                _imgHas.visible = value;
+            }
+        }
         /// <summary>
         /// <summary>
-        /// “未领取”显示状态
+        /// “未获得”显示状态
         /// </summary>
         /// </summary>
         /// <value></value>
         /// <value></value>
         public bool ImgNotGotVisible
         public bool ImgNotGotVisible
@@ -91,6 +108,8 @@ namespace GFGGame
                 _imgNotHas.visible = value;
                 _imgNotHas.visible = value;
             }
             }
         }
         }
+        /// <summary>
+
 
 
         /// <summary>
         /// <summary>
         /// "已拥有"显示状态
         /// "已拥有"显示状态

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxPreShowView.cs

@@ -58,6 +58,7 @@ namespace GFGGame
                 }
                 }
                 (item.data as ItemView).SetData(itemData);
                 (item.data as ItemView).SetData(itemData);
                 (item.data as ItemView).TxtHasCountVisble = false;
                 (item.data as ItemView).TxtHasCountVisble = false;
+                (item.data as ItemView).ImgHasVisible = ItemDataManager.GetItemNum(itemData.id) > 0;
 
 
             };
             };
 
 

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