Skip to content

Commit

Permalink
sequencer beta
Browse files Browse the repository at this point in the history
  • Loading branch information
averrin committed Jun 29, 2022
1 parent 348c67e commit 6fdf263
Show file tree
Hide file tree
Showing 21 changed files with 1,712 additions and 552 deletions.
10 changes: 7 additions & 3 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"readme": "https://github.com/averrin/director/blob/master/README.md",
"bugs": "https://github.com/averrin/director/issues",
"changelog": "https://github.com/averrin/director/releases/latest/",
"version": "0.1.0",
"version": "0.2.0",
"minimumCoreVersion": "0.8.6",
"compatibleCoreVersion": "9",
"esmodules": [
Expand All @@ -32,10 +32,14 @@
],
"system": [
],
"dependencies": [{"name": "colorsettings"}, {"name": "tagger"}],
"dependencies": [
{"name": "tagger"},
{"name": "sequencer"},
{"name": "warpgate"}
],
"socket": false,
"manifest": "https://github.com/averrin/director/releases/latest/download/module.json",
"download": "https://github.com/averrin/director/releases/download/0.1.0/module.zip",
"download": "https://github.com/averrin/director/releases/download/0.2.0/module.zip",
"protected": false,
"coreTranslation": false,
"library": false
Expand Down
63 changes: 63 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@
],
"dependencies": {
"@typhonjs-fvtt/runtime": "^0.0.14",
"class-transformer": "^0.5.1",
"consola": "^2.15.3",
"daisyui": "^2.17.0",
"reflect-metadata": "^0.1.13",
"svelte": "^3.46.0",
"svelte-color-picker": "^1.0.7",
"svelte-icons": "^2.1.0",
"svelte-select": "^5.0.0-beta.14",
"svelte-sortable": "^0.1.0",
"svelte-sortable-list": "^1.1.0",
"svelte-tags-input": "^2.9.2",
"uuid": "^8.3.2"
Expand Down
120 changes: 99 additions & 21 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,110 @@ export const moduleId = "director";
// import { moduleId, SETTINGS } from '../constants.js';

export const SETTINGS = {
GLOBAL_TAGS: "global-tags",
TAG_COLORS: "tag-colors",
SHOW: "show",
UI_SCALE: "ui-scale",
RESOLUTION: "resolution",
GLOBAL_TAGS: "global-tags",
TAG_COLORS: "tag-colors",
SHOW: "show",
UI_SCALE: "ui-scale",
RESOLUTION: "resolution",
SEQUENCES: "sequences",
SHOW_SEQUENCER: "show-sequencer",
};

export const HOOKS = [
'controlToken',
'updateToken',
'updateActor',
'targetToken',

'canvasReady',
'createToken',
'deleteToken',
'deleteActor',
// 'renderTokenActionHUD',
'controlToken',
'updateToken',
'updateActor',
'targetToken',

'canvasReady',
'createToken',
'deleteToken',
'deleteActor',
// 'renderTokenActionHUD',
];


export const actionTypes = [
{value: 'execute', label: 'Execute trigger', group: 'Active Tiles', require: "matt"},
{value: 'toggle', label: 'Toggle visibility', group: 'Common'},
{value: 'hide', label: 'Hide', group: 'Common'},
{value: 'show', label: 'Show', group: 'Common'},
{value: 'kill', label: 'Kill', group: 'Tokens'},
{value: 'revive', label: 'Revive', group: 'Tokens'},
{ id: 'execute', label: 'Execute trigger', group: 'Active Tiles', require: "matt" },
{ id: 'toggle', label: 'Toggle visibility', group: 'Common' },
{ id: 'hide', label: 'Hide', group: 'Common' },
{ id: 'show', label: 'Show', group: 'Common' },
{ id: 'kill', label: 'Kill', group: 'Tokens' },
{ id: 'revive', label: 'Revive', group: 'Tokens' },
];

export const stepSpecs = [
{ id: 'effect', label: 'Effect' },
{ id: 'wait', label: 'Wait', args: [{ type: 'int', label: 'ms' }] },
{ id: 'macro', label: 'Macro', args: [{ type: 'macro', label: 'name' }] },
];
export const modifierSpecs = [
{ id: 'file', group: 'effect', args: [{ type: 'effect_file', label: 'file' }], cat: "Required" },
{ id: 'atLocation', group: 'effect', args: [{ type: 'position', label: 'pos' }], cat: "Required" },

{ id: 'scaleToObject', group: 'effect', args: [{ type: 'float', label: 'scale' }], cat: "Scale" },
{ id: 'scale', group: 'effect', args: [{ type: 'float', label: 'scale' }], cat: "Scale" },
{ id: 'scaleIn', group: 'effect', args: [{ type: 'float', label: 'scale' }, { type: 'int', label: 'ms' }], cat: "Scale" }, // {ease: "easeInOutCubic"})
{ id: 'scaleOut', group: 'effect', args: [{ type: 'float', label: 'scale' }, { type: 'int', label: 'ms' }], cat: "Scale" }, // {ease: "easeInCubic"})

{ id: 'stretchTo', group: 'effect', args: [{ type: 'position', label: 'pos' }] },
{ id: 'attachTo', group: 'effect', args: [{ type: 'token', label: 'pos' }] },
{ id: 'rotateTowards', group: 'effect', args: [{ type: 'position', label: 'pos' }] },
{ id: 'moveTowards', group: 'effect', args: [{ type: 'position', label: 'pos' }] },
{ id: 'moveSpeed', group: 'effect', args: [{ type: 'int', label: 'speed' }] },

{ id: 'repeats', group: 'effect', args: [{ type: 'int', label: 'count' }, { type: 'int', label: 'delay min' }, { type: 'int', label: 'delay max' }] },
{ id: 'randomizeMirrorY', group: 'effect', args: [] },
{ id: 'belowTokens', group: 'effect', args: [] },
{ id: 'duration', group: 'effect', args: [{ type: 'int', label: 'ms' }] }, //1500, {ease: "easeOutCubic", delay: 500})
{ id: 'fadeIn', group: 'effect', args: [{ type: 'int', label: 'ms' }] }, //1500, {ease: "easeOutCubic", delay: 500})
{ id: 'fadeOut', group: 'effect', args: [{ type: 'int', label: 'ms' }] },
{ id: 'rotate', group: 'effect', args: [{ type: 'int', label: 'deg' }, { type: 'int', label: 'ms' }] }, // {ease: "easeInOutCubic"})
{ id: 'rotateIn', group: 'effect', args: [{ type: 'int', label: 'deg' }, { type: 'int', label: 'ms' }] }, // {ease: "easeInOutCubic"})
{ id: 'rotateOut', group: 'effect', args: [{ type: 'int', label: 'deg' }, { type: 'int', label: 'ms' }] }, // {ease: "easeInCubic"})
{ id: 'waitUntilFinished', group: 'effect', args: [{ type: 'int', label: 'ms' }] },
{ id: 'async', group: 'effect', args: [] },
{ id: 'locally', group: 'effect', args: [] },
{ id: 'noLoop', group: 'effect', args: [{ type: 'bool', label: 'val' }] },
{ id: 'snapToGrid', group: 'effect', args: [{ type: 'bool', label: 'val' }] },
{ id: 'zeroSpriteRotation', group: 'effect', args: [{ type: 'bool', label: 'val' }] },
{ id: 'persist', group: 'effect', args: [{ type: 'bool', label: 'val' }] },
{ id: 'delay', group: 'effect', args: [{ type: 'int', label: 'ms' }] },
{ id: 'startTime', group: 'effect', args: [{ type: 'int', label: 'ms' }] },
{ id: 'startTimePerc', group: 'effect', args: [{ type: 'float', label: 'val' }] },
{ id: 'endTime', group: 'effect', args: [{ type: 'int', label: 'ms' }] },
{ id: 'endTimePerc', group: 'effect', args: [{ type: 'float', label: 'val' }] },
{ id: 'extraEndDuration', group: 'effect', args: [{ type: 'int', label: 'ms' }] },
{ id: 'timeRange', group: 'effect', args: [{ type: 'int', label: 'ms' }, { type: 'int', label: 'ms' }] },

];

export const argSpecs = [
{
id: "position", options: [
{ value: "#controlled.first", label: "First Controlled" },
{ value: "#controlled.last", label: "Last Controlled" },
{ value: "#target.first", label: "First Target" },
{ value: "#target.last", label: "Last Target" },
{ value: "#manual", label: "Manual" },
]
},
{
id: "token", options: [
{ value: "#controlled.first", label: "First Controlled" },
{ value: "#controlled.last", label: "Last Controlled" },
{ value: "#target.first", label: "First Target" },
{ value: "#target.last", label: "Last Target" },
]
},
{
id: "bool", options: [
{ value: true, label: "True" },
{ value: false, label: "False" },
]
},
{ id: "effect_file" },
{ id: "int" },
{ id: "float" },
{ id: "macro" },
];
1 change: 1 addition & 0 deletions src/init.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import MainApplication from './view/MainApplication.js';
import 'reflect-metadata';

import { moduleId, SETTINGS } from "./constants.js";
import { initSettings, setting } from "./modules/settings.js";
Expand Down
Loading

0 comments on commit 6fdf263

Please sign in to comment.