Skip to content

Latest commit

 

History

History
1876 lines (1324 loc) · 59.8 KB

API.md

File metadata and controls

1876 lines (1324 loc) · 59.8 KB

Modules

about

AboutApp module

Classes

Concentrator

Request a roll or display concentration checks when damage is taken.

ConditionLab

Form application for managing mapping of Conditions to Icons and JournalEntries

EnhancedConditionMacroConfig

Enhanced Condition Macro Config Application

EnhancedConditionTriggerConfig

Enhanced Condition Trigger Config Application

EnhancedConditions

Builds a mapping between status icons and journal entries that represent conditions

PanSelect

Pan/Select Gadget

RerollInitiative

Rerolls initiative for all combatants

Sidekick

Provides helper methods for use elsewhere in the module (and has your back in a melee)

Signal

Initiates module classes (and shines a light on the dark night sky)

TemporaryCombatantForm
Triggler

Handles triggers for other gadgets in the module... or does it?!

DraggableList

From Valentin "Moerill" Henkys the code is licensed under LGPL v3. Original is implemented in his module "Mess": https://github.com/Moerill/Mess LICENSE: https://github.com/Moerill/Mess/blob/master/LICENSE

Constants

KNOWN_GAME_SYSTEMS

Stores information about well known game systems. All other systems will resolve to "other"

Functions

getData(options)

Get data for template rendering

_updateObject(formData)

Override default update object behaviour

about

AboutApp module

about~AboutApp ⇐ FormApplication

About this module FormApp

Kind: inner class of about
Extends: FormApplication

aboutApp.getData()

Supplies data to the template

Kind: instance method of AboutApp

aboutApp.fetchPatrons()

Fetches a list of Patrons to display on the About page

Kind: instance method of AboutApp

AboutApp.defaultOptions

Call app default options

Kind: static property of AboutApp

ConditionLab

Form application for managing mapping of Conditions to Icons and JournalEntries

Kind: global class

conditionLab.updatedMap

Get updated map by combining existing in-memory map with current formdata

Kind: instance property of ConditionLab

conditionLab.prepareData()

Prepare data for form rendering

Kind: instance method of ConditionLab

conditionLab.getData()

Gets data for the template render

Kind: instance method of ConditionLab

conditionLab._buildSubmitData()

Enriches submit data with existing map to ensure continuity

Kind: instance method of ConditionLab

conditionLab._processFormData(formData)

Processes the Form Data and builds a usable Condition Map

Kind: instance method of ConditionLab

Param Type
formData *

conditionLab._restoreDefaults()

Restore defaults for a mapping

Kind: instance method of ConditionLab

conditionLab._updateObject(event, formData)

Take the new map and write it back to settings, overwriting existing

Kind: instance method of ConditionLab

Param Type
event Object
formData Object

conditionLab._exportToJSON()

Exports the current map to JSON

Kind: instance method of ConditionLab

conditionLab._importFromJSONDialog()

Initiates an import via a dialog Borrowed from foundry.js Entity class

Kind: instance method of ConditionLab

conditionLab._processImport(html)

Process a Condition Map Import

Kind: instance method of ConditionLab

Param Type
html *

conditionLab._getHeaderButtons()

Override the header buttons method

Kind: instance method of ConditionLab

conditionLab.activateListeners(html)

Activate app listeners

Kind: instance method of ConditionLab

Param Type
html *

conditionLab._onChangeInputs(event) ⇒ Application.render

Input change handler

Kind: instance method of ConditionLab

Param Type
event *

conditionLab._onChangeFilter()

Filter input change handler

Kind: instance method of ConditionLab

conditionLab._filterMapByName(map, filter) ⇒

Filter the given map by the name property using the supplied filter value, marking filtered entries as "hidden"

Kind: instance method of ConditionLab
Returns: filteredMap

Param Type
map Array
filter String

conditionLab._onChangeMapType(event)

Change Map Type event handler

Kind: instance method of ConditionLab

Param Type
event *

