public void ShowResponse(EventText responseText) { game.stateManager.stationState.SubStateManager.MissionMenuState.ActiveMission = mission; mission.ResponseBuffer.Add(responseText.Text); responseText.Displayed = true; }
public EventTextCapsule(EventText completedText, EventText failedText, EventTextCanvas eventTextCanvas, List <PortraitID> portraits, List <int> portraitTriggers) : this(completedText, failedText, eventTextCanvas) { this.portraits = portraits; this.portraitTriggers = portraitTriggers; }
private void Setup(ResponseTextCapsule responseTextCapsule) { responseEventText = responseTextCapsule.ResponseEvents.Key; responseEvents = responseTextCapsule.ResponseEvents; actions = responseTextCapsule.Actions; canvas = responseTextCapsule.EventTextCanvas; }
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; }
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; }
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; }
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; } }
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>(); }
public bool HasTextBeenDisplayed(EventText eventText) { return(eventText.Displayed); }
public EventTextCapsule(EventText completedText, EventText failedText, EventTextCanvas eventTextCanvas, PortraitID portrait) : this(completedText, failedText, eventTextCanvas) { portraits.Add(portrait); }