An open library of RPG Maker MZ plugins, powered by the community.

PGMZ - The Community-Driven Plugin Library for RPG Maker MZ

MZ plugins

NRP Game Window Size - NRP_GameWindowSize.js

Plugin desc : v1.051 Resize the entire game window & add to the options.

License :
・Copyright: Retained
・Commercial Use: Allowed
・Modification: Allowed
・Redistribution: Allowed
・Details: See Download Page / In-plugin documentation

Author : Takeshi Sunagawa (http://newrpg.seesaa.net/)

Website : https://github.com/NewRPGProject/MZMV_Plugin/blob/main/NRP_GameWindowSize.js

Desc page : http://newrpg.seesaa.net/article/475413177.html

Download Page : https://raw.githubusercontent.com/NewRPGProject/MZMV_Plugin/main/NRP_GameWindowSize.js

File name : NRP_GameWindowSize.js

Help of plugin :

Change the window size of the entire game.
 * It also adds the ability to change the window size to the options screen.
 * 
 * ◆Main features
 * - Window size can be set independently from resolution.
 * - Window size change function can be added to the options screen.
 *   If changed, the change will be reflected at startup thereafter.
 * 
 * Note that it does not make sense on mobile or browser activation.
 * This plugin is automatically disabled.
 * 
 * -------------------------------------------------------------------
 * [Notice (for MZ)]
 * -------------------------------------------------------------------
 * ◆About the window size immediately after starting the game
 * The window size at the moment the game is launched
 * cannot be changed by this plugin.
 * Normally, the window size should switch after a beat.
 * 
 * In MZ, the window size immediately after startup is determined
 * by the "Screen Width" and "Screen Height" in "System 2".
 * These are values shared with the pixel size handled in the game.
 * 
 * ※It is somewhat odd that pixel size and window size are determined
 *   by the same item, but there is currently no way around this.
 * 
 * There is no perfect solution, but the following is a tentative one.
 * 
 * If you set the "screenWidth" and "screenHeight" in the plugin parameters,
 * you can change only the pixel size of the game,
 * independently of the "System 2" setting values.
 * In this case, set the window size to the "System 2" setting value.
 * 
 * However, since the System 2 configuration values are also referenced
 * in the editor, the display area of the Troop screen in the database
 * is reduced as a side effect.
 * This is not a problem if the Troop screen is not used
 * at the end of development or in ARPGs.
 * 
 * In addition, the horizontal scroll bar may appear
 * when the screen size is reduced, but this can be suppressed
 * by adding the following three lines to "[Project]¥css¥game.css"
 * 
 * body::-webkit-scrollbar {
 *    display:none;
 * }
 * 
 * ※Please note that game.css is a file
 *   that may be overwritten when the main unit is upgraded.
 * 
 * -------------------------------------------------------------------
 * [Notice (for MV)]
 * -------------------------------------------------------------------
 * ◆About the window size immediately after starting the game
 * In MV, the window size at the moment of startup can be set
 * in "package.json" directly under the project.
 * If you want to change the standard window size,
 * it is better to set this value as well.
 * This can suppress the behavior of the window size
 * switching immediately after startup.
 * 
 * ◆Conflict with YEP_CoreEngine.
 * YEP_CoreEngine has a specification
 * that forces the window size to match the resolution.
 * By placing this plugin underneath the YEP_CoreEngine,
 * you can only resize the window appropriately.
 * 
 * -------------------------------------------------------------------
 * [Terms]
 * -------------------------------------------------------------------
 * There are no restrictions.
 * Modification, redistribution freedom, commercial availability,
 * and rights indication are also optional.
 * The author is not responsible,
 * but will deal with defects to the extent possible.
 * 
 * @------------------------------------------------------------------
 * @ [Plugin Parameters]
 * @------------------------------------------------------------------
 * @param windowWidth
 * @type string
 * @default Graphics.width
 * @desc The width of the window (exclude frame) as the standard.
 * The default value is the same as the resolution.
 * 
 * @param windowHeight
 * @type string
 * @default Graphics.height
 * @desc The height of the window (exclude frame) as the standard.
 * The default value is the same as the resolution.
 * 
 * @param screenWidth
 * @type string
 * @desc Screen width.
 * Overrides the value of System2 only when entered.
 * 
 * @param screenHeight
 * @type string
 * @desc Screen height.
 * Overrides the value of System2 only when entered.
 * 
 * @param <option>
 * 
 * @param useOption
 * @parent <option>
 * @type boolean
 * @default true
 * @desc Add the ability to change the window size to the options screen.
 * 
 * @param optionPosition
 * @parent <option>
 * @type number
 * @default 2
 * @desc The position to insert an item into the options screen.
 * The default value is 2, which is under Command Remember.
 * 
 * @param optionName
 * @parent <option>
 * @type string
 * @default Window Size
 * @desc Set the display name on the options screen.
 * 
 * @param optionDispType
 * @parent <option>
 * @type select
 * @option % Style @value percent
 * @option Width*Heigth Style @value size
 * @default percent
 * @desc Set the display type on the options screen.
 * 
 * @param windowSizeMin
 * @parent <option>
 * @type string
 * @default 50
 * @desc The minimum window size that can be changed.
 * The default value is 50(%).
 * 
 * @param windowSizeMax
 * @parent <option>
 * @type string
 * @default 150
 * @desc The maximum window size that can be changed.
 * The default value is 150(%).
 * 
 * @param windowSizeOffset
 * @parent <option>
 * @type string
 * @default 25
 * @desc The unit of change in window size.
 * The default value is 25(%).
 * 
 * @param <cooperation>
 * 
 * @param overWriteSceneManagerRun
 * @parent <cooperation>
 * @type boolean
 * @default false
 * @desc Override the SceneManager.run function. This function is used to disable window resizing by YEP_CoreEngine.

スポンサードリンク

-MZ plugins

Copyright© PGMZ - The Community-Driven Plugin Library for RPG Maker MZ , 2026 All Rights Reserved.