|
@@ -194,8 +194,9 @@ namespace GFGGame
|
|
|
{
|
|
|
int lv = GameGlobal.myNumericComponent.GetAsInt(NumericType.Lvl);
|
|
|
_ui.m_comExpBar.m_txtLvl.text = string.Format("等级 {0}", GameGlobal.myNumericComponent.GetAsInt(NumericType.Lvl));
|
|
|
- float exp = GameGlobal.myNumericComponent.GetAsInt(NumericType.Exp);
|
|
|
- float cfgExp = RoleLevelCfgArray.Instance.GetCfg(lv).exp;
|
|
|
+ int exp = GameGlobal.myNumericComponent.GetAsInt(NumericType.Exp);
|
|
|
+ int cfgExp = RoleLevelCfgArray.Instance.GetCfg(lv).exp;
|
|
|
+ _ui.m_comExpBar.m_pbExp.m_title.text = string.Format("{0}/{1}", exp, cfgExp);
|
|
|
float initWidth = _ui.m_comExpBar.m_pbExp.m_bar.target.initWidth;
|
|
|
float curWidth = _ui.m_comExpBar.m_pbExp.m_bar.target.width;
|
|
|
float width = exp / cfgExp * initWidth;
|