じ☆ve冰风 发表于 2026-7-18 10:59:54

EST - PHONE MENU MZ

■ Information      ╒══════════════════════════╛
EST - PHONE MENU MZ
Version: 1.1
By Estriole
File name: .js

■ Introduction   ╒══════════════════════════╛
This plugin is Menu Engine Plugin. Which mean we
can set our own Menu Command... what happen when
we click on those Command... this Menu Engine also
build with Phone as it's template... but this Menu
Engine could also work using other form of Menu.

■ Features         ╒══════════════════════════╛
- fully customizeable Menu Engine
- Customizeable Graphic Menu
- Simulate Phone as Menu (if using existing template)
- Customize what you want when clicking the command
- Custom include / enable command
- rescue image when image missing (or when you have not made it yet)
- ability to swap command image to selected version when hovered.
- MOSTLY WORKING common event execute inside the scene

■ Changelog       ╒══════════════════════════╛
                Code:       
   v1.1 2020.11.22         > Minor RegEx Fix to recognize more than one space in
                           filename when rescuing images.
                           > failsafe when user save the plugin as different name
   v1.0 2020.10.22         > Finish the plugins

■ Plugin Download ╒══════════════════════════╛
https://www.dropbox.com/s/4gv3tq6fxusgf4k/EST_PHONE_MENU_MZ.js?dl=0

addon:
EST_PHONE_ADDON_BASICMENU.js
add basic menu scene that FITS on the phone
EST - PHONE ADDON - BASIC MENU

■ Information      ╒══════════════════════════╛ EST - PHONE ADDON - BASIC MENU Version: 1.0 By Estriole File name: .js■ Introduction   ╒══════════════════════════╛ This plugin is addon to EST - PHONE MENU MZ this plugin recreate all the basic menu to fits the phone scene■ Features...

                                        forums.rpgmakerweb.com                               




■ Screenshots ╒══════════════════════════╛
Phone Menu




Using Other Image beside Phone



■ Demo ╒══════════════════════════╛
https://www.dropbox.com/sh/vhf1jhpydfr3vne/AACXtmj85frlI81AAmAcK50Ha?dl=0
click download to download the entire folder.

later i might upload another demo when not using Phone Image.

■ How to use       ╒══════════════════════════╛
1> install the plugin
2> set the plugin parameters (see ■ Parameter below for more info)
also setup your menu command there.
    a> first set the folder path where you will put the images
    b> set the phone image, phoneBG image, and rescueBG image
    c> add the menu command (with all the condition and script when chosen)

    only if you're using your own image...
    d> set PhoneXpos, PhoneYpos, phoneBGXoffset, phoneBGYoffset value
    e> set your phoneBGWidth and PhoneBGHeight
    this is required because image loaded asynchronously.
    f> set your command image pixel size
    this is required because image loaded asynchronously.

3> place the all the phone image in the folder you specify at Plugin parameter
make sure to at least place the phoneIMG image, rescueBG image, rescueCommand image
the rest of the image you can add gradually when you working on your project.
4> your phone menu engine is now working.
5> you can also set the Scene_Phone to replace Scene_Menu in plugin parameter
6> you can also set the Scene_PhoneAddonLoad to replace Scene_Load in plugin parameter

still confused? check the demo instead.

you can also use plugin commands to modify few things... check the plugin command
section for more info.

■ Dependencies   ╒══════════════════════════╛
none

■ Compatibility    ╒══════════════════════════╛
MZ is new engine... so i cannot say for sure.
but it should be compatible with most things.

■ Parameters       ╒══════════════════════════╛
Spoiler!Main Settings
>> folderPath
    ~ folder inside img/ where you place the phone files

>> phoneIMG
    ~ Image name of the Phone base

>> phoneBG
    ~ Image name of the Phone background

>> rescueBG
    ~ Image name for rescuing when BG not exist

>> Rescue Alert Method
      When rescuing the image... how you want to be warned...
      @option console.log() -> write on console
      @option alert() -> throw alert

>> Phone as SceneMenu.
    ~ If set to true... this will open Scene_Phone instead of Scene_Menu
      when opening menu from map / event.

