Package com.fs.starfarer.api.impl.codex
Class CodexCustomEntryExample
java.lang.Object
com.fs.starfarer.api.impl.codex.CodexEntryV2
com.fs.starfarer.api.impl.codex.CodexCustomEntryExample
- All Implemented Interfaces:
CustomUIPanelPlugin
,CodexEntryPlugin
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.fs.starfarer.api.impl.codex.CodexEntryPlugin
CodexEntryPlugin.ListMode
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected UIPanelAPI
protected CodexDialogAPI
protected CustomPanelAPI
protected UIPanelAPI
Fields inherited from class com.fs.starfarer.api.impl.codex.CodexEntryV2
categorySortTierForRelatedEntries, checking, children, icon, id, param, param2, parent, related, retainOrderOfChildren, retainOrderOfRelatedEntries, tags, title
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
advance
(float amount) void
buttonPressed
(Object buttonId) void
createCustomDetail
(CustomPanelAPI panel, UIPanelAPI relatedEntries, CodexDialogAPI codex) void
createTitleForList
(TooltipMakerAPI info, float width, CodexEntryPlugin.ListMode mode) void
Optional, can be null.boolean
void
positionChanged
(PositionAPI position) Called whenever the location or size of this UI panel changes.void
processInput
(List<InputEventAPI> events) List of input events that occurred this frame.void
render
(float alphaMult) alphaMult is the transparency the panel should be rendered at.void
renderBelow
(float alphaMult) Below any UI elements in the panel.Methods inherited from class com.fs.starfarer.api.impl.codex.CodexEntryV2
addChild, addRelatedEntry, addRelatedEntry, addTag, areAnyRelatedEntriesUnlocked, areAnyRelatedEntriesVisible, checkTagsWhenLocked, configureTagDisplay, findChildren, getCategorySortTierForRelatedEntries, getChildren, getChildrenRecursive, getIcon, getId, getParam, getParam2, getParent, getRelatedEntries, getRelatedEntryIds, getSearchString, getSortTitle, getSourceMod, getTags, getTitle, getUnlockRelatedTags, hasDetail, hasTag, hasTagDisplay, isCategory, isLocked, isLockedStandard, isRetainOrderOfChildren, isRetainOrderOfRelatedEntries, isUnlockedIfRequiresUnlock, isVignetteIcon, isVisible, isVisibleStandard, matchesTags, removeRelatedEntry, removeRelatedEntry, setCategorySortTierForRelatedEntries, setIcon, setParam, setParam2, setParent, setRetainOrderOfChildren, setRetainOrderOfRelatedEntries, skipForTags
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.fs.starfarer.api.impl.codex.CodexEntryPlugin
getIconColor
-
Field Details
-
panel
-
box
-
codex
-
-
Constructor Details
-
CodexCustomEntryExample
-
-
Method Details
-
createTitleForList
- Specified by:
createTitleForList
in interfaceCodexEntryPlugin
- Overrides:
createTitleForList
in classCodexEntryV2
-
hasCustomDetailPanel
public boolean hasCustomDetailPanel()- Specified by:
hasCustomDetailPanel
in interfaceCodexEntryPlugin
- Overrides:
hasCustomDetailPanel
in classCodexEntryV2
-
getCustomPanelPlugin
Description copied from interface:CodexEntryPlugin
Optional, can be null.- Specified by:
getCustomPanelPlugin
in interfaceCodexEntryPlugin
- Overrides:
getCustomPanelPlugin
in classCodexEntryV2
- Returns:
-
destroyCustomDetail
public void destroyCustomDetail()- Specified by:
destroyCustomDetail
in interfaceCodexEntryPlugin
- Overrides:
destroyCustomDetail
in classCodexEntryV2
-
createCustomDetail
public void createCustomDetail(CustomPanelAPI panel, UIPanelAPI relatedEntries, CodexDialogAPI codex) - Specified by:
createCustomDetail
in interfaceCodexEntryPlugin
- Overrides:
createCustomDetail
in classCodexEntryV2
-
positionChanged
Description copied from interface:CustomUIPanelPlugin
Called whenever the location or size of this UI panel changes.- Specified by:
positionChanged
in interfaceCustomUIPanelPlugin
-
renderBelow
public void renderBelow(float alphaMult) Description copied from interface:CustomUIPanelPlugin
Below any UI elements in the panel.- Specified by:
renderBelow
in interfaceCustomUIPanelPlugin
-
render
public void render(float alphaMult) Description copied from interface:CustomUIPanelPlugin
alphaMult is the transparency the panel should be rendered at.- Specified by:
render
in interfaceCustomUIPanelPlugin
-
advance
public void advance(float amount) - Specified by:
advance
in interfaceCustomUIPanelPlugin
- Parameters:
amount
- in seconds.
-
processInput
Description copied from interface:CustomUIPanelPlugin
List of input events that occurred this frame. (Almost) always includes one mouse move event. Events should be consume()d if they are acted on. Mouse-move events should generally not be consumed. The loop processing events should check to see if an event has already been consumed, and if so, skip it. Accessing the data of a consumed event will throw an exception.- Specified by:
processInput
in interfaceCustomUIPanelPlugin
-
buttonPressed
- Specified by:
buttonPressed
in interfaceCustomUIPanelPlugin
-