Package com.fs.starfarer.api.campaign
Interface CampaignUIAPI
public interface CampaignUIAPI
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
static interface
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMessage
(IntelInfoPlugin intel) void
addMessage
(IntelInfoPlugin intel, CommMessageAPI.MessageClickAction action) void
addMessage
(IntelInfoPlugin intel, CommMessageAPI.MessageClickAction action, Object custom) void
addMessage
(String text) void
addMessage
(String text, Color color) void
void
autosave()
If the game is currently showing a dialog of any ort: does not do anything.void
void
void
cmdCodex()
void
void
cmdLoad()
boolean
cmdSave()
boolean
void
void
float
getLastLegDistance
(SectorEntityToken courseTarget) int
float
float
getNameForCourseTarget
(SectorEntityToken entity, boolean isEndpoint) getNextStepForCourse
(SectorEntityToken courseTarget) Calls Global.getSector().getUIData().getCourseTarget().float
boolean
boolean
boolean
isHideUI()
boolean
boolean
boolean
boolean
boolean
void
layInCourseForNextStep
(SectorEntityToken courseTarget) void
void
void
restartEncounterMusic
(SectorEntityToken interactionTarget) void
void
setFollowingDirectCommand
(boolean followingDirectCommand) void
setHideUI
(boolean hideUI) void
setMaxIntelMapIcons
(int maxIntelMapIcons) void
setMaxZoomFactor
(float max) void
setMinZoomFactor
(float min) void
setSuppressFuelRangeRenderingOneFrame
(boolean suppressFuelRangeRenderingOneFrame) void
setZoomFactor
(float zoomFactor) boolean
showConfirmDialog
(String message, String ok, String cancel, float width, float height, Script onOk, Script onCancel) boolean
void
showCoreUITab
(CoreUITabId tab) void
showCoreUITab
(CoreUITabId tab, Object custom) void
boolean
showInteractionDialog
(InteractionDialogPlugin plugin, SectorEntityToken interactionTarget) Returns true if dialog was actually shown, false otherwise (if, for example, UI is already showing another dialog).boolean
showInteractionDialog
(SectorEntityToken interactionTarget) Returns true if dialog was actually shown, false otherwise (if, for example, UI is already showing another dialog).boolean
showInteractionDialogFromCargo
(InteractionDialogPlugin plugin, SectorEntityToken interactionTarget, CampaignUIAPI.DismissDialogDelegate delegate) void
showMessageDialog
(String message) boolean
void
startBattle
(BattleCreationContext context) void
suppressMusic
(float maxLevel)
-
Method Details
-
getMessageDisplay
MessageDisplayAPI getMessageDisplay() -
addMessage
-
addMessage
-
addMessage
-
clearMessages
void clearMessages() -
isShowingDialog
boolean isShowingDialog() -
startBattle
-
showInteractionDialog
Returns true if dialog was actually shown, false otherwise (if, for example, UI is already showing another dialog).- Parameters:
plugin
-interactionTarget
- can be null.
-
showInteractionDialog
Returns true if dialog was actually shown, false otherwise (if, for example, UI is already showing another dialog). Picks whatever dialog is appropriate based on the various plugins that provide dialog implementations.- Parameters:
interactionTarget
-
-
showCoreUITab
-
showCoreUITab
- Parameters:
tab
-custom
- IntelInfoPlugin to select in intel tab, or FleetMemberAPI to select in refit tab
-
getCurrentInteractionDialog
InteractionDialogAPI getCurrentInteractionDialog() -
setDisallowPlayerInteractionsForOneFrame
void setDisallowPlayerInteractionsForOneFrame() -
getZoomFactor
float getZoomFactor() -
suppressMusic
void suppressMusic(float maxLevel) -
isShowingMenu
boolean isShowingMenu() -
resetViewOffset
void resetViewOffset() -
getAvailableHullModsCopy
List<HullModSpecAPI> getAvailableHullModsCopy() -
isHullModAvailable
-
getAvailableHullModIds
-
getHintPanel
HintPanelAPI getHintPanel() -
quickLoad
void quickLoad() -
getCurrentCoreTab
CoreUITabId getCurrentCoreTab() -
cmdExitWithoutSaving
void cmdExitWithoutSaving() -
cmdSaveAndExit
boolean cmdSaveAndExit() -
cmdSettings
void cmdSettings() -
cmdSaveCopy
void cmdSaveCopy() -
cmdSave
boolean cmdSave() -
cmdLoad
void cmdLoad() -
cmdCodex
void cmdCodex() -
showConfirmDialog
-
showConfirmDialog
-
addMessage
-
addMessage
-
addMessage
-
setFollowingDirectCommand
void setFollowingDirectCommand(boolean followingDirectCommand) -
isFollowingDirectCommand
boolean isFollowingDirectCommand() -
clearLaidInCourse
void clearLaidInCourse() -
showPlayerFactionConfigDialog
boolean showPlayerFactionConfigDialog()- Returns:
- true if was shown (may not be if showing another dialog etc)
-
showHelpPopupIfPossible
-
getUltimateCourseTarget
SectorEntityToken getUltimateCourseTarget()Calls Global.getSector().getUIData().getCourseTarget(). The actual ultimate autopilot destination, not its next step.- Returns:
-
getCurrentCourseTarget
SectorEntityToken getCurrentCourseTarget() -
getNextStepForCourse
-
layInCourseForNextStep
-
getNameForCourseTarget
-
getLastLegDistance
-
isFastForward
boolean isFastForward() -
isPlayerFleetFollowingMouse
boolean isPlayerFleetFollowingMouse() -
showMessageDialog
-
getMinZoomFactor
float getMinZoomFactor() -
getMaxZoomFactor
float getMaxZoomFactor() -
setMinZoomFactor
void setMinZoomFactor(float min) -
setMaxZoomFactor
void setMaxZoomFactor(float max) -
isSuppressFuelRangeRenderingOneFrame
boolean isSuppressFuelRangeRenderingOneFrame() -
setSuppressFuelRangeRenderingOneFrame
void setSuppressFuelRangeRenderingOneFrame(boolean suppressFuelRangeRenderingOneFrame) -
getMaxIntelMapIcons
int getMaxIntelMapIcons() -
setMaxIntelMapIcons
void setMaxIntelMapIcons(int maxIntelMapIcons) -
isHideUI
boolean isHideUI() -
setHideUI
void setHideUI(boolean hideUI) -
setZoomFactor
void setZoomFactor(float zoomFactor) -
autosave
void autosave()If the game is currently showing a dialog of any ort: does not do anything. -
showInteractionDialogFromCargo
boolean showInteractionDialogFromCargo(InteractionDialogPlugin plugin, SectorEntityToken interactionTarget, CampaignUIAPI.DismissDialogDelegate delegate) -
restartEncounterMusic
-