浏览代码

战斗表现

zhaoyang 3 年之前
父节点
当前提交
9a92cbf3b4
共有 25 个文件被更改,包括 181 次插入100 次删除
  1. 3 0
      FGUIProject/assets/Main/Font5/Font9.fnt
  2. 二进制
      FGUIProject/assets/Main/Font5/zdsz_10.png
  3. 二进制
      FGUIProject/assets/Main/Font5/zdsz_11.png
  4. 19 10
      FGUIProject/assets/Main/StoryFightTargetScoreUI.xml
  5. 5 1
      FGUIProject/assets/Main/components/ComBtnSkill.xml
  6. 0 4
      FGUIProject/assets/Main/components/ComRoleSkill.xml
  7. 4 20
      FGUIProject/assets/Main/components/ComRoleSkill1.xml
  8. 3 3
      FGUIProject/assets/Main/components/ComSkillShield.xml
  9. 3 0
      FGUIProject/assets/Main/components/Component2.xml
  10. 2 0
      FGUIProject/assets/Main/package.xml
  11. 6 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Main/UI_ComBtnSkill.cs
  12. 0 3
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Main/UI_ComRoleSkill.cs
  13. 3 9
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Main/UI_ComRoleSkill1.cs
  14. 3 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Main/UI_Component2.cs
  15. 32 16
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Main/UI_StoryFightTargetScoreUI.cs
  16. 98 34
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightTargetScoreView.cs
  17. 二进制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0!a.png
  18. 二进制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0.png
  19. 二进制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_1!a.png
  20. 二进制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_1.png
  21. 二进制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_3!a.png
  22. 二进制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_3.png
  23. 二进制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_4!a.png
  24. 二进制
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_4.png
  25. 二进制
      GameClient/Assets/ResIn/UI/Main/Main_fui.bytes

+ 3 - 0
FGUIProject/assets/Main/Font5/Font9.fnt

@@ -1,3 +1,4 @@
+info size=56 colored=false
 char id=48 img=k1khdq xoffset=0 yoffset=0 xadvance=0
 char id=49 img=k1khdr xoffset=0 yoffset=0 xadvance=0
 char id=50 img=k1khds xoffset=0 yoffset=0 xadvance=0
@@ -8,3 +9,5 @@ char id=54 img=k1khdw xoffset=0 yoffset=0 xadvance=0
 char id=55 img=k1khdx xoffset=0 yoffset=0 xadvance=0
 char id=56 img=k1khdy xoffset=0 yoffset=0 xadvance=0
 char id=57 img=k1khdz xoffset=0 yoffset=0 xadvance=0
+char id=43 img=k1khe9 xoffset=0 yoffset=0 xadvance=0
+char id=45 img=k1khea xoffset=0 yoffset=0 xadvance=0

二进制
FGUIProject/assets/Main/Font5/zdsz_10.png


二进制
FGUIProject/assets/Main/Font5/zdsz_11.png


+ 19 - 10
FGUIProject/assets/Main/StoryFightTargetScoreUI.xml

@@ -14,20 +14,25 @@
     <component id="n28_uj53" name="proScore" src="v3k9c7" fileName="components/ProgressBarTargetScore.xml" xy="44,71">
       <ProgressBar max="100"/>
     </component>
-    <component id="n15_mza1" name="comMineCircle" src="v3k9cv" fileName="components/comMineCircle.xml" xy="350,641" pivot="0.5,0.5" anchor="true" visible="false"/>
-    <component id="n17_mza1" name="comTargetCircle" src="v3k9c4" fileName="components/comTargetCircle.xml" xy="730,641" pivot="0.5,0.5" anchor="true" visible="false"/>
-    <component id="n25_vbe8" name="ComShieldMine" src="v3k9c3" fileName="components/ComSkillShield.xml" xy="157,883"/>
-    <component id="n27_vbe8" name="ComShieldNpc" src="v3k9c3" fileName="components/ComSkillShield.xml" xy="712,895"/>
-    <component id="n24_vbe8" name="proMinusMine" src="mhyhd4" fileName="components/ProgressBar2.xml" xy="190,820">
+    <component id="n15_mza1" name="comTargetCircle" src="v3k9cv" fileName="components/comMineCircle.xml" xy="680,378" pivot="0.5,0.5" anchor="true" visible="false"/>
+    <component id="n17_mza1" name="comMineCircle" src="v3k9c4" fileName="components/comTargetCircle.xml" xy="400,378" pivot="0.5,0.5" anchor="true" visible="false"/>
+    <component id="n24_vbe8" name="proMinusMine" src="mhyhd4" fileName="components/ProgressBar2.xml" xy="190,700">
       <ProgressBar value="100" max="100"/>
     </component>
-    <component id="n26_vbe8" name="proMinusNpc" src="mhyhd4" fileName="components/ProgressBar2.xml" xy="708,820">
+    <component id="n26_vbe8" name="proMinusNpc" src="mhyhd4" fileName="components/ProgressBar2.xml" xy="710,700">
       <ProgressBar value="100" max="100"/>
     </component>
