+EA 23.96 Nyaightly - Plugin.UI
February 26, 2025
1 file modified.
Important Changes
None.
UIButton
@@ -355,10 +355,7 @@ public void SetToggle(bool isOn, Action<bool> onToggle = null)
cs
public void SetToggleWithScore(bool isOn, Action<bool> onToggle, int? score)
{
SetToggle(isOn, onToggle);
subText.SetActive(score != 0);
UIText uIText = subText;
int? num = score;
uIText.SetText(num.ToString() ?? "", (score >= 0) ? FontColor.Good : FontColor.Bad);
subText.SetActive(enable: false);
}
public void SetTooltip(Action<UITooltip> onShowTooltip = null, bool enable = true)