浏览代码

战斗进度条

zhaoyang 2 年之前
父节点
当前提交
3b65b8cb6f

+ 1 - 0
FGUIProject/assets/Main/components/ComResultProMask.xml

@@ -4,6 +4,7 @@
     <image id="n5_fqor" name="imgMask" src="qkjsl9" fileName="imagesNew/pro_activate.png" xy="0,0" size="850,239">
       <relation target="" sidePair="width-width,height-height"/>
     </image>
+    <image id="n6_o4m7" name="bar" src="qkjsl9" fileName="imagesNew/pro_activate.png" xy="0,108" fillMethod="hz"/>
     <graph id="n4_fqor" name="holder" xy="424,110" size="1,1"/>
   </displayList>
 </component>

+ 1 - 1
FGUIProject/assets/Main/components/ProgressBar3.xml

@@ -4,7 +4,7 @@
     <image id="n0_qkjs" name="n0" src="qkjsla" fileName="imagesNew/pro_bk_in.png" xy="0,0">
       <relation target="" sidePair="width-width,height-height"/>
     </image>
-    <image id="n1_qkjs" name="bar" src="qkjsl9" fileName="imagesNew/pro_activate.png" xy="37,5" fillMethod="hz"/>
+    <image id="n1_qkjs" name="bar" src="qkjsl9" fileName="imagesNew/pro_activate.png" xy="37,5" size="0,24" fillMethod="hz"/>
     <component id="n4_fqor" name="comHolder" src="fqoro3" fileName="components/ComResultProMask.xml" xy="36,-103"/>
     <graph id="n6_fqor" name="holder" xy="885,16" pivot="0.5,0.5" anchor="true" size="1,1">
       <relation target="n4_fqor" sidePair="right-right"/>

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Main/UI_ComResultProMask.cs

@@ -8,6 +8,7 @@ namespace UI.Main
     {
         public GComponent target;
         public GImage m_imgMask;
+        public GImage m_bar;
         public GGraph m_holder;
         public const string URL = "ui://mfvz4q8kfqoro3";
         public const string PACKAGE_NAME = "Main";
@@ -57,11 +58,13 @@ namespace UI.Main
         private void Init(GComponent comp)
         {
             m_imgMask = (GImage)comp.GetChild("imgMask");
+            m_bar = (GImage)comp.GetChild("bar");
             m_holder = (GGraph)comp.GetChild("holder");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_imgMask = null;
+            m_bar = null;
             m_holder = null;
             if(disposeTarget && target != null)
             {

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/MainStory/StroyFightResultView.cs

@@ -76,7 +76,7 @@ namespace GFGGame
 
             // _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("fightBg");
             _scenePrefab = GFGAsset.Load<GameObject>(ResPathUtil.GetPrefabPath("SceneFightResult"));
-
+            _ui.m_comExpBar.m_proExp.m_comHolder.target.width = 0;
             AddEffect();
         }
         private void AddEffect()

二进制
GameClient/Assets/ResIn/UI/Main/Main_fui.bytes