-    <component id="n29_uj53" name="ComRoleSkillMineAdd" src="v3k9cx" fileName="components/ComRoleSkill.xml" xy="202,1030"/>
-    <component id="n34_pcn0" name="ComRoleSkillMineMinus" src="lki4db" fileName="components/ComRoleSkill1.xml" xy="40,914" controller="c1,0"/>
-    <component id="n33_uj53" name="ComRoleSkillNpcAdd" src="v3k9cx" fileName="components/ComRoleSkill.xml" xy="776,1030"/>
-    <component id="n35_pcn0" name="ComRoleSkillNpcMinus" src="lki4db" fileName="components/ComRoleSkill1.xml" xy="40,914" controller="c1,1"/>
+    <component id="n25_vbe8" name="ComShieldMine" src="v3k9c3" fileName="components/ComSkillShield.xml" xy="230,820"/>
+    <component id="n27_vbe8" name="ComShieldNpc" src="v3k9c3" fileName="components/ComSkillShield.xml" xy="750,820"/>
+    <component id="n29_uj53" name="ComRoleSkillMineAdd" src="v3k9cx" fileName="components/ComRoleSkill.xml" xy="230,1132" group="n43_k1kh"/>
+    <component id="n34_pcn0" name="ComRoleSkillMineMinus" src="v3k9cx" fileName="components/ComRoleSkill.xml" xy="230,1132" group="n43_k1kh"/>
+    <component id="n33_uj53" name="ComRoleSkillNpcAdd" src="v3k9cx" fileName="components/ComRoleSkill.xml" xy="750,1132" group="n43_k1kh"/>
+    <component id="n35_pcn0" name="ComRoleSkillNpcMinus" src="v3k9cx" fileName="components/ComRoleSkill.xml" xy="750,1132" group="n43_k1kh"/>
+    <component id="n39_k1kh" name="ComRoleSkillMineBreak" src="lki4db" fileName="components/ComRoleSkill1.xml" xy="230,1132" group="n43_k1kh"/>
+    <component id="n40_k1kh" name="ComRoleSkillNpcBreak" src="lki4db" fileName="components/ComRoleSkill1.xml" xy="750,1132" group="n43_k1kh"/>
+    <component id="n41_k1kh" name="ComRoleSkillMineShield" src="lki4db" fileName="components/ComRoleSkill1.xml" xy="230,1132" group="n43_k1kh"/>
+    <component id="n42_k1kh" name="ComRoleSkillNpcShield" src="lki4db" fileName="components/ComRoleSkill1.xml" xy="750,1132" group="n43_k1kh"/>
+    <group id="n43_k1kh" name="n43" xy="230,1132" size="620,100"/>
     <component id="n1_8xpg" name="selfName" src="8xpg41" fileName="components/CompFightResultName.xml" xy="48,1499">
       <relation target="" sidePair="bottom-bottom"/>
     </component>
@@ -37,18 +42,22 @@
     <component id="n20_vbe8" name="btnSkill0" src="v3k9c0" fileName="components/ComBtnSkill.xml" xy="70,1682">
       <relation target="" sidePair="bottom-bottom"/>
       <property target="icon" propertyId="1" value="ui://mfvz4q8kv3k9cc"/>
+      <property target="icon1" propertyId="1" value="ui://mfvz4q8kk1khe1"/>
     </component>
     <component id="n21_vbe8" name="btnSkill1" src="v3k9c0" fileName="components/ComBtnSkill.xml" xy="314,1682">
       <relation target="" sidePair="bottom-bottom"/>
       <property target="icon" propertyId="1" value="ui://mfvz4q8kv3k9cd"/>
+      <property target="icon1" propertyId="1" value="ui://mfvz4q8kk1khe2"/>
     </component>
     <component id="n22_vbe8" name="btnSkill2" src="v3k9c0" fileName="components/ComBtnSkill.xml" xy="556,1682">
       <relation target="" sidePair="bottom-bottom"/>
       <property target="icon" propertyId="1" value="ui://mfvz4q8kv3k9ce"/>
+      <property target="icon1" propertyId="1" value="ui://mfvz4q8kk1khe3"/>
     </component>
     <component id="n23_vbe8" name="btnSkill3" src="v3k9c0" fileName="components/ComBtnSkill.xml" xy="800,1682">
       <relation target="" sidePair="bottom-bottom"/>
       <property target="icon" propertyId="1" value="ui://mfvz4q8kv3k9cf"/>
+      <property target="icon1" propertyId="1" value="ui://mfvz4q8kk1khe4"/>
     </component>
     <component id="n38_jj0m" name="btnSpeedUp" src="jj0mdl" fileName="componentsDialog/ButtonSpeedUp1.xml" xy="943,1546">
       <relation target="" sidePair="right-right,bottom-bottom"/>

+ 5 - 1
FGUIProject/assets/Main/components/ComBtnSkill.xml

@@ -3,15 +3,19 @@
   <controller name="c1" pages="0,,1,,2," selected="0"/>
   <displayList>
     <loader id="n22_uxaj" name="icon" xy="106,106" pivot="0.5,0.5" anchor="true" size="196,196" aspect="true" url="ui://mfvz4q8kv3k9cc" fill="scaleMatchHeight" autoSize="true"/>
+    <loader id="n32_k1kh" name="icon1" xy="105,187" pivot="0.5,0.5" anchor="true" size="105,50" aspect="true" url="ui://mfvz4q8kk1khe1" fill="scaleMatchHeight" autoSize="true"/>
     <component id="n24_vbe8" name="proCD" src="v3k9c5" fileName="components/ProgressBarCD.xml" xy="-14,-14">
       <gearDisplay controller="c1" pages="1"/>
       <ProgressBar value="59" max="100"/>
     </component>