conditionLab._onChangeIconPath(event)

Handle icon path change

Kind: instance method of ConditionLab

Param Type
event *

conditionLab._onClickActiveEffectConfig(event)

Handle click Active Effect Config button

Kind: instance method of ConditionLab

Param Type
event *

conditionLab._onChangeReferenceId(event)

Reference Link change handler

Kind: instance method of ConditionLab

Param Type
event *

conditionLab._onOpenTrigglerForm(event)

Open Triggler form event handler

Kind: instance method of ConditionLab

Param Type
event *

conditionLab._onAddRow(event)

Add Row event handler

Kind: instance method of ConditionLab

Param Type
event *

conditionLab._onRemoveRow(event)

Handler for remove row event

Kind: instance method of ConditionLab

Param Type
event *

conditionLab._onChangeSortOrder(event)

Handle a change sort order click

Kind: instance method of ConditionLab

Param Type
event *

conditionLab._onClickSortButton(event)

Sort button handler

Kind: instance method of ConditionLab

Param Type
event *

conditionLab._sortMapByName(map, direction) ⇒ Array

Sorts the given map by the name property

Kind: instance method of ConditionLab

Param Type
map Array
direction *

conditionLab._onRestoreDefaults(event)

Kind: instance method of ConditionLab

Param Type
event *

conditionLab._onResetForm(event)

Reset form handler

Kind: instance method of ConditionLab

Param Type
event *

conditionLab._onSaveClose(event)

Save and Close handler

Kind: instance method of ConditionLab

Param Type
event *

conditionLab._onClickMacroConfig(event)

Macro Config button click handler

Kind: instance method of ConditionLab

Param Type
event *

conditionLab._onClickTriggerConfig(event)

Trigger Config button click handler

Kind: instance method of ConditionLab

Param Type
event *

conditionLab._hasMapChanged()

Checks the updatedMap property against the initial map

Kind: instance method of ConditionLab

conditionLab._hasPropertyChanged(propertyName, original, comparison) ⇒ Boolean

Checks a given propertyName on an original and comparison object to see if it has changed

Kind: instance method of ConditionLab

Param Type
propertyName *
original *
comparison *

ConditionLab.defaultOptions

Get options for the form

Kind: static property of ConditionLab

ConditionLab._onRender(app, html, data)

Condition Lab Render handler

Kind: static method of ConditionLab

Param Type
app *
html *
data *

ConditionLab._onRenderDialog(app, html, data)

Render dialog hook handler

Kind: static method of ConditionLab

Param Type
app *
html jQuery
data *

EnhancedConditionMacroConfig

Enhanced Condition Macro Config Application

Kind: global class

enhancedConditionMacroConfig.getData() ⇒ Object

Gets data for template rendering

Kind: instance method of EnhancedConditionMacroConfig
Returns: Object - data

enhancedConditionMacroConfig._updateObject(event, formData)

Update Object on Form Submission

Kind: instance method of EnhancedConditionMacroConfig

Param Type
event *
formData *

EnhancedConditionMacroConfig.defaultOptions

defaultOptions

Kind: static property of EnhancedConditionMacroConfig

EnhancedConditionTriggerConfig

Enhanced Condition Trigger Config Application

Kind: global class

enhancedConditionTriggerConfig.getData() ⇒ Object

Gets data for template rendering

Kind: instance method of EnhancedConditionTriggerConfig
Returns: Object - data

enhancedConditionTriggerConfig._updateObject(event, formData)

Update Object on Form Submission

Kind: instance method of EnhancedConditionTriggerConfig

Param Type
event *
formData *

EnhancedConditionTriggerConfig.defaultOptions

defaultOptions

Kind: static property of EnhancedConditionTriggerConfig

EnhancedConditions

Builds a mapping between status icons and journal entries that represent conditions

Kind: global class

EnhancedConditions._onReady()

Ready Hook handler Steps:

  1. Get default maps
  2. Get mapType
  3. Get Condition Map
  4. Override status effects

