Drag[en]gine Script Module DragonScript
1.21
|
Rule for resolving a style tag in actor speak action text. More...
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... | |
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.
STDStyle Dragengine.ConversationSystem.CTRRStyle.getStyle | ( | ) |
Style or null if not used.
CTRRStyle Dragengine.ConversationSystem.CTRRStyle.new | ( | STDStyle | style | ) |
Create resolve tag rule.
void Dragengine.ConversationSystem.CTRRStyle.resolveTag | ( | StyledTextDefinition | styledText, |
STDNText | textNode, | ||
String | parameters | ||
) |
Resolve tag outputing result to styled text.
styledText | Styled text to add resolved text to. |
textNode | Text node to add text to. |
parameters | Parameters inside tag. |
Implements Dragengine.ConversationSystem.ConversationTagResolverRule.
void Dragengine.ConversationSystem.CTRRStyle.setStyle | ( | STDStyle | style | ) |
Set style or null if not used.