-    <image id="n26_v3k9" name="n26" src="k1khe5" fileName="imagesStory/zd_txtxtx.png" xy="-22,-22" pivot="0.5,0.5">
+    <image id="n26_v3k9" name="n26" src="k1khe5" fileName="imagesStory/zd_txtxtx.png" xy="-22,-22" pivot="0.5,0.5" visible="false">
       <gearDisplay controller="c1" pages="0"/>
     </image>
     <image id="n29_k1kh" name="n29" src="k1khe0" fileName="imagesStory/zd_cishukuang.png" xy="155,8"/>
     <text id="n30_k1kh" name="txtCount" xy="172,14" pivot="0.5,0" size="23,42" fontSize="30" color="#fbf4ed" align="center" bold="true" text="1"/>
+    <graph id="n31_k1kh" name="holder" xy="56,56" pivot="0.5,0.5" size="100,100" touchable="false">
+      <gearDisplay controller="c1" pages="0"/>
+    </graph>
   </displayList>
   <transition name="t0" autoPlay="true" autoPlayRepeat="-1">
     <item time="0" type="Scale" target="n26_v3k9" tween="true" startValue="1,1" endValue="0.9,0.9" duration="18" ease="Linear"/>

+ 0 - 4
FGUIProject/assets/Main/components/ComRoleSkill.xml

@@ -1,10 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <component size="100,100">
   <displayList>
-    <image id="n30_v3k9" name="n30" src="v3k9cb" fileName="imagesStory/zd_jinengdi_1.png" xy="128,0" pivot="0.5,0.5" size="243,243" group="n34_lki4" aspect="true"/>
-    <text id="n33_lki4" name="txtResult" xy="94,123" pivot="0.5,0.5" anchor="true" size="68,114" group="n34_lki4" font="ui://mfvz4q8kvuz5b5" fontSize="110" color="#5dd05d" vars="true" text="+"/>
-    <group id="n34_lki4" name="n34" xy="60,0" size="311,243" visible="false" advanced="true"/>
-    <image id="n31_v3k9" name="n31" src="v3k9cg" fileName="imagesStory/zd_jnsxzi_1.png" xy="100,357" pivot="0.5,0.5" visible="false"/>
     <graph id="n35_k1kh" name="holder" xy="0,0" pivot="0.5,0.5" size="100,100"/>
     <text id="n29_uj53" name="txtScore" xy="85,-140" size="176,60" font="ui://mfvz4q8kk1khe6" fontSize="70" color="#5dd05d" align="center" vars="true" text="{count=9000}"/>
   </displayList>

+ 4 - 20
FGUIProject/assets/Main/components/ComRoleSkill1.xml

@@ -1,27 +1,11 @@
 <?xml version="1.0" encoding="utf-8"?>
-<component size="1000,450">
+<component size="100,100">
   <controller name="c1" exported="true" pages="0,,1," selected="0"/>
   <displayList>
-    <image id="n30_v3k9" name="n30" src="v3k9cb" fileName="imagesStory/zd_jinengdi_1.png" xy="678,0" pivot="0.5,0.5" size="243,243" group="n34_lki4" aspect="true"/>
-    <text id="n33_lki4" name="txtResult" xy="644,123" pivot="0.5,0.5" anchor="true" size="68,114" group="n34_lki4" font="ui://mfvz4q8kvuz5b5" fontSize="110" color="#5dd05d" vars="true" text="-"/>
-    <text id="n29_uj53" name="txtScore" xy="799,121" pivot="0.5,0.5" anchor="true" size="203,74" group="n34_lki4" font="ui://mfvz4q8kvuz5b5" fontSize="70" color="#5dd05d" align="center" vars="true" autoSize="none" text="{count=90}"/>
-    <group id="n34_lki4" name="n34" xy="610,0" size="311,243" advanced="true">
-      <gearXY controller="c1" pages="1" values="80,0" default="610,0"/>
-    </group>
-    <image id="n31_v3k9" name="n31" src="v3k9ch" fileName="imagesStory/zd_jnsxzi_2.png" xy="120,357" pivot="0.5,0.5">
-      <gearXY controller="c1" pages="0" values="120,357" default="660,357"/>
-    </image>
+    <graph id="n35_k1kh" name="holder" xy="0,0" pivot="0.5,0.5" size="100,100"/>
   </displayList>
   <transition name="t0">
-    <item time="0" type="Alpha" target="n34_lki4" value="0"/>
-    <item time="0" type="Scale" target="n31_v3k9" tween="true" startValue="1.6,1.6" endValue="1,1" duration="6" ease="Bounce.Out"/>
-    <item time="6" type="Alpha" target="n34_lki4" tween="true" startValue="1" endValue="0" duration="18" ease="Quart.In"/>
-    <item time="6" type="XY" target="n34_lki4" tween="true" startValue="610,0" endValue="610,-250" duration="18" ease="Linear"/>
-  </transition>
-  <transition name="t1">
-    <item time="0" type="Alpha" target="n34_lki4" value="0"/>
-    <item time="0" type="Scale" target="n31_v3k9" tween="true" startValue="1.6,1.6" endValue="1,1" duration="6" ease="Bounce.Out"/>
-    <item time="6" type="Alpha" target="n34_lki4" tween="true" startValue="1" endValue="0" duration="18" ease="Quart.In"/>
-    <item time="6" type="XY" target="n34_lki4" tween="true" startValue="80,0" endValue="80,-250" duration="18" ease="Linear"/>
+    <item time="0" type="Visible" target="n35_k1kh" value="true"/>
+    <item time="24" type="Visible" target="n35_k1kh" value="true"/>
   </transition>
 </component>

+ 3 - 3
FGUIProject/assets/Main/components/ComSkillShield.xml

@@ -1,10 +1,10 @@
 <?xml version="1.0" encoding="utf-8"?>
-<component size="244,237">
+<component size="100,100">
   <displayList>
