浏览代码

查阅建档替换资源

zhaoyang 2 年之前
父节点
当前提交
079fc9afcc

+ 9 - 9
FGUIProject/assets/Studio/StudioFilingUI.xml

@@ -23,15 +23,15 @@
       <item/>
       <item/>
     </list>
-    <component id="n3_rqo4" name="btnReward" src="rqo41m" fileName="components/Button2.xml" xy="896,1743">
-      <relation target="" sidePair="right-right,bottom-bottom"/>
-    </component>
-    <component id="n4_rqo4" name="btnSuit" src="rqo41n" fileName="components/Button3.xml" xy="0,1734" size="435,186" group="n20_rqo4"/>
-    <image id="n26_v482" name="n26" src="v4822l" fileName="images/cyjd_di_6.png" xy="211,1844" pivot="0.5,0" anchor="true" size="146,43" group="n20_rqo4"/>
-    <text id="n15_rqo4" name="txtSuitName" xy="211,1776" pivot="0.5,0" anchor="true" size="170,56" group="n20_rqo4" fontSize="42" color="#c7a26d" text="熔金漫纪"/>
-    <text id="n19_rqo4" name="txtSuitProgress" xy="211,1843" pivot="0.5,0" anchor="true" size="83,44" group="n20_rqo4" fontSize="32" color="#d28a79" text="1/10"/>
-    <group id="n20_rqo4" name="n20" xy="0,1734" size="435,186" advanced="true">
-      <relation target="" sidePair="left-left,bottom-bottom"/>
+    <component id="n4_rqo4" name="btnSuit" src="rqo41n" fileName="components/Button3.xml" xy="0,1722" group="n28_weok"/>
+    <image id="n26_v482" name="n26" src="v4822l" fileName="images/cyjd_di_6.png" xy="300,1833" pivot="0.5,0" anchor="true" size="146,43" group="n20_rqo4"/>
+    <text id="n15_rqo4" name="txtSuitName" xy="300,1765" pivot="0.5,0" anchor="true" size="170,56" group="n20_rqo4" fontSize="42" color="#c7a26d" text="熔金漫纪"/>
+    <text id="n19_rqo4" name="txtSuitProgress" xy="300,1832" pivot="0.5,0" anchor="true" size="83,44" group="n20_rqo4" fontSize="32" color="#d28a79" text="1/10"/>
+    <group id="n20_rqo4" name="n20" xy="215,1765" size="170,111" group="n28_weok" advanced="true"/>
+    <loader id="n27_weok" name="suitIcon" xy="30,1744" size="170,170" group="n28_weok" touchable="false" url="ui://xz8kxrecng0i27" align="center" vAlign="middle" fill="scaleMatchWidth" clearOnPublish="true"/>
+    <component id="n3_rqo4" name="btnReward" src="rqo41m" fileName="components/Button2.xml" xy="896,1756" group="n28_weok"/>
+    <group id="n28_weok" name="n28" xy="0,1722" size="1037,198" advanced="true">
+      <relation target="" sidePair="bottom-bottom"/>
     </group>
   </displayList>
 </component>

+ 2 - 2
FGUIProject/assets/Studio/components/Button3.xml

@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="utf-8"?>
-<component size="276,186" extention="Button">
+<component size="400,198" extention="Button">
   <controller name="button" pages="0,up,1,down,2,over,3,selectedOver" selected="0"/>
   <displayList>
-    <image id="n3_v482" name="n3" src="v4822d" fileName="images/cyjd_di_5.png" xy="0,0" visible="false"/>
+    <image id="n3_v482" name="n3" src="v4822d" fileName="images/cyjd_di_5.png" xy="0,0"/>
   </displayList>
   <Button/>
 </component>

二进制
FGUIProject/assets/Studio/images/cyjd_di_5.png


+ 6 - 3
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Studio/UI_StudioFilingUI.cs

@@ -14,10 +14,11 @@ namespace UI.Studio
         public GTextField m_txtNum;
         public GButton m_btnAdd;
         public GList m_list;
-        public GButton m_btnReward;
         public GButton m_btnSuit;
         public GTextField m_txtSuitName;
         public GTextField m_txtSuitProgress;
+        public GLoader m_suitIcon;
+        public GButton m_btnReward;
         public const string URL = "ui://xz8kxrecrqo41i";
         public const string PACKAGE_NAME = "Studio";
         public const string RES_NAME = "StudioFilingUI";
@@ -72,10 +73,11 @@ namespace UI.Studio
             m_txtNum = (GTextField)comp.GetChild("txtNum");
             m_btnAdd = (GButton)comp.GetChild("btnAdd");
             m_list = (GList)comp.GetChild("list");
-            m_btnReward = (GButton)comp.GetChild("btnReward");
             m_btnSuit = (GButton)comp.GetChild("btnSuit");
             m_txtSuitName = (GTextField)comp.GetChild("txtSuitName");
             m_txtSuitProgress = (GTextField)comp.GetChild("txtSuitProgress");
+            m_suitIcon = (GLoader)comp.GetChild("suitIcon");
+            m_btnReward = (GButton)comp.GetChild("btnReward");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -86,10 +88,11 @@ namespace UI.Studio
             m_txtNum = null;
             m_btnAdd = null;
             m_list = null;
-            m_btnReward = null;
             m_btnSuit = null;
             m_txtSuitName = null;
             m_txtSuitProgress = null;
+            m_suitIcon = null;
+            m_btnReward = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 2 - 0
GameClient/Assets/Game/HotUpdate/Views/Studio/StudioFilingView.cs

@@ -104,6 +104,8 @@ namespace GFGGame
             DressUpMenuSuitDataManager.GetSuitProgressBySuitId(_filingCfg.suitId, out int count, out int totalCount);
             _ui.m_txtSuitProgress.text = string.Format("({0}/{1})", count, totalCount);
 
+            _ui.m_suitIcon.url = ResPathUtil.GetIconPath(suitCfg.res, "png");
+
             _storyLevelCfgs = StoryLevelCfgArray.Instance.GetCfgsBytypeAndsubTypeAndchapterId(_filingCfg.type, _filingCfg.subType, StudioDataManager.Instance.filingChapterId);
             _ui.m_list.numItems = _storyLevelCfgs.Count;
 

二进制
GameClient/Assets/ResIn/UI/Studio/Studio_atlas0_1.png


二进制
GameClient/Assets/ResIn/UI/Studio/Studio_fui.bytes