[MV][MZ] Phileas's Update Pointer Position

Plugin name: Phileas's Pointer Picture Trigger

Author: Phileas

Version: 1.2.0 for MZ, 1.1.2 for MV

Release date:
1.0.0 - ???
1.1.0 - 2024.December.31
1.1.1 - 2025.January.01
1.1.2 - 2025.February.27
1.2.0 - 2025.June.10


Plugin description:
The plugin allows to write the current position of the pointer (cursor) to variables.
You can also turn on the switch if the values have changed.

It can be useful, for example, when designing your own title screen at events.
At least, that's what the plugin was originally created for.

The plugin provides one command - switchPlugin.
It allows you to enable or disable the plugin.

Code
MV
MZ

License
This plugin is released under MIT license.
This means that you can freely use the plugin in non-commercial and commercial games and even edit it.
But be sure to include me in the credits!
Suggestion: you may want to patch DataManager.createGameObjects to reset the plugin values to their defaults on new game. 👋

Doing so would also let you skip setting your plugin values on load if the save doesn't include your plugin's data, since loadGame calls createGameObjects immediately before extractSaveContents. That would allow loading saves that were made before the plugin was added.
to reset the plugin values to their defaults on new game
This is not necessary, it already works that way.
That would allow loading saves that were made before the plugin was added.
That's the thing, DataManager.createGameObjects is called BEFORE DataManager.extractSaveContents. Therefore, assignments in DataManager.extractSaveContents will erase data from DataManager.createGameObjects. So it won't change anything.

I have certain thoughts about how a plugin should behave when loading outdated saves. I will not change this code until there are specific requests from plugin users.


UPD!
1.1.1

At the request of the user, I updated the logic of loading the plugin status from the save file.
1.1.2
Fixed a bug that caused the plugin to not fully disable using the command.
1.2.0
Fixed compatibility with the web environment.

Original thread: https://forums.rpgmakerweb.com/threads/mv-mz-phileass-update-pointer-position.174318/