Drag[en]gine Script Module DragonScript  1.21
Dragengine.ConversationSystem.CTRRStyle Class Reference

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

Inheritance diagram for Dragengine.ConversationSystem.CTRRStyle:
Dragengine.ConversationSystem.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

◆ getStyle()

STDStyle Dragengine.ConversationSystem.CTRRStyle.getStyle ( )

Style or null if not used.

◆ new()

CTRRStyle Dragengine.ConversationSystem.CTRRStyle.new ( STDStyle  style)

Create resolve tag rule.

◆ resolveTag()

void Dragengine.ConversationSystem.CTRRStyle.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 Dragengine.ConversationSystem.ConversationTagResolverRule.

◆ setStyle()

void Dragengine.ConversationSystem.CTRRStyle.setStyle ( STDStyle  style)

Set style or null if not used.


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