示例#1
0
    private void fillQuestWithData(Quest quest, QuestItemController view)
    {
        var d = DetailedView.GetComponent <DetailedController>();

        view.showDetailed = (q) => d.AttachQuestAndShow(q);
        view.bind(quest);
    }
示例#2
0
        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);
        }
示例#3
0
    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;
    }
示例#4
0
 public ItemValueChangedEvent(QuestItemController gridController)
 {
     m_GridController = gridController;
 }