设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 102|回复: 0

[转载发布] Minimap Plugin

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    7959

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    29925
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    38778

    灌水之王

    发表于 前天 08:11 | 显示全部楼层 |阅读模式
    Hi there! This is my first (Technically second since I re-wrote the older code), plugin for RPG Maker MV. I've been working a lot on it and have improved it since its original release, thus I give you this Minimap Plugin. I will say this for people who make plugins, you might not wanna read my code... while the performance is about as optimized as I can get it, reducing the amount of looping required by storing things in arrays and only drawing the map once, etc, the code might look a bit messy, so if you're picky about that try to avoid looking at my code  



            Download:


            Bug was fixed which hid the minimap. View attachment UPP_MINIMAP.js

            FEATURES


    • Automatic mini-map drawing (optional), draws the map based on the collision map.
    • Optional Region drawing for height-map effects or various other mini-map art.
    • Event Display for events that have the note-tag <mm_setColor: color>
    • Option to change the way the player or events are drawn, from square to circle shape
    • Events can have a beacon effect applied to them via a plugin command.
    • Endless event colors, as each events color is set via the note tag, but you're also able to change an events color via plugin command as well. 
    • Pressing Q (Customizable) will toggle the zoom mode based on your settings.
    • Optional border drawing around the minimap for decoration, it uses the window border.
    • Optional display name for the area using the note tag <mm_areaname: Name> in the map properties.
    • Option to change display name via plugin command
    • Font color and size can be set via the settings.

            Screenshot:
             

    Spoiler













            Help:

                    Code:       
    1. This plugin will display a  mini-map for your game.
    2. Custom Name Location - This parameter lets you define the
    3. location of the minimaps name display.
    4. Possible locations:
    5. ABOVE, TOP, MID, BOTTOM, BELOW, ABOVERIGHT, TOPRIGHT, MIDRIGHT,
    6. BOTTOMRIGHT, BELOWRIGHT, ABOVELEFT, TOPLEFT, MIDLEFT,
    7. BOTTOMLEFT, BELOWLEFT
    8. NOTE TAGS
    9. In map properties, if you add <mm_areaname: Name> to the notes (Where
    10. Name is the name of the area), you'll set the display name for the
    11. mini map.
    12. If you want an event to be displayed on the minimap, you can type
    13. this in the events note tag.
    14. <mm_setColor: rgba(0, 255, 0, 0.8)>
    15. Alternatively, you can use rgb and hex as a color source as well.
    16. PLUGIN COMMANDS
    17. upp_minimap - set values to show / hide to hide or show the minimap.
    18. || Example:
    19. ||  upp_minimap show
    20. upp_m_useCM - This decides rather or not to use the default
    21.                                 Collision Mapping or strictly use region drawing.
    22. || Example:
    23. ||  upp_m_useCM true
    24. || Example:
    25. ||  upp_m_hideEventDrawing 1
    26. upp_m_showplayer - set values to true / false to hide or show the player.
    27. || Example:
    28. ||  upp_m_showplayer true
    29. upp_m_showEvents - set values to true / false to hide or show the events.
    30. || Example:
    31. ||  upp_m_showEvents true
    32. upp_m_border - set values to true / false to hide or show the border
    33. || Example:
    34. ||  upp_m_border true
    35. upp_m_name - Setting this to true/false will show or hide the minimap
    36. display name, however, using the set option, you can change the area
    37. name display.
    38. || Example:
    39. ||  upp_m_border true
    40. ||  upp_m_border set Map Name
    41. upp_m_setScale - sets the minimap size.
    42. || Example:
    43. ||  upp_m_setScale 5
    44. upp_m_setZoom - sets the minimap zoom size.
    45. || Example:
    46. ||  upp_m_setZoom 10
    47. upp_m_changeImpassColor - Changes the impassable tile color.
    48. || Example:
    49. ||  upp_m_changeImpassColor #11aaff
    50. ||  upp_m_changeImpassColor rgb(25, 150, 255)
    51. ||  upp_m_changeImpassColor rgba(25, 150, 255, 0.5);
    52. upp_m_changePassColor - Changes the passable tile color.
    53. || Example:
    54. ||  upp_m_changePassColor #11aaff
    55. ||  upp_m_changePassColor rgb(25, 150, 255)
    56. ||  upp_m_changePassColor rgba(25, 150, 255, 0.5);
    57. upp_m_relocate - Relocates the minimap.
    58. || Example:
    59. ||  upp_m_relocate 24 24
    60. upp_m_namePosition - Changes where the minimap name is drawn.
    61. || Example:
    62. ||  upp_m_namePosition TOP
    63. upp_m_nameOffset - Changes the map names X/Y Offset.
    64. || Example:
    65. ||  upp_m_nameOffset 24 24
    66. upp_m_nameBGColor - Changes the BG color of the name window.
    67. || Example:
    68. ||  upp_m_nameBGColor #11aaff;
    69. ||  upp_m_nameBGColor rgb(25, 150, 255);
    70. ||  upp_m_nameBGColor rgba(25, 150, 255, 0.5);
    71. upp_m_setRegion - Changes the color of the specified region ID.
    72. || Example:
    73. ||  upp_m_setRegion 1 color #11aaff;
    74. ||  upp_m_setRegion 1 color rgb(25, 150, 255);
    75. ||  upp_m_setRegion 1 color rgba(25, 150, 255, 0.5);
    76. upp_m_regionClear - you can clear a range of regions, clear a
    77.                                           single region, or clear all the regions to
    78.                                           stop them from being drawn on the minimap.
    79. || Example:
    80. ||  upp_m_regionClear single 1
    81. ||  upp_m_regionClear range 1 4
    82. ||  upp_m_regionClear all
    83. upp_m_hideEventDrawing - Hides the event from the minimap by setting
    84.                                                    its color to rgba(0, 0, 0, 0).
    85. || Example:
    86. ||  upp_m_hideEventDrawing 1
    87. upp_m_playerCircle - Setting this to true/false will set if the player
    88.                                            icon is a circle or a square.
    89. || Example:
    90. ||  upp_m_playerCircle true
    91. upp_m_eventCircle - Same thing as upp_m_playerCircle, only with events.
    92. upp_m_setBeacon - Use this to turn an event into a blinking beacon.
    93.                   Order: upp_m_setBeacon eventId show expand_speed
    94.                   start_opacity opacity_fade_speed delay
    95. || Example:
    96. ||  upp_m_setBeacon 2 true 0.2 255 4 60
    97. upp_m_changePlayerColor - Changes the color of the player indicator.
    98. || Example:
    99. ||  upp_m_changePlayerColor rgba(150, 255, 255, 0.5)
    100. upp_m_changeEventColor - Changes the color of the event.
    101. || Example:
    102. ||  upp_m_changeEventColor 1 rgba(150, 255, 255, 0.5)
    103. REGION COLORS:
    104. By default, the region colors are set to NONE which makes the map
    105. not render them. Simply change NONE to a hex color, rgb, or rgba.
    106. Example: rgba(0, 0, 0, 0.5)
    107. There are a total of 255 regions, so be sure to use ones that you
    108. aren't already using for other scripts, or at least find a way to
    109. make them co-exist if you want to add a little extra detail to your
    110. mini-maps.
    复制代码


            NOTE:
            Please report any bugs you happen to find. Hopefully I'll be able to fix them, I'm still kind of fresh to making Plugins, but I have some tiny experience in javascript.


    本贴来自国际rpgmaker官方论坛作者:TheUnproPro处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/minimap-plugin.66443/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-8-1 01:34 , Processed in 0.063463 second(s), 53 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表