Kind: static method of EnhancedConditions

EnhancedConditions._onPreUpdateToken(scene, update, options, userId)

Handle PreUpdate Token Hook. If the update includes effect data, add an option for the update hook handler to look for

Kind: static method of EnhancedConditions

Param Type
scene *
update *
options *
userId *

EnhancedConditions._onUpdateToken()

Hooks on token updates. If the update includes effects, calls the journal entry lookup

Kind: static method of EnhancedConditions

EnhancedConditions._onCreateActiveEffect(actor, update, options, userId)

Create Active Effect handler

Kind: static method of EnhancedConditions

Param Type
actor *
update *
options *
userId *

EnhancedConditions._onDeleteActiveEffect(actor, update, options, userId)

Create Active Effect handler

Kind: static method of EnhancedConditions

Param Type
actor *
update *
options *
userId *

EnhancedConditions._onUpdateCombat(combat, update, options, userId)

Update Combat Handler

Kind: static method of EnhancedConditions

Param Type
combat *
update *
options *
userId *

EnhancedConditions._onRenderChatMessage(app, html, data)

Render Chat Message handler

Kind: static method of EnhancedConditions
Todo

  • move to chatlog render?
Param Type
app *
html *
data *

EnhancedConditions._onRenderChatLog(app, html, data)

ChatLog render hook

Kind: static method of EnhancedConditions

Param Type
app *
html *
data *

EnhancedConditions._onRenderCombatTracker(app, html, data)

Kind: static method of EnhancedConditions

Param Type
app *
html *
data *

EnhancedConditions._processActiveEffectChange(effect, type)

Process the addition/removal of an Active Effect

Kind: static method of EnhancedConditions

Param Type Default Description
effect ActiveEffect the effect
type String create the type of change to process

EnhancedConditions.lookupEntryMapping(effectIds, [map])

Checks statusEffect icons against map and returns matching condition mappings

Kind: static method of EnhancedConditions

Param Type Default Description
effectIds Array | String A list of effectIds, or a single effectId to check
[map] Array [] the condition map to look in

EnhancedConditions.outputChatMessage()

Output one or more condition entries to chat

Kind: static method of EnhancedConditions
Todo

  • refactor to use actor or token

EnhancedConditions.\toggleDefeated(entities)

Marks a Combatants for a particular entity as defeated

Kind: static method of EnhancedConditions

Param Type Description
entities Actor | Token the entity to mark defeated
options.markDefeated Boolean an optional state flag (default=true)

EnhancedConditions.\removeOtherConditions(entity, conditionId)

For a given entity, removes conditions other than the one supplied

Kind: static method of EnhancedConditions

Param Type
entity *
conditionId *

EnhancedConditions._migrateConditionIds(conditionMap)

Migrates Condition Ids to be truly unique-ish

Kind: static method of EnhancedConditions

Param Type
conditionMap *

EnhancedConditions._processMacros(macroIds, entity)

Process macros based on given Ids

Kind: static method of EnhancedConditions

Param Type Default
macroIds *
entity *

EnhancedConditions.updateConditionTimestamps()

Update condition added/removed timestamps

Kind: static method of EnhancedConditions

EnhancedConditions._createLabButton(html)

Creates a button for the Condition Lab

Kind: static method of EnhancedConditions

Param Type Description
html Object the html element where the button will be created

EnhancedConditions._toggleLabButtonVisibility(display)

Determines whether to display the combat utility belt div in the settings sidebar

Kind: static method of EnhancedConditions
Todo:: extract to helper in sidekick class?

Param Type
display Boolean

EnhancedConditions._loadDefaultMap()

Returns the default maps supplied with the module

Kind: static method of EnhancedConditions
Todo:: map to entryId and then rebuild on import

EnhancedConditions._prepareMap(conditionMap)

Parse the provided Condition Map and prepare it for storage, validating and correcting bad or missing data where possible

Kind: static method of EnhancedConditions

Param Type
conditionMap *

