zhaoyang %!s(int64=3) %!d(string=hai) anos
pai
achega
4913a3be9d

+ 6 - 1
FGUIProject/assets/Main/components/ComScoreResult.xml

@@ -23,10 +23,14 @@
     <text id="n11_vuz5" name="txtCount2" xy="15,129" pivot="0.5,0" size="226,55" font="ui://mfvz4q8kvuz5b3" fontSize="51" align="center" text="666666">
       <gearDisplay controller="c1" pages="2"/>
     </text>
+    <graph id="n15_ez2u" name="graph" xy="133,93" size="1,1">
+      <gearDisplay controller="c1" pages="1"/>
+    </graph>
   </displayList>
-  <transition name="t0">
+  <transition name="t0" autoPlay="true">
     <item time="0" type="Visible" target="n10_vuz5" value="false"/>
     <item time="0" type="Visible" target="n11_vuz5" value="false"/>
+    <item time="0" type="Visible" target="n15_ez2u" value="false"/>
     <item time="0" type="Visible" target="n8_vuz5" value="false"/>
     <item time="0" type="Visible" target="n9_vuz5" value="false"/>
     <item time="14" type="Visible" target="n10_vuz5" value="true"/>
@@ -37,5 +41,6 @@
     <item time="42" type="Visible" target="n11_vuz5" value="false"/>
     <item time="42" type="Visible" target="n8_vuz5" value="false"/>
     <item time="42" type="Visible" target="n9_vuz5" value="false"/>
+    <item time="48" type="Visible" target="n15_ez2u" value="false"/>
   </transition>
 </component>

+ 12 - 17
FGUIProject/assets/Main/components/comClickCircle.xml

@@ -1,21 +1,16 @@
 <?xml version="1.0" encoding="utf-8"?>
-<component size="244,237">
+<component size="180,180">
+  <controller name="c1" pages="0,,1," selected="0"/>
   <displayList>
-    <loader id="n13_vuz5" name="loaCircle" xy="-59,-72" pivot="0.5,0.5" size="362,382" group="n12_vuz5" scale="0.5,0.5" url="ui://mfvz4q8kvuz5bk"/>
-    <image id="n11_vuz5" name="imgCircle" src="vuz5bj" fileName="imagesStory/zd_pfguang_2.png" xy="-59,-72" pivot="0.5,0.5" size="362,382" group="n12_vuz5" aspect="true"/>
-    <text id="n14_k1kh" name="txtPart" xy="122,118" pivot="0.5,0.5" anchor="true" size="124,79" group="n12_vuz5" fontSize="60" color="#fdfbee" align="center" text="饰品"/>
-    <group id="n12_vuz5" name="grpCircle" xy="-59,-72" size="362,382" advanced="true"/>
-    <component id="n7_vuz5" name="ComScoreResult" src="vuz5bi" fileName="components/ComScoreResult.xml" xy="-7,-8" visible="false"/>
+    <loader id="n13_vuz5" name="loaCircle" xy="-1,-7" pivot="0.5,0.5" size="183,194" group="n12_vuz5" url="ui://mfvz4q8kvuz5bk" autoSize="true">
+      <gearDisplay controller="c1" pages="0"/>
+    </loader>
+    <graph id="n15_ez2u" name="holder" xy="90,89" size="1,1" group="n12_vuz5" touchable="false" type="rect">
+      <gearDisplay controller="c1" pages="1"/>
+    </graph>
+    <text id="n14_k1kh" name="txtPart" xy="91,89" pivot="0.5,0.5" anchor="true" size="124,79" group="n12_vuz5" fontSize="60" color="#fdfbee" align="center" text="饰品"/>
+    <graph id="n21_ez2u" name="holder1" xy="90,89" size="1,1" group="n12_vuz5" touchable="false" type="rect"/>
+    <group id="n12_vuz5" name="grpCircle" xy="-1,-7" size="183,194" advanced="true"/>
+    <component id="n7_vuz5" name="ComScoreResult" src="vuz5bi" fileName="components/ComScoreResult.xml" xy="-38,-39" visible="false" touchable="false"/>
   </displayList>
