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.rules.MemoryAPI;
13import com.fs.starfarer.api.combat.EngagementResultAPI;
14import com.fs.starfarer.api.util.Misc;
18 public static enum OptionId {
27 protected InteractionDialogAPI
dialog;
59 if (optionData ==
null)
return;
61 OptionId option = (OptionId) optionData;
65 dialog.addOptionSelectedText(option);
73 textPanel.addParagraph(
"You've gained a level!");
74 textPanel.addPara(
"You gain %s skill point with each level-up, " +
75 "and an additional point at the start of the campaign.",
76 Misc.getHighlightColor(),
"1");
78 textPanel.addPara(
"You also gain " + Misc.STORY +
" points as you gain experience; these can be used to " +
79 "take exceptional actions - to \"make your own story\", in a way. The tutorial will introduce " +
80 "using these a bit later.",
81 Misc.getStoryOptionColor(), Misc.STORY +
" points");
83 options.addOption(
"Continue", OptionId.CONT1,
null);
86 textPanel.addParagraph(
"Skill points are used to learn skills. Skills are arranged in four aptitudes - " +
87 "Combat, Leadership, Technology, and Industry. Each aptitude has a number of tiers, you advance to the higher tiers by picking skills from the lower ones.");
89 textPanel.addPara(
"Skills that affect your piloted ship - all Combat skills, and a few skills in other " +
90 "aptitudes - can be made \"elite\" at the cost of a " + Misc.STORY +
" point.",
91 Misc.getStoryOptionColor(), Misc.STORY +
" point");
94 textPanel.addPara(
"The maximum level you can reach is %s.",
95 Misc.getHighlightColor(), max);
97 options.addOption(
"Continue", OptionId.CONT3,
null);
105 textPanel.addPara(
"Press %s to open the character tab and consider your options. You don't " +
106 "have to actually spend the points now if you don't want to.",
107 Misc.getHighlightColor(), control);
110 options.addOption(
"Finish", OptionId.CONT4,
null);
static SettingsAPI getSettings()
static SectorAPI getSector()
Map< String, MemoryAPI > getMemoryMap()
CampaignFleetAPI playerFleet
void optionMousedOver(String optionText, Object optionData)
void backFromEngagement(EngagementResultAPI result)
void optionSelected(String text, Object optionData)
void advance(float amount)
void init(InteractionDialogAPI dialog)
InteractionDialogAPI dialog
String getControlStringForEnumName(String name)
LevelupPlugin getLevelupPlugin()