プレイヤーがキーボードのボタン設定を調整できるようにするプラグイン – YEP_KeyboardConfig.js

タイトル
Allows players to adjust their button configurationfor keyboards.
作者名
ヘルプ
============================================================================
Introduction
============================================================================

This plugin allows players to change their keyboard configuration from the
in-game Options menu provided that they're using a computer to play the
game and not from a mobile device. The "Keyboard Config" option will send
the player to a different screen where they can assign actions to each of
the allowed keys on the keyboard.

Certain measures are made to prevent the player from locking himself or
herself in the configuration screen. These measures are that the Enter keys
and arrow keys cannot be changed. Almost every other key is capable of being
changed to something of the player's liking.

Note: If you are using Button Common Events, place this plugin beneath
Button Common Events in the plugin parameter list.

============================================================================
Button Common Event - Comment Tags
============================================================================

If you're using Button Common Events, you can make certain Common Events
able to be bound to the keyboard using Comment Tags. To make a Comment Tag,
use a Comment Event inside of your Common Event, and insert the following to
achieve the desired effect:

Comment Tag:

<Config Key: text>
This is the text displayed on the keyboard if this common event is bound
to a keyboard key. If this text isn't used, then the text displayed will
be the common event's name.

<Config Text: text>
This is the text displayed when selecting a key to bind for the keyboard
key. This is the text displayed in the selection list. If this text isn't
used, then the text displayed will be the common event's name.

<Config Required>
This makes the common event required to be bound on the keyboard before
the player can exit the configuration menu. In order for this to work
properly, there needs to be a Button Common Event bound for this common
event as well.

============================================================================
Changelog
============================================================================

Version 1.01:
- Compatibility update with Button Common Events.
- Added <Config Key: text>, <Config Text: text>, and <Config Required>
comment tags. These tags work together with Button Common Events.

Version 1.00:
- Finished Plugin!
パラメータ
param ---General---
default
param Command Name
desc This is the option name that appears in the main menu.
default Keyboard Config

param Button Events
desc Requires YEP_ButtonCommonEvents. This is a list of common
events you can bind to key presses. Separate with a space.
default 1 2 3

param ---Help Text---
default
param Key Help
desc This is the help message that will display for keys.
default Change the configuration of this key?

param Default Layout
desc This is the text for switching to the default layout.
default Default Keyboard Layout

param Default Help
desc This is the help message that will display for keys.
default Reverts your keyboard setting to the default setup.

param WASD Layout
desc This is the text for switching to the WASD layout.
default WASD Movement Layout

param WASD Help
desc This is the help message that will display for WASD.
default Changes your keyboard to WASD movement.

param Finish Config
desc This is the text for finishing with keyboard configuration.
default Finish Configuration

param Finish Help
desc This is the help message that will display for Finish.
default Are you done configuring your keyboard?

param Assigned Color
desc This is the background color of a key that's assigned.
default 21

param Action Color
desc This is the text color of an assigned action.
default 4

param Clear Text
desc This is the Clear action will appear for the config text.
default Clear

param ---Key Names---
default
param OK Key
desc This is the OK action will appear on a key.
default OK

param OK Text
desc This is the OK action will appear for the config text.
default OK / Talk

param Escape Key
desc This is the Escape action will appear on a key.
default X

param Escape Text
desc This is the Escape action will appear for the config text.
default Cancel / Menu

param Cancel Key
desc This is the Cancel action will appear on a key.
default Cancel

param Cancel Text
desc This is the Cancel action will appear for the config text.
default Cancel

param Menu Key
desc This is the Menu action will appear on a key.
default Menu

param Menu Text
desc This is the Menu action will appear for the config text.
default Menu

param Shift Key
desc This is the Shift action will appear on a key.
default Dash

param Shift Text
desc This is the Shift action will appear for the config text.
default Dash

param PageUp Key
desc This is the PageUp action will appear on a key.
default PgUp

param PageUp Text
desc This is the PageUp action will appear for the config text.
default Page Up

param PageDown Key
desc This is the PageUp action will appear on a key.
default PgDn

param PageDown Text
desc This is the PageUp action will appear for the config text.
default Page Down

param Left Key
desc This is the Left action will appear on a key.
default

param Left Text
desc This is the Left action will appear for the config text.
default Move ◄ Left

param Up Key
desc This is the Up action will appear on a key.
default

param Up Text
desc This is the Up action will appear for the config text.
default Move ▲ Up

param Right Key
desc This is the Right action will appear on a key.
default

param Right Text
desc This is the Right action will appear for the config text.
default Move ► Right

param Down Key
desc This is the Down action will appear on a key.
default

param Down Text
desc This is the Down action will appear for the config text.
default Move ▼ Down

ライセンス表記

紹介ページ https://github.com/suppayami/yami-engine-delta/blob/master/demo/js/plugins/YEP_KeyboardConfig.js