fix change of textTotalSP and fix bug PW 174
This commit is contained in:
@@ -190,7 +190,15 @@ namespace BrewMonster.UI
|
||||
FitSize();
|
||||
ShowLastSelectedSkill();
|
||||
}
|
||||
totalSPText.text = " <color=yellow>Nguyên Thần:</color> " + GetHostPlayer().GetBasicProps().iSP.ToString() + "</color>";
|
||||
UpdateTotalSPText();
|
||||
}
|
||||
|
||||
public void UpdateTotalSPText()
|
||||
{
|
||||
if (totalSPText != null && GetHostPlayer() != null)
|
||||
{
|
||||
totalSPText.text = " <color=yellow>Nguyên Thần:</color> " + GetHostPlayer().GetBasicProps().iSP.ToString() + "</color>";
|
||||
}
|
||||
}
|
||||
|
||||
// ��鵯��ħ״̬ / Reset when switching between god/evil
|
||||
@@ -495,6 +503,7 @@ namespace BrewMonster.UI
|
||||
}
|
||||
else if (q.m_changeMask == CECSkillPanelChange.enumChangeMask.CHANGE_SKILL_LEVEL_UP)
|
||||
{
|
||||
UpdateTotalSPText();
|
||||
if (q.m_skillLevel == 1)
|
||||
{
|
||||
foreach (var kv in m_skillSubDialogsMap)
|
||||
|
||||
@@ -145,9 +145,13 @@ namespace BrewMonster
|
||||
uiManager.ShowMessageBoxGeneral("MessageBox", m_upgradeDisabledReason, this);
|
||||
return;
|
||||
}
|
||||
|
||||
UnityGameSession.c2s_SendCmdNPCSevLearnSkill(skillID);
|
||||
UpdateUpgradeBtn();
|
||||
var parrentUiSkill = GetComponentInParent<CDlgSkillSubList>();
|
||||
if (parrentUiSkill != null)
|
||||
{
|
||||
parrentUiSkill.UpdateTotalSPText();
|
||||
}
|
||||
});
|
||||
|
||||
messagebox.SetData((uint)m_skillID);
|
||||
|
||||
Reference in New Issue
Block a user