[한화] YEP.166 – Message Speed Option

2808 단어
Introduction
This plugin requires YEP_MessageCore. Make sure this plugin is located under YEP_MessageCore in the plugin list. 이 플러그인은 YEP 이 필요합니다.MessageCore.플러그인이 플러그인 목록의 YEP 에 있는지 확인합니다.Message Core 아래.
The option to control the message speed is quite common in RPG’s nowadays. Players can put in whatever option they feel like for the text to go at, or if they wish, to have the text display instantly! This plugin will add in the ‘Message Speed’ option into your Options Menu for players to adjust! It comes with speeds from 0 (slowest) to 10 (fastest) and even an “11th” speed of being instant!
현재 RPG에서는 정보 표시 속도 옵션이 일반적입니다.유저는 문자 표시 속도를 설정할 수 있습니다. 설정은 즉시 표시를 실현할 수 있습니다!이 플러그인은 '메시지 속도' 옵션을 옵션 메뉴에 추가하여 유저가 조정할 수 있도록 합니다!그것의 속도는 0(가장 느린)에서 10(가장 빠른), 심지어 즉각적인'11'속도까지!
Options Core Settings – Adding the New Options
If you are using YEP_OptionsCore.js, you can add a new Option using this plugin. Here’s the following code/parameter settings you can use with it.
하면, 만약, 만약...OptionsCore.js, 이 플러그인을 사용하여 새로운 옵션을 추가할 수 있습니다.다음은 당신이 사용할 수 있는 코드/파라미터 설정입니다.
Settings
Help Description:
Changes the speed text is displayed during messages.

Symbol:
messageSpeed

Show/Hide:
show = Imported.YEP_X_MessageSpeedOpt;

Enable:
enabled = true;

Ext:
ext = 0;

Functions
Make Option Code:
this.addCommand(name, symbol, enabled, ext);

Draw Option Code:
var rect = this.itemRectForText(index);
var statusWidth = this.statusWidth();
var titleWidth = rect.width - statusWidth;
this.resetTextColor();
this.changePaintOpacity(this.isCommandEnabled(index));
this.drawOptionsName(index);
var value = this.getConfigValue(symbol);
var rate = ((value) / 10).clamp(0, 1);
if (value > 10) {
 var gaugeColor1 = this.textColor(14);
 var gaugeColor2 = this.textColor(6);
} else {
 var gaugeColor1 = this.textColor(20);
 var gaugeColor2 = this.textColor(21);
}
this.drawOptionsGauge(index, rate, gaugeColor1, gaugeColor2);
this.drawText(this.statusText(index), titleWidth, rect.y, statusWidth, 'center');

Process OK Code:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
value += 1;
if (value > 11) value = 0;
value = value.clamp(0, 11);
this.changeValue(symbol, value);
Cursor Right Code:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
value += 1;
value = value.clamp(0, 11);
this.changeValue(symbol, value);

Cursor Left Code:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
value -= 1;
value = value.clamp(0, 11);
this.changeValue(symbol, value);

Default Config Code:
Save Config Code:
Load Config Code:

Happy RPG Making!

좋은 웹페이지 즐겨찾기