Introduction
Add 2 new screen stetch modes. They can be toggled with F3.
Original(contain) strech: the game screen stretches to fit inside the window while keeping its aspect ratio.
Full stretch: the game screen stetches to fit both width and height.
Cover strech: the game screen stretches to cover the entire window, while keeping its aspect ratio. The contents outside the window will be clipped.
No stretch: turn off stretch mode.
Terms
You can use it in any project, credit is not required.
How to Use
Save the code as a js file and put it in plugins directory. There are no parameters for this plugin, just turn it on in the editor.
JavaScript:
本贴来自国际rpgmaker官方论坛作者:utunnels处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/more-screen-stretch-modes-plugin.170575/