Fixes:
- Default scene config is now properly applied on new scenes
- Physical Gridsize can now be applied to all scenes when accessed through the 'Set View' control button
Fixes:
- Default user settings are no longer applied to GM users
- Removed debug message that would occasionally spam the console
Fixes:
- Forgot to add the css folder to the release, preventing the module from functioning.
Additions:
- Added a scene configurator to allow easy configuration of the Lock View settings, including copying settings from one scene to another and configuring the default configuration for new scenes. Accessible through a button in the scene configuration and the module settings
- Added default user settings which are applied to new or unconfigured users. By default this enables 'Enable' and 'Viewbox'
- Canvas can now be rotated from the Lock View menu in the Scene Configuration and using the 'Set View' dialog (thanks to Dylancyclone)
Fixes:
- Fixed 'hide control button' not hiding the control button in all cases
- Fixed error that would pop up when 'hide control button' was enabled and the scene configuration was closed
- Hiding UI elements now only sets the element to invisible, preventing other elements from shifting around
Other:
- Made compatible with Foundry V11, dropped compatibility with V9
- Changed 'Collapse Sidebar on Scene Load' to 'Sidebar on Scene Load' and made it a selection between 'No Change', 'Collapse' and 'Expand'
Fixes:
- Fixed error related to canvas.blur, which prevented the canvas from loading in certain situations
- Fixed errors and warnings when boundingbox was active while panlock was not, and a controlled token moved outside the view (which should cause the canvas to pan automatically)
- Fixed compatibility warnings when editing drawings (for bounding box purposes)
Additions:
- Added the option for players to control the module through control buttons. This can be enabled in the user configuration with the 'control' setting
- When using the 'Edit Viewbox' functionality, zooming and panning will only be affected when you hover your mouse over the user's viewbox (it used to affect all users)
- Added the UI (un)hide hotkey to the core keybinding menu. Defaults to Alt + U
Other:
- Improved the documentation and naming of things (mainly related to the user config). Please not that the old 'control' setting is renamed to 'enable'
- Made compatible with Foundry v10, dropped compatibility with Foundry v8
Fixes:
- Previous update broke the User Configuration if a user had not been configured before
Fixes:
- Fixed issue where zoom and pan lock would sometimes not be applied on scene load
- Fixed issue where switching from a scene with UI elements hidden to a scene with 'Hide UI Elements on Sidebar Collapse' disabled would not always show all UI elements
- Fixed issue where in the User Configuration, if an override was enabled, it also showed the setting as enabled for individual users
- Added 'Hide Control Button' setting in the module settings
- View no longer resets to the 'Autoscale' setting after interacting with the sidebar
- Fixed console error when the Stream View module was enabled
- User Configuration now has a user role specific override. To, for example, enable control for all Trusted Players
- Made compatible with Foundry v9
- Dropped compatibility with Foundry v0.7
- In the last update, 'Hide UI Elements on Sidebar Collapse' accedentally allowed the GM to hide the sidebar (this could lock the GM out of controlling the software), this has been fixed
- Added the 'Ctrl+u' hotkey that can be used to hide/unhide the UI elements that have been configured in the scene config
- If 'Hide UI Elements was enabled', control buttons would not always hide if a scene was changed
- UI elements will now only be unhidden if they have been previously hidden by Lock View, allowing other modules to hide/unhide UI elements without Lock View interfering
- Lock View would cause the view to 'bounce' when combined with 'Always Centered'. This has been fixed.
- When configuring the initial view, dragging the box around could place tokens or templates, depending on what tool was selected, this has been fixed by automatically selecting the Lock View control
- A change in the previous update made the module incompatible with Foundry 0.7, this has been fixed.
- If 'Control' was enabled for the GM, and the sidebar was set to autohide, the GM would be locked out of all controls, essentially bricking the world until Lock View was disabled. To fix this, the sidebar can never be hidden for the GM
- Canvas layers were registered incorrectly, leading to module incompatibilities. This has been fixed thanks to SWW13 on Github
- Confirmed compatibility with Foundry 0.8.7
- Removed some console errors about the canvas not being initialized
- The previous update didn't properly stop all unintended resets to the initial view
- In the scene config, you can now set what UI elements to hide by pressing the button next to the 'Hide UI Elements on Sidebar Collapse' button
- Confirmed compatibility with Foundry 0.8.6
- Autoscaling using Physical Gridsize was broken
- 'Set Initial View' configuration wouldn't work if no initial view position was configured previously
- In the scene config, fixed the hint for 'Force Initial View'. It didn't state that it also works if autoscale is set to 'Physical Gridsize', and added description of the button
- If 'Hide UI on Sidebar Collapse' was on, scene navigation would still be displayed after the GM switched a Lock View function on or off
- Various actions, such as starting combat, would reset the view to the initial view position, if 'Force Initial View' was enabled
- Changes to the scene configuration would not automatically update the control button states
- In the 'Set Initial View' configuration, added the option to set the view to the current view of a connected player
- Fixed issue with module settings, where 'Screen Width' and 'Gridsize' wouldn't update immediately
- Increased the Z-index of the viewbox, so it's rendered on top of tiles, drawings, templates, etc
- Added support for Foundry 0.8.2
- Sidebar collapse option didn't work for players
- Fixed issue where, if 'Collapse Sidebar on Scene Load' was enabled, it would also collapse the sidebar whenever a control button was pressed
- Fixed issue where User Configuration would not be saved if no players were configured.
- Fixed issue with Pathfinder 2e, where the zoom and pan lock would only be applied on the first loaded scene
- Fixed "Cannot read property 'filter' of null" error on first load
- Added option to scene configuration to collapse the sidebar when a scene is loaded
- Added option to scene configuration to hide the UI when the sidebar is collapsed
- Removed popups to notify users of previous breaking setting changes, since I'm assuming all users have updated their settings already
- Added 'Automatic Fit (outside) autoscale option (makes sure the whole canvas can always be seen, instead of zooming in, like the 'Automatic Fit (inside) option does)
- Added hooks and hook listeners for external module integrations
- Fixed issue where dragging the viewbox would lock the GM's cursor in place
- Autoscale now resets when sidebar is opened/collapsed and pan lock and zoom lock are enabled
- Added a button to the scene configuration (next to 'Force Initial View') that opens a dialog to allow precise initial view position configuration
- Added a way to change the view of individual players by adding a move and scale icon on the top-left and bottom-right corners of the viewbox if the 'Edit Viewbox' control button is selected
- Added the name of the player above each viewbox
- Module settings for new non-GM players are automatically enabled
- Much of the code has been rewritten for improved stability and performance, and a lot of bugs have been fixed
- Enabling zoom and pan lock for the GM caused issues
- Fixed issues where scene config settings would not properly load
- Autoscale would not load in scene load
- Scene would not properly load to Initial View Position, even with module off for the user
- Option to exclude the sidebar area from the boundary box and autoscaling
- Option to blacken the background of the sidebar when sidebar area is excluded
- User config button in the module settings that replaces the 'Enable' and 'Force Enable' settings
- Help button in the module settings
- (Temporary) removed the hotkey lock override, since it no longer works
- Moved LockView settings in the Scene Config to its own section
- Disabling pan lock would not enable canvasPan on token move
- Viewbox is now being updated more reliably
- Fixed some problems with the viewbox when changing scenes
- Disabling the viewbox now also disables 'viewbox edit'
- Limit players' zoom and pan to stay within a drawn rectangle or the canvas
- Confirmed 0.7.9 support
- Fixed issue where module settings would not be saved
- Added automatic fit option that automatically selects horizontal or vertical fit so no non-image background will ever be seen
- Confirmed 0.7.8 support
- 0.7.6 support
- Manifest url fix
- PIXI memory leak
- Slight code clean-up
- Confirmed core 0.7.5 support
- PIXI memory leak (not fully fixed)
- Viewbox would sometimes not show
- Localization support
- Fit to screen option
- Force intial view option
- Confirmed core 0.7.3 support
- Multiple viewboxes can now be displayed at the same time
- Zoom and Pan Lock control buttons were broken
- Changed 'Reset View' control button to 'Set View', expanded it with more options
- Cleaned up code a bit
- Zoom and Pan lock now work when moving a token to the edge of the screen, and when teleporting (at least with dynamicFX)
- Changed behavior of zoom and pan lock control buttons
- Added 'edit viewbox' control button, which allows the GM to pan and zoom the client's screen
- Confirmation dialog box on 'Reset TV view' button
- Add warning when viewbox is switched on when no enabled clients are connected
- Refresh no longer needed after changing scene configuration
- Lock override keybinding
- Reset TV view button
- Pan lock override button
- Zoom lock override button
- Viewbox enable button
- Force enable tickbox
Additions:
Fixes:
Additions:
Other:
Fixes:
Fixes:
Fixes:
Fixes:
Other:
Fixes:
Additions:
Other:
Fixes:
Additions:
Fixes:
Fixes:
Other:
Fixes:
Fixes:
Fixes:
Additions:
Other:
Additions:
Additions:
Fixes:
Additions:
Fixes:
Additions:
Fixes:
Fixes:
Fixes:
Fixes:
Fixes:
Fixes:
Fixes:
Fixes:
Initial release