From 96c625cf59fa4b68aa7e32285e3df88cc6930799 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期一, 10 九月 2018 15:49:06 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/Strengthening/GodBeastAttributes.cs | 31 +++++++++++++++++++++++++++++--
1 files changed, 29 insertions(+), 2 deletions(-)
diff --git a/System/Strengthening/GodBeastAttributes.cs b/System/Strengthening/GodBeastAttributes.cs
index b575370..962cda3 100644
--- a/System/Strengthening/GodBeastAttributes.cs
+++ b/System/Strengthening/GodBeastAttributes.cs
@@ -244,9 +244,10 @@
m_FullLevel.SetActive(false);
int toLv = ToLv(ToExpTotal);
m_LvNowText.text = "+" + DogZLv.ToString();
- if (DogZLv == toLv)
+ if (toLv <= DogZLv)
{
- m_LvNextText.text = "+" + (toLv + 1).ToString();
+ m_LvNextText.text = "+" + (DogZLv + 1).ToString();
+ toLv = DogZLv + 1;
}
else
{
@@ -261,6 +262,8 @@
m_TextAttributesAdd1.gameObject.SetActive(false);
m_TextAttributesAdd2.gameObject.SetActive(false);
m_ExpNum.text = DogZExp + "/" + DogzEquipConfig.upExpTotal;
+ float value = (float)DogZExp / DogzEquipConfig.upExpTotal;
+ SetExperienceBar(DogZLv, value);
if (AttType.Length > 1)
{
m_TextAttributes1.gameObject.SetActive(true);
@@ -294,6 +297,8 @@
int[] AttValueTo = ConfigParse.GetMultipleStr<int>(DogzEquipToConfig.attValue);
string strColor = string.Format(Language.Get("DogzGreenText"), ToExpTotal);
m_ExpNum.text = DogZExp + strColor + "/" + DogzEquipConfig.upExpTotal;
+ float value= (float)DogZExp / DogzEquipConfig.upExpTotal;
+ SetExperienceBar(DogZLv, value);
if (AttType.Length > 1)
{
m_TextAttributes1.gameObject.SetActive(true);
@@ -382,6 +387,28 @@
DogZExp = IudetDogzEquipPlus[1];
}
}
+
+
+ int GodBeast_Number = 0;
+ int GodBeast_Part = 0;
+ private void SetExperienceBar(int lv,float value)//璁剧疆缁忛獙鏉�
+ {
+ if (GodBeast_Number != GodBeastNumber || GodBeast_Part != GodBeastPart)
+ {
+ GodBeast_Number = GodBeastNumber;
+ GodBeast_Part = GodBeastPart;
+ m_ExpSlider.stage = lv;
+ m_ExpSlider.delay = 0f;
+ m_ExpSlider.ResetStage();
+ m_ExpSlider.value = value;
+ }
+ else
+ {
+ m_ExpSlider.delay = 0.1f;
+ m_ExpSlider.stage = lv;
+ m_ExpSlider.value = value;
+ }
+ }
}
}
--
Gitblit v1.8.0