-    <graph id="n26_tr2r" name="holder" xy="122,118" size="0,0" touchable="false">
+    <graph id="n26_tr2r" name="holder" xy="0,0" pivot="0.5,0.5" size="100,100" touchable="false">
       <relation target="" sidePair="height-height"/>
     </graph>
-    <graph id="n27_tr2r" name="holder1" xy="122,118" size="0,0" visible="false" touchable="false">
+    <graph id="n27_tr2r" name="holder1" xy="0,0" pivot="0.5,0.5" size="100,100" visible="false" touchable="false">
       <relation target="" sidePair="height-height"/>
     </graph>
   </displayList>

+ 3 - 0
FGUIProject/assets/Main/components/Component2.xml

@@ -7,5 +7,8 @@
     <image id="n6_uj53" name="imgAni" src="k1khdp" fileName="imagesStory/zd_zdjdt_liang.png" xy="503,15" pivot="0.65,0.6" anchor="true">
       <relation target="" sidePair="right-right"/>
     </image>
+    <graph id="n7_k1kh" name="holder" xy="453,-38" pivot="0.5,0.5" size="100,100">
+      <relation target="" sidePair="right-right"/>
+    </graph>
   </displayList>
 </component>

+ 2 - 0
FGUIProject/assets/Main/package.xml

@@ -394,6 +394,8 @@
     <font id="k1khe6" name="Font9.fnt" path="/Font5/" exported="true"/>
     <component id="k1khe7" name="Component2.xml" path="/components/"/>
     <component id="k1khe8" name="Component3.xml" path="/components/"/>
+    <image id="k1khe9" name="zdsz_10.png" path="/Font5/"/>
+    <image id="k1khea" name="zdsz_11.png" path="/Font5/"/>
   </resources>
   <publish name="" path="..\GameClient\Assets\ResIn\UI\Main" packageCount="2" genCode="true" extractAlpha="true"/>
 </packageDescription>

+ 6 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Main/UI_ComBtnSkill.cs

@@ -9,8 +9,10 @@ namespace UI.Main
         public GComponent target;
         public Controller m_c1;
         public GLoader m_icon;
+        public GLoader m_icon1;
         public GProgressBar m_proCD;
         public GTextField m_txtCount;
+        public GGraph m_holder;
         public Transition m_t0;
         public const string URL = "ui://mfvz4q8kv3k9c0";
         public const string PACKAGE_NAME = "Main";
