Instant Text

Jatopian

Veteran
Veteran
Joined
Jul 5, 2015
Messages
53
Reaction score
15
First Language
English
Primarily Uses
Instant Text
by Jatopian​

Introduction
This plugin lets you offer the player the option to have message window text appear instantly, instead of one character at a time. If the player does not want this functionality, it can be disabled and text will appear normally.

Features
+ The player has the option to toggle the instant text behavior in the Options menu.
+ The developer can make the default setting for this ON or OFF.
+ Costs you nothing to add to your project, and will make quick readers happy.

How to Use
Should be straightforward plug&play. I'm not aware of any bugs or compatibility issues.

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.

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[/USER]
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
    }
  }
 
})();
Thanks for checking out my plugin; I hope you find it useful.
 
Last edited:

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
@Jatopian: Looks handy! My only suggestion is to add your terms of use to your initial post. I see it is in the plug-in, but sometimes people prefer to see it on the initial page as well. That way someone doesn't pass it by due to wondering if they can use it at all.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,986
Members
137,561
Latest member
visploo100
Top