|
2 | 2 | * @plugindesc Basic plugin for manipulating important parameters.. |
3 | 3 | * @author RM CoreScript team |
4 | 4 | * |
| 5 | + * @help |
| 6 | + * Basic plugin for manipulating important parameters.. |
| 7 | + * There is no plugin command. |
| 8 | + * |
5 | 9 | * @param cacheLimit |
6 | 10 | * @desc The upper limit of images' cached size (MPixel) |
7 | 11 | * @default 20 |
|
14 | 18 | * @desc The resolution of screen height |
15 | 19 | * @default 624 |
16 | 20 | * |
| 21 | + * @pram scaleFactor |
| 22 | + * @desc Scale window to (screen size * value). |
| 23 | + * @default 1 |
| 24 | + * |
17 | 25 | * @param changeWindowWidthTo |
18 | 26 | * @desc If set, change window width to this value |
19 | 27 | * |
|
33 | 41 | * @plugindesc 基本的なパラメーターを設定するプラグインです。 |
34 | 42 | * @author RM CoreScript team |
35 | 43 | * |
| 44 | + * @help |
| 45 | + * 基本的なパラメーターを設定するプラグインです。 |
| 46 | + * このプラグインにはプラグインコマンドはありません。 |
| 47 | + * |
36 | 48 | * @param cacheLimit |
37 | 49 | * @desc 画像のメモリへのキャッシュの上限値 (MPix) |
38 | 50 | * @default 20 |
|
45 | 57 | * @desc 画面サイズの高さ |
46 | 58 | * @default 624 |
47 | 59 | * |
| 60 | + * @pram scaleFactor |
| 61 | + * @desc ウインドウを、画面サイズの指定された値分拡大・縮小します |
| 62 | + * @default 1 |
| 63 | + * |
48 | 64 | * @param changeWindowWidthTo |
49 | 65 | * @desc 値が設定された場合、ウインドウの幅を指定した値に変更 |
50 | 66 | * |
|
67 | 83 |
|
68 | 84 | var parameters = PluginManager.parameters('Community_Basic'); |
69 | 85 | var cacheLimit = toNumber(parameters['cacheLimit'], 20); |
| 86 | + var scaleFactor = toNumber(parameters['scaleFactor'], 1); |
70 | 87 | var screenWidth = toNumber(parameters['screenWidth'], 816); |
71 | 88 | var screenHeight = toNumber(parameters['screenHeight'], 624); |
72 | 89 | var renderingMode = parameters['renderingMode'].toLowerCase(); |
73 | 90 | var alwaysDash = parameters['alwaysDash'].toLowerCase() === 'on'; |
74 | 91 | var windowWidth = toNumber(parameters['changeWindowWidthTo'], 0); |
75 | 92 | var windowHeight = toNumber(parameters['changeWindowHeightTo'], 0); |
76 | 93 |
|
77 | | - if(screenWidth !== SceneManager._screenWidth && !windowWidth) { |
78 | | - windowWidth = screenWidth; |
| 94 | + if(scaleFactor !== 1 && !windowWidth) { |
| 95 | + windowWidth = screenWidth * scaleFactor; |
79 | 96 | } |
80 | 97 |
|
81 | | - if(screenHeight !== SceneManager._screenHeight && !windowHeight) { |
82 | | - windowHeight = screenHeight; |
| 98 | + if(scaleFactor !== 1 && !windowHeight) { |
| 99 | + windowHeight = screenHeight * scaleFactor; |
83 | 100 | } |
84 | 101 |
|
85 | 102 | ImageCache.limit = cacheLimit * 1000 * 1000; |
|
0 commit comments