by Jatopian
介绍
这个插件可以让你在同一时间提供玩家有消息窗口文本出现瞬间的选项,而不是一个字符。如果玩家不想要这个功能,可以将其禁用和文本通常会出现。
即时文本
让您能够为玩家有消息窗口文本的选项出现瞬间,而不是一次一个字符。
下载:
介绍:
这个插件可以让你在同一时间提供玩家有消息窗口文本出现瞬间的选项,而不是一个字符。如果玩家不想要这个功能,可以将其禁用和文本通常会出现。
特征:
玩家要有切换在选项菜单中的即时文本行为的选项。
开发者可以使默认设置此ON或OFF。
成本你什么添加到您的项目,并做出快速的读者高兴。
如何使用:
应该是简单的即插即用。我不知道任何错误或兼容性问题。
使用条款:
免费用于商业和非商业用途。
请在平凡访问的地方给予信贷。
确定要修改,但是如果你重新发布修改后的版本,请表明你修改它,以及如何。
如果添加的功能,可能是有用的给别人,请至少考虑与我和社会各界分享。
如何使用
应该是简单的即插即用。我不知道任何错误或兼容性问题。
使用条款
*免费用于商业和非商业用途。
*请在平凡访问的地方给予信贷。
* OK修改,但如果你重新发布修改后的版本,请表明你修改它,以及如何。
*如果您添加的功能,可能是对他人有用,请至少考虑与我和社会各界分享。
脚本:
// ================================================ =============================
// InstantText.js
// ============== ================================================== =============
/ *:@plugindesc V1.0.0给出选项消息文本即时呈现。@author Jatopian
/*:
@plugindesc v1.0.0 Gives option for message text to render instantly.
@author Jatopian
@param Default
@desc Whether instant text is enabled by default in the Options menu. true / false
@default true
@help
This plugin gives the option for message text to render instantly,
instead of the default behavior (character-by-character).
Player can toggle this behavior in the game's Options menu.
Developer can toggle whether the default setting is ON or OFF.
Terms of Use:
- Free for commercial and non-commercial use.
- Please give credit in a trivially accessible place.
- OK to modify, but if you redistribute the modified version,
please make clear that you modified it, and how.
- If you add features that could be useful to others,
please at least consider sharing them with me and the community.
*/
(function() {
var params = PluginManager.parameters("InstantText");
var pInstantText = String(params["Default"]);
//=============================================================================
// ConfigManager
//=============================================================================
getDefaultInstantText = function() {
if (pInstantText.match(/true/i)) {
return true;
} else if (pInstantText.match(/false/i)) {
return false;
} else {
return Utils.isNwjs();
}
};
ConfigManager.instantText = getDefaultInstantText();
var alias_cm_md = ConfigManager.makeData;
ConfigManager.makeData = function() {
var config = alias_cm_md.call(this);
config.instantText = this.instantText;
return config;
};
var alias_cm_ad = ConfigManager.applyData;
ConfigManager.applyData = function(config) {
alias_cm_ad.call(this, config);
this.instantText = this.readConfigInstantText(config, 'instantText');
};
ConfigManager.readConfigInstantText = function(config, name) {
var value = config[name];
if (value !== undefined) {
return value;
} else {
return getDefaultInstantText();
}
};
//=============================================================================
// Window_Options
//=============================================================================
var alias_wo_ago = Window_Options.prototype.addGeneralOptions;
Window_Options.prototype.addGeneralOptions = function() {
alias_wo_ago.call(this);
this.addCommand("Instant Text", 'instantText');
console.log(getDefaultInstantText());
};
//=============================================================================
// Window Message
//=============================================================================
var alias_wm_udf = Window_Message.prototype.updateShowFast;
Window_Message.prototype.updateShowFast = function() {
alias_wm_udf.call(this);
if (ConfigManager.instantText === true) {
this._showFast = true
}
}
})();