Browse Source

增加绿色箭头表示已经收集到该衣服

zhaoyang 2 years ago
parent
commit
236bac779f

+ 2 - 1
FGUIProject/assets/DressUp/components/Component1.xml

@@ -8,7 +8,7 @@
     <image id="n28_pjip" name="n28" src="j48o3y" fileName="images/dz_hz_bxbx.png" xy="0,0">
       <gearDisplay controller="c1" pages="0"/>
     </image>
-    <text id="n30_pjip" name="txtNeedName" xy="84,16" size="221,39" fontSize="28" color="#b08649" align="center" vAlign="middle" letterSpacing="-2" autoSize="none" autoClearText="true" text="孔雀东">
+    <text id="n30_pjip" name="txtNeedName" xy="74,18" size="208,39" fontSize="28" color="#b08649" align="center" vAlign="middle" letterSpacing="-2" autoSize="none" autoClearText="true" text="孔雀东南飞飞">
       <gearDisplay controller="c1" pages="0"/>
     </text>
     <list id="n31_oixc" name="listTag" xy="24,18" size="220,38" layout="row" lineGap="12" colGap="22" defaultItem="ui://eg2y0ldpih7566" vAlign="middle" autoClearItems="true">
@@ -16,5 +16,6 @@
       <item/>
       <item/>
     </list>
+    <image id="n32_ofwu" name="imgGot" src="ofwuf7" fileName="imagesNew/tb_gou_yiyongyou.png" xy="262,14" visible="false"/>
   </displayList>
 </component>

BIN
FGUIProject/assets/DressUp/imagesNew/tb_gou_yiyongyou.png


+ 1 - 1
FGUIProject/assets/DressUp/package.xml

@@ -196,7 +196,7 @@
     <component id="v461f3" name="ComFightScore.xml" path="/components/"/>
     <image id="v461f4" name="jjcdi_jjcdi.png" path="/images/"/>
     <image id="v461f5" name="jjcdi_jjxian.png" path="/images/"/>
-    <image id="rv09f6" name="jjsy_xx_1(1).png" path="/images/"/>
+    <image id="ofwuf7" name="tb_gou_yiyongyou.png" path="/imagesNew/"/>
   </resources>
   <publish name="" path="../GameClient/Assets/ResIn/UI/DressUp" packageCount="2" genCode="true" extractAlpha="true"/>
 </packageDescription>

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/DressUp/UI_Component1.cs

@@ -10,6 +10,7 @@ namespace UI.DressUp
         public Controller m_c1;
         public GTextField m_txtNeedName;
         public GList m_listTag;
+        public GImage m_imgGot;
         public const string URL = "ui://mbo439wbpjip31";
         public const string PACKAGE_NAME = "DressUp";
         public const string RES_NAME = "Component1";
@@ -60,12 +61,14 @@ namespace UI.DressUp
             m_c1 = comp.GetController("c1");
             m_txtNeedName = (GTextField)comp.GetChild("txtNeedName");
             m_listTag = (GList)comp.GetChild("listTag");
+            m_imgGot = (GImage)comp.GetChild("imgGot");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_c1 = null;
             m_txtNeedName = null;
             m_listTag = null;
+            m_imgGot = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 3 - 0
GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpFightView.cs

@@ -152,16 +152,19 @@ namespace GFGGame
                 {
                     _ui.m_compNeed.m_txtNeedName.text = ItemUtil.GetItemName(_fightCfg.needItemId);
                     _ui.m_compNeed.target.data = _fightCfg.needItemId;
+                    _ui.m_compNeed.m_imgGot.visible = ItemDataManager.GetItemNum(_fightCfg.needItemId) > 0;
                 }
                 else if (_fightCfg.needSuitId > 0)
                 {
                     _ui.m_compNeed.m_txtNeedName.text = ItemUtil.GetSuitName(_fightCfg.needSuitId);
                     _ui.m_compNeed.target.data = _fightCfg.needSuitId;
+                    _ui.m_compNeed.m_imgGot.visible = DressUpMenuSuitDataManager.CheckHaveSuit(_fightCfg.needSuitId);
                 }
                 else
                 {
                     _ui.m_compNeed.m_c1.selectedIndex = 1;
                     _ui.m_compNeed.m_listTag.numItems = _fightCfg.needTagsArr.Length;
+                    _ui.m_compNeed.m_imgGot.visible = false;
                 }
             }
             InstanceZonesDataManager.currentScoreType = _fightCfg.scoreType;

BIN
GameClient/Assets/ResIn/UI/DressUp/DressUp_atlas0!a.png


BIN
GameClient/Assets/ResIn/UI/DressUp/DressUp_atlas0.png


BIN
GameClient/Assets/ResIn/UI/DressUp/DressUp_fui.bytes