Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 58 additions & 12 deletions Twins/Twins.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,64 @@ var Twins = Twins || (function() {
schemaVersion = 0.1,

props = [
'left', 'top', 'width', 'height', 'rotation', 'layer', 'isdrawing',
'flipv', 'fliph', 'bar1_value', 'bar1_max', 'bar1_link',
'bar2_value', 'bar2_max', 'bar2_link', 'bar3_value', 'bar3_max',
'bar3_link', 'aura1_radius', 'aura1_color', 'aura1_square',
'aura2_radius', 'aura2_color', 'aura2_square', 'tint_color',
'statusmarkers', 'showplayers_name', 'showplayers_bar1',
'showplayers_bar2', 'showplayers_bar3', 'showplayers_aura1',
'showplayers_aura2', 'playersedit_name', 'playersedit_bar1',
'playersedit_bar2', 'playersedit_bar3', 'playersedit_aura1',
'playersedit_aura2', 'light_radius', 'light_dimradius',
'light_otherplayers', 'light_hassight', 'light_angle',
'light_losangle', 'lastmove'
'left', // X Position
'top', // Y Position
'width', // Token Width
'height', // Token Height
'rotation', // Token Rotation
'layer', // What layer the token is on
'isdrawing', // If the token is a drawing
'flipv', // Vertical mirroring
'fliph', // Horizontal Mirroring
'bar1_value', // Current value of Bar 1
'bar1_max', // Max value of Bar 1
'bar1_link', // What stat Bar 1 is linked to.
'showplayers_bar1', // Should players see Bar 1
'playersedit_bar1', // Can players edit Bar 1?
'bar2_value', 'bar2_max', 'bar2_link',
'showplayers_bar2','playersedit_bar2', // Same for Bar 2
'bar3_value', 'bar3_max', 'bar3_link',
'showplayers_bar3', 'playersedit_bar3', // And Bar 3
'aura1_radius', // Aura 1 Radius
'aura1_color', // Aura 1 Color
'aura1_square', // Is Aura 1 a square?
'showplayers_aura1', // Should players see Aura 1
'playersedit_aura1', // Can players edit Aura 1
'aura2_radius', 'aura2_color', 'aura2_square',
'showplayers_aura2', 'playersedit_aura2',//Same for Aura 2
'tint_color', // The token's tint
'statusmarkers', // What status markers the token has
'showplayers_name', // Can players see the name?
'playersedit_name', // Can players edit the name?
'lastmove', // The token's last move (I think)
// Old Dynamic Lighting
'light_radius', // Emits light to this distance
'light_dimradius', // Emits dim light to this distance
'light_otherplayers', // Can other players see the light
'light_hassight', // Does the token have light?
'light_angle', // What angle is the light projected to?
'light_losangle', // What angle can the token see?
// New Dynamic Lighting
'has_bright_light_vision', // Toggles Vision (Bool)
'has_night_vision', // Toggles night vision (bool)
'night_vision_distance', // How far night vision works. (Int)
'emits_bright_light', // Toggles light emission (bool)
'bright_light_distance', // How far the bright light emits (int)
'emits_low_light', // Toggles dim light emission (bool)
'low_light_distance', // How far the dim light emits (int)
// New Dynamic Lighting: Directional stuff.
'has_limit_field_of_vision', // Limited FOV (bool)
'limit_field_of_vision_center', // Center of FOV (int)
'limit_field_of_vision_total', // FOV Size (int)
'has_limit_field_of_night_vision', // Limited night vision FOV (bool)
'limit_field_of_night_vision_center', // Center of night FOV (int)
'limit_field_of_night_vision_total', // Night FOV size (int)
'has_directional_bright_light', // What it says (bool)
'directional_bright_light_center', // Center of bright light (int)
'directional_bright_light_total', // Total bright light size (int)
'has_directional_dim_light', // Again, what it says. (bool)
'directional_dim_light_center', // Center of dim light (int)
'directional_dim_light_total' // Total dim light size (int)
],


Expand Down