10 bool isFinished = !branch.researches.plans.Contains(p);
12 this.button1.mainText.text = p.Name;
13 this.goFocus.SetActive(branch.researches.focused == p);
14 string text = p.source.tech.ToString(
"#,0").TagColorGoodBad(() => branch.researches.CanCompletePlan(p),
false);
15 this.button1.subText.text = text;
16 this.button1.subText.SetActive(!isFinished);
17 this.imageExp.fillAmount = (float)branch.resources.knowledge.value / (
float)p.source.tech;
18 this.button1.tooltip.onShowTooltip = delegate(UITooltip tp)
23 this.button1.onClick.AddListener(delegate()
29 if (!branch.researches.CanCompletePlan(p))
34 UIContextMenu uicontextMenu =
EClass.ui.CreateContextMenuInteraction().SetHighlightTarget(this.button1);
35 string idLang =
"buy";
37 if ((action = <>9__3) ==
null)
39 action = (<>9__3 = delegate()
41 branch.resources.knowledge.Mod(-p.source.tech,
true);
42 branch.researches.CompletePlan(p);
46 uicontextMenu.AddButton(idLang, action,
true);
52 public Image imageExp;