public void Init(BookPanel _manager, WordInfo _info) { info = _info; manager = _manager; if (info.unlocked || AppManager.I.GameSettings.CheatSuperDogMode) { LockIcon.enabled = false; } else { LockIcon.enabled = true; } Title.text = info.data.Arabic; SubTitle.text = info.data.Id; if (info.data.Drawing != "") { Drawing.text = AppManager.I.Teacher.wordHelper.GetWordDrawing(info.data); if (info.data.Category == Db.WordDataCategory.Color) { Drawing.SetColor(GenericUtilities.GetColorFromString(info.data.Value)); } //GetComponent<Image>().color = Color.green; } else { Drawing.text = ""; } }
public void Init(BookPanel _manager, GenericCategoryData _data) { data = _data; manager = _manager; Title.text = data.Title; SubTitle.text = data.Id; }
public void Init(BookPanel _manager, LetterInfo _info) { info = _info; manager = _manager; if (info.unlocked || AppManager.I.GameSettings.CheatSuperDogMode) { LockIcon.enabled = false; } else { LockIcon.enabled = true; } Title.text = info.data.GetChar(); SubTitle.text = info.data.Id; }
public void Init(BookPanel _manager, LearningBlockInfo _info) { info = _info; manager = _manager; Title.text = info.data.Title_Ar; SubTitle.text = info.data.Title_En + " " + info.data.Id; if (info.unlocked || AppManager.I.GameSettings.CheatSuperDogMode) { LockIcon.enabled = false; } else { LockIcon.enabled = true; } var score = info.score; // @note: we should already save the score when a block is finished, and not compute it when showing it //var score = TeacherAI.I.GetLearningBlockScore(info.data); Info.text = "Score: " + score; }