public void Init(LettersPage _manager, LetterInfo letterInfo, bool _selected) { myLetterInfo = letterInfo; uIButton = GetComponent <UIButton>(); myManager = _manager; if (myLetterInfo.unlocked || AppManager.I.Player.IsDemoUser) { OkIcon.enabled = true; } else { OkIcon.enabled = false; } if (myLetterInfo == null) { LetterText.SetTextUnfiltered(""); EnglishLetterText.SetText(""); } else { var isolatedChar = myLetterInfo.data.GetStringForDisplay(LetterForm.Isolated); LetterText.SetTextUnfiltered(isolatedChar); EnglishLetterText.SetText(myLetterInfo.data.Id); } hightlight(_selected); }
//private UIButton uIButton; public void Init(LettersPage _manager, LetterInfo _info, bool _selected) { myLetterInfo = _info; myManager = _manager; //uIButton = GetComponent<UIButton>(); if (myLetterInfo.unlocked || AppManager.I.Player.IsDemoUser) { OkIcon.enabled = true; } else { OkIcon.enabled = false; } Title.text = myLetterInfo.data.GetStringForDisplay(); SubTitle.text = AppManager.I.ParentEdition.ShowHelpText ? myLetterInfo.data.Id : ""; // + (myLetterInfo.data.Number > 0 ? " (" + myLetterInfo.data.Number + ")" : ""); // + " " + myLetterInfo.data.Kind.ToString(); highlight(_selected); }