-  <transition name="t0">
-    <item time="0" type="Scale" target="n11_vuz5" label="big" tween="true" startValue="1,1" endValue="0.5,0.5" duration="15" label2="small" ease="Linear"/>
-    <item time="0" type="Visible" target="n12_vuz5" value="true"/>
-    <item time="15" type="Scale" target="n11_vuz5" label="small" tween="true" startValue="0.5,0.5" endValue="0,0" duration="14" ease="Linear"/>
-    <item time="29" type="Visible" target="n12_vuz5" value="false"/>
-  </transition>
-  <transition name="t1">
-    <item time="0" type="Visible" target="n12_vuz5" value="false"/>
-    <item time="0" type="Visible" target="n7_vuz5" value="true"/>
-    <item time="42" type="Visible" target="n7_vuz5" value="false"/>
-  </transition>
 </component>

BIN=BIN
FGUIProject/assets/Main/imagesStory/zd_pfguang_1.png


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

@@ -15,6 +15,7 @@ namespace UI.Main
         public GTextField m_txtCount0;
         public GTextField m_txtCount1;
         public GTextField m_txtCount2;
+        public GGraph m_graph;
         public Transition m_t0;
         public const string URL = "ui://mfvz4q8kvuz5bi";
         public const string PACKAGE_NAME = "Main";
@@ -71,6 +72,7 @@ namespace UI.Main
             m_txtCount0 = (GTextField)comp.GetChild("txtCount0");
             m_txtCount1 = (GTextField)comp.GetChild("txtCount1");
             m_txtCount2 = (GTextField)comp.GetChild("txtCount2");
+            m_graph = (GGraph)comp.GetChild("graph");
             m_t0 = comp.GetTransition("t0");
         }
         public void Dispose(bool disposeTarget = false)
@@ -83,6 +85,7 @@ namespace UI.Main
             m_txtCount0 = null;
             m_txtCount1 = null;
             m_txtCount2 = null;
