- about
AboutApp module
- combat-carousel
CombatCarousel module
- config-form
CombatCarouselConfig module
- config
Config module
- hooks
Hooks module
- overrides
Overrides module
- settings
Settings module
- templates
Templates module
- util
Util module
- init
AboutApp module
About this module FormApp
Kind: inner class of about
Extends: FormApplication
- ~AboutApp ⇐
FormApplication
- instance
- static
Supplies data to the template
Kind: instance method of AboutApp
Fetches a list of Patrons to display on the About page
Kind: instance method of AboutApp
Call app default options
Kind: static property of AboutApp
CombatCarousel module
- combat-carousel
- ~CombatCarousel ⇐
Application
- instance
- ._render()
- .getData()
- .activateListeners(html)
- ._onModuleIconClick(event, html)
- ._onModuleIconContext(event, html)
- ._onRollInitiative(event)
- ._onEditInitiative(event, html)
- ._onInitiativeChange(event, html)
- ._onInitiativeFocusOut(event, html)
- ._onHoverCard(event)
- ._onHoverOutCard(event, html)
- ._onCardDoubleClick(event, html)
- ._onContextMenuCard(event, html)
- ._onCombatantControl(event, html)
- ._onCombatControlClick(event, html)
- ._onHoverSplide(event, html)
- ._onHoverOutSplide(event, html)
- ._onClickEncounterIcon(event, html)
- ._onEncounterIconContext(event, html)
- .safeRender()
- .toggleVisibility()
- .expand()
- .collapse()
- .getCombatState(combat)
- .getToggleIconState()
- .setToggleIcon(combatState)
- .activateCombatantSlide(combatant)
- .getCombatantSlideIndex(combatant)
- static
- instance
- ~CombatCarousel ⇐
Main app class
Kind: inner class of combat-carousel
Extends: Application
- ~CombatCarousel ⇐
Application
- instance
- ._render()
- .getData()
- .activateListeners(html)
- ._onModuleIconClick(event, html)
- ._onModuleIconContext(event, html)
- ._onRollInitiative(event)
- ._onEditInitiative(event, html)
- ._onInitiativeChange(event, html)
- ._onInitiativeFocusOut(event, html)
- ._onHoverCard(event)
- ._onHoverOutCard(event, html)
- ._onCardDoubleClick(event, html)
- ._onContextMenuCard(event, html)
- ._onCombatantControl(event, html)
- ._onCombatControlClick(event, html)
- ._onHoverSplide(event, html)
- ._onHoverOutSplide(event, html)
- ._onClickEncounterIcon(event, html)
- ._onEncounterIconContext(event, html)
- .safeRender()
- .toggleVisibility()
- .expand()
- .collapse()
- .getCombatState(combat)
- .getToggleIconState()
- .setToggleIcon(combatState)
- .activateCombatantSlide(combatant)
- .getCombatantSlideIndex(combatant)
- static
- instance
Render worker
Kind: instance method of CombatCarousel
Param | Type | Description |
---|---|---|
...args | Array |
Any arguments passed |
Get data required for template
Kind: instance method of CombatCarousel
Activate listeners on the DOM element
Kind: instance method of CombatCarousel
Param | Type | Description |
---|---|---|
html | Object |
the app element |
Module Icon click handler
Kind: instance method of CombatCarousel
Todo
- #6 #5 add visual indicator of collapse state on icon
Param |
---|
event |
html |
Module Icon context click handler
Kind: instance method of CombatCarousel
Param |
---|
event |
html |
Roll Initiative handler
Kind: instance method of CombatCarousel
Param | Type |
---|---|
event | * |
Edit Initiative handler
Kind: instance method of CombatCarousel
Param |
---|
event |
html |
Change Initiative handler
Kind: instance method of CombatCarousel
Param |
---|
event |
html |
Focus Out Initiative handler
Kind: instance method of CombatCarousel
Param |
---|
event |
html |
Card Hover handler
Kind: instance method of CombatCarousel
Param | Type |
---|---|
event | * |
Card Hover-out handler
Kind: instance method of CombatCarousel
Param |
---|
event |
html |
Card double click handler
Kind: instance method of CombatCarousel
Param |
---|
event |
html |
Handle card right-click
Kind: instance method of CombatCarousel
Param |
---|
event |
html |
Combatant Control handler
Kind: instance method of CombatCarousel
Param |
---|
event |
html |
Combat Control click handler
Kind: instance method of CombatCarousel
Param |
---|
event |
html |
Hover splide handler
Kind: instance method of CombatCarousel
Param |
---|
event |
html |
Hover Out splide handler
Kind: instance method of CombatCarousel
Param |
---|
event |
html |
Context Encounter Icon handler
Kind: instance method of CombatCarousel
Param |
---|
event |
html |
Context Encounter Icon handler
Kind: instance method of CombatCarousel
Param |
---|
event |
html |
Safe render for multiple embedded entity updates
Kind: instance method of CombatCarousel
Toggles visibility of the carousel
Kind: instance method of CombatCarousel
Expand the Combat Carousel
Kind: instance method of CombatCarousel
Collapse the Combat Carousel
Kind: instance method of CombatCarousel
Gets the state of a combat instance
Kind: instance method of CombatCarousel
Param |
---|
combat |
Gets the current combat state of the toggle icon
Kind: instance method of CombatCarousel
Sets the Combat Carousel icon based on the app and combat state
Kind: instance method of CombatCarousel
Param | Type | Default |
---|---|---|
combatState | String |
|
Activates the given combatant's slide
Kind: instance method of CombatCarousel
Param | Default |
---|---|
combatant |
|
Get the matching slide for the provided combatant
Kind: instance method of CombatCarousel
Param |
---|
combatant |
Call app default options
Kind: static property of CombatCarousel
Takes a standard combat turn and prepare data for Combat Carousel rendering
Kind: static method of CombatCarousel
Returns: Object
- preparedData data ready for template
Param | Type | Description |
---|---|---|
turn | Turn | Object |
the combat turn object |
Get the data for the Combat Carousel property overlay for a given token
Kind: static method of CombatCarousel
Param |
---|
token |
overlaySettings |
CombatCarouselConfig module
A form-app for setting the icons and properties to use in the Combat Carousel Overlay
Kind: inner class of config-form
Extends: FormApplication
- ~CombatCarouselConfig ⇐
FormApplication
Class instance constructor
Param |
---|
...args |
Gets data for the template
Kind: instance method of CombatCarouselConfig
Update handler following form submission
Kind: instance method of CombatCarouselConfig
Param | Type | Description |
---|---|---|
event | Event |
form submit event |
formData | Object |
Attach listeners
Kind: instance method of CombatCarouselConfig
Param |
---|
html |
Img Path Change handler
Kind: instance method of CombatCarouselConfig
Param |
---|
event |
html |
Get the default options for the class
Kind: static property of CombatCarouselConfig
Config module
Module Name
Kind: static constant of config
Module title
Kind: static constant of config
Module Icon Paths
Kind: static constant of config
Settings Keys
Kind: static constant of config
Default Config
Kind: static constant of config
Hooks module
Registers hooks needed throughout the module
Overrides module
Wrapper to call overrides
Override sceneNavExpand to move Hook call into promise
Kind: inner method of module.exports
Override sceneNavCollapse to move Hook call into promise
Kind: inner method of module.exports
Settings module
Wrapper to call settings registration
Templates module
Define a set of template paths to pre-load Pre-loaded templates are compiled and cached for fast access when rendering Taken from dnd5e system (see link)
Kind: static constant of templates
Link: https://gitlab.com/foundrynet/dnd5e/-/blob/master/module/templates.js
Util module
Retrieves a key using the given value
Kind: static method of util
Param | Type | Description |
---|---|---|
object | Object |
- the object that contains the key/value |
value | * |
Helper to get Token instance based on Combatant Id
Kind: static method of util
Param | Type |
---|---|
combatantId | * |
For a given Combat instance, calculate the new turn order and return it
Kind: static method of util
Param | Type | Description |
---|---|---|
combat | Combat |
a given Combat instance (default: active combat) |
Enriches combatant data to prepare for use in the CombatTracker
Kind: static method of util
Param |
---|
combatant |