|
@@ -27,6 +27,8 @@ namespace GFGGame
|
|
|
private int _prefectCount = 0;//卓越点击数量
|
|
|
private bool _isAllPerfect = false;//登峰造极中
|
|
|
private bool tryGuide = false;
|
|
|
+ //战斗表现修改,得分和星星偏移
|
|
|
+ private float offsetX = 150.0f;
|
|
|
|
|
|
private EffectUI _effectUI1;
|
|
|
private EffectUI _effectUI2;
|
|
@@ -172,10 +174,10 @@ namespace GFGGame
|
|
|
StoryFightCfg fightCfg = StoryFightCfgArray.Instance.GetCfg(levelCfg.fightID);
|
|
|
_ui.m_proScore.target.max = fightCfg.score3;
|
|
|
_ui.m_proScore.m_comBar.target.width = 0;
|
|
|
- _ui.m_proScore.m_comFirstScore.target.x = (((float)fightCfg.score1 / (float)fightCfg.score3)) * _ui.m_proScore.target.width;
|
|
|
- _ui.m_proScore.m_comSecondScore.target.x = (((float)fightCfg.score2 / (float)fightCfg.score3)) * _ui.m_proScore.target.width;
|
|
|
- _ui.m_proScore.m_comThirdScore.target.x = (((float)fightCfg.score3 / (float)fightCfg.score3)) * _ui.m_proScore.target.width;
|
|
|
-
|
|
|
+ _ui.m_proScore.m_comFirstScore.target.x = (((float)fightCfg.score1 / (float)fightCfg.score3)) * (_ui.m_proScore.target.width - offsetX);
|
|
|
+ _ui.m_proScore.m_comSecondScore.target.x = (((float)fightCfg.score2 / (float)fightCfg.score3)) * (_ui.m_proScore.target.width - offsetX);
|
|
|
+ _ui.m_proScore.m_comThirdScore.target.x = (((float)fightCfg.score3 / (float)fightCfg.score3)) * (_ui.m_proScore.target.width - offsetX);
|
|
|
+ _ui.m_proScore.m_holder.visible = false;
|
|
|
_ui.m_proScore.m_txtCount.text = "总分 0";
|
|
|
_ui.m_comClick.target.touchable = false;
|
|
|
_ui.m_comClick.m_comAllPerfect.target.visible = false;
|
|
@@ -368,8 +370,9 @@ namespace GFGGame
|
|
|
private void UpdateProgress(object param = null)
|
|
|
{
|
|
|
double proportion = _score / _ui.m_proScore.target.max;
|
|
|
- float width = (float)(proportion * _ui.m_proScore.target.width);
|
|
|
+ float width = (float)(proportion * (_ui.m_proScore.target.width - offsetX));
|
|
|
width = width > _ui.m_proScore.m_comBar.target.initWidth ? _ui.m_proScore.m_comBar.target.initWidth : width;
|
|
|
+ _ui.m_proScore.m_holder.visible = true;
|
|
|
GTween.To(_ui.m_proScore.m_comBar.target.width, width, 0.3f).SetTarget(_ui.m_proScore.m_comBar).OnUpdate((GTweener t) =>
|
|
|
{
|
|
|
_ui.m_proScore.m_comBar.target.width = t.value.x;
|