加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 怠惰な騎士 于 2018-11-5 17:24 编辑
2018-11-5 17:24:48 更新
5楼有更合适的插件,需要的话请不要忘记查看5楼的插件。
5楼跳转链接: http://rpg.blue/forum.php?mod=re ... amp;fromuid=2665438
原贴
- 没有在安卓和iOS上测试过
- 需要额外的适配,原生的窗口显示规则、战斗场景中角色的位置均需要额外调整
- 游戏启动时默认会是816*624分辨率,可以手动将“{RMMV根目录}\nwjs-win\package.json”中的width和height分别设置为1296、758来改变默认启动分辨率
//============================================================================= // ResizeWindow.js //============================================================================= /*: * @plugindesc Resize window size & content size to 1280*720. * @author LazyKnight * * @help This plugin does not provide plugin commands. * * - Set "{RMMV_ROOT_DIRECTORY}\nwjs-win\package.json" width & height to 1296 & 758 for fit new window size. * - Didn't test on Android & iOS yet. */ void function() { SceneManager._screenWidth = 1280; SceneManager._screenHeight = 720; SceneManager._boxWidth = 1280; SceneManager._boxHeight = 720; window.resizeTo(1296, 758); // ignore this if manual changed "package.json" width & height. }();
//=============================================================================
// ResizeWindow.js
//=============================================================================
/*:
* @plugindesc Resize window size & content size to 1280*720.
* @author LazyKnight
*
* @help This plugin does not provide plugin commands.
*
* - Set "{RMMV_ROOT_DIRECTORY}\nwjs-win\package.json" width & height to 1296 & 758 for fit new window size.
* - Didn't test on Android & iOS yet.
*/
void function() {
SceneManager._screenWidth = 1280;
SceneManager._screenHeight = 720;
SceneManager._boxWidth = 1280;
SceneManager._boxHeight = 720;
window.resizeTo(1296, 758); // ignore this if manual changed "package.json" width & height.
}();
|