コード例 #1
0
 public EventTextCapsule(EventText completedText, EventText failedText,
                         EventTextCanvas eventTextCanvas, List <PortraitID> portraits, List <int> portraitTriggers) :
     this(completedText, failedText, eventTextCanvas)
 {
     this.portraits        = portraits;
     this.portraitTriggers = portraitTriggers;
 }
コード例 #2
0
 private void Setup(ResponseTextCapsule responseTextCapsule)
 {
     responseEventText = responseTextCapsule.ResponseEvents.Key;
     responseEvents    = responseTextCapsule.ResponseEvents;
     actions           = responseTextCapsule.Actions;
     canvas            = responseTextCapsule.EventTextCanvas;
 }
コード例 #3
0
        public void ShowResponse(EventText responseText)
        {
            game.stateManager.stationState.SubStateManager.MissionMenuState.ActiveMission = mission;
            mission.ResponseBuffer.Add(responseText.Text);

            responseText.Displayed = true;
        }
コード例 #4
0
 public AskToProgressObjective(Game1 game, Mission mission, String description, EventText question,
                               EventText yesEvent, EventText noEvent, string locationName) :
     base(game, mission, description)
 {
     this.question     = question;
     this.yesEvent     = yesEvent;
     this.noEvent      = noEvent;
     this.locationName = locationName;
 }
コード例 #5
0
        public void ShowEvent(EventText eventText)
        {
            String[] substrings = eventText.Text.Split('#');

            for (int i = 0; i < substrings.Length; i++)
            {
                MissionManager.MissionEventBuffer.Add(substrings[i]);
            }

            eventText.Displayed = true;
        }
コード例 #6
0
        public ResponseTextCapsule(EventText eventText, List <EventText> responses, List <System.Action> actions, EventTextCanvas canvas)
        {
            responseEvents = new KeyValuePair <EventText, List <EventText> >(eventText, responses);
            this.actions   = new SortedDictionary <int, System.Action>();

            for (int i = 0; i < actions.Count; i++)
            {
                this.actions.Add(i, actions[i]);
            }

            eventTextCanvas = canvas;
        }
コード例 #7
0
        public EventTextCapsule(EventText completedText, EventText failedText, EventTextCanvas eventTextCanvas)
        {
            this.completedText   = completedText;
            this.FailedText      = failedText;
            this.eventTextCanvas = eventTextCanvas;

            if (completedText == null)
            {
                this.completedText = new EventText("");
            }
            if (failedText == null)
            {
                this.failedText = new EventText("");
            }
            portraits        = new List <PortraitID>();
            portraitTriggers = new List <int>();
        }
コード例 #8
0
        public void ShowEvent(EventText eventText, bool clearResponse)
        {
            String[] substrings = eventText.Text.Split('#');

            for (int i = substrings.Length - 1; i >= 0; i--)
            {
                MissionManager.MissionEventBuffer.Insert(0, substrings[i]);
            }

            eventText.Displayed = true;

            if (clearResponse)
            {
                ClearResponseText();
                mission.MissionResponse = 0;
            }
        }
コード例 #9
0
 public EventTextCapsule(EventText completedText, EventText failedText,
                         EventTextCanvas eventTextCanvas, PortraitID portrait) :
     this(completedText, failedText, eventTextCanvas)
 {
     portraits.Add(portrait);
 }
コード例 #10
0
 public bool HasTextBeenDisplayed(EventText eventText)
 {
     return(eventText.Displayed);
 }