1package com.fs.starfarer.api.impl.campaign.tutorial;
5import com.fs.starfarer.api.Global;
6import com.fs.starfarer.api.campaign.CampaignFleetAPI;
7import com.fs.starfarer.api.campaign.InteractionDialogAPI;
8import com.fs.starfarer.api.campaign.InteractionDialogPlugin;
9import com.fs.starfarer.api.campaign.OptionPanelAPI;
10import com.fs.starfarer.api.campaign.TextPanelAPI;
11import com.fs.starfarer.api.campaign.VisualPanelAPI;
12import com.fs.starfarer.api.campaign.econ.MarketAPI;
13import com.fs.starfarer.api.campaign.rules.MemoryAPI;
14import com.fs.starfarer.api.characters.PersonAPI;
15import com.fs.starfarer.api.combat.EngagementResultAPI;
16import com.fs.starfarer.api.util.Misc;
20 public static enum OptionId {
28 protected InteractionDialogAPI
dialog;
68 if (optionData ==
null)
return;
70 OptionId option = (OptionId) optionData;
74 dialog.addOptionSelectedText(option);
78 String name =
ancyra.getName();
80 String personName =
contact.getPost().toLowerCase() +
" " +
contact.getName().getLast();
84 textPanel.addParagraph(
"Shortly after dispatching the pirates, you receive a tight-beam communication from the " +
85 "system's main inhabited world, " + name +
".");
87 textPanel.addParagraph(
"The message is brief and asks you to travel there and contact " + personName +
" as soon as possible.");
90 options.addOption(
"Continue", OptionId.CONT1,
null);
93 textPanel.addParagraph(
"Let's lay in a course for " + name +
". You don't need to do this to travel, " +
94 "but it helps keep track of where you're going and how long it'll take to get there.");
98 textPanel.addPara(
"After dismissing this dialog, press %s to open the intel screen to view the " +
99 "details of the message you've just received.",
100 Misc.getHighlightColor(), intel);
102 textPanel.addPara(
"Select the message and click on the %s button to open the map centered directly on Ancyra. " +
103 "Then, left-click-and-hold on the planet, and select %s from the menu that pops up. Alternatively, you can just right-click on Ancyra.",
104 Misc.getHighlightColor(),
"\"Show on map\"",
"\"Lay in Course\"");
107 options.addOption(
"Continue", OptionId.CONT2,
null);
111 textPanel.addPara(
"You could also press %s to open the map and locate Ancyra manually.",
112 Misc.getHighlightColor(), map);
115 textPanel.addParagraph(
"Once you get to Ancyra, open the comm directory to contact " + personName +
".");
118 options.addOption(
"Finish", OptionId.CONT3,
null);
static SettingsAPI getSettings()
static SectorAPI getSector()
TutorialLayInCourseDialogPluginImpl(MarketAPI ancyra, PersonAPI contact)
InteractionDialogAPI dialog
void init(InteractionDialogAPI dialog)
void optionSelected(String text, Object optionData)
CampaignFleetAPI playerFleet
Map< String, MemoryAPI > getMemoryMap()
void advance(float amount)
void optionMousedOver(String optionText, Object optionData)
void backFromEngagement(EngagementResultAPI result)
String getControlStringForEnumName(String name)