浏览代码

套装tips

zhaoyang 3 年之前
父节点
当前提交
7f9bc092c5

+ 4 - 1
FGUIProject/assets/FieldGuide/SuitPartsDetailUI.xml → FGUIProject/assets/CommonGame/SuitPartsDetailUI.xml

@@ -4,7 +4,7 @@
     <loader id="n0_pjip" name="bg" xy="0,0" size="936,783" url="ui://mk0fwx0xlwri5u" fill="scaleFree">
       <relation target="" sidePair="width-width,height-height"/>
     </loader>
-    <image id="n4_cs8j" name="n4" src="kztethr" fileName="imagesExport/hyhy_btbt_1.png" pkg="eg2y0ldp" xy="230,32"/>
+    <image id="n4_cs8j" name="n4" src="kztethr" fileName="imagesExport/hyhy_btbt_1.png" xy="230,32"/>
     <text id="n2_pjip" name="txtTitle" xy="104,36" size="726,72" fontSize="54" color="#8f6e30" align="center" autoSize="none" text="套装详情"/>
     <list id="n3_pjip" name="listParts" xy="24,179" size="887,540" layout="flow_hz" overflow="scroll" lineGap="-30" defaultItem="ui://eg2y0ldpj48o98" autoClearItems="true">
       <item/>
@@ -13,6 +13,9 @@
       <item/>
       <item/>
       <item/>
+      <item/>
+      <item/>
+      <item/>
     </list>
   </displayList>
 </component>

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

@@ -195,6 +195,7 @@
     <image id="cs8jthx" name="yx_whd.png" path="/images/"/>
     <image id="slyzthy" name="yx_yihd.png" path="/images/"/>
     <image id="hibuthz" name="fb_gongzuos.png" path="/imgItemIcon/" exported="true"/>
+    <component id="pjip15" name="SuitPartsDetailUI.xml" path="/" exported="true"/>
   </resources>
   <publish name="" path="..\GameClient\Assets\ResIn\UI\CommonGame" packageCount="2" genCode="true" extractAlpha="true"/>
 </packageDescription>

+ 3 - 3
FGUIProject/assets/FieldGuide/SuitGuideUI.xml

@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="utf-8"?>
 <component size="1080,1920">
   <displayList>
-    <image id="n2_pjip" name="n2" src="m9wm8t" fileName="bgimg/gxhd_bjbj.png" pkg="eg2y0ldp" xy="0,-240">
+    <image id="n2_pjip" name="n2" src="m9wm8t" fileName="bgimg/gxhd_bjbj.png" xy="0,-240" pkg="eg2y0ldp">
       <relation target="" sidePair="center-center,middle-middle"/>
     </image>
-    <component id="n0_pjip" name="valueBar" src="v3541v" fileName="components/ComponentValueBar.xml" pkg="eg2y0ldp" xy="159,90"/>
-    <component id="n1_pjip" name="btnBack" src="9xlo8" fileName="components/ButtonBack1.xml" pkg="eg2y0ldp" xy="35,80"/>
+    <component id="n0_pjip" name="valueBar" src="v3541v" fileName="components/ComponentValueBar.xml" xy="159,90" pkg="eg2y0ldp"/>
+    <component id="n1_pjip" name="btnBack" src="9xlo8" fileName="components/ButtonBack1.xml" xy="35,80" pkg="eg2y0ldp"/>
     <component id="n5_pjip" name="comBoxSort" src="pjipy" fileName="components/ComboBox1.xml" xy="494,262">
       <ComboBox title="默认排序" visibleItemCount="10" autoClearItems="true">
         <item title="1"/>

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

@@ -1,7 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <packageDescription id="vqq9h9h4">
   <resources>
-    <component id="z3os0" name="SuitGuideUI.xml" path="/" exported="true"/>
     <component id="pjip1" name="FieldGuideUI.xml" path="/" exported="true"/>
     <image id="pjip2" name="tujian_qiehuan_2.png" path="/images/"/>
     <image id="pjip3" name="tujian_sjdu.png" path="/images/"/>
@@ -37,7 +36,6 @@
     <component id="pjip12" name="ButtonSuitType.xml" path="/components/" exported="true"/>
     <component id="pjip13" name="ProgressBar1.xml" path="/components/"/>
     <component id="pjip14" name="CompSuitItem.xml" path="/components/"/>
-    <component id="pjip15" name="SuitPartsDetailUI.xml" path="/" exported="true"/>
     <image id="pjip16" name="tujian_yhuod.png" path="/images/"/>
     <image id="pjip17" name="zx_jq_tbdi_1.png" path="/images/"/>
     <image id="pjip18" name="tujian_mbmb.png" path="/images/"/>
@@ -53,6 +51,7 @@
     <image id="pjip1l" name="zhuxian_shuoto.png" path="/images/"/>
     <image id="u6p31m" name="tujian_tup_1.jpg" path="/imagesExport/" exported="true"/>
     <image id="qr4e1n" name="tujian_tztub_4.png" path="/images/"/>
