Add some UI content to the quest's offerContentList

Announcements, support questions, and discussion for Quest Machine.
Post Reply
0ktun
Posts: 7
Joined: Mon Oct 12, 2020 8:08 am

Add some UI content to the quest's offerContentList

Post by 0ktun »

Image


hi i m using the template "RewardSystemTemplate" and how can i add this UI ?
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Add some UI content to the quest's offerContentList

Post by Tony Li »

Hi,

I suggest looking at the existing reward systems. For example, the XPRewardSystem (in Plugins / Pixel Crushers / Quest Machine / Scripts / Quest Generator / MonoBehaviours / Reward Systems) has this code:

Code: Select all

            var bodyText = BodyTextQuestContent.CreateInstance<BodyTextQuestContent>();
            bodyText.bodyText = new StringField(xp + " XP");
            quest.offerContentList.Add(bodyText);
Post Reply