!Phone Position Settings
>> phoneXpos
    ~ Position X of the phone

>> phoneYpos
    ~ Position Y of the phone

>> phoneBGXoffset
    ~ offset x coordinate of the Phone Background

>> phoneBGYoffset
    ~ offset y coordinate of the Phone Background

>> phoneBGWidth
    ~ Width of the Phone Background (in pixel)

>> phoneBGHeight
    ~ Height of the Phone Background (in pixel)

!Phone Content
>> Phone Command Settings
    ~ Set your menu title, condition to be included, condition to be enabled,
      and what script execute when chosen.
      it's a list of struck that you can add easily.
      + Command Title -> The name of the command. the image will also use this name.
      + Script -> Script that executed when choosing that command.
      + Include Condition -> Condition so this command included. left it blank if
                               you want it always include
      + Enable Condition -> Condition so this command enabled. left it blank if you
                               want it always enabled

>> rescueCommand
    ~ Rescue Command Image when icon command didn't have image
      (ex: still in Development)

>> Menu Max Cols
    ~ How many column your command menu

>> Menu Max Rows
    ~ How many rows your icon command

>> Menu Command Height
    ~ Height of your icon command (can be the same with your image size or add
      some space for title below it)

>> Center Icon Command
    ~ true => command icon image centered. requires to fill the command size parameter below.

>> Command Image Width
    ~ your icon image Width in pixel. will be calculated for centering the icon

>> Phone Draw Titles
    ~ true => draw command title, false => if your image already clear what the command do

>> Phone Dynamic Icon
    ~ true => when highlight command. will change to "_select" version of it.

>> Phone Hide Cursor
    ~ true => the cursor highlight will not shown... (combine with Dynamic Icon)

!advancedSettings
>> Custom Function
    ~ Custom function you can define to included inside the Phone Scene.
    can be called with this.yourFunction() later.

■ Plugin Commands       ╒══════════════════════════╛
>> Call Scene_Phone
    ~ calling Scene_Phone.

>> Change Phone Image
    ~ Changing the phone image
      + ImageName: Name of your Image files (without .png)

>> Change Phone Background Image
    ~ Changing the phone background image
      + ImageName: Name of your Image files (without .png)

>> Phone Replace Menu
    ~ Scene_Phone replace Scene_Menu or not?.
      + Phone as SceneMenu: If set to true... this will open Scene_Phone instead of Scene_Menu

>> Add Phone Command
    ~ adding new phone command.
      + Command Title: The name of the command. the image will also use this as filename.
      + Script: Script that executed when choosing that command.
      + Include Condition: Condition so this command included. left it blank if you want it always include
      + Enable Condition: Condition so this command enabled. left it blank if you want it always enabled

>> Modify Phone Command
    ~ Modify existing phone command.
      + Command Title: The name of the command. the image will also use this as filename.
      + Script: Script that executed when choosing that command.
      + Include Condition: Condition so this command included. left it blank if you want it always include
      + Enable Condition: Condition so this command enabled. left it blank if you want it always enabled



■ License          ╒══════════════════════════╛
Free to use in all project (except the one containing pornography)
as long as i credited (ESTRIOLE).

■ Extra Credit ╒══════════════════════════╛
None

■ Support          ╒══════════════════════════╛
While I'm flattered and I'm glad that people have been sharing and
asking support for scripts in other RPG Maker communities, I would
like to ask that you please avoid posting my scripts outside of where
I frequent because it would make finding support and fixing bugs
difficult for both of you and me.

If you're ever looking for support, I can be reached at the following:
[ http://forums.rpgmakerweb.com/ ]
pm me : estriole

also support to compatibility with VisuStella is not possible.
because their code is obfuscated thus cannot be read by human.
if there's incompatibility... please ask VisuStella Team.

■ Donate╒══════════════════════════╛
If you want to support my work you can donate here
https://www.makerdevs.com/profile/estriole

■ Author's Notes   ╒══════════════════════════╛
None


本贴来自国际rpgmaker官方论坛作者:estriole处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/est-phone-menu-mz.129119/
页: [1]
查看完整版本: EST - PHONE MENU MZ