@@ -61,16 +63,20 @@ namespace UI.Main
         {
             m_c1 = comp.GetController("c1");
             m_icon = (GLoader)comp.GetChild("icon");
+            m_icon1 = (GLoader)comp.GetChild("icon1");
             m_proCD = (GProgressBar)comp.GetChild("proCD");
             m_txtCount = (GTextField)comp.GetChild("txtCount");
+            m_holder = (GGraph)comp.GetChild("holder");
             m_t0 = comp.GetTransition("t0");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_c1 = null;
             m_icon = null;
+            m_icon1 = null;
             m_proCD = null;
             m_txtCount = null;
+            m_holder = null;
             m_t0 = null;
             if(disposeTarget && target != null)
             {

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

@@ -7,7 +7,6 @@ namespace UI.Main
     public partial class UI_ComRoleSkill
     {
         public GComponent target;
-        public GTextField m_txtResult;
         public GGraph m_holder;
         public GTextField m_txtScore;
         public Transition m_t0;
@@ -58,14 +57,12 @@ namespace UI.Main
 
         private void Init(GComponent comp)
         {
-            m_txtResult = (GTextField)comp.GetChild("txtResult");
             m_holder = (GGraph)comp.GetChild("holder");
             m_txtScore = (GTextField)comp.GetChild("txtScore");
             m_t0 = comp.GetTransition("t0");
         }
         public void Dispose(bool disposeTarget = false)
         {
-            m_txtResult = null;
             m_holder = null;
             m_txtScore = null;
             m_t0 = null;

+ 3 - 9
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Main/UI_ComRoleSkill1.cs

@@ -8,10 +8,8 @@ namespace UI.Main
     {
         public GComponent target;
         public Controller m_c1;
-        public GTextField m_txtResult;
-        public GTextField m_txtScore;
+        public GGraph m_holder;
         public Transition m_t0;
-        public Transition m_t1;
         public const string URL = "ui://mfvz4q8klki4db";
         public const string PACKAGE_NAME = "Main";
         public const string RES_NAME = "ComRoleSkill1";
@@ -60,18 +58,14 @@ namespace UI.Main
         private void Init(GComponent comp)
         {
             m_c1 = comp.GetController("c1");
-            m_txtResult = (GTextField)comp.GetChild("txtResult");
-            m_txtScore = (GTextField)comp.GetChild("txtScore");
+            m_holder = (GGraph)comp.GetChild("holder");
             m_t0 = comp.GetTransition("t0");
-            m_t1 = comp.GetTransition("t1");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_c1 = null;
-            m_txtResult = null;
-            m_txtScore = null;
+            m_holder = null;
             m_t0 = null;
-            m_t1 = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

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

@@ -9,6 +9,7 @@ namespace UI.Main
         public GComponent target;
         public UI_Component3 m_bar;
         public GImage m_imgAni;
+        public GGraph m_holder;
         public const string URL = "ui://mfvz4q8kk1khe7";
         public const string PACKAGE_NAME = "Main";
         public const string RES_NAME = "Component2";
@@ -58,12 +59,14 @@ namespace UI.Main
         {
             m_bar = (UI_Component3)UI_Component3.Create(comp.GetChild("bar"));
             m_imgAni = (GImage)comp.GetChild("imgAni");
+            m_holder = (GGraph)comp.GetChild("holder");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_bar.Dispose();
             m_bar = null;
             m_imgAni = null;
+            m_holder = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 32 - 16
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Main/UI_StoryFightTargetScoreUI.cs

@@ -12,16 +12,20 @@ namespace UI.Main
         public UI_CompFightScore m_targetScore;
         public GButton m_btnBack;
         public UI_ProgressBarTargetScore m_proScore;
-        public UI_comMineCircle m_comMineCircle;
-        public UI_comTargetCircle m_comTargetCircle;
-        public UI_ComSkillShield m_ComShieldMine;
-        public UI_ComSkillShield m_ComShieldNpc;
+        public UI_comMineCircle m_comTargetCircle;
+        public UI_comTargetCircle m_comMineCircle;
         public GProgressBar m_proMinusMine;
         public GProgressBar m_proMinusNpc;
+        public UI_ComSkillShield m_ComShieldMine;
+        public UI_ComSkillShield m_ComShieldNpc;
         public UI_ComRoleSkill m_ComRoleSkillMineAdd;
-        public UI_ComRoleSkill1 m_ComRoleSkillMineMinus;
+        public UI_ComRoleSkill m_ComRoleSkillMineMinus;
         public UI_ComRoleSkill m_ComRoleSkillNpcAdd;
-        public UI_ComRoleSkill1 m_ComRoleSkillNpcMinus;
+        public UI_ComRoleSkill m_ComRoleSkillNpcMinus;
+        public UI_ComRoleSkill1 m_ComRoleSkillMineBreak;
+        public UI_ComRoleSkill1 m_ComRoleSkillNpcBreak;
+        public UI_ComRoleSkill1 m_ComRoleSkillMineShield;
+        public UI_ComRoleSkill1 m_ComRoleSkillNpcShield;
         public UI_CompFightResultName m_selfName;
         public UI_CompFightResultName m_targetName;
         public UI_ComBtnSkill m_btnSkill0;
@@ -81,16 +85,20 @@ namespace UI.Main
             m_targetScore = (UI_CompFightScore)UI_CompFightScore.Create(comp.GetChild("targetScore"));
             m_btnBack = (GButton)comp.GetChild("btnBack");
             m_proScore = (UI_ProgressBarTargetScore)UI_ProgressBarTargetScore.Create(comp.GetChild("proScore"));
-            m_comMineCircle = (UI_comMineCircle)UI_comMineCircle.Create(comp.GetChild("comMineCircle"));
-            m_comTargetCircle = (UI_comTargetCircle)UI_comTargetCircle.Create(comp.GetChild("comTargetCircle"));
-            m_ComShieldMine = (UI_ComSkillShield)UI_ComSkillShield.Create(comp.GetChild("ComShieldMine"));
-            m_ComShieldNpc = (UI_ComSkillShield)UI_ComSkillShield.Create(comp.GetChild("ComShieldNpc"));
+            m_comTargetCircle = (UI_comMineCircle)UI_comMineCircle.Create(comp.GetChild("comTargetCircle"));
+            m_comMineCircle = (UI_comTargetCircle)UI_comTargetCircle.Create(comp.GetChild("comMineCircle"));
             m_proMinusMine = (GProgressBar)comp.GetChild("proMinusMine");
             m_proMinusNpc = (GProgressBar)comp.GetChild("proMinusNpc");
+            m_ComShieldMine = (UI_ComSkillShield)UI_ComSkillShield.Create(comp.GetChild("ComShieldMine"));
+            m_ComShieldNpc = (UI_ComSkillShield)UI_ComSkillShield.Create(comp.GetChild("ComShieldNpc"));
             m_ComRoleSkillMineAdd = (UI_ComRoleSkill)UI_ComRoleSkill.Create(comp.GetChild("ComRoleSkillMineAdd"));
-            m_ComRoleSkillMineMinus = (UI_ComRoleSkill1)UI_ComRoleSkill1.Create(comp.GetChild("ComRoleSkillMineMinus"));
+            m_ComRoleSkillMineMinus = (UI_ComRoleSkill)UI_ComRoleSkill.Create(comp.GetChild("ComRoleSkillMineMinus"));
             m_ComRoleSkillNpcAdd = (UI_ComRoleSkill)UI_ComRoleSkill.Create(comp.GetChild("ComRoleSkillNpcAdd"));
-            m_ComRoleSkillNpcMinus = (UI_ComRoleSkill1)UI_ComRoleSkill1.Create(comp.GetChild("ComRoleSkillNpcMinus"));
+            m_ComRoleSkillNpcMinus = (UI_ComRoleSkill)UI_ComRoleSkill.Create(comp.GetChild("ComRoleSkillNpcMinus"));
+            m_ComRoleSkillMineBreak = (UI_ComRoleSkill1)UI_ComRoleSkill1.Create(comp.GetChild("ComRoleSkillMineBreak"));
+            m_ComRoleSkillNpcBreak = (UI_ComRoleSkill1)UI_ComRoleSkill1.Create(comp.GetChild("ComRoleSkillNpcBreak"));
+            m_ComRoleSkillMineShield = (UI_ComRoleSkill1)UI_ComRoleSkill1.Create(comp.GetChild("ComRoleSkillMineShield"));
+            m_ComRoleSkillNpcShield = (UI_ComRoleSkill1)UI_ComRoleSkill1.Create(comp.GetChild("ComRoleSkillNpcShield"));
             m_selfName = (UI_CompFightResultName)UI_CompFightResultName.Create(comp.GetChild("selfName"));
             m_targetName = (UI_CompFightResultName)UI_CompFightResultName.Create(comp.GetChild("targetName"));
             m_btnSkill0 = (UI_ComBtnSkill)UI_ComBtnSkill.Create(comp.GetChild("btnSkill0"));
@@ -109,16 +117,16 @@ namespace UI.Main
             m_btnBack = null;
             m_proScore.Dispose();
             m_proScore = null;
-            m_comMineCircle.Dispose();
-            m_comMineCircle = null;
             m_comTargetCircle.Dispose();
             m_comTargetCircle = null;
+            m_comMineCircle.Dispose();
+            m_comMineCircle = null;
+            m_proMinusMine = null;
+            m_proMinusNpc = null;
             m_ComShieldMine.Dispose();
             m_ComShieldMine = null;
             m_ComShieldNpc.Dispose();
             m_ComShieldNpc = null;
-            m_proMinusMine = null;
-            m_proMinusNpc = null;
             m_ComRoleSkillMineAdd.Dispose();
             m_ComRoleSkillMineAdd = null;
             m_ComRoleSkillMineMinus.Dispose();
@@ -127,6 +135,14 @@ namespace UI.Main
             m_ComRoleSkillNpcAdd = null;
             m_ComRoleSkillNpcMinus.Dispose();
             m_ComRoleSkillNpcMinus = null;
+            m_ComRoleSkillMineBreak.Dispose();
+            m_ComRoleSkillMineBreak = null;
+            m_ComRoleSkillNpcBreak.Dispose();
+            m_ComRoleSkillNpcBreak = null;
+            m_ComRoleSkillMineShield.Dispose();
+            m_ComRoleSkillMineShield = null;
+            m_ComRoleSkillNpcShield.Dispose();
+            m_ComRoleSkillNpcShield = null;
             m_selfName.Dispose();
             m_selfName = null;
             m_targetName.Dispose();

+ 98 - 34
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightTargetScoreView.cs

@@ -23,21 +23,31 @@ namespace GFGGame
         private double _targetMainScore;//战斗目标总主属性分
         private const int _range = 30;//圆圈随机范围
 
+        private int _skillCount;
+
         // private float _speed = 1;
         private bool isAutoPlay = false;
 
         private GameObject _gameObject0;
-        private GoWrapper _wrapper0;
+        // private GoWrapper _wrapper0;
         private GameObject _gameObject1;
-        private GoWrapper _wrapper1;
+        // private GoWrapper _wrapper1;
         private GameObject _gameObject2;
-        private GoWrapper _wrapper2;
+        // private GoWrapper _wrapper2;
         private GameObject _gameObject3;
-        private GoWrapper _wrapper3;
+        // private GoWrapper _wrapper3;
         private GameObject _gameObject4;
-        private GoWrapper _wrapper4;
+        // private GoWrapper _wrapper4;
         private GameObject _gameObject5;
-        private GoWrapper _wrapper5;
+        private GameObject _gameObject6;
+        private GameObject _gameObject7;
+        private GameObject _gameObject8;
+        private GameObject _gameObject9;
+        private GameObject _gameObject10;
+        private GameObject _gameObject11;
+        private GameObject _gameObject12;
+        private List<GameObject> _gameObjects = new List<GameObject>();
+        // private GoWrapper _wrapper5;
         private Dictionary<int, RoleSkillCfg> _npcSkillDic;
 
         private bool playStop = false;
@@ -53,7 +63,14 @@ namespace GFGGame
             SceneController.DestroyObjectFromView(_gameObject1);
             SceneController.DestroyObjectFromView(_gameObject2);
             SceneController.DestroyObjectFromView(_gameObject3);
+            SceneController.DestroyObjectFromView(_gameObject4);
+            SceneController.DestroyObjectFromView(_gameObject5);
+            SceneController.DestroyObjectFromView(_gameObject6);
+            for (int i = 0; i < _gameObjects.Count; i++)
+            {
+                SceneController.DestroyObjectFromView(_gameObjects[i]);
 
+            }
             base.Dispose();
         }
 
@@ -67,6 +84,7 @@ namespace GFGGame
             _scenePrefab = GFGAsset.Load<GameObject>(ResPathUtil.GetPrefabPath("SceneFightTargetScore"));
 
             RoleSkillCfg[] roleSkillCfgs = RoleSkillCfgArray.Instance.dataArray;
+            _skillCount = roleSkillCfgs.Length;
             for (int i = 0; i < roleSkillCfgs.Length; i++)
             {
                 GComponent btnSkill = _ui.target.GetChild("btnSkill" + i).asCom;
@@ -103,6 +121,7 @@ namespace GFGGame
                 }
             });
             _ui.m_btnSpeedUp.onClick.Add(OnBtnSpeedUp);
+            AddEffect();
 
         }
 
@@ -121,7 +140,6 @@ namespace GFGGame
             SceneController.UpdateFightTarget(fightCfg.targetRes, _sceneObject);
 
             UpdateNormal();
-            AddEffect();
             _ui.m_selfName.m_txtName.text = RoleDataManager.roleName;
             _ui.m_targetName.m_txtName.text = fightCfg.targetName;
             _ui.m_btnSpeedUp.visible = EquipDataCache.cacher.autoPlay;
@@ -169,14 +187,37 @@ namespace GFGGame
         private void AddEffect()
         {
             string resPath0 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_hd_sc");
-            SceneController.AddObjectToView(_gameObject0, _wrapper0, _ui.m_ComShieldMine.m_holder, resPath0, out _gameObject0, out _wrapper0);
-            SceneController.AddObjectToView(_gameObject2, _wrapper2, _ui.m_ComShieldNpc.m_holder, resPath0, out _gameObject2, out _wrapper2);
+            SceneController.AddObjectToView(_gameObject0, null, _ui.m_ComShieldMine.m_holder, resPath0, out _gameObject0, out GoWrapper _wrapper0);
+            SceneController.AddObjectToView(_gameObject2, null, _ui.m_ComShieldNpc.m_holder, resPath0, out _gameObject2, out GoWrapper _wrapper2);
             string resPath1 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_hd_ps");
-            SceneController.AddObjectToView(_gameObject1, _wrapper1, _ui.m_ComShieldMine.m_holder1, resPath1, out _gameObject1, out _wrapper1);
-            SceneController.AddObjectToView(_gameObject3, _wrapper3, _ui.m_ComShieldNpc.m_holder1, resPath1, out _gameObject3, out _wrapper3);
+            SceneController.AddObjectToView(_gameObject1, null, _ui.m_ComShieldMine.m_holder1, resPath1, out _gameObject1, out GoWrapper _wrapper1);
+            SceneController.AddObjectToView(_gameObject3, null, _ui.m_ComShieldNpc.m_holder1, resPath1, out _gameObject3, out GoWrapper _wrapper3);
             string resPath2 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_tb_tg");
-            SceneController.AddObjectToView(_gameObject4, _wrapper4, _ui.m_ComRoleSkillMineAdd.m_holder, resPath2, out _gameObject4, out _wrapper4, 70);
-            SceneController.AddObjectToView(_gameObject5, _wrapper5, _ui.m_ComRoleSkillNpcAdd.m_holder, resPath2, out _gameObject5, out _wrapper5, 70);
+            SceneController.AddObjectToView(_gameObject4, null, _ui.m_ComRoleSkillMineAdd.m_holder, resPath2, out _gameObject4, out GoWrapper _wrapper4, 70);
+            SceneController.AddObjectToView(_gameObject5, null, _ui.m_ComRoleSkillNpcAdd.m_holder, resPath2, out _gameObject5, out GoWrapper _wrapper5, 70);
+            string resPath5 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_tb_jc");
+            SceneController.AddObjectToView(_gameObject7, null, _ui.m_ComRoleSkillMineMinus.m_holder, resPath5, out _gameObject7, out GoWrapper _wrapper7, 70);
+            SceneController.AddObjectToView(_gameObject8, null, _ui.m_ComRoleSkillNpcMinus.m_holder, resPath5, out _gameObject8, out GoWrapper _wrapper8, 70);
+            string resPath6 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_tb_dz");
+            SceneController.AddObjectToView(_gameObject9, null, _ui.m_ComRoleSkillMineBreak.m_holder, resPath6, out _gameObject9, out GoWrapper _wrapper9, 70);
+            SceneController.AddObjectToView(_gameObject10, null, _ui.m_ComRoleSkillNpcBreak.m_holder, resPath6, out _gameObject10, out GoWrapper _wrapper10, 70);
+            string resPath7 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_tb_jy");
+            SceneController.AddObjectToView(_gameObject11, null, _ui.m_ComRoleSkillMineShield.m_holder, resPath7, out _gameObject11, out GoWrapper _wrapper11, 70);
+            SceneController.AddObjectToView(_gameObject12, null, _ui.m_ComRoleSkillNpcShield.m_holder, resPath7, out _gameObject12, out GoWrapper _wrapper12, 70);
+
+
+            string resPath3 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_tb_an");
+            for (int i = 0; i < _skillCount; i++)
+            {
+                GComponent btnSkill = _ui.target.GetChild("btnSkill" + i).asCom;
+                UI_ComBtnSkill item = UI_ComBtnSkill.Proxy(btnSkill);
+                SceneController.AddObjectToView(null, null, item.m_holder, resPath3, out GameObject _gameObject, out GoWrapper _wrapper);
+                _gameObjects.Add(_gameObject);
+            }
+
+            string resPath4 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_jdt");
+            SceneController.AddObjectToView(_gameObject6, null, _ui.m_proScore.m_comBar.m_holder, resPath4, out _gameObject6, out GoWrapper _wrapper6);
+
             _ui.m_ComShieldMine.m_holder.visible = false;
             _ui.m_ComShieldMine.m_holder1.visible = false;
             _ui.m_ComShieldNpc.m_holder.visible = false;
@@ -365,7 +406,7 @@ namespace GFGGame
                 _targetScore += score;
             }
             // comRoleSkillScore.m_comRoleSkill.m_c1.selectedIndex = 0;
-            comRoleSkillScore.m_txtScore.SetVar("count", score.ToString()).FlushVars();
+            comRoleSkillScore.m_txtScore.SetVar("count", "+" + score.ToString()).FlushVars();
             comRoleSkillScore.m_t0.ignoreEngineTimeScale = false;
             comRoleSkillScore.m_t0.timeScale = EquipDataCache.cacher.fightSpeed;
             comRoleSkillScore.m_t0.Play(() =>
@@ -396,9 +437,9 @@ namespace GFGGame
                       return;
                   }
 
-                  UI_ComRoleSkill1 comRoleSkillScore = role == SkillDataManager.MINE ? _ui.m_ComRoleSkillNpcMinus : _ui.m_ComRoleSkillMineMinus;
+                  UI_ComRoleSkill comRoleSkillScore = role == SkillDataManager.MINE ? _ui.m_ComRoleSkillNpcMinus : _ui.m_ComRoleSkillMineMinus;
                   comRoleSkillScore.target.visible = true;
-                  comRoleSkillScore.m_c1.selectedIndex = role == SkillDataManager.MINE ? 0 : 1;
+                  //   comRoleSkillScore.m_c1.selectedIndex = role == SkillDataManager.MINE ? 0 : 1;
                   int score = 0;
                   if (role == SkillDataManager.MINE)
                   {
@@ -413,25 +454,25 @@ namespace GFGGame
                   }
 
                   // comRoleSkillScore.m_comRoleSkill.m_c1.selectedIndex = 1;
-                  comRoleSkillScore.m_txtScore.SetVar("count", score.ToString()).FlushVars();
-                  if (role == SkillDataManager.MINE)
-                  {
-                      comRoleSkillScore.m_t0.ignoreEngineTimeScale = false;
-                      comRoleSkillScore.m_t0.timeScale = EquipDataCache.cacher.fightSpeed;
-                      comRoleSkillScore.m_t0.Play(() =>
-                      {
-                          comRoleSkillScore.target.visible = false;
-                      });
-                  }
-                  else
-                  {
-                      comRoleSkillScore.m_t0.ignoreEngineTimeScale = false;
-                      comRoleSkillScore.m_t0.timeScale = EquipDataCache.cacher.fightSpeed;
-                      comRoleSkillScore.m_t1.Play(() =>
+                  comRoleSkillScore.m_txtScore.SetVar("count", "-" + score.ToString()).FlushVars();
+                  //   if (role == SkillDataManager.MINE)
+                  //   {
+                  comRoleSkillScore.m_t0.ignoreEngineTimeScale = false;
+                  comRoleSkillScore.m_t0.timeScale = EquipDataCache.cacher.fightSpeed;
+                  comRoleSkillScore.m_t0.Play(() =>
                   {
                       comRoleSkillScore.target.visible = false;
                   });
-                  }
+                  //   }
+                  //   else
+                  //   {
+                  //       comRoleSkillScore.m_t0.ignoreEngineTimeScale = false;
+                  //       comRoleSkillScore.m_t0.timeScale = EquipDataCache.cacher.fightSpeed;
+                  //       comRoleSkillScore.m_t0.Play(() =>
+                  //   {
+                  //       comRoleSkillScore.target.visible = false;
+                  //   });
+                  //   }
 
                   UpdateProgressBar();
 
@@ -442,6 +483,14 @@ namespace GFGGame
 
             GProgressBar targetSkillMinus = role == SkillDataManager.MINE ? _ui.m_proMinusNpc : _ui.m_proMinusMine;
             targetSkillMinus.visible = false;
+            UI_ComRoleSkill1 comSkillBreak = role == SkillDataManager.MINE ? _ui.m_ComRoleSkillMineBreak : _ui.m_ComRoleSkillNpcBreak;
+            comSkillBreak.target.visible = true;
+            comSkillBreak.m_t0.ignoreEngineTimeScale = false;
+            comSkillBreak.m_t0.timeScale = EquipDataCache.cacher.fightSpeed;
+            comSkillBreak.m_t0.Play(() =>
+            {
+                comSkillBreak.target.visible = false;
+            });
 
             GTweener twener = GTween.GetTween(targetSkillMinus, TweenPropType.Progress);
             if (twener != null)
@@ -463,6 +512,16 @@ namespace GFGGame
                   comSkillShield.m_holder.visible = false;
 
               });
+
+            UI_ComRoleSkill1 comSkillShieldEff = role == SkillDataManager.MINE ? _ui.m_ComRoleSkillMineShield : _ui.m_ComRoleSkillNpcShield;
+            comSkillShieldEff.target.visible = true;
+            comSkillShieldEff.m_t0.ignoreEngineTimeScale = false;
+            comSkillShieldEff.m_t0.timeScale = EquipDataCache.cacher.fightSpeed;
+            comSkillShieldEff.m_t0.Play(() =>
+            {
+                comSkillShieldEff.target.visible = false;
+            });
+
         }
         private void OnBtnSpeedUp()
         {
@@ -523,9 +582,13 @@ namespace GFGGame
             _ui.m_ComRoleSkillMineMinus.target.visible = false;
             _ui.m_ComRoleSkillNpcAdd.target.visible = false;
             _ui.m_ComRoleSkillNpcMinus.target.visible = false;
+            _ui.m_ComRoleSkillMineBreak.target.visible = false;
+            _ui.m_ComRoleSkillNpcBreak.target.visible = false;
+            _ui.m_ComRoleSkillMineShield.target.visible = false;
+            _ui.m_ComRoleSkillNpcShield.target.visible = false;
 
-            RoleSkillCfg[] roleSkillCfgs = RoleSkillCfgArray.Instance.dataArray;
-            for (int i = 0; i < roleSkillCfgs.Length; i++)
+
+            for (int i = 0; i < _skillCount; i++)
             {
                 GComponent btnSkill = _ui.target.GetChild("btnSkill" + i).asCom;
 
@@ -536,6 +599,7 @@ namespace GFGGame
             isAutoPlay = false;
             Timers.inst.Remove(CircleScoreStart);
             Timers.inst.Remove(Skip);
+            _gameObjects.Clear();
         }
 
         protected override void UpdateToCheckGuide(object param)

二进制
GameClient/Assets/ResIn/UI/Main/Main_atlas0!a.png


二进制
GameClient/Assets/ResIn/UI/Main/Main_atlas0.png


二进制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_1!a.png


二进制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_1.png


二进制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_3!a.png


二进制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_3.png


二进制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_4!a.png


二进制
GameClient/Assets/ResIn/UI/Main/Main_atlas0_4.png


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