|
Starsector API
|
Classes | |
| interface | ActionListenerDelegate |
| interface | FleetMemberValueGetter |
| class | PlanetInfoParams |
| interface | StatModValueGetter |
| interface | TooltipCreator |
| enum | TooltipLocation |
Public Member Functions | |
| LabelAPI | addTitle (String text) |
| void | setTitleFont (String titleFont) |
| void | setTitleSmallOrbitron () |
| void | setTitleFontColor (Color titleFontColor) |
| void | setParaFont (String paraFont) |
| void | setParaFontColor (Color paraFontColor) |
| void | setParaSmallInsignia () |
| LabelAPI | addPara (String format, float pad, Color hl, String... highlights) |
| LabelAPI | addPara (String str, float pad) |
| LabelAPI | addPara (String str, Color color, float pad) |
| LabelAPI | addSectionHeading (String str, Alignment align, float pad) |
| LabelAPI | addSectionHeading (String str, Color textColor, Color bgColor, Alignment align, float pad) |
| void | beginGrid (float itemWidth, int cols) |
| void | beginGrid (float itemWidth, int cols, Color labelColor) |
| Object | addToGrid (int x, int y, String label, String value) |
| Object | addToGrid (int x, int y, String label, String value, Color valueColor) |
| void | setGridLabelColor (Color nameColor) |
| void | addGrid (float pad) |
| void | beginGridFlipped (float itemWidth, int cols, float valueWidth, float valuePad) |
| void | beginGridFlipped (float itemWidth, int cols, Color labelColor, float valueWidth, float valuePad) |
| void | addStatModGrid (float width, float valueWidth, float valuePad, float pad, MutableStat stat) |
| void | addStatModGrid (float width, float valueWidth, float valuePad, float pad, StatBonus stat) |
| void | addStatGridForShips (float width, float valueWidth, float valuePad, float pad, CampaignFleetAPI fleet, int maxNum, boolean ascending, FleetMemberValueGetter getter) |
| void | setGridFontDefault () |
| void | setGridFont (String gridFont) |
| void | addStatModGrid (float width, float valueWidth, float valuePad, float pad, MutableStat stat, StatModValueGetter getter) |
| void | addStatModGrid (float width, float valueWidth, float valuePad, float pad, StatBonus stat, StatModValueGetter getter) |
| void | setParaSmallOrbitron () |
| LabelAPI | addTitle (String text, Color color) |
| void | setParaFontVictor14 () |
| void | addImage (String spriteName, float pad) |
| void | addImage (String spriteName, float width, float pad) |
| void | setParaFontDefault () |
| void | setParaOrbitronLarge () |
| void | setParaOrbitronVeryLarge () |
| void | setParaInsigniaLarge () |
| void | setParaInsigniaVeryLarge () |
| void | setTitleOrbitronLarge () |
| void | setTitleOrbitronVeryLarge () |
| void | beginIconGroup () |
| void | setIconSpacingMedium () |
| void | setIconSpacingWide () |
| void | addIcons (CommodityOnMarketAPI com, int num, IconRenderMode mode) |
| void | addIcons (CommoditySpecAPI com, int num, IconRenderMode mode) |
| void | addIconGroup (float pad) |
| void | addIconGroup (float rowHeight, float pad) |
| void | cancelGrid () |
| void | addIconGroupAndCenter (float pad) |
| void | addStatModGrid (float width, float valueWidth, float valuePad, float pad, StatBonus stat, boolean showNonMods, StatModValueGetter getter) |
| void | showCargo (CargoAPI cargo, int max, boolean sort, float pad) |
| void | showShips (List< FleetMemberAPI > ships, int max, boolean sort, float pad) |
| UIPanelAPI | beginTable (FactionAPI faction, float itemHeight, Object ... columns) |
| UIPanelAPI | beginTable2 (FactionAPI faction, float itemHeight, boolean withBorder, boolean withHeader, Object ... columns) |
| UIPanelAPI | beginTable (Color base, Color dark, Color bright, float itemHeight, Object ... columns) |
| UIPanelAPI | beginTable (Color base, Color dark, Color bright, float itemHeight, boolean withBorder, boolean withHeader, Object ... columns) |
| Object | addRow (Object ... data) |
| Object | addRowWithGlow (Object ... data) |
| void | addTooltipToAddedRow (TooltipCreator tc, TooltipLocation loc) |
| void | addTooltipToAddedRow (TooltipCreator tc, TooltipLocation loc, boolean recreateEveryFrame) |
| void | addTable (String emptyText, int andMore, float pad) |
| void | setGridValueColor (Color valueColor) |
| TooltipMakerAPI | beginImageWithText (String spriteName, float imageHeight) |
| UIPanelAPI | addImageWithText (float pad) |
| void | addIconGroup (float rowHeight, int rows, float pad) |
| LabelAPI | addPara (String format, float pad, Color color, Color hl, String ... highlights) |
| void | setButtonFontDefault () |
| void | setButtonFontVictor10 () |
| void | setButtonFontVictor14 () |
| ButtonAPI | addButton (String text, Object data, float width, float height, float pad) |
| ButtonAPI | addButton (String text, Object data, Color base, Color bg, float width, float height, float pad) |
| ButtonAPI | addButton (String text, Object data, Color base, Color bg, Alignment align, CutStyle style, float width, float height, float pad) |
| void | setBulletedListMode (String itemPrefix) |
| void | setBulletWidth (Float bulletWidth) |
| UIComponentAPI | addCustom (UIComponentAPI comp, float pad) |
| String | getBulletedListPrefix () |
| void | addImage (String spriteName, float width, float height, float pad) |
| float | getTextWidthOverride () |
| void | setTextWidthOverride (float textWidthOverride) |
| void | addImages (float width, float height, float pad, float imagePad, String ... spriteNames) |
| void | resetGridRowHeight () |
| void | setLowGridRowHeight () |
| void | setGridRowHeight (float gridSize) |
| String | shortenString (String in, float maxWidth) |
| void | addStatModGrid (float width, float valueWidth, float valuePad, float pad, MutableStat stat, boolean showNonMods, StatModValueGetter getter) |
| void | addShipList (int cols, int rows, float iconSize, Color baseColor, List< FleetMemberAPI > ships, float pad) |
| void | setParaFontOrbitron () |
| LabelAPI | addPara (String format, float pad, Color[] hl, String ... highlights) |
| UIComponentAPI | addSpacer (float height) |
| void | addStoryPointUseInfo (float pad, float bonusXPFraction, boolean withNoSPNotification) |
| void | addStoryPointUseInfo (float pad, int numPoints, float bonusXPFraction, boolean withNoSPNotification) |
| void | setForceProcessInput (boolean forceProcessInput) |
| void | addPlaythroughDataPanel (float width, float height) |
| void | setBulletColor (Color bulletColor) |
| void | addRelationshipBar (PersonAPI person, float pad) |
| void | addRelationshipBar (PersonAPI person, float width, float pad) |
| void | addRelationshipBar (FactionAPI faction, float pad) |
| void | addRelationshipBar (FactionAPI faction, float width, float pad) |
| void | addRelationshipBar (float value, float pad) |
| void | addRelationshipBar (float value, float width, float pad) |
| void | addImportanceIndicator (PersonImportance importance, float width, float pad) |
| void | addTooltipToPrevious (TooltipCreator tc, TooltipLocation loc) |
| ButtonAPI | addAreaCheckbox (String text, Object data, Color base, Color bg, Color bright, float width, float height, float pad) |
| void | showShips (List< FleetMemberAPI > ships, int max, boolean sort, boolean showBaseHullForDHulls, float pad) |
| void | setGridFontSmallInsignia () |
| void | showFullSurveyReqs (PlanetAPI planet, boolean withText, float pad) |
| void | showCost (String title, boolean withAvailable, float widthOverride, Color color, Color dark, float pad, String[] res, int[] quantities, boolean[] consumed) |
| void | showCost (String title, boolean withAvailable, Color color, Color dark, float pad, String[] res, int[] quantities) |
| void | showCost (Color color, Color dark, float pad, String[] res, int[] quantities) |
| void | showCost (String title, boolean withAvailable, float widthOverride, float heightOverride, Color color, Color dark, float pad, String[] res, int[] quantities, boolean[] consumed) |
| UIComponentAPI | getPrev () |
| ButtonAPI | addAreaCheckbox (String text, Object data, Color base, Color bg, Color bright, float width, float height, float pad, boolean leftAlign) |
| UIComponentAPI | addSkillPanel (PersonAPI person, float pad) |
| UIComponentAPI | addSkillPanelOneColumn (PersonAPI person, float pad) |
| float | computeStringWidth (String in) |
| TextFieldAPI | addTextField (float width, float pad) |
| TextFieldAPI | addTextField (float width, String font, float pad) |
| TextFieldAPI | addTextField (float width, float height, String font, float pad) |
| ButtonAPI | addCheckbox (float width, float height, String text, UICheckboxSize size, float pad) |
| ButtonAPI | addCheckbox (float width, float height, String text, String font, Color textColor, UICheckboxSize size, float pad) |
| void | setAreaCheckboxFont (String areaCheckboxFont) |
| void | setAreaCheckboxFontDefault () |
| UIComponentAPI | addLabelledValue (String label, String value, Color labelColor, Color valueColor, float width, float pad) |
| float | getHeightSoFar () |
| IntelUIAPI | getIntelUI () |
| EventProgressBarAPI | addEventProgressBar (BaseEventIntel intel, float pad) |
| UIComponentAPI | addCustomDoNotSetPosition (UIComponentAPI comp) |
| UIComponentAPI | addEventStageMarker (EventStageDisplayData data) |
| UIComponentAPI | addEventProgressMarker (BaseEventIntel intel) |
| TooltipMakerAPI | beginImageWithText (String spriteName, float imageHeight, float widthWithImage, boolean midAlignImage) |
| LabelAPI | addSectionHeading (String str, Color textColor, Color bgColor, Alignment align, float width, float pad) |
| TooltipMakerAPI | beginSubTooltip (float width) |
| void | endSubTooltip () |
| void | setHeightSoFar (float height) |
| UIPanelAPI | createSectorMap (float w, float h, MapParams p, String title) |
| UIPanelAPI | createSectorMap (float w, float h, MapParams p, String title, Color color, Color dark) |
| float | getWidthSoFar () |
| void | addTooltipToPrevious (TooltipCreator tc, TooltipLocation loc, boolean recreateEveryFrame) |
| LabelAPI | createLabel (String str, Color color) |
| LabelAPI | createLabel (String str, Color color, float maxTextWidth) |
| void | addTableHeaderTooltip (int colIndex, TooltipCreator tc) |
| void | addTableHeaderTooltip (int colIndex, String text) |
| UIPanelAPI | addSectorMap (float w, float h, StarSystemAPI system, float pad) |
| void | addTooltipTo (TooltipCreator tc, UIComponentAPI to, TooltipLocation loc) |
| void | addTooltipTo (TooltipCreator tc, UIComponentAPI to, TooltipLocation loc, boolean recreateEveryFrame) |
| UIComponentAPI | createRect (Color color, float thickness) |
| void | makeTableItemsClickable () |
| void | setIdForAddedRow (Object id) |
| void | setExternalScroller (ScrollPanelAPI scroller) |
| ScrollPanelAPI | getExternalScroller () |
| void | setBgAlpha (float bgAlpha) |
| void | setButtonFontOrbitron20 () |
| void | setButtonFontOrbitron20Bold () |
| void | setButtonFontOrbitron24 () |
| void | setButtonFontOrbitron24Bold () |
| void | showPlanetInfo (PlanetAPI planet, float pad) |
| void | showPlanetInfo (PlanetAPI planet, float w, float h, boolean withName, float pad) |
| void | showPlanetInfo (PlanetAPI planet, float w, float h, PlanetInfoParams params, float pad) |
| ButtonAPI | addCheckbox (float width, float height, String text, Object data, UICheckboxSize size, float pad) |
| ButtonAPI | addCheckbox (float width, float height, String text, Object data, String font, Color textColor, UICheckboxSize size, float pad) |
| UIComponentAPI | addSkillPanel (PersonAPI person, boolean admin, float pad) |
| UIComponentAPI | addSkillPanelOneColumn (PersonAPI person, boolean admin, float pad) |
| void | addCodexEntries (String title, Set< String > entryIds, boolean sort, float pad) |
| void | setCodexEntryId (String codexEntryId) |
| String | getCodexEntryId () |
| void | setCodexEntryFleetMember (FleetMemberAPI member) |
| void | setCodexTempEntry (CodexEntryPlugin tempCodexEntry) |
| LabelAPI | addParaWithMarkup (String str, float pad) |
| LabelAPI | addParaWithMarkup (String str, Color color, float pad) |
| LabelAPI | addParaWithMarkup (String str, float pad, String... tokens) |
| LabelAPI | addParaWithMarkup (String str, Color color, float pad, String... tokens) |
| void | showCargo (CargoAPI cargo, int max, boolean sort, float pad, float itemHeight, float itemPad) |
| void | setActionListenerDelegate (ActionListenerDelegate delegate) |
Public Member Functions inherited from com.fs.starfarer.api.ui.UIPanelAPI | |
| PositionAPI | addComponent (UIComponentAPI custom) |
| void | removeComponent (UIComponentAPI component) |
| void | bringComponentToTop (UIComponentAPI c) |
| void | sendToBottom (UIComponentAPI c) |
Public Member Functions inherited from com.fs.starfarer.api.ui.UIComponentAPI | |
| PositionAPI | getPosition () |
| void | render (float alphaMult) |
| void | processInput (List< InputEventAPI > events) |
| void | advance (float amount) |
| void | setOpacity (float opacity) |
| float | getOpacity () |
Not just for tooltips; used for normal UI elements as well.
Copyright 2018 Fractal Softworks, LLC
Definition at line 35 of file TooltipMakerAPI.java.
| ButtonAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addAreaCheckbox | ( | String | text, |
| Object | data, | ||
| Color | base, | ||
| Color | bg, | ||
| Color | bright, | ||
| float | width, | ||
| float | height, | ||
| float | pad ) |
| ButtonAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addAreaCheckbox | ( | String | text, |
| Object | data, | ||
| Color | base, | ||
| Color | bg, | ||
| Color | bright, | ||
| float | width, | ||
| float | height, | ||
| float | pad, | ||
| boolean | leftAlign ) |
| ButtonAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addButton | ( | String | text, |
| Object | data, | ||
| Color | base, | ||
| Color | bg, | ||
| Alignment | align, | ||
| CutStyle | style, | ||
| float | width, | ||
| float | height, | ||
| float | pad ) |
| ButtonAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addButton | ( | String | text, |
| Object | data, | ||
| Color | base, | ||
| Color | bg, | ||
| float | width, | ||
| float | height, | ||
| float | pad ) |
| ButtonAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addButton | ( | String | text, |
| Object | data, | ||
| float | width, | ||
| float | height, | ||
| float | pad ) |
| ButtonAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addCheckbox | ( | float | width, |
| float | height, | ||
| String | text, | ||
| Object | data, | ||
| String | font, | ||
| Color | textColor, | ||
| UICheckboxSize | size, | ||
| float | pad ) |
| ButtonAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addCheckbox | ( | float | width, |
| float | height, | ||
| String | text, | ||
| Object | data, | ||
| UICheckboxSize | size, | ||
| float | pad ) |
| ButtonAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addCheckbox | ( | float | width, |
| float | height, | ||
| String | text, | ||
| String | font, | ||
| Color | textColor, | ||
| UICheckboxSize | size, | ||
| float | pad ) |
Use the method with the Object data param
| ButtonAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addCheckbox | ( | float | width, |
| float | height, | ||
| String | text, | ||
| UICheckboxSize | size, | ||
| float | pad ) |
Use the method with the Object data param
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addCodexEntries | ( | String | title, |
| Set< String > | entryIds, | ||
| boolean | sort, | ||
| float | pad ) |
| UIComponentAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addCustom | ( | UIComponentAPI | comp, |
| float | pad ) |
| UIComponentAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addCustomDoNotSetPosition | ( | UIComponentAPI | comp | ) |
Add a custom component without appending it to the bottom of the tooltip. Will need to call one of the .getPosition().inXXX methods to actually place it somewhere specific within the tooltip.
| comp |
| EventProgressBarAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addEventProgressBar | ( | BaseEventIntel | intel, |
| float | pad ) |
| UIComponentAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addEventProgressMarker | ( | BaseEventIntel | intel | ) |
| UIComponentAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addEventStageMarker | ( | EventStageDisplayData | data | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addGrid | ( | float | pad | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addIconGroup | ( | float | pad | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addIconGroup | ( | float | rowHeight, |
| float | pad ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addIconGroup | ( | float | rowHeight, |
| int | rows, | ||
| float | pad ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addIconGroupAndCenter | ( | float | pad | ) |
Assumes a single icon, hacky.
| pad |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addIcons | ( | CommodityOnMarketAPI | com, |
| int | num, | ||
| IconRenderMode | mode ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addIcons | ( | CommoditySpecAPI | com, |
| int | num, | ||
| IconRenderMode | mode ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addImage | ( | String | spriteName, |
| float | pad ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addImage | ( | String | spriteName, |
| float | width, | ||
| float | height, | ||
| float | pad ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addImage | ( | String | spriteName, |
| float | width, | ||
| float | pad ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addImages | ( | float | width, |
| float | height, | ||
| float | pad, | ||
| float | imagePad, | ||
| String ... | spriteNames ) |
| UIPanelAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addImageWithText | ( | float | pad | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addImportanceIndicator | ( | PersonImportance | importance, |
| float | width, | ||
| float | pad ) |
| UIComponentAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addLabelledValue | ( | String | label, |
| String | value, | ||
| Color | labelColor, | ||
| Color | valueColor, | ||
| float | width, | ||
| float | pad ) |
| LabelAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addPara | ( | String | format, |
| float | pad, | ||
| Color | color, | ||
| Color | hl, | ||
| String ... | highlights ) |
| LabelAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addPara | ( | String | format, |
| float | pad, | ||
| Color | hl, | ||
| String... | highlights ) |
| LabelAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addPara | ( | String | format, |
| float | pad, | ||
| Color[] | hl, | ||
| String ... | highlights ) |
| LabelAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addPara | ( | String | str, |
| Color | color, | ||
| float | pad ) |
| LabelAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addPara | ( | String | str, |
| float | pad ) |
| LabelAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addParaWithMarkup | ( | String | str, |
| Color | color, | ||
| float | pad ) |
| LabelAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addParaWithMarkup | ( | String | str, |
| Color | color, | ||
| float | pad, | ||
| String... | tokens ) |
Markup: {{string}} -> highlights it {{color:<color>|string}} -> highlights it with color color can be h|good|bad|text|gray|blue or a color in settings.json If passing in tokens and needing to use a % in the base string: use %% (tokens means a String.format call) If NOT passing in tokens and needing to use a % in the base string: use % (no String.format call)
| str | |
| color | |
| pad | |
| tokens |
| LabelAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addParaWithMarkup | ( | String | str, |
| float | pad ) |
| LabelAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addParaWithMarkup | ( | String | str, |
| float | pad, | ||
| String... | tokens ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addPlaythroughDataPanel | ( | float | width, |
| float | height ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addRelationshipBar | ( | FactionAPI | faction, |
| float | pad ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addRelationshipBar | ( | FactionAPI | faction, |
| float | width, | ||
| float | pad ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addRelationshipBar | ( | float | value, |
| float | pad ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addRelationshipBar | ( | float | value, |
| float | width, | ||
| float | pad ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addRelationshipBar | ( | PersonAPI | person, |
| float | pad ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addRelationshipBar | ( | PersonAPI | person, |
| float | width, | ||
| float | pad ) |
| Object com.fs.starfarer.api.ui.TooltipMakerAPI.addRow | ( | Object ... | data | ) |
Possible sets of data for a column: string | color, string | alignment, color, string | alignment, color, LabelAPI
| data |
| Object com.fs.starfarer.api.ui.TooltipMakerAPI.addRowWithGlow | ( | Object ... | data | ) |
Possible sets of data for a column: string color, string alignment, color, string alignment, color, LabelAPI
| data |
| LabelAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addSectionHeading | ( | String | str, |
| Alignment | align, | ||
| float | pad ) |
| LabelAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addSectionHeading | ( | String | str, |
| Color | textColor, | ||
| Color | bgColor, | ||
| Alignment | align, | ||
| float | pad ) |
| LabelAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addSectionHeading | ( | String | str, |
| Color | textColor, | ||
| Color | bgColor, | ||
| Alignment | align, | ||
| float | width, | ||
| float | pad ) |
| UIPanelAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addSectorMap | ( | float | w, |
| float | h, | ||
| StarSystemAPI | system, | ||
| float | pad ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addShipList | ( | int | cols, |
| int | rows, | ||
| float | iconSize, | ||
| Color | baseColor, | ||
| List< FleetMemberAPI > | ships, | ||
| float | pad ) |
| UIComponentAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addSkillPanel | ( | PersonAPI | person, |
| boolean | admin, | ||
| float | pad ) |
| UIComponentAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addSkillPanel | ( | PersonAPI | person, |
| float | pad ) |
| UIComponentAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addSkillPanelOneColumn | ( | PersonAPI | person, |
| boolean | admin, | ||
| float | pad ) |
| UIComponentAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addSkillPanelOneColumn | ( | PersonAPI | person, |
| float | pad ) |
| UIComponentAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addSpacer | ( | float | height | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addStatGridForShips | ( | float | width, |
| float | valueWidth, | ||
| float | valuePad, | ||
| float | pad, | ||
| CampaignFleetAPI | fleet, | ||
| int | maxNum, | ||
| boolean | ascending, | ||
| FleetMemberValueGetter | getter ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addStatModGrid | ( | float | width, |
| float | valueWidth, | ||
| float | valuePad, | ||
| float | pad, | ||
| MutableStat | stat ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addStatModGrid | ( | float | width, |
| float | valueWidth, | ||
| float | valuePad, | ||
| float | pad, | ||
| MutableStat | stat, | ||
| boolean | showNonMods, | ||
| StatModValueGetter | getter ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addStatModGrid | ( | float | width, |
| float | valueWidth, | ||
| float | valuePad, | ||
| float | pad, | ||
| MutableStat | stat, | ||
| StatModValueGetter | getter ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addStatModGrid | ( | float | width, |
| float | valueWidth, | ||
| float | valuePad, | ||
| float | pad, | ||
| StatBonus | stat ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addStatModGrid | ( | float | width, |
| float | valueWidth, | ||
| float | valuePad, | ||
| float | pad, | ||
| StatBonus | stat, | ||
| boolean | showNonMods, | ||
| StatModValueGetter | getter ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addStatModGrid | ( | float | width, |
| float | valueWidth, | ||
| float | valuePad, | ||
| float | pad, | ||
| StatBonus | stat, | ||
| StatModValueGetter | getter ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addStoryPointUseInfo | ( | float | pad, |
| float | bonusXPFraction, | ||
| boolean | withNoSPNotification ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addStoryPointUseInfo | ( | float | pad, |
| int | numPoints, | ||
| float | bonusXPFraction, | ||
| boolean | withNoSPNotification ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addTable | ( | String | emptyText, |
| int | andMore, | ||
| float | pad ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addTableHeaderTooltip | ( | int | colIndex, |
| String | text ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addTableHeaderTooltip | ( | int | colIndex, |
| TooltipCreator | tc ) |
| TextFieldAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addTextField | ( | float | width, |
| float | height, | ||
| String | font, | ||
| float | pad ) |
| TextFieldAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addTextField | ( | float | width, |
| float | pad ) |
| TextFieldAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addTextField | ( | float | width, |
| String | font, | ||
| float | pad ) |
| LabelAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addTitle | ( | String | text | ) |
| LabelAPI com.fs.starfarer.api.ui.TooltipMakerAPI.addTitle | ( | String | text, |
| Color | color ) |
| Object com.fs.starfarer.api.ui.TooltipMakerAPI.addToGrid | ( | int | x, |
| int | y, | ||
| String | label, | ||
| String | value ) |
| Object com.fs.starfarer.api.ui.TooltipMakerAPI.addToGrid | ( | int | x, |
| int | y, | ||
| String | label, | ||
| String | value, | ||
| Color | valueColor ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addTooltipTo | ( | TooltipCreator | tc, |
| UIComponentAPI | to, | ||
| TooltipLocation | loc ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addTooltipTo | ( | TooltipCreator | tc, |
| UIComponentAPI | to, | ||
| TooltipLocation | loc, | ||
| boolean | recreateEveryFrame ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addTooltipToAddedRow | ( | TooltipCreator | tc, |
| TooltipLocation | loc ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addTooltipToAddedRow | ( | TooltipCreator | tc, |
| TooltipLocation | loc, | ||
| boolean | recreateEveryFrame ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addTooltipToPrevious | ( | TooltipCreator | tc, |
| TooltipLocation | loc ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.addTooltipToPrevious | ( | TooltipCreator | tc, |
| TooltipLocation | loc, | ||
| boolean | recreateEveryFrame ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.beginGrid | ( | float | itemWidth, |
| int | cols ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.beginGrid | ( | float | itemWidth, |
| int | cols, | ||
| Color | labelColor ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.beginGridFlipped | ( | float | itemWidth, |
| int | cols, | ||
| Color | labelColor, | ||
| float | valueWidth, | ||
| float | valuePad ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.beginGridFlipped | ( | float | itemWidth, |
| int | cols, | ||
| float | valueWidth, | ||
| float | valuePad ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.beginIconGroup | ( | ) |
| TooltipMakerAPI com.fs.starfarer.api.ui.TooltipMakerAPI.beginImageWithText | ( | String | spriteName, |
| float | imageHeight ) |
| TooltipMakerAPI com.fs.starfarer.api.ui.TooltipMakerAPI.beginImageWithText | ( | String | spriteName, |
| float | imageHeight, | ||
| float | widthWithImage, | ||
| boolean | midAlignImage ) |
| TooltipMakerAPI com.fs.starfarer.api.ui.TooltipMakerAPI.beginSubTooltip | ( | float | width | ) |
| UIPanelAPI com.fs.starfarer.api.ui.TooltipMakerAPI.beginTable | ( | Color | base, |
| Color | dark, | ||
| Color | bright, | ||
| float | itemHeight, | ||
| boolean | withBorder, | ||
| boolean | withHeader, | ||
| Object ... | columns ) |
| UIPanelAPI com.fs.starfarer.api.ui.TooltipMakerAPI.beginTable | ( | Color | base, |
| Color | dark, | ||
| Color | bright, | ||
| float | itemHeight, | ||
| Object ... | columns ) |
Columns are pairs of <string name> <Float|Integer width>
| UIPanelAPI com.fs.starfarer.api.ui.TooltipMakerAPI.beginTable | ( | FactionAPI | faction, |
| float | itemHeight, | ||
| Object ... | columns ) |
Columns are pairs of <string name> <Float|Integer width>
| faction | |
| itemHeight | |
| columns |
| UIPanelAPI com.fs.starfarer.api.ui.TooltipMakerAPI.beginTable2 | ( | FactionAPI | faction, |
| float | itemHeight, | ||
| boolean | withBorder, | ||
| boolean | withHeader, | ||
| Object ... | columns ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.cancelGrid | ( | ) |
| float com.fs.starfarer.api.ui.TooltipMakerAPI.computeStringWidth | ( | String | in | ) |
| LabelAPI com.fs.starfarer.api.ui.TooltipMakerAPI.createLabel | ( | String | str, |
| Color | color ) |
Create a label without adding it to the tooltip, so it can be added via addCustom() or passed in to a table row. Uses the current paragraph font.
| LabelAPI com.fs.starfarer.api.ui.TooltipMakerAPI.createLabel | ( | String | str, |
| Color | color, | ||
| float | maxTextWidth ) |
Create a label without adding it to the tooltip, so it can be added via addCustom() or passed in to a table row. Uses the current paragraph font.
| UIComponentAPI com.fs.starfarer.api.ui.TooltipMakerAPI.createRect | ( | Color | color, |
| float | thickness ) |
| UIPanelAPI com.fs.starfarer.api.ui.TooltipMakerAPI.createSectorMap | ( | float | w, |
| float | h, | ||
| MapParams | p, | ||
| String | title ) |
TODO: maps don't seem to work right if the tooltip is recreated every frame, for now make sure to use the addTooltipToPrevious method that takes a boolean to turn that off.
| UIPanelAPI com.fs.starfarer.api.ui.TooltipMakerAPI.createSectorMap | ( | float | w, |
| float | h, | ||
| MapParams | p, | ||
| String | title, | ||
| Color | color, | ||
| Color | dark ) |
TODO: maps don't seem to work right if the tooltip is recreated every frame, for now make sure to use the addTooltipToPrevious method that takes a boolean to turn that off.
| void com.fs.starfarer.api.ui.TooltipMakerAPI.endSubTooltip | ( | ) |
Tooltip still needs to be added using addCustom() or similar.
| String com.fs.starfarer.api.ui.TooltipMakerAPI.getBulletedListPrefix | ( | ) |
| String com.fs.starfarer.api.ui.TooltipMakerAPI.getCodexEntryId | ( | ) |
| ScrollPanelAPI com.fs.starfarer.api.ui.TooltipMakerAPI.getExternalScroller | ( | ) |
Only non-null if this tooltip was added to a CustomPanelAPI using addUIElement().
| float com.fs.starfarer.api.ui.TooltipMakerAPI.getHeightSoFar | ( | ) |
| IntelUIAPI com.fs.starfarer.api.ui.TooltipMakerAPI.getIntelUI | ( | ) |
Returns the intel UI; only works when creating small intel descriptions.
| UIComponentAPI com.fs.starfarer.api.ui.TooltipMakerAPI.getPrev | ( | ) |
| float com.fs.starfarer.api.ui.TooltipMakerAPI.getTextWidthOverride | ( | ) |
| float com.fs.starfarer.api.ui.TooltipMakerAPI.getWidthSoFar | ( | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.makeTableItemsClickable | ( | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.resetGridRowHeight | ( | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setActionListenerDelegate | ( | ActionListenerDelegate | delegate | ) |
Needs to be called before any methods that create UI elements that call the action listener (such as addButton) are called. Warning: If the TooltipMakerAPI already has an action listener, it will be overridden.
| delegate |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setAreaCheckboxFont | ( | String | areaCheckboxFont | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setAreaCheckboxFontDefault | ( | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setBgAlpha | ( | float | bgAlpha | ) |
Default is 0.85f.
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setBulletColor | ( | Color | bulletColor | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setBulletedListMode | ( | String | itemPrefix | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setBulletWidth | ( | Float | bulletWidth | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setButtonFontDefault | ( | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setButtonFontOrbitron20 | ( | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setButtonFontOrbitron20Bold | ( | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setButtonFontOrbitron24 | ( | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setButtonFontOrbitron24Bold | ( | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setButtonFontVictor10 | ( | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setButtonFontVictor14 | ( | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setCodexEntryFleetMember | ( | FleetMemberAPI | member | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setCodexEntryId | ( | String | codexEntryId | ) |
ID of codex entry to open with F2 when this tooltip is shown. Setting it to something and then back to null will not remove the "press F2" prompt etc. See: CodexDataV2.getXXXXEntryId() methods for how to get entry ids.
| codexEntryId |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setCodexTempEntry | ( | CodexEntryPlugin | tempCodexEntry | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setExternalScroller | ( | ScrollPanelAPI | scroller | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setForceProcessInput | ( | boolean | forceProcessInput | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setGridFont | ( | String | gridFont | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setGridFontDefault | ( | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setGridFontSmallInsignia | ( | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setGridLabelColor | ( | Color | nameColor | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setGridRowHeight | ( | float | gridSize | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setGridValueColor | ( | Color | valueColor | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setHeightSoFar | ( | float | height | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setIconSpacingMedium | ( | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setIconSpacingWide | ( | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setIdForAddedRow | ( | Object | id | ) |
To identify which row was clicked on.
| id |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setLowGridRowHeight | ( | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setParaFont | ( | String | paraFont | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setParaFontColor | ( | Color | paraFontColor | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setParaFontDefault | ( | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setParaFontOrbitron | ( | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setParaFontVictor14 | ( | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setParaInsigniaLarge | ( | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setParaInsigniaVeryLarge | ( | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setParaOrbitronLarge | ( | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setParaOrbitronVeryLarge | ( | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setParaSmallInsignia | ( | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setParaSmallOrbitron | ( | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setTextWidthOverride | ( | float | textWidthOverride | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setTitleFont | ( | String | titleFont | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setTitleFontColor | ( | Color | titleFontColor | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setTitleOrbitronLarge | ( | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setTitleOrbitronVeryLarge | ( | ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.setTitleSmallOrbitron | ( | ) |
| String com.fs.starfarer.api.ui.TooltipMakerAPI.shortenString | ( | String | in, |
| float | maxWidth ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.showCargo | ( | CargoAPI | cargo, |
| int | max, | ||
| boolean | sort, | ||
| float | pad ) |
Sort is based on stack size.
| cargo | |
| max | |
| sort | |
| pad |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.showCargo | ( | CargoAPI | cargo, |
| int | max, | ||
| boolean | sort, | ||
| float | pad, | ||
| float | itemHeight, | ||
| float | itemPad ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.showCost | ( | Color | color, |
| Color | dark, | ||
| float | pad, | ||
| String[] | res, | ||
| int[] | quantities ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.showCost | ( | String | title, |
| boolean | withAvailable, | ||
| Color | color, | ||
| Color | dark, | ||
| float | pad, | ||
| String[] | res, | ||
| int[] | quantities ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.showCost | ( | String | title, |
| boolean | withAvailable, | ||
| float | widthOverride, | ||
| Color | color, | ||
| Color | dark, | ||
| float | pad, | ||
| String[] | res, | ||
| int[] | quantities, | ||
| boolean[] | consumed ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.showCost | ( | String | title, |
| boolean | withAvailable, | ||
| float | widthOverride, | ||
| float | heightOverride, | ||
| Color | color, | ||
| Color | dark, | ||
| float | pad, | ||
| String[] | res, | ||
| int[] | quantities, | ||
| boolean[] | consumed ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.showFullSurveyReqs | ( | PlanetAPI | planet, |
| boolean | withText, | ||
| float | pad ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.showPlanetInfo | ( | PlanetAPI | planet, |
| float | pad ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.showPlanetInfo | ( | PlanetAPI | planet, |
| float | w, | ||
| float | h, | ||
| boolean | withName, | ||
| float | pad ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.showPlanetInfo | ( | PlanetAPI | planet, |
| float | w, | ||
| float | h, | ||
| PlanetInfoParams | params, | ||
| float | pad ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.showShips | ( | List< FleetMemberAPI > | ships, |
| int | max, | ||
| boolean | sort, | ||
| boolean | showBaseHullForDHulls, | ||
| float | pad ) |
| void com.fs.starfarer.api.ui.TooltipMakerAPI.showShips | ( | List< FleetMemberAPI > | ships, |
| int | max, | ||
| boolean | sort, | ||
| float | pad ) |