+            m_graph = null;
             m_t0 = null;
             if(disposeTarget && target != null)
             {

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

@@ -7,13 +7,13 @@ namespace UI.Main
     public partial class UI_comClickCircle
     {
         public GComponent target;
+        public Controller m_c1;
         public GLoader m_loaCircle;
-        public GImage m_imgCircle;
+        public GGraph m_holder;
         public GTextField m_txtPart;
+        public GGraph m_holder1;
         public GGroup m_grpCircle;
         public UI_ComScoreResult m_ComScoreResult;
-        public Transition m_t0;
-        public Transition m_t1;
         public const string URL = "ui://mfvz4q8kn0js9b";
         public const string PACKAGE_NAME = "Main";
         public const string RES_NAME = "comClickCircle";
@@ -61,24 +61,24 @@ namespace UI.Main
 
         private void Init(GComponent comp)
         {
+            m_c1 = comp.GetController("c1");
             m_loaCircle = (GLoader)comp.GetChild("loaCircle");
-            m_imgCircle = (GImage)comp.GetChild("imgCircle");
+            m_holder = (GGraph)comp.GetChild("holder");
             m_txtPart = (GTextField)comp.GetChild("txtPart");
+            m_holder1 = (GGraph)comp.GetChild("holder1");
             m_grpCircle = (GGroup)comp.GetChild("grpCircle");
             m_ComScoreResult = (UI_ComScoreResult)UI_ComScoreResult.Create(comp.GetChild("ComScoreResult"));
-            m_t0 = comp.GetTransition("t0");
-            m_t1 = comp.GetTransition("t1");
         }
         public void Dispose(bool disposeTarget = false)
         {
+            m_c1 = null;
             m_loaCircle = null;
-            m_imgCircle = null;
+            m_holder = null;
             m_txtPart = null;
+            m_holder1 = null;
             m_grpCircle = null;
             m_ComScoreResult.Dispose();
             m_ComScoreResult = null;
-            m_t0 = null;
-            m_t1 = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 43 - 17
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightSingleScoreView.cs

@@ -20,7 +20,7 @@ namespace GFGGame
         private const int _range = 100;//圆圈随机范围
         private float _time = 0;// 登峰造极按住的时间
 
-        private float _playTime = 1.25f;
+        private float _playTime = 2f;
 
         private GameObject _gameObject0;
         private GameObject _gameObject1;
@@ -28,6 +28,10 @@ namespace GFGGame
         private GameObject _gameObject3;
         private GameObject _gameObject4;
         private GameObject _gameObject5;
+        private GameObject _gameObject6;
+        private GameObject _gameObject7;
+        private GoWrapper _wrapper6;
+        private GoWrapper _wrapper7;
 
         protected override void OnInit()
         {
@@ -51,7 +55,7 @@ namespace GFGGame
             SceneController.UpdateRole(EquipDataCache.cacher.equipDatas, _sceneObject);
             EventAgent.AddEventListener(ConstMessage.CARD_SKILL, CircleScoreStart);
 
-            _ui.m_comClickCircle.m_loaCircle.onClick.Add(CircleScoreEnd);
+            _ui.m_comClickCircle.target.onClick.Add(CircleScoreEnd);
             _ui.m_comAllCircle.target.onTouchBegin.Add(OnComAllCircleClickBegin);
             _ui.m_comAllCircle.target.onTouchEnd.Add(AllCircleScoreStart);
             _ui.m_comAllCircle.target.visible = false;
@@ -115,33 +119,49 @@ namespace GFGGame
             _ui.m_comClickCircle.target.SetXY(x, y);
             _ui.m_comClickCircle.target.visible = true;
 
-
+            // string resPath6 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_an_sf");
             if (_index == 0 && GuideDataManager.IsGuideFinish(ConstGuideId.SINGLE_FIGHT) <= 0)
             {
                 _ui.m_comClickCircle.m_loaCircle.touchable = false;
-                _ui.m_comClickCircle.m_t0.Play(1, 0, 0, _playTime / 2, () =>
+
+                GTween.To(100, 50, _playTime / 2).SetTarget(_gameObject7).OnUpdate((GTweener t) =>
                 {
-                    _ui.m_comClickCircle.m_loaCircle.touchable = true;
+
+                    _gameObject7.transform.localScale = new Vector3(t.value.x, t.value.x, t.value.x);
+
                 });
             }
             else
             {
-                _ui.m_comClickCircle.m_t0.ignoreEngineTimeScale = false;
-                _ui.m_comClickCircle.m_t0.timeScale = EquipDataCache.cacher.fightSpeed;// (1 / _speed);
-                _ui.m_comClickCircle.m_t0.Play(CircleScoreEnd);
+
+                _ui.m_comClickCircle.m_grpCircle.visible = true;
+                _ui.m_comClickCircle.m_c1.selectedIndex = 0;
+                GTween.To(100, 0, _playTime / EquipDataCache.cacher.fightSpeed).SetTarget(_gameObject7).OnUpdate((GTweener t) =>
+                {
+                    if (t.value.x <= 60 && _ui.m_comClickCircle.m_c1.selectedIndex == 0)
+                    {
+                        _ui.m_comClickCircle.m_c1.selectedIndex = 1;
+                    }
+                    _gameObject7.transform.localScale = new Vector3(t.value.x, t.value.x, t.value.x);
+
+                }).OnComplete(CircleScoreEnd);
             }
 
         }
 
         private void CircleScoreEnd()
         {
-            _ui.m_comClickCircle.m_loaCircle.onClick.Remove(CircleScoreEnd);
 
             int clickState = GetClickState();
-            _ui.m_comClickCircle.m_t0.Stop(true, false);
+            GTweener twener = GTween.GetTween(_gameObject7);
+            if (twener != null)
+            {
+                twener.Kill();
+            }
+            // _ui.m_comClickCircle.m_t0.Stop(true, false);
             _ui.m_comClickCircle.m_grpCircle.visible = false;
-            _ui.m_comClickCircle.m_ComScoreResult.target.visible = true;
             _ui.m_comClickCircle.m_ComScoreResult.m_c1.selectedIndex = clickState;
+            _ui.m_comClickCircle.m_ComScoreResult.target.visible = true;
             _ui.m_comClickCircle.m_ComScoreResult.m_t0.ignoreEngineTimeScale = false;
             _ui.m_comClickCircle.m_ComScoreResult.m_t0.timeScale = EquipDataCache.cacher.fightSpeed;
             _ui.m_comClickCircle.m_ComScoreResult.m_t0.Play(() =>
@@ -286,8 +306,8 @@ namespace GFGGame
             Timers.inst.Remove(Skip);
             _ui.m_comAllCircle.target.visible = false;
             _ui.m_comClickCircle.target.visible = false;
-            _ui.m_comClickCircle.m_t0.Stop(true, false);
-            _ui.m_comClickCircle.m_t1.Stop(true, false);
+            // _ui.m_comClickCircle.m_t0.Stop(true, false);
+            // _ui.m_comClickCircle.m_t1.Stop(true, false);
             _ui.m_proScore.target.value = 0;
             _ui.m_proScore.m_txtCount.text = "总分:0";
         }
@@ -319,6 +339,10 @@ namespace GFGGame
             SceneController.AddObjectToView(_gameObject4, null, _ui.m_comClickCircle.m_ComScoreResult.m_holder2, resPath3_2, out _gameObject4, out GoWrapper _wrapper4, 59);
             string resPath4 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_jdt_cz");
             SceneController.AddObjectToView(_gameObject5, null, _ui.m_proScore.m_comBar.m_holder1, resPath4, out _gameObject5, out GoWrapper _wrapper5);
+            string resPath5 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_an_cz");
+            SceneController.AddObjectToView(_gameObject6, _wrapper6, _ui.m_comClickCircle.m_holder, resPath5, out _gameObject6, out _wrapper6);
+            string resPath6 = ResPathUtil.GetViewEffectPath("ui_zhandou", "ui_zd_an_sf");
+            SceneController.AddObjectToView(_gameObject7, _wrapper7, _ui.m_comClickCircle.m_holder1, resPath6, out _gameObject7, out _wrapper7);
         }
         protected override void OnHide()
         {
@@ -344,6 +368,8 @@ namespace GFGGame
             SceneController.DestroyObjectFromView(_gameObject3);
             SceneController.DestroyObjectFromView(_gameObject4);
             SceneController.DestroyObjectFromView(_gameObject5);
+            SceneController.DestroyObjectFromView(_gameObject6);
+            SceneController.DestroyObjectFromView(_gameObject7);
 
             base.Dispose();
 
@@ -353,18 +379,18 @@ namespace GFGGame
 
         private int GetClickState()
         {
-            float scaleX = _ui.m_comClickCircle.m_imgCircle.scaleX;
+            float scaleX = _gameObject7.transform.localScale.x;// _ui.m_comClickCircle.m_imgCircle.scaleX;
             int clickState = ScoreSystemData.MISS_CLICK;
             if (EquipDataCache.cacher.autoPlay == true)
             {
                 return ScoreSystemData.PREFACT_CLICK;
             }
-            if (scaleX < 0.6f && scaleX > 0.4f)
+            if (scaleX < 60f && scaleX > 40f)
             {
                 clickState = ScoreSystemData.PREFACT_CLICK;
                 _prefectCount++;
             }
-            else if (scaleX <= 0.2f)
+            else if (scaleX <= 20f)
             {
                 clickState = ScoreSystemData.MISS_CLICK;
             }
@@ -380,7 +406,7 @@ namespace GFGGame
 
             if (!ViewManager.CheckIsTopView(this.viewCom)) return;
 
-            float scaleX = _ui.m_comClickCircle.m_imgCircle.scaleX;
+            float scaleX = _gameObject7.transform.localScale.x;
             if (scaleX == 0.5)
             {
                 GuideController.TryGuide(_ui.m_comClickCircle.m_loaCircle, ConstGuideId.SINGLE_FIGHT, 6, "服饰比较繁琐,适当的整理会更加分,点击为各部位修整吧");

BIN=BIN
GameClient/Assets/ResIn/UI/Main/Main_atlas0!a.png


BIN=BIN
GameClient/Assets/ResIn/UI/Main/Main_atlas0.png


BIN=BIN
GameClient/Assets/ResIn/UI/Main/Main_atlas0_1!a.png


BIN=BIN
GameClient/Assets/ResIn/UI/Main/Main_atlas0_1.png


BIN=BIN
GameClient/Assets/ResIn/UI/Main/Main_atlas0_3!a.png


BIN=BIN
GameClient/Assets/ResIn/UI/Main/Main_atlas0_3.png


BIN=BIN
GameClient/Assets/ResIn/UI/Main/Main_atlas0_4!a.png


BIN=BIN
GameClient/Assets/ResIn/UI/Main/Main_atlas0_4.png


BIN=BIN
GameClient/Assets/ResIn/UI/Main/Main_atlas0_5!a.png


BIN=BIN
GameClient/Assets/ResIn/UI/Main/Main_atlas0_5.png


BIN=BIN
GameClient/Assets/ResIn/UI/Main/Main_fui.bytes