EnhancedConditions._backupCoreEffects()

Duplicate the core status icons, freeze the duplicate then store a copy in settings

Kind: static method of EnhancedConditions

Param Type Description
condition String the condition being evaluated

EnhancedConditions.\lookupConditionById(conditionId, map)

Gets one or more conditions from the map by their id

Kind: static method of EnhancedConditions

Param Type Default Description
conditionName String the condition to get
map Array the condition map to search

EnhancedConditions._updateStatusEffects(conditionMap)

Updates the CONFIG.statusEffect effects with Condition Map ones

Kind: static method of EnhancedConditions

Param Type
conditionMap *

EnhancedConditions._prepareStatusEffects(conditionMap) ⇒ Array

Converts the given Condition Map (one or more Conditions) into a Status Effects array or object

Kind: static method of EnhancedConditions
Returns: Array - statusEffects

Param Type
conditionMap Array | Object

EnhancedConditions._prepareActiveEffects(effects)

Prepares one or more ActiveEffects from Conditions for placement on an actor

Kind: static method of EnhancedConditions

Param Type Description
effects Object | Array a single ActiveEffect data object or an array of ActiveEffect data objects

EnhancedConditions.getConditionIcons()

Returns just the icon side of the map

Kind: static method of EnhancedConditions

EnhancedConditions.getIconsByCondition(condition)

Retrieves a condition icon by its mapped name

Kind: static method of EnhancedConditions

Param Type
condition *

EnhancedConditions.getConditionsByIcon(icon)

Retrieves a condition name by its mapped icon

Kind: static method of EnhancedConditions

Param Type
icon *

EnhancedConditions.mapFromJson(json)

Parses a condition map JSON and returns a map

Kind: static method of EnhancedConditions

Param Type
json *

EnhancedConditions.getDefaultMap(system)

Returns the default condition map for a given system

Kind: static method of EnhancedConditions

Param Type
system *

EnhancedConditions.buildDefaultMap(system)

Builds a default map for a given system

Kind: static method of EnhancedConditions
Todo

  • #281 update for active effects
Param Type
system *

Kind: static method of EnhancedConditions
See: EnhancedConditions#addCondition

Param Type
...params any

EnhancedConditions.addCondition(conditionName, [entities])

Applies the named condition to the provided entities (Actors or Tokens)

Kind: static method of EnhancedConditions

Param Type Default Description
conditionName Array.<String> | String the name of the condition to add
[entities] Array.<Actor> | Array.<Token> | Actor | Token one or more Actors or Tokens to apply the Condition to
[options.warn] Boolean true raise warnings on errors
[options.allowDuplicates] Boolean false if one or more of the Conditions specified is already active on the Entity, this will still add the Condition. Use in conjunction with replaceExisting to determine how duplicates are handled
[options.replaceExisting] Boolean false whether or not to replace existing Conditions with any duplicates in the conditionName parameter. If allowDuplicates is true and replaceExisting is false then a duplicate condition is created. Has no effect is keepDuplicates is false

Example

// Add the Condition "Blinded" to an Actor named "Bob". Duplicates will not be created.
game.succ.addCondition("Blinded", game.actors.getName("Bob"));

Example

// Add the Condition "Charmed" to the currently controlled Token/s. Duplicates will not be created.
game.succ.addCondition("Charmed");

Example

// Add the Conditions "Blinded" and "Charmed" to the targeted Token/s and create duplicates, replacing any existing Conditions of the same names.
game.succ.addCondition(["Blinded", "Charmed"], [...game.user.targets], {allowDuplicates: true, replaceExisting: true});

EnhancedConditions.getCondition(conditionName, map)

Gets a condition by name from the Condition Map

Kind: static method of EnhancedConditions

Param Type Default
conditionName *
map *
options.warn *

EnhancedConditions.getConditions(entities) ⇒ Array

Retrieves all active conditions for one or more given entities (Actors or Tokens)

