Drag[en]gine Script Module DragonScript
1.23
|
Rule for resolving a binding tag in actor speak action text. More...
Public Member Functions | |
void | addText (StyledTextDefinition styledText, STDNText textNode, String text, Image image) |
Add span to text. More... | |
BindingManager | getBindings () |
Used bindings. More... | |
CommandManager | getCommands () |
Supported commands. More... | |
STDStyle | getStyle () |
Style or null if not used. More... | |
CTRRBinding | new (CommandManager commands, BindingManager bindings, STDStyle style) |
Create resolve tag rule. More... | |
void | resolveTag (StyledTextDefinition styledText, STDNText textNode, String parameters) |
Resolve tag outputing result to styled text. More... | |
void | setBindingManager (BindingManager bindings) |
Set used bindings. More... | |
void | setCommands (CommandManager commands) |
Set supported commands. More... | |
void | setStyle (STDStyle style) |
Set style or null if not used. More... | |
Protected Member Functions | |
String | devicePrefix (InputDevice device) |
Get device prefix. More... | |
Rule for resolving a binding tag in actor speak action text.
Resolves tags of the form {binding:command-name}. Looks up the matching command and outputs all bindings assinged to the command. Useful to output in conversation instructions to the player what input to press to trigger an action. The bindings are optionally output in a different font and/or color. Usually using a different color is recommended but using a different font can help to better recognize such output in a conversation.
void Dragengine.ConversationSystem.CTRRBinding.addText | ( | StyledTextDefinition | styledText, |
STDNText | textNode, | ||
String | text, | ||
Image | image | ||
) |
Add span to text.
. Adds style if required and not existing already.
|
protected |
Get device prefix.
BindingManager Dragengine.ConversationSystem.CTRRBinding.getBindings | ( | ) |
Used bindings.
CommandManager Dragengine.ConversationSystem.CTRRBinding.getCommands | ( | ) |
Supported commands.
STDStyle Dragengine.ConversationSystem.CTRRBinding.getStyle | ( | ) |
Style or null if not used.
CTRRBinding Dragengine.ConversationSystem.CTRRBinding.new | ( | CommandManager | commands, |
BindingManager | bindings, | ||
STDStyle | style | ||
) |
Create resolve tag rule.
void Dragengine.ConversationSystem.CTRRBinding.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.CTRRBinding.setBindingManager | ( | BindingManager | bindings | ) |
Set used bindings.
void Dragengine.ConversationSystem.CTRRBinding.setCommands | ( | CommandManager | commands | ) |
Set supported commands.
void Dragengine.ConversationSystem.CTRRBinding.setStyle | ( | STDStyle | style | ) |
Set style or null if not used.