//=============================================================================
// NRP_GameWindowSize.js
//=============================================================================
/*:
* @target MV MZ
* @plugindesc v1.05 Resize the entire game window & add to the options.
* @author Takeshi Sunagawa (http://newrpg.seesaa.net/)
* @url http://newrpg.seesaa.net/article/475413177.html
*
* @help 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