Esempio n. 1
0
        public virtual void Repaint(Quest quest)
        {
            currentQuest = quest;
            Assert.IsNotNull(currentQuest, "Given quest for repaint is null! This is not allowed. - If you want to hide it just disable the gameObject.");

            QuestUIUtility.RepaintQuestUIRepaintableChildren(transform, currentQuest);

            if (questName != null)
            {
                questName.text = currentQuest.name.message;
            }

            if (questDescription != null)
            {
                questDescription.text = currentQuest.description.message;
            }

            if (questStatus != null)
            {
                questStatus.text = currentQuest.status.ToString();
            }

            if (toggle != null)
            {
                toggle.isOn = PlayerPrefs.HasKey(QuestUtility.GetQuestCheckedSaveKey(quest));
            }
        }
Esempio n. 2
0
        public virtual void Repaint(Quest quest)
        {
            UpdateTaskProgressRowsUI(quest);
            if (rewardsContainer != null)
            {
                UpdateRewardsRowsUI(quest);
            }

            if (title != null)
            {
                title.text = quest.name.message;
            }

            if (description != null)
            {
                description.text = quest.description.message;
            }

            QuestUIUtility.RepaintQuestUIRepaintableChildren(transform, quest);
        }
Esempio n. 3
0
 protected void RepaintStatusBlocks(Achievement achievement)
 {
     QuestUIUtility.RepaintAchievementUIRepaintableChildren(transform, achievement);
 }
 protected virtual void RepaintStatusBlocks()
 {
     QuestUIUtility.RepaintQuestUIRepaintableChildren(transform, selectedQuest);
 }