private void fillQuestWithData(Quest quest, QuestItemController view) { var d = DetailedView.GetComponent <DetailedController>(); view.showDetailed = (q) => d.AttachQuestAndShow(q); view.bind(quest); }
public EditForm_Quest() { InitializeComponent(); wbQuestDetail.ScriptErrorsSuppressed = true; m_ObjectiveGridController = new QuestObjectiveController(gridQuestObjective, pgQuestElement); m_RewardGridController = new QuestRewardController(gridQuestReward, pgQuestElement, tbRewardsDialog, tbRewardsRewarder); m_ItemGridController = new QuestItemController(gridQuestItem, pgQuestElement); }
public void Add(Quest quest) { PlayerQuests.Add(quest); //Debug.Log(PlayerQuests[0].Title); GameObject newQuest = Instantiate(questItemPrefab) as GameObject; QuestItemController controller = newQuest.GetComponent <QuestItemController>(); controllers[quest.QuestType] = newQuest.GetComponent <QuestItemController>();; controller.Title.text = quest.Title; controller.Description.text = quest.Description; controller.ProgressText.text = quest.ProgressText; newQuest.transform.parent = panel.transform; newQuest.transform.localScale = Vector3.one; }
public ItemValueChangedEvent(QuestItemController gridController) { m_GridController = gridController; }