Description
This plugin allows you to use pre-made images as minimaps, track the player’s position in real-time, and place event markers.Features
✔ Mini-Map Display: Assign a unique mini-map image to each map using simple notetags.✔ Real-Time Tracking: The player’s position updates dynamically as they move.
✔ Event Markers: Mark NPCs, chests, or points of interest using event notetags.
✔ Customizable Appearance: Adjust mini-map size, position, and scaling per map.
✔ Mini-Map Toggle: Easily show or hide the mini-map via script calls.
Code:
* === Instructions ===
* 1. Assign a mini-map image to a map using the <Minimap:filename> notetag.
* 2. (Optional) Customize the mini-map size using <MinimapWidth:X> and <MinimapHeight:Y>.
* 3. Events with the <MinimapMarker> notetag will appear as markers.
* 4. (Optional) Scale event markers with <MarkerScale:X>.
* 5. You can toggle the mini-map at any time using a script call.
*
* === Notetag Examples ===
* <Minimap:MyMapImage> // Uses "MyMapImage.png" from the Pictures folder.
* <MinimapWidth:300> // Sets mini-map width to 300 pixels.
* <MinimapHeight:300> // Sets mini-map height to 300 pixels.
* <MinimapMarker> // Makes an event appear as a marker.
* <MarkerScale:0.8> // Sets this marker's scale to 80% of default.
*
* === Script Calls ===
* MiniMap.toggle(); // Toggles the mini-map on or off.
*
* === Yanfly's Main Menu Manager Setup (optional) ===
* If you're using **YEP_MainMenuManager**, follow these steps to add a minimap toggle option to your menu:
*
* 1. Open your YEP_MainMenuManager plugin settings.
* 2. Add a new entry in the "Menu Items" section.
* 3. Use the following settings:
*
* - Name: 'Minimap: ' + (MiniMap.visible ? 'on' : 'off')
* - Symbol: miniMapToggle
* - Show: true
* - Enabled: true
* - Ext: none
* - Main Bind: this.toggleMiniMap.bind(this);
* - Actor Bind: none
*
* === Terms of Use ===
* - Free for use in non-commercial projects
* - Free for use in commercial projects, but it would be nice to let me know
* - Please provide credits to Qwazori