+    <component id="z3os0" name="SuitGuideUI.xml" path="/" exported="true"/>
   </resources>
   <publish name="" path="..\GameClient\Assets\ResIn\UI\FieldGuide" packageCount="2" genCode="true" extractAlpha="true"/>
 </packageDescription>

+ 3 - 3
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/FieldGuide/UI_SuitPartsDetailUI.cs → GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/CommonGame/UI_SuitPartsDetailUI.cs

@@ -2,7 +2,7 @@
 
 using FairyGUI;
 
-namespace UI.FieldGuide
+namespace UI.CommonGame
 {
     public partial class UI_SuitPartsDetailUI
     {
@@ -10,8 +10,8 @@ namespace UI.FieldGuide
         public GLoader m_bg;
         public GTextField m_txtTitle;
         public GList m_listParts;
-        public const string URL = "ui://vqq9h9h4pjip15";
-        public const string PACKAGE_NAME = "FieldGuide";
+        public const string URL = "ui://eg2y0ldppjip15";
+        public const string PACKAGE_NAME = "CommonGame";
         public const string RES_NAME = "SuitPartsDetailUI";
         private static UI_SuitPartsDetailUI _proxy;
 

+ 1 - 1
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/FieldGuide/UI_SuitPartsDetailUI.cs.meta → GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/CommonGame/UI_SuitPartsDetailUI.cs.meta

@@ -1,5 +1,5 @@
 fileFormatVersion: 2
-guid: 28c9596b503b15c499a4a3bcaddde29a
+guid: c8e41fc9a8599cf419269cdc3af82871
 MonoImporter:
   externalObjects: {}
   serializedVersion: 2

+ 9 - 4
GameClient/Assets/Game/HotUpdate/Views/Common/Controller/GoodsItemTipsController.cs

@@ -2,15 +2,20 @@ namespace GFGGame
 {
     public class GoodsItemTipsController
     {
-        public static void ShowItemTips(int itemID)
+        public static void ShowItemTips(int id)
         {
-            if(ItemUtilCS.IsDressUpItem(itemID))
+            if (SuitCfgArray.Instance.GetCfg(id) != null)
             {
-                ViewManager.Show(ViewName.DRESS_UP_ITEM_TIPS_VIEW, itemID);
+                ViewManager.Show<SuitPartsDetailView>(id);
+
+            }
+            else if (ItemUtilCS.IsDressUpItem(id))
+            {
+                ViewManager.Show(ViewName.DRESS_UP_ITEM_TIPS_VIEW, id);
             }
             else
             {
-                ViewManager.Show(ViewName.GOODS_ITEM_TIPS_VIEW, itemID);
+                ViewManager.Show(ViewName.GOODS_ITEM_TIPS_VIEW, id);
             }
         }
     }

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/DailyLogin/DailyLoginView.cs

@@ -41,7 +41,7 @@ namespace GFGGame
             _cfgs = DailyLoginCfgArray.Instance.GetCfgs("1");
             _ui.m_list.numItems = _cfgs.Count;
             _ui.m_loaIcon.url = "ui://DailyLogin/yzhd_dyt_7";
-            _ui.m_loaIcon.data = _cfgs[_cfgs.Count - 1];
+            _ui.m_loaIcon.data = DailyLoginCfgArray.Instance.GetCfgs("2")[0];
         }
 
         protected override void OnHide()

+ 4 - 4
GameClient/Assets/Game/HotUpdate/Views/FieldGuide/SuitPartsDetailView.cs

@@ -1,4 +1,4 @@
-using UI.FieldGuide;
+using UI.CommonGame;
 using FairyGUI;
 
 namespace GFGGame
@@ -17,7 +17,7 @@ namespace GFGGame
         protected override void OnInit()
         {
             base.OnInit();
-            packageName = UI_SuitGuideUI.PACKAGE_NAME;
+            packageName = UI_SuitPartsDetailUI.PACKAGE_NAME;
             _ui = UI_SuitPartsDetailUI.Create();
             this.viewCom = _ui.target;
             this.modal = true;
@@ -34,8 +34,8 @@ namespace GFGGame
             int suitId = (int)this.viewData;
             _items = SuitCfgManager.Instance.GetSuitItems(suitId);
             _ui.m_listParts.numItems = _items.Length;
-
-            _ui.m_listParts.ResizeToFit();
+            _ui.m_listParts.ScrollToView(0);
+            // _ui.m_listParts.ResizeToFit();
             _ui.target.Center();
         }
 

二进制
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_fui.bytes


二进制
GameClient/Assets/ResIn/UI/FieldGuide/FieldGuide_atlas0!a.png


二进制
GameClient/Assets/ResIn/UI/FieldGuide/FieldGuide_atlas0.png


二进制
GameClient/Assets/ResIn/UI/FieldGuide/FieldGuide_fui.bytes