Starsector API
Loading...
Searching...
No Matches
InteractionDialogAPI.java
Go to the documentation of this file.
1package com.fs.starfarer.api.campaign;
2
3import java.awt.Color;
4import java.util.List;
5
6import com.fs.starfarer.api.campaign.CampaignUIAPI.CoreUITradeMode;
7import com.fs.starfarer.api.campaign.econ.Industry;
8import com.fs.starfarer.api.campaign.econ.MarketAPI;
9import com.fs.starfarer.api.combat.BattleCreationContext;
10import com.fs.starfarer.api.fleet.FleetMemberAPI;
11import com.fs.starfarer.api.impl.campaign.graid.GroundRaidObjectivePlugin;
12
13
14public interface InteractionDialogAPI {
15
16 void setTextWidth(float width);
17 void setTextHeight(float height);
18 void setXOffset(float xOffset);
19 void setYOffset(float yOffset);
20 void setPromptText(String promptText);
21
24
25 float getTextWidth();
27 float getXOffset();
28 float getYOffset();
29 String getPromptText();
30
31 void flickerStatic(float in, float out);
32
36
38
40
41
50 void setOptionOnEscape(String text, Object optionId);
51
52 void startBattle(BattleCreationContext context);
53 void dismiss();
55
56 void showFleetMemberPickerDialog(String title, String okText, String cancelText,
57 int rows, int cols, float iconSize, boolean canPickNotReady, boolean canPickMultiple,
58 List<FleetMemberAPI> pool, FleetMemberPickerListener listener);
59
60 void showCustomDialog(float customPanelWidth, float customPanelHeight, CustomDialogDelegate delegate);
61
62
63
64// /**
65// * Temporary hack, to be used until proper dialog mechanics are in.
66// * Doesn't belong in this interface conceptually (hence "hack").
67// * @param context
68// * @param playerFleet
69// * @param otherFleet
70// * @return
71// */
72// String getNPCText(FleetEncounterContextPlugin context, CampaignFleetAPI playerFleet, CampaignFleetAPI otherFleet);
73
75
77 void setOptionOnConfirm(String text, Object optionId);
78 void setOpacity(float opacity);
79 void setBackgroundDimAmount(float backgroundDimAmount);
80
82 void setInteractionTarget(SectorEntityToken interactionTarget);
83 void showCargoPickerDialog(String title, String okText, String cancelText,
84 boolean small, float textPanelWidth, CargoAPI cargo, CargoPickerListener listener);
85 void showIndustryPicker(String title, String okText, MarketAPI market,
86 List<Industry> industries, IndustryPickerListener listener);
87
88 void makeOptionOpenCore(String optionId, CoreUITabId tabId, CoreUITradeMode mode);
89 void makeOptionOpenCore(String optionId, CoreUITabId tabId, CoreUITradeMode mode, boolean onlyShowTargetTabShortcut);
90
91 void setOptionColor(Object optionId, Color color);
92 void makeStoryOption(Object optionId, int storyPoints, float bonusXPFraction, String soundId);
93 void addOptionSelectedText(Object optionId);
94 void addOptionSelectedText(Object optionId, boolean allowPrintingStoryOption);
95
96 void showFleetMemberRecoveryDialog(String title, List<FleetMemberAPI> pool, FleetMemberPickerListener listener);
98 List<FleetMemberAPI> pool, List<FleetMemberAPI> storyPool,
100 void showGroundRaidTargetPicker(String title, String okText, MarketAPI market, List<GroundRaidObjectivePlugin> data, GroundRaidTargetPickerDelegate listener);
103 void showCampaignEntityPicker(String title, String selectedText, String okText, FactionAPI factionForUIColors,
104 List<SectorEntityToken> entities, CampaignEntityPickerListener listener);
106 void showCustomVisualDialog(float customPanelWidth, float customPanelHeight, CustomVisualDialogDelegate delegate);
107 void showCargoPickerDialog(String title, String okText, String cancelText, boolean small, float textPanelWidth,
108 float width, float height, CargoAPI cargo, CargoPickerListener listener);
109
110}
111
112
113
void makeStoryOption(Object optionId, int storyPoints, float bonusXPFraction, String soundId)
void setInteractionTarget(SectorEntityToken interactionTarget)
void showCustomDialog(float customPanelWidth, float customPanelHeight, CustomDialogDelegate delegate)
void setBackgroundDimAmount(float backgroundDimAmount)
void setPlugin(InteractionDialogPlugin plugin)
void setOptionColor(Object optionId, Color color)
void showCustomProductionPicker(CustomProductionPickerDelegate delegate)
void addOptionSelectedText(Object optionId, boolean allowPrintingStoryOption)
void startBattle(BattleCreationContext context)
void makeOptionOpenCore(String optionId, CoreUITabId tabId, CoreUITradeMode mode)
void showIndustryPicker(String title, String okText, MarketAPI market, List< Industry > industries, IndustryPickerListener listener)
void showCustomVisualDialog(float customPanelWidth, float customPanelHeight, CustomVisualDialogDelegate delegate)
void showCommDirectoryDialog(CommDirectoryAPI dir)
void setOptionOnConfirm(String text, Object optionId)
void showGroundRaidTargetPicker(String title, String okText, MarketAPI market, List< GroundRaidObjectivePlugin > data, GroundRaidTargetPickerDelegate listener)
void showCargoPickerDialog(String title, String okText, String cancelText, boolean small, float textPanelWidth, CargoAPI cargo, CargoPickerListener listener)
void showFleetMemberRecoveryDialog(String title, List< FleetMemberAPI > pool, FleetMemberPickerListener listener)
void makeOptionOpenCore(String optionId, CoreUITabId tabId, CoreUITradeMode mode, boolean onlyShowTargetTabShortcut)
void showFleetMemberRecoveryDialog(String title, List< FleetMemberAPI > pool, List< FleetMemberAPI > storyPool, FleetMemberPickerListener listener)
void showCargoPickerDialog(String title, String okText, String cancelText, boolean small, float textPanelWidth, float width, float height, CargoAPI cargo, CargoPickerListener listener)
void showFleetMemberPickerDialog(String title, String okText, String cancelText, int rows, int cols, float iconSize, boolean canPickNotReady, boolean canPickMultiple, List< FleetMemberAPI > pool, FleetMemberPickerListener listener)
void setOptionOnEscape(String text, Object optionId)
void showCampaignEntityPicker(String title, String selectedText, String okText, FactionAPI factionForUIColors, List< SectorEntityToken > entities, CampaignEntityPickerListener listener)