Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion addons/dialogue_manager/dialogue_manager.gd
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ var include_singletons: bool = true
## Allow dialogue to call static methods/properties on classes
var include_classes: bool = true

## Allow dialogue to call methods on [code]DialogueResource[/code]
var include_dialogue_resurce: bool = true

## A runtime override for the project setting to ignore missing state values.
var ignore_missing_state_values: bool = false

Expand Down Expand Up @@ -122,7 +125,8 @@ func _get_next_dialogue_line(resource: DialogueResource, key: String = "", extra
extra_game_states = [autoload] + extra_game_states

# Inject "self" into the extra game states.
_inject_state("self", resource, extra_game_states)
if include_dialogue_resurce:
_inject_state("self", resource, extra_game_states)

# Get the line data
var dialogue_line: DialogueLine = await get_line(resource, key, extra_game_states)
Expand Down