public class PEAvertInteractionDialogPluginImpl extends java.lang.Object implements InteractionDialogPlugin
| Modifier and Type | Field and Description |
|---|---|
protected com.fs.starfarer.api.impl.campaign.intel.punitive.PEAvertInteractionDialogPluginImpl.OptionId |
beingConfirmed |
static int |
BRIBE_MAX |
static int |
BRIBE_MULT |
protected InteractionDialogAPI |
dialog |
protected PunitiveExpeditionIntel |
intel |
static RepLevel |
MIN_REP |
protected OptionPanelAPI |
options |
protected CampaignFleetAPI |
playerFleet |
static float |
REP_COST |
protected TextPanelAPI |
textPanel |
protected IntelUIAPI |
ui |
protected VisualPanelAPI |
visual |
| Constructor and Description |
|---|
PEAvertInteractionDialogPluginImpl(PunitiveExpeditionIntel intel,
IntelUIAPI ui) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addChoiceOptions() |
protected void |
addConfirmOptions() |
protected void |
addDismissOption() |
void |
advance(float amount)
Get's called every frame.
|
void |
backFromEngagement(EngagementResultAPI result)
Get's called after a fleet battle connected to this dialog ends.
|
protected int |
computeBribeAmount() |
java.lang.Object |
getContext()
Usually, simply returning null is fine
|
java.util.Map<java.lang.String,MemoryAPI> |
getMemoryMap()
Usually, simply returning null or an empty map is fine.
|
void |
init(InteractionDialogAPI dialog)
Initialize your GUI in here, by populating options, texts and images *
|
protected void |
leave() |
void |
optionMousedOver(java.lang.String optionText,
java.lang.Object optionData)
Get's called when the player hovers over an option.
|
void |
optionSelected(java.lang.String text,
java.lang.Object optionData)
This gets called when the player clicks on an option.
|
void |
printInit() |
protected void |
printOptionDesc(com.fs.starfarer.api.impl.campaign.intel.punitive.PEAvertInteractionDialogPluginImpl.OptionId option) |
public static int BRIBE_MULT
public static int BRIBE_MAX
public static float REP_COST
protected InteractionDialogAPI dialog
protected TextPanelAPI textPanel
protected OptionPanelAPI options
protected VisualPanelAPI visual
protected CampaignFleetAPI playerFleet
protected PunitiveExpeditionIntel intel
protected IntelUIAPI ui
protected com.fs.starfarer.api.impl.campaign.intel.punitive.PEAvertInteractionDialogPluginImpl.OptionId beingConfirmed
public PEAvertInteractionDialogPluginImpl(PunitiveExpeditionIntel intel, IntelUIAPI ui)
public void init(InteractionDialogAPI dialog)
InteractionDialogPlugininit in interface InteractionDialogPlugindialog - entry point for interacting with the dialog. You should probably store this in a member variablepublic java.util.Map<java.lang.String,MemoryAPI> getMemoryMap()
InteractionDialogPlugingetMemoryMap in interface InteractionDialogPluginpublic void backFromEngagement(EngagementResultAPI result)
InteractionDialogPluginbackFromEngagement in interface InteractionDialogPluginprotected int computeBribeAmount()
protected void printOptionDesc(com.fs.starfarer.api.impl.campaign.intel.punitive.PEAvertInteractionDialogPluginImpl.OptionId option)
protected void addChoiceOptions()
protected void addDismissOption()
protected void addConfirmOptions()
public void printInit()
public void optionSelected(java.lang.String text, java.lang.Object optionData)
InteractionDialogPluginoptionSelected in interface InteractionDialogPlugintext - the name of the option, i.e. the first argument passed to addOptionoptionData - the data/identifier of the selected option. Cast this to the correct type. Don't forget to
null-check the result of the cast.protected void leave()
public void optionMousedOver(java.lang.String optionText, java.lang.Object optionData)
InteractionDialogPluginoptionMousedOver in interface InteractionDialogPluginpublic void advance(float amount)
InteractionDialogPluginadvance in interface InteractionDialogPluginpublic java.lang.Object getContext()
InteractionDialogPlugingetContext in interface InteractionDialogPlugin