This plugin makes message window text appear instantly, instead of one character at a time. The player has the option to toggle this behavior in the Options menu, and the developer can make it be off by default.
As far as I know, this plugin is completely usable and bug-free at this time. However, this is my first plugin (or at least the first generally applicable enough to share with the community). So, I'm a bit leery to submit it straight to the Releases board. Besides that, I couldn't find any best practices guides beyond "alias instead of overwriting when possible", so maybe I've done something inadvisable without realizing, perhaps introduced the potential for a compatibility issue or precedence order issue I should address or note.
Also I have no idea how thread tags work, so I guess let me know what to do with that too?
Thanks for checking out my plugin; I hope you find it useful.
Script:
As far as I know, this plugin is completely usable and bug-free at this time. However, this is my first plugin (or at least the first generally applicable enough to share with the community). So, I'm a bit leery to submit it straight to the Releases board. Besides that, I couldn't find any best practices guides beyond "alias instead of overwriting when possible", so maybe I've done something inadvisable without realizing, perhaps introduced the potential for a compatibility issue or precedence order issue I should address or note.
Also I have no idea how thread tags work, so I guess let me know what to do with that too?
Thanks for checking out my plugin; I hope you find it useful.
Script:
Code:
//=============================================================================
// InstantText.js
//=============================================================================
/*:
@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
}
}
})();