視差ユーティリティ – DhoomParallaxUtils.js

タイトル
Dhoom ParallaxUtils a - 04/01/2019 ~ 29/04/2023
作者名
ヘルプ
=============================================================================
• Changelogs
=============================================================================
v1.2 - 09/04/2019
- Changed: Allow lock position for looped layer.
- Changed: Auto Scroll X and Y has decimal numbers for slower scroll
speed.
- Added: "change" plugin command.
v1.1a - 06/01/2019
- Fixed: Blinking issue with animated layer that is caused by the bitmap
that is not yet loaded.

v1.1 - 04/01/2019
- Removed: Lock X to Map parameter.
- Removed: Lock Y to Map parameter.
- Changed: Layer Order parameter.
- Added: Global Switch parameter.
- Added: Layer Z parameter.
- Added: Lock Position parameter.
- Added: Layer Loop parameter.
- Added: setEvent plugin command.
- Added: setOpacity plugin command.
- Added: setEvent plugin command.

v1.0 - 01/01/2019
- Initial release.

=============================================================================
• Map Notetag
=============================================================================
<parallax: PRESETNAME, NAME[, MAXFRAME]>
- Add a new layer to the map.
- PRESETNAME: Preset Name in the Parallax Presets parameter.
- NAME: Base name that will be used for parallax filename, replacing %3.
- MAXFRAME: Only if the parallax is animated. Maximum frame.
Example:
The preset filename is %1_%3, and the notetag is <parallax: Preset,
testing>, and the map ID is 5, the actual filename will be 5_testing.

=============================================================================
• Plugin Commands
=============================================================================
parallaxUtils setEvent PRESETNAME EVENTID
- Set event ID to layer that has the PRESETNAME.
Ex. parallaxUtils setEvent Particle Event 5

parallaxUtils setOpacity PRESETNAME VALUE
- Set layer opacity.
- VALUE: 0 to 255.
Ex. parallaxUtils setOpacity Doodads 128

parallaxUtils setPosition PRESETNAME X Y
- Set layer shift X and shift Y.

parallaxUtils change MAPID [PRESETNAME:ORIGINALNAME] [NEWNAME] MAXFRAME
- Change parallax name to a new name.
- MAPID: Map ID can be set to 0 for current map id.
- PRESETNAME: Preset name in the plugin parameter. Case sensitive.
- ORIGINALNAME: The parallax name in the map notetag.
- NEWNAME: Parallax new base name.
- MAXFRAME: Only necessary for animated parallax.
Ex. parallaxUtils change ParallaxUtils change 3 [Doodads:decor] [decor2]
parallaxUtils change ParallaxUtils change 0 [Animated Light:light] [overlay] 4
パラメータ
param Global Switch
desc When this switch is Off, all layers will be disabled. 0/None = Always On.
type switch
default 0

