|
@@ -293,25 +293,37 @@ namespace Fort23.Mono
|
|
|
{
|
|
|
if (txtHP.text != heroInfo.hp.Value.ToStringEx())
|
|
|
{
|
|
|
+ long old = long.Parse(txtHP.text);
|
|
|
txtHP.text = heroInfo.hp.Value.ToStringEx();
|
|
|
if(!isInit)
|
|
|
- await UIManager.Instance.CreateGComponent<HeroUpTxtEft>(null,
|
|
|
+ await UIManager.Instance.CreateGComponent<HeroUpTxtEft>(delegate(HeroUpTxtEft heroUpTxtEft)
|
|
|
+ {
|
|
|
+ heroUpTxtEft.txtEft.text = "+" + (heroInfo.hp.Value - old).ToStringEx();
|
|
|
+ },
|
|
|
poolName: "HeroUpTxtEft", root: eftNumPos[0] as RectTransform);
|
|
|
}
|
|
|
|
|
|
if (txtATK.text != heroInfo.attack.Value.ToStringEx())
|
|
|
{
|
|
|
+ long old = long.Parse(txtATK.text);
|
|
|
txtATK.text = heroInfo.attack.Value.ToStringEx();
|
|
|
if(!isInit)
|
|
|
- await UIManager.Instance.CreateGComponent<HeroUpTxtEft>(null,
|
|
|
+ await UIManager.Instance.CreateGComponent<HeroUpTxtEft>(delegate(HeroUpTxtEft heroUpTxtEft)
|
|
|
+ {
|
|
|
+ heroUpTxtEft.txtEft.text = "+" + (heroInfo.attack.Value - old).ToStringEx();
|
|
|
+ },
|
|
|
poolName: "HeroUpTxtEft", root: eftNumPos[1] as RectTransform);
|
|
|
}
|
|
|
|
|
|
if (txtDEF.text != heroInfo.defense.Value.ToStringEx())
|
|
|
{
|
|
|
+ long old = long.Parse(txtDEF.text);
|
|
|
txtDEF.text = heroInfo.defense.Value.ToStringEx();
|
|
|
if(!isInit)
|
|
|
- await UIManager.Instance.CreateGComponent<HeroUpTxtEft>(null,
|
|
|
+ await UIManager.Instance.CreateGComponent<HeroUpTxtEft>(delegate(HeroUpTxtEft heroUpTxtEft)
|
|
|
+ {
|
|
|
+ heroUpTxtEft.txtEft.text = "+" + (heroInfo.defense.Value - old).ToStringEx();
|
|
|
+ },
|
|
|
poolName: "HeroUpTxtEft", root: eftNumPos[2] as RectTransform);
|
|
|
}
|
|
|
|
|
@@ -347,7 +359,7 @@ namespace Fort23.Mono
|
|
|
btnUpgrade.GetComponent<MyImage>().icon_name = "btn_l_Green";
|
|
|
}
|
|
|
|
|
|
- txtUpgrade.text = redColorStar + curExp + redColorEnd + "/" + costExp;
|
|
|
+ txtUpgrade.text = redColorStar + curExp.ToStringEx() + redColorEnd + "/" + costExp.ToStringEx();
|
|
|
|
|
|
|
|
|
curHeroCount = BagController.Instance.GetItemInfo(heroInfo.modelConfig.itemID).count.Value;
|