Kind: static method of EnhancedConditions
Returns: Array - entityConditionMap a mapping of conditions for each provided entity

Param Type Default Description
entities Actor | Token one or more Actors or Tokens to get Conditions from
options.warn Boolean output notifications

Example

// Get conditions for an Actor named "Bob"
game.succ.getConditions(game.actors.getName("Bob"));

Example

// Get conditions for the currently controlled Token
game.succ.getConditions();

EnhancedConditions.getActiveEffect(condition)

Gets the Active Effect data (if any) for the given condition

Kind: static method of EnhancedConditions

Param Type
condition *

EnhancedConditions.getConditionEffects(entities, map, warn) ⇒ Map | Object

Gets any Active Effect instances present on the entities (Actor/s or Token/s) that are mapped Conditions

Kind: static method of EnhancedConditions
Returns: Map | Object - A Map containing the Actor Id and the Condition Active Effect instances if any

Param Type Default Description
entities String the entities to check
map Array the Condition map to check (optional)
warn Boolean output notifications

EnhancedConditions.hasCondition(conditionName, entities, [options]) ⇒ Boolean

Checks if the provided Entity (Actor or Token) has the given condition

Kind: static method of EnhancedConditions
Returns: Boolean - hasCondition Returns true if one or more of the provided entities has one or more of the provided conditions

Param Type Default Description
conditionName String | Array the name/s of the condition or conditions to check for
entities Actor | Token | Array the entity or entities to check (Actor/s or Token/s)
[options] Object options object
[options.warn] Boolean whether or not to output notifications

Example

// Check for the "Blinded" condition on Actor "Bob"
game.succ.hasCondition("Blinded", game.actors.getName("Bob"));

Example

// Check for the "Charmed" and "Deafened" conditions on the controlled tokens
game.succ.hasCondition(["Charmed", "Deafened"]);

EnhancedConditions.removeCondition(entities, conditionName, options)

Removes one or more named conditions from an Entity (Actor/Token)

Kind: static method of EnhancedConditions

Param Type Default Description
entities Actor | Token One or more Actors or Tokens
conditionName String the name of the Condition to remove
options Object options for removal
options.warn Boolean whether or not to raise warnings on errors

Example

// Remove Condition named "Blinded" from an Actor named Bob
game.succ.removeCondition("Blinded", game.actors.getName("Bob"));

Example

// Remove Condition named "Charmed" from the currently controlled Token, but don't show any warnings if it fails.
game.succ.removeCondition("Charmed", {warn=false});

EnhancedConditions.removeAllConditions(entities)

Removes all conditions from the provided entities

Kind: static method of EnhancedConditions

Param Type Default Description
entities Actors | Tokens One or more Actors or Tokens to remove Conditions from
options.warn Boolean output notifications

Example

// Remove all Conditions on an Actor named Bob
game.succ.removeAllConditions(game.actors.getName("Bob"));

Example

// Remove all Conditions on the currently controlled Token
game.succ.removeAllConditions();

PanSelect

Pan/Select Gadget

Kind: global class

PanSelect._onPreUpdateCombat(combat, update, options, userId)

Pre-update Combat handler

Kind: static method of PanSelect

Param Type
combat *
update *
options *
userId *

PanSelect._onUpdateCombat(combat, update, options, userId)

Update Combat handler

Kind: static method of PanSelect

Param Type
combat *
update *
options *
userId *

PanSelect._updateHandler(combatant)

Determines if a pan/select workflow should begin

Kind: static method of PanSelect

Param Type
combatant Combatant

PanSelect._checkPlayerPan(token)

Determine if the player should be panned

Kind: static method of PanSelect

Param Type
token *

PanSelect._checkGMPan(token)

Determine if the GM should be panned

Kind: static method of PanSelect

Param Type
token *

PanSelect._panToToken(token)

Pans user to the token

Kind: static method of PanSelect

Param Type
token *

PanSelect._checkGMSelect(token)

Determine if the current combatant token should be selected for the GM

Kind: static method of PanSelect

