Difference between revisions of "Script:Map Lock"
From Roll20 Wiki
Andreas J. (Talk | contribs) (update to 4.6, add instructions) |
Andreas J. (Talk | contribs) m |
||
Line 1: | Line 1: | ||
{{script overview | {{script overview | ||
|name=MapLock | |name=MapLock | ||
− | |author= | + | |author=[[Aaron|Aaron C. M.]] |
|version=0.4.6 | |version=0.4.6 | ||
|dependencies={{api repository link|IsGM}} | |dependencies={{api repository link|IsGM}} | ||
|lastmodified=2020-05-22}} | |lastmodified=2020-05-22}} | ||
− | Provides locking of graphics to prevent moving/resizing/rotating them. Also highlighting. | + | Provides locking of graphics to prevent you from accidentally moving/resizing/rotating them. Also highlighting. |
'''MapLock''' provides a way to lock individual graphics in place. This prevents them from being moved, resized, or rotated by reverting any of those changes that are made to them. It also provides tinting of locked items. | '''MapLock''' provides a way to lock individual graphics in place. This prevents them from being moved, resized, or rotated by reverting any of those changes that are made to them. It also provides tinting of locked items. | ||
Line 21: | Line 21: | ||
* <code>toggle-highlight</code> -- Turns on or off the red tinting of locked graphics. | * <code>toggle-highlight</code> -- Turns on or off the red tinting of locked graphics. | ||
* <code>--help</code> -- Shows the help | * <code>--help</code> -- Shows the help | ||
− | |||
− | |||
=== Changelog === | === Changelog === | ||
{{changelog version|0.4.2|2020-05-22|* [https://github.com/Roll20/roll20-api-scripts/pull/979 link]}} | {{changelog version|0.4.2|2020-05-22|* [https://github.com/Roll20/roll20-api-scripts/pull/979 link]}} | ||
{{changelog version|0.1|2015-02-28|* Release}} | {{changelog version|0.1|2015-02-28|* Release}} | ||
+ | |||
+ | ==See Also== | ||
+ | * [[API:Script Index]] (partial) list of other APIs | ||
+ | * [[TokenLock]] - specifically preventing players from moving | ||
+ | <br> | ||
+ | <br> |
Revision as of 17:47, 4 April 2021
Version: 0.4.6
Last Modified: 2020-05-22
Code: MapLock
Dependencies: IsGM
Conflicts: None
Provides locking of graphics to prevent you from accidentally moving/resizing/rotating them. Also highlighting.
MapLock provides a way to lock individual graphics in place. This prevents them from being moved, resized, or rotated by reverting any of those changes that are made to them. It also provides tinting of locked items.
Note: Even though it's called MapLock, it works for any graphics on any layers.
Commands
!map-lock < lock | unlock | toggle-highlight | --help >
Adjusts locking options for selected graphics.
-
lock
-- Adds these graphics to the list of locked items. -
unlock
-- Removes these graphics from the list of locked items. -
toggle-highlight
-- Turns on or off the red tinting of locked graphics. -
--help
-- Shows the help
Changelog
v0.4.2 (2020-05-22)
v0.1 (2015-02-28)
- Release
See Also
- API:Script Index (partial) list of other APIs
- TokenLock - specifically preventing players from moving