Skip to content

Commit e2568fd

Browse files
committed
Support custom contexts
1 parent f0cd6d6 commit e2568fd

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
"*.ds": "json"
3838
},
3939
"editor.renderWhitespace": "all",
40+
"editor.tabSize": 2,
41+
"editor.insertSpaces": false,
42+
"editor.detectIndentation": false,
4043
"deno.enable": true,
4144
"deno.lint": true,
4245
"editor.defaultFormatter": "denoland.vscode-deno",

addons/parley/components/condition/condition_node_editor.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func _on_condition_removed(condition_id: String) -> void:
146146
var index: int = int(condition_id)
147147
var new_conditions: Array = conditions.duplicate(true)
148148
if index < 0 or index >= new_conditions.size():
149-
push_error(ParleyUtils.log.error_msg("Unable to remove Condition from Condition Node (id:%s, index:%i)" % [id, index]))
149+
push_error(ParleyUtils.log.error_msg("Unable to remove Condition from Condition Node (id:%s, index:%d)" % [id, index]))
150150
return
151151
new_conditions.remove_at(int(condition_id))
152152
conditions = new_conditions

addons/parley/models/action_interface.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
class_name ParleyActionInterface extends Object
44

55

6-
func run(ctx: ParleyContext, values: Array) -> int:
6+
func run(ctx, values: Array) -> int:
77
push_error('PARLEY_ERR: Action not implemented (ctx:%s, values:%s)' % [ctx, values])
88
return FAILED

addons/parley/models/dialogue_sequence_ast.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ func _run_action(ctx: ParleyContext, node_ast: ParleyNodeAst) -> void:
450450
var result: int = await action.run(ctx, action_node_ast.values)
451451
action.free()
452452
if result != OK:
453-
push_error(ParleyUtils.log.error_msg("Unable to run Action (code:%i)" % result))
453+
push_error(ParleyUtils.log.error_msg("Unable to run Action (code:%d)" % result))
454454

455455

456456
## Indicator for whether the node is at the end of the current Dialogue Sequence

addons/parley/models/fact_interface.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
class_name ParleyFactInterface extends Object
44

55

6-
func evaluate(ctx: ParleyContext, values: Array) -> Variant:
6+
func evaluate(ctx, values: Array) -> Variant:
77
push_error(ParleyUtils.log.error_msg('Fact not implemented (ctx:%s, values:%s)' % [ctx, values]))
88
return
99

1010

11-
func available_values() -> Array[Variant]:
11+
func available_values() -> Array:
1212
return []

0 commit comments

Comments
 (0)