Param Type
token *

PanSelect._checkPlayerSelect(token)

Determines if Player can select the current combatant token

Kind: static method of PanSelect

Param Type
token *

PanSelect._checkObserverDeselect(token)

Determines if tokens should be deselected when a non-owned Combatant has a turn

Kind: static method of PanSelect

Param Type
token *

RerollInitiative

Rerolls initiative for all combatants

Kind: global class

RerollInitiative._onPreUpdateCombat(combat, update, options)

Kind: static method of RerollInitiative

Param Type
combat *
update *
options *

RerollInitiative._onUpdateCombat(combat, update, options, userId)

Update Combat handler

Kind: static method of RerollInitiative

Param Type
combat *
update *
options *
userId *

Sidekick

Provides helper methods for use elsewhere in the module (and has your back in a melee)

Kind: global class

Sidekick.createSUCCDiv(html)

Creates the SUCC div in the Sidebar

Kind: static method of Sidekick

Param Type
html *

Sidekick.getSetting(key) ⇒ Object

Get a single setting using the provided key

Kind: static method of Sidekick
Returns: Object - setting

Param Type
key *

Sidekick.getAllSettings() ⇒ Array

Get all SUCC settings

Kind: static method of Sidekick
Returns: Array - settings

Sidekick.setSetting(key, value, awaitResult) ⇒ Promise | ClientSetting

Sets a single game setting

Kind: static method of Sidekick

Param Type Default
key *
value *
awaitResult * false

Sidekick.registerSetting(key, metadata) ⇒ ClientSettings.register

Register a single setting using the provided key and setting data

Kind: static method of Sidekick

Param Type
key *
metadata *

Sidekick.registerMenu(key, metadata) ⇒ ClientSettings.registerMenu

Register a menu setting using the provided key and setting data

Kind: static method of Sidekick

Param Type
key *
metadata *

Sidekick.registerAllSettings(settingsData) ⇒ Array

Register all provided setting data

Kind: static method of Sidekick

Param Type
settingsData *

Sidekick.getSystemChoices()

Gets the default game system names stored in the constants butler class

Kind: static method of Sidekick

Sidekick.fetchJsons(source, path)

Use FilePicker to browse then Fetch one or more JSONs and return them

Kind: static method of Sidekick

Param Type
source *
path *

Sidekick.fetchJson(file) ⇒

Fetch a JSON from a given file

Kind: static method of Sidekick
Returns: JSON | null

Param Type
file File

Sidekick.validateObject(object) ⇒ Boolean

Validate that an object is actually an object

Kind: static method of Sidekick

Param Type
object Object

Sidekick.convertMapToArray(map)

Convert any ES6 Maps/Sets to objects for settings use

Kind: static method of Sidekick

Param Type
map Map

Sidekick.getKeyByValue(object, value)

Retrieves a key using the given value

Kind: static method of Sidekick

Param Type Description
object Object - the object that contains the key/value
value *

Sidekick.getInverseMap()

Inverts the key and value in a map

Kind: static method of Sidekick
Todo:: rework

Sidekick.handlebarsHelpers()

Adds additional handlebars helpers

Kind: static method of Sidekick

Sidekick.jQueryHelpers()

Adds additional jquery helpers

Kind: static method of Sidekick

Sidekick.getTerms(arr)

Takes an array of terms (eg. name parts) and returns groups of neighbouring terms

Kind: static method of Sidekick

Param Type
arr *

Sidekick.escapeRegExp(string) ⇒ String

Escapes regex special chars

Kind: static method of Sidekick
Returns: String - escapedString

Param Type
string String

Sidekick.coerceType(target, type) ⇒ *

Attempts to coerce a target value into the exemplar's type

Kind: static method of Sidekick
Returns: * - coercedValue

Param Type
target *
type *

Sidekick.buildFormData(FD)

Builds a FD returned from FormDataExtended into a formData array Borrowed from foundry.js

Kind: static method of Sidekick

Param Type
FD *

