Text Overrides

From ADRIFT 5 Manual Wiki
Revision as of 11:26, 4 December 2012 by Lazzah (Talk | contribs)

Jump to: navigation, search

Text Overrides are the new name for the v4 ADRIFT Language Resource (ALR). Rather than being edited externally and imported as in v4, v5 Text Overrides are edited within the application.

Text Overrides simply replace the final text before it is displayed to the end user. This provides a convenient way of globally changing particular output without having to modify each individual item. It is also useful for changing any "fixed" text, i.e. anything output by the application that is not stored as part of the library. (NB. I am working to reduce this all the time, and hope to eventually store all text within the library.)

Text Overrides can also be a useful tool to use for the ALR's original purpose; a language resource to convert any English output to other languages. This shouldn't be such an issue with v5 as different libraries can be created for each language.

Text Overrides are applied in order of length. This ensures an override that is a subset of a longer one does not prevent the longer one from overriding. For example, if you had the following overrides:

You take => You pick up
pick => select

If the shorter override applied first, "You take the ball." would be output as "You select the ball." rather than "You pick up the ball."

The Text Override editing window looks like this:

TextOverride.jpg

The original text is typed at the top and the text you want to replace it with at the bottom. If you do not want the original text to be displayed at all, just leave the bottom window blank.

Note that you can use an alternate description in the lower text box to alter the Replacement text using restrictions.

It is also possible to have a sound play, or show an image, when the replacement text is shown.