Drag[en]gine Script Module DragonScript Script API  1.0
CTRRStyle Class Reference

Rule for resolving a style tag in actor speak action text. More...

Inheritance diagram for CTRRStyle:
ConversationTagResolverRule

Public Member Functions

STDStyle getStyle ()
 Style or null if not used. More...
 
CTRRStyle new (STDStyle style)
 Create resolve tag rule. More...
 
void resolveTag (StyledTextDefinition styledText, STDNText textNode, String parameters)
 Resolve tag outputing result to styled text. More...
 
void setStyle (STDStyle style)
 Set style or null if not used. More...
 

Detailed Description

Rule for resolving a style tag in actor speak action text.

Resolves tags of the form {stylename:text}. Formats text with a specific style instead of the default style. Useful to put emphasis on some words for example.

Member Function Documentation

STDStyle getStyle ( )

Style or null if not used.

CTRRStyle new ( STDStyle  style)

Create resolve tag rule.

void resolveTag ( StyledTextDefinition  styledText,
STDNText  textNode,
String  parameters 
)

Resolve tag outputing result to styled text.

Parameters
styledTextStyled text to add resolved text to.
textNodeText node to add text to.
parametersParameters inside tag.

Implements ConversationTagResolverRule.

void setStyle ( STDStyle  style)

Set style or null if not used.


The documentation for this class was generated from the following file: