public class CodexCustomEntryExample extends CodexEntryV2 implements CustomUIPanelPlugin
CodexEntryPlugin.ListMode| Modifier and Type | Field and Description |
|---|---|
protected UIPanelAPI |
box |
protected CodexDialogAPI |
codex |
protected CustomPanelAPI |
panel |
protected UIPanelAPI |
relatedEntries |
categorySortTierForRelatedEntries, checking, children, icon, id, param, param2, parent, related, retainOrderOfChildren, retainOrderOfRelatedEntries, tags, title| Constructor and Description |
|---|
CodexCustomEntryExample(java.lang.String id,
java.lang.String title,
java.lang.String icon) |
| Modifier and Type | Method and Description |
|---|---|
void |
advance(float amount) |
void |
buttonPressed(java.lang.Object buttonId) |
void |
createCustomDetail(CustomPanelAPI panel,
UIPanelAPI relatedEntries,
CodexDialogAPI codex) |
void |
createTitleForList(TooltipMakerAPI info,
float width,
CodexEntryPlugin.ListMode mode) |
void |
destroyCustomDetail() |
CustomUIPanelPlugin |
getCustomPanelPlugin()
Optional, can be null.
|
boolean |
hasCustomDetailPanel() |
void |
positionChanged(PositionAPI position)
Called whenever the location or size of this UI panel changes.
|
void |
processInput(java.util.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.
|
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, skipForTagsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIconColorprotected CustomPanelAPI panel
protected UIPanelAPI relatedEntries
protected UIPanelAPI box
protected CodexDialogAPI codex
public CodexCustomEntryExample(java.lang.String id, java.lang.String title, java.lang.String icon)
public void createTitleForList(TooltipMakerAPI info, float width, CodexEntryPlugin.ListMode mode)
createTitleForList in interface CodexEntryPlugincreateTitleForList in class CodexEntryV2public boolean hasCustomDetailPanel()
hasCustomDetailPanel in interface CodexEntryPluginhasCustomDetailPanel in class CodexEntryV2public CustomUIPanelPlugin getCustomPanelPlugin()
CodexEntryPlugingetCustomPanelPlugin in interface CodexEntryPlugingetCustomPanelPlugin in class CodexEntryV2public void destroyCustomDetail()
destroyCustomDetail in interface CodexEntryPlugindestroyCustomDetail in class CodexEntryV2public void createCustomDetail(CustomPanelAPI panel, UIPanelAPI relatedEntries, CodexDialogAPI codex)
createCustomDetail in interface CodexEntryPlugincreateCustomDetail in class CodexEntryV2public void positionChanged(PositionAPI position)
CustomUIPanelPluginpositionChanged in interface CustomUIPanelPluginpublic void renderBelow(float alphaMult)
CustomUIPanelPluginrenderBelow in interface CustomUIPanelPluginpublic void render(float alphaMult)
CustomUIPanelPluginrender in interface CustomUIPanelPluginpublic void advance(float amount)
advance in interface CustomUIPanelPluginamount - in seconds.public void processInput(java.util.List<InputEventAPI> events)
CustomUIPanelPluginprocessInput in interface CustomUIPanelPluginpublic void buttonPressed(java.lang.Object buttonId)
buttonPressed in interface CustomUIPanelPlugin