|
@@ -30,8 +30,7 @@ namespace GFGGame
|
|
|
VipCfg vipCfg = VipCfgArray.Instance.GetCfg(RoleDataManager.vipLv);
|
|
|
if (vipCfg == null) return;
|
|
|
VipCfg nextVipCfg = VipCfgArray.Instance.GetCfg(RoleDataManager.vipLv + 1);
|
|
|
- com.m_txtTipsFull.visible = RoleDataManager.vipExp >= vipCfg.num && nextVipCfg == null;
|
|
|
- com.m_grpTips.visible = nextVipCfg != null || RoleDataManager.vipExp < vipCfg.num;
|
|
|
+ com.m_grpTips.visible = nextVipCfg != null;
|
|
|
if (com.m_btnRule.data == null)
|
|
|
{
|
|
|
com.m_btnRule.onClick.Add(RuleController.ShowRuleView);
|
|
@@ -46,6 +45,13 @@ namespace GFGGame
|
|
|
com.m_txtTips.SetVar("exp", (vipCfg.num - RoleDataManager.vipExp).ToString()).FlushVars();
|
|
|
com.m_txtTips.SetVar("vipLv", (nextVipCfg.id).ToString()).FlushVars();
|
|
|
}
|
|
|
+ else
|
|
|
+ {
|
|
|
+ com.m_proExp.target.max = vipCfg.num;
|
|
|
+ com.m_proExp.target.value = RoleDataManager.vipExp;
|
|
|
+ com.m_proExp.m_txttitle.SetVar("value", com.m_proExp.target.value.ToString()).FlushVars();
|
|
|
+ com.m_proExp.m_txttitle.SetVar("max", "MAX").FlushVars();
|
|
|
+ }
|
|
|
UI_ComVipLv.ProxyEnd();
|
|
|
}
|
|
|
|