Bladeren bron

对战进度条

zhaoyang 2 jaren geleden
bovenliggende
commit
5ebed99918

+ 1 - 1
FGUIProject/assets/Main/StoryFightTargetScoreUI.xml

@@ -20,7 +20,7 @@
     <component id="n51_psph" name="myHead" src="o9ghtlq" fileName="components/ComHead2.xml" pkg="eg2y0ldp" xy="214,228" pivot="0.5,0.5" anchor="true" group="n66_e050" scale="0.7,0.7"/>
     <component id="n52_psph" name="targetHead" src="o9ghtlq" fileName="components/ComHead2.xml" pkg="eg2y0ldp" xy="932,228" pivot="0.5,0.5" anchor="true" group="n66_e050" scale="0.7,0.7"/>
     <component id="n28_uj53" name="proScore" src="v3k9c7" fileName="components/ProgressBarTargetScore.xml" xy="147,83" pivot="0,0.5" anchor="true" group="n66_e050">
-      <ProgressBar value="100" max="100"/>
+      <ProgressBar value="50" max="100"/>
     </component>
     <group id="n66_e050" name="n66" xy="99,66" size="948,276"/>
   </displayList>

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

@@ -205,7 +205,7 @@ namespace GFGGame
             _ui.m_btnSpeedUp.title = "x" + FightDataManager.Instance.fightSpeed;
             _ui.m_comClick.m_comAllPerfect.target.visible = false;
             // _ui.m_LoaMask.visible = false;
-            _ui.m_proScore.m_comBar.target.width = 0;
+            _ui.m_proScore.m_comBar.target.width = _ui.m_proScore.m_comBar.target.width / 2;
             _ui.m_btnSkip.visible = InstanceZonesDataManager.FightScene == ConstInstanceZonesType.Arena;
 
 
@@ -220,7 +220,7 @@ namespace GFGGame
                 _targetMainScore = ScoreSystemData.Instance.GetRobotMainScore(targetData);
             }
 
-            _ui.m_proScore.m_txtNpcScore.text = targetData.name + " 0";
+            _ui.m_proScore.m_txtNpcScore.text = " 0";
             _targetRoundTimes = ScoreSystemData.Instance.GetRoundTime(targetData.cardId, targetData.skillLvs);
 
 
@@ -540,7 +540,7 @@ namespace GFGGame
             _ui.m_proScore.m_txtMineScore.text = " " + _score;
             _ui.m_proScore.m_txtNpcScore.text = " " + _targetScore;
 
-            double proportion = _score + _targetScore == 0 ? 0 : _score / (_score + _targetScore);
+            double proportion = _score + _targetScore == 0 ? 0.5 : _score / (_score + _targetScore);
             float width = (float)(proportion * _ui.m_proScore.target.width);
             width = width > _ui.m_proScore.m_comBar.target.initWidth ? _ui.m_proScore.m_comBar.target.initWidth : width;
             GTween.To(_ui.m_proScore.m_comBar.target.width, width, 0.3f).SetTarget(_ui.m_proScore.m_comBar).OnUpdate((GTweener t) =>