Sidekick.createId(existingIds)

Get a random unique Id, checking an optional supplied array of ids for a match

Kind: static method of Sidekick

Param Type
existingIds *

Sidekick.toTitleCase(string)

Sets a string to Title Case

Kind: static method of Sidekick

Param Type
string *

Sidekick.replaceOnDocument(pattern, string, param2)

Parses HTML and replaces instances of a matched pattern

Kind: static method of Sidekick

Param Type
pattern *
string *
param2 *

Sidekick.getTextNodesIn(el) ⇒ jQuery

Get text nodes in a given element

Kind: static method of Sidekick

Param Type
el *

Sidekick.generateUniqueSlugId(string, idList)

For a given string generate a slug, optionally checking a list of existing Ids for uniqueness

Kind: static method of Sidekick

Param Type
string *
idList *

Sidekick.getNameFromFilePath(path) ⇒ String

For a given file path, find the filename and then apply title case

Kind: static method of Sidekick

Param Type
path String

Sidekick.getFirstGM() ⇒ GM | null

Gets the first GM user

Kind: static method of Sidekick
Returns: GM | null - a GM object or null if none found

Sidekick.isFirstGM() ⇒ Boolean

Checks if the current user is the first active GM

Kind: static method of Sidekick

Sidekick.getActorFromUuid(uuid)

Gets an Actor from an Actor or Token UUID

Kind: static method of Sidekick

Param Type
uuid *

Sidekick.findArrayDuplicates(arrayToCheck, filterProperty) ⇒ Array

Filters an array down to just its duplicate elements based on the property specified

Kind: static method of Sidekick

Param Type
arrayToCheck *
filterProperty *

Sidekick.identifyArrayDuplicatesByProperty(arrayToCheck, filterProperty) ⇒ Boolean

Returns true for each array element that is a duplicate based on the property specified

Kind: static method of Sidekick

Param Type
arrayToCheck *
filterProperty *

Sidekick.loadTemplates()

Loads templates for partials

Kind: static method of Sidekick

Sidekick.getDocumentOwners(document) ⇒ Array

Retrieves all the owners of a given document

Kind: static method of Sidekick

Param Type
document *

Signal

Initiates module classes (and shines a light on the dark night sky)

Kind: global class

Signal.lightUp()

Registers hooks

Kind: static method of Signal

Signal._onSocket(message)

Socket dispatcher

Kind: static method of Signal

Param Type
message *

TemporaryCombatantForm

Kind: global class

temporaryCombatantForm.activateListeners(html)

Activate listeners for the form

Kind: instance method of TemporaryCombatantForm

Param Type
html *

Triggler

Handles triggers for other gadgets in the module... or does it?!

Kind: global class

Triggler._createTrigglerButton(html)

Creates a button for the Condition Lab

Kind: static method of Triggler

Param Type Description
html Object the html element where the button will be created

Triggler._executeTrigger(trigger, target)

Executes a trigger calling predefined actions

Kind: static method of Triggler

Param Type
trigger *
target *

Triggler._processUpdate(entity, update, entryPoint1, entryPoint2)

Processes an entity update and evaluates triggers

Kind: static method of Triggler

Param Type
entity *
update *
entryPoint1 *
entryPoint2 *

Triggler._onUpdateActor(actor, update, options, userId)

Update Actor handler

Kind: static method of Triggler

Param Type
actor *
update *
options *
userId *

Triggler._onUpdateToken(token, update, options, userId)

Update token handler

Kind: static method of Triggler

Param Type
token Token
update *
options *
userId *

Triggler._onRenderMacroConfig(app, html, data)

Kind: static method of Triggler

Param Type
app *
html *
data *

KNOWN_GAME_SYSTEMS

Stores information about well known game systems. All other systems will resolve to "other"

Kind: global constant

Param Type
html *

getData(options)

Get data for template rendering

Kind: global function

Param Type
options *

_updateObject(formData)

Override default update object behaviour

Kind: global function

Param Type
formData *