Customizing string input instructions

From UPK wiki
Jump to: navigation, search

Removing the quotation marks around the input string

By default, the actual text that the trainee has to enter is enclosed in double-quotes. You can remove these through a little customization, as follows:

  • Open the file template.xml for the relevant language.
  • Add the following code to the end of the file, just before the closing </template> tag:
<Language>
<Item Type="QuoteOpen"></Item>
<Item Type="QuoteClose"></Item>
</Language>
  • Save your changes and check the template package back in.

This will replace the quotes by empty text.

Changing the color of the string input text

By default, the actual text that the user has to enter is shown in red. This can be unhelpful as trainees just look for the red text and type that, without reading the rest of the text in the bubble. You can change the color of this text as follows:

  • Open the file template.xml for the relevant language.
  • locate the following code, whcih is near the top of the file:
<Style Name="Content" Bold="true" Color="#ff0000" />
  • Change this to the following to use black, or specify another value:
<Style Name="Content" Bold="true" Color="#FFFFFF" />
  • Save your changes and check the template package back in.
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox