複数のビューポートを提供するプラグイン – RS_MultipleViewports.js

タイトル
This plugin provides the multiple viewports.
作者名
ヘルプ
=============================================================================
Activate/Deactivate
=============================================================================

This plugin command that can activate the multiple viewports.
If you call this plugin command, You can be using the multiple viewports.
- MultipleViewport Enable

This plugin command that can disable the multiple viewports.
Note that any drawing object of previous viewport is not removed in memory.
So if you will need it, you try to call the MultipleViewport ClearImage plugin command.
If you call this plugin command, You can be using original stage renderer.
- MultipleViewport Disable

=============================================================================
Shake
=============================================================================

This is the plugin command you can set the power of the viewport shake.
'shakePower' can set a value as the number what you want.
- MultipleViewport StartShake shakePower

This is the plugin command you can set the end of the viewport shake.
- MultipleViewport EndShake

=============================================================================
Image
=============================================================================

This is the plugin command you can set an image to certain viewport.
('ViewID' is number between 1 and 4)
- MultipleViewport Image ViewID ImageName

This is the plugin command you can delete the image to certain viewport.
('ViewID' is number between 1 and 4)
- MultipleViewport ClearImage ViewID

=============================================================================
Video playback
=============================================================================
Note that the file type should set .webm when using a node webkit in test play
'viewID' is the number between 1 and 4.
'szSrc' indicates an video name from the movies directory.
'loop' allows you to set with the 'true' or 'false'.
You can repeat the video via this value. (If you are omitted this loop value, its video will only play once.)

This is the plugin command that can set the video to certain viewport.
- MultipleViewport Video viewID szSrc loop

This command moves back x seconds from current video position.
- MultipleViewport MoveBackSeconds viewID second

This command moves forward x seconds from current video position.
- MultipleViewport MoveForwardSeconds viewID second

This is the plugin command can play the video to certain viewport.
- MultipleViewport PlayVideo viewID

This is the plugin command can stop the video to certain viewport.
- MultipleViewport StopVideo viewID

This is the plugin command can pause the video to certain viewport.
- MultipleViewport PauseVideo viewID

This is the plugin command can remove the video to certain viewport.
- MultipleViewport ClearVideo viewID

=============================================================================
Display Position
=============================================================================
This plugin command allows you to change a display position of the viewport
'viewID' is the number between 1 and 4.
If 'EventID' is same as -1, the viewport target will set as the game player.
if not, it will set as certain event.

- MultipleViewport Target viewID EventID

=============================================================================
Changle Log
=============================================================================
2016.06.13 (v1.0.0) - First Release.
2016.08.24 (v1.1.0) - Now RPG Maker MV 1.3.0 or more is supported.
2016.08.24 (v1.1.2) - Added Plugin Commands
2016.08.25 (v1.1.4) - Added the functions that sets an image of certain viewport.
2016.09.30 (v1.1.5) - Added the function that plays an video of certain viewport.
2016.10.01 (v1.1.6) - Added the rendering code that is compatible with the canvas mode.
2016.10.20 (v1.1.7) - Fixed the issue that is not working in RMMV 1.3.2
2016.10.23 (v1.1.8) - Fixed the issue that the video frame is not updated in PIXI 4.0.3
2016.11.24 (v1.1.9) - Now this can change the viewport orientation such as portrait, landscape and can also set the number of viewports.
2016.11.26 (v1.2.0) - Added certain code to remove the texture from memory.
2017.02.08 (v1.2.1) :
- Added new function that can change the inner position of certain viewport
- Fixed the bug that video is played in duplicate.
- Fixed an issue that image is set in duplicate.
- Converted some sources to ES6
2018.12.25 (v1.2.2) :
- Fixed the issue that couldn't set a number of viewports less than 4.
- Fixed the issue that causes the size error when setting a number of viewports less than 4.
パラメータ
param Maximum viewport
type number
desc Sets the number of viewports to display on the screen.
default 4
min 2
max 4

param Viewport orientation
type boolean
desc Sets the viewport to portrait orientation.
default true

ライセンス表記
You can repeat the video via this value. (If you are omitted this loop value, its video will only play once.)
The MIT License
Copyright (c) 2016 biud436
Free for commercial and non commercial use.

紹介ページ https://github.com/biud436/MV/blob/master/RS_MultipleViewports.js