Allows GM to make simple transitions to show players before navigating to new screen. Can be used for narrative effect. Can now be used with macros to create transitionless Transitions. And journal entries can now be used to generate a Transition.
Originally idea and development by Will Saunders
/**
* Transition.macro(options, showMe)
*/
Transition.macro({
sceneID: false,
content:"TEST MACRO",
fontColor:'#ffffff',
fontSize:'28px',
bgImg:'', // pass any relative or absolute image url here.
bgPos:'center center',
bgSize:'cover',
bgColor:'#333333',
bgOpacity:0.7,
fadeIn: 400, //how long to fade in
delay:5000, //how long for transition to stay up
fadeOut: 400, //how long to fade out
audio: "", //path to audio file
skippable:true, //Allows players to skip transition with a click before delay runs out.
gmHide: true, // hide the transistion on other windows logged in as a GM
gmEndAll: true, // when the GM clicks to end the transition - end for everyone
showUI: false, // Show the User Interface elements to all players allowing them to interact with character sheets etc
}, true ) //show to the triggering user
To play a transition without a scene activation, simple pass false
as the sceneID in the data object.
Support Foundry V9 - thanks pchouzenoux!
Added Show User Interface (showUI) option to show the user interface to players during the transition UI always shows for the GM
Fix z-index on the editor form! ugh
Fix z-index so transition sits on top of everything
New helper for macros - Transition.macro(options, showMe)
Use new WebAudio API for sound (0.8.2+)
Added option to hide transition on other GM broswer windows (default true)
Added option to end the transition when the GM ends iy (deafult true)
Refactor to clean up global namespace
Refactor sceneID to be part of options object for simplictity
FVTT 0.8.2+ compatability
Play as Transition from Journal top bar can be hidden in the module settings
Set initial volume of the audio file
0.8 Compatability. Minor fixes and clean up
0.7.5 Fix. Pull Request merge to fade out audio.
Full credit to @WillS for the orgianl idea and developent of Scene Transitions:
You can now create and send a transition to all players using a macro. There is now a 'Play as Transition' option on the context menu for Journal Entries and it's sheet header. This takes the content and image from the journal and makes a transition out of it with the default settings.
Background size and positioning is now configurable.
Fixed some bugs.
Hotfix: Socket emit transition did not have preview mode set.
Removed preview from form window and instead create live preview transition in the background.
Alpha Release Click Create Transition on scene context menu. Add text, audio, and background image. Set length to show players and whether you want players to be able to close it.