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 {
68 if (optionData ==
null)
return;
70 OptionId option = (OptionId) optionData;
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.");
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.",
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.",
111 textPanel.
addPara(
"You could also press %s to open the map and locate Ancyra manually.",
115 textPanel.
addParagraph(
"Once you get to Ancyra, open the comm directory to contact " + personName +
".");
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)
static Color getHighlightColor()
String getControlStringForEnumName(String name)
TextPanelAPI getTextPanel()
VisualPanelAPI getVisualPanel()
void addOptionSelectedText(Object optionId)
OptionPanelAPI getOptionPanel()
void addOption(String text, Object data)
CampaignFleetAPI getPlayerFleet()
void setPaused(boolean paused)
LabelAPI addPara(String text)
LabelAPI addParagraph(String text)
void showFleetInfo(String titleOne, CampaignFleetAPI one, String titleTwo, CampaignFleetAPI two)