Drag[en]gine Script Module DragonScript
1.21
|
Rule for resolving a style tag in STDTagResolver. More...
Public Member Functions | |
STDStyle | getStyle () |
Style or null if not used. More... | |
String | getStyleName () |
Style name or null if not used. More... | |
STDTRRStyle | new (STDStyle style) |
Create resolve tag rule. More... | |
STDTRRStyle | new (String styleName) |
Create resolve tag rule. More... | |
void | resolveTag (STDTagResolver resolver, STDNText target, STDNTextSpan source, bool first, String parameters) |
Resolve tag adding STDNTextSpan to STDNText. More... | |
void | setStyle (STDStyle style) |
Set style or null if not used. More... | |
void | setStyleName (String name) |
Set style or null if not used. More... | |
Rule for resolving a style tag in STDTagResolver.
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. Style can be a style name to resolve inside the styled text or an explicit style definition to use. If explicit style definition is used it is added to the styled text definition if absent.
STDStyle Dragengine.Utils.StyledText.STDTRRStyle.getStyle | ( | ) |
Style or null if not used.
String Dragengine.Utils.StyledText.STDTRRStyle.getStyleName | ( | ) |
Style name or null if not used.
STDTRRStyle Dragengine.Utils.StyledText.STDTRRStyle.new | ( | STDStyle | style | ) |
Create resolve tag rule.
Reimplemented in Dragengine.Utils.StyledText.STDTRRBinding.
STDTRRStyle Dragengine.Utils.StyledText.STDTRRStyle.new | ( | String | styleName | ) |
Create resolve tag rule.
Reimplemented in Dragengine.Utils.StyledText.STDTRRBinding.
void Dragengine.Utils.StyledText.STDTRRStyle.resolveTag | ( | STDTagResolver | resolver, |
STDNText | target, | ||
STDNTextSpan | source, | ||
bool | first, | ||
String | parameters | ||
) |
Resolve tag adding STDNTextSpan to STDNText.
resolver | STDTagResolver using the rule to resolve. |
target | STDNText to add resolved STDNTextSpan to. |
source | STDNTextSpan containing the tag name to resolve. |
first | First span to be added. Image of source should be set to first added span. |
parameters | Content of tag between curly brackets after ":" delimiter |
Implements Dragengine.Utils.StyledText.STDTagResolverRule.
Reimplemented in Dragengine.Utils.StyledText.STDTRRBinding.
void Dragengine.Utils.StyledText.STDTRRStyle.setStyle | ( | STDStyle | style | ) |
Set style or null if not used.
void Dragengine.Utils.StyledText.STDTRRStyle.setStyleName | ( | String | name | ) |
Set style or null if not used.