10 BaseHomeResource.ResourceGroup group = _r.Group;
15 this.button.mainText.text =
"Lv." + _r.value.ToString();
16 this.button.subText.SetActive(
false);
21 int num = homeResourceRate.value - homeResourceRate.lastValue;
28 str =
"↑".TagColor(FontColor.Good,
null);
32 str =
"↓".TagColor(FontColor.Bad,
null);
34 string text = homeResourceRate.value.ToString() +
" " + str;
35 this.button.mainText.text = text;
36 this.button.subText.SetActive(
false);
42 int num2 = homeResource.value - homeResource.lastValue;
43 int num3 = (num2 == 0) ? 4 : ((num2 > 0) ? 5 : 6);
44 string text2 = homeResource.value.ToString() ??
"";
45 if (homeResource.value < 0)
47 text2 = text2.TagColor(FontColor.Bad,
null);
50 this.button.mainText.text = text3;
51 FontColor c = (num2 == 0) ? FontColor.Passive : ((num2 > 0) ? FontColor.Good : FontColor.Bad);
52 this.button.subText.text = ((((num2 > 0) ?
"+" :
"") + num2.ToString()).TagColor(c,
null) +
"dailyIncome".lang()).TagSize(13);
54 this.imageExp.SetActive(_r.IsSkill);
55 this.imageExp.fillAmount = _r.ExpRatio;
56 this.button.icon.sprite = _r.Sprite;
57 this.button.tooltip.onShowTooltip = delegate(UITooltip tp)
59 _r.WriteNote(tp.note);
64 public UIButton button;
67 public Image imageExp;