param Parallax Presets
desc Preset settings.
type struct<presetSetting>[]
default ["{\"name\":\"Animated Light\",\"filename\":\"%2_%3%4\",\"order\":\"Above All Characters\",\"z\":\"1\",\"loop\":\"false\",\"lock\":\"{\\\"type\\\":\\\"Map\\\",\\\"eventId\\\":\\\"1\\\",\\\"shiftX\\\":\\\"0\\\",\\\"shiftY\\\":\\\"0\\\"}\",\"scrollX\":\"0\",\"scrollY\":\"0\",\"blendType\":\"Screen\",\"switch\":\"1\",\"animated\":\"true\",\"frameWait\":\"480\",\"fade\":\"true\",\"fadeDuration\":\"480\",\"fadeMin\":\"0\",\"fadeMax\":\"255\"}","{\"name\":\"Shadow\",\"filename\":\"%2_%3\",\"order\":\"Behind Above Characters\",\"z\":\"1\",\"loop\":\"false\",\"lock\":\"{\\\"type\\\":\\\"Map\\\",\\\"eventId\\\":\\\"1\\\",\\\"shiftX\\\":\\\"0\\\",\\\"shiftY\\\":\\\"0\\\"}\",\"scrollX\":\"0\",\"scrollY\":\"0\",\"blendType\":\"Multiply\",\"switch\":\"0\",\"animated\":\"false\",\"frameWait\":\"0\",\"fade\":\"true\",\"fadeDuration\":\"480\",\"fadeMin\":\"50\",\"fadeMax\":\"255\"}","{\"name\":\"Doodads\",\"filename\":\"%2_%3\",\"order\":\"Behind Below Characters\",\"z\":\"1\",\"loop\":\"false\",\"lock\":\"{\\\"type\\\":\\\"Map\\\",\\\"eventId\\\":\\\"1\\\",\\\"shiftX\\\":\\\"0\\\",\\\"shiftY\\\":\\\"0\\\"}\",\"scrollX\":\"0\",\"scrollY\":\"0\",\"blendType\":\"Normal\",\"switch\":\"0\",\"animated\":\"false\",\"frameWait\":\"0\",\"fade\":\"false\",\"fadeDuration\":\"0\",\"fadeMin\":\"0\",\"fadeMax\":\"255\"}","{\"name\":\"Animated Doodads\",\"filename\":\"%2_%3%4\",\"order\":\"Behind Above Characters\",\"z\":\"2\",\"loop\":\"false\",\"lock\":\"{\\\"type\\\":\\\"Map\\\",\\\"eventId\\\":\\\"1\\\",\\\"shiftX\\\":\\\"0\\\",\\\"shiftY\\\":\\\"0\\\"}\",\"scrollX\":\"0\",\"scrollY\":\"0\",\"blendType\":\"Normal\",\"switch\":\"0\",\"animated\":\"true\",\"frameWait\":\"5\",\"fade\":\"false\",\"fadeDuration\":\"0\",\"fadeMin\":\"0\",\"fadeMax\":\"255\"}","{\"name\":\"Fog\",\"filename\":\"%1_%3\",\"order\":\"Above Weather\",\"z\":\"100\",\"loop\":\"true\",\"lock\":\"{\\\"type\\\":\\\"Map\\\",\\\"eventId\\\":\\\"1\\\",\\\"shiftX\\\":\\\"0\\\",\\\"shiftY\\\":\\\"0\\\"}\",\"scrollX\":\"5\",\"scrollY\":\"2\",\"blendType\":\"Multiply\",\"switch\":\"2\",\"animated\":\"false\",\"frameWait\":\"0\",\"fade\":\"true\",\"fadeDuration\":\"60\",\"fadeMin\":\"128\",\"fadeMax\":\"255\"}","{\"name\":\"Particle Player\",\"filename\":\"%1_%3%4\",\"order\":\"Above All Characters\",\"z\":\"0\",\"loop\":\"false\",\"lock\":\"{\\\"type\\\":\\\"Player\\\",\\\"eventId\\\":\\\"1\\\",\\\"shiftX\\\":\\\"-82\\\",\\\"shiftY\\\":\\\"-62\\\"}\",\"scrollX\":\"0\",\"scrollY\":\"0\",\"blendType\":\"Normal\",\"switch\":\"0\",\"animated\":\"true\",\"frameWait\":\"15\",\"fade\":\"true\",\"fadeDuration\":\"300\",\"fadeMin\":\"80\",\"fadeMax\":\"200\"}","{\"name\":\"Particle Event\",\"filename\":\"%1_%3\",\"order\":\"Above All Characters\",\"z\":\"0\",\"loop\":\"false\",\"lock\":\"{\\\"type\\\":\\\"Event\\\",\\\"eventId\\\":\\\"5\\\",\\\"shiftX\\\":\\\"-22\\\",\\\"shiftY\\\":\\\"-22\\\"}\",\"scrollX\":\"0\",\"scrollY\":\"0\",\"blendType\":\"Additive\",\"switch\":\"0\",\"animated\":\"true\",\"frameWait\":\"15\",\"fade\":\"true\",\"fadeDuration\":\"5\",\"fadeMin\":\"20\",\"fadeMax\":\"128\"}"]

ライセンス表記
  • Apache License, Version 2.0

紹介ページ https://github.com/DrDhoom/RMMV-Plugins/blob/master/DhoomParallaxUtils.js