gdharness 1.2.39 → 1.2.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1435 -1410
- package/build/godot/addons/gdharness_editor/animation_reads.gd +11 -2
- package/build/godot/addons/gdharness_editor/bridge_client.gd +2 -1
- package/build/godot/addons/gdharness_editor/headless_check.gd +22 -11
- package/build/godot/addons/gdharness_editor/property_values.gd +1 -1
- package/build/godot/addons/gdharness_editor/reading.gd +15 -0
- package/build/godot/addons/gdharness_editor/scene_file.gd +9 -0
- package/build/godot/addons/gdharness_editor/tools/animation_tools.gd +39 -5
- package/build/godot/addons/gdharness_editor/tools/resource_tools.gd +68 -15
- package/build/godot/addons/gdharness_editor/tools/scene_tools.gd +12 -12
- package/build/godot/addons/gdharness_runtime/reading.gd +15 -0
- package/build/godot/addons/gdharness_runtime/runtime_autoload.gd +3 -1
- package/build/godot/addons/gdharness_runtime/runtime_changes.gd +2 -2
- package/build/godot/addons/gdharness_runtime/runtime_input.gd +15 -2
- package/build/godot/addons/gdharness_runtime/runtime_items.gd +175 -0
- package/build/godot/addons/gdharness_runtime/runtime_items.gd.uid +1 -0
- package/build/godot/addons/gdharness_runtime/runtime_paths.gd +43 -10
- package/build/godot/addons/gdharness_runtime/runtime_targets.gd +61 -20
- package/build/godot/addons/gdharness_runtime/runtime_values.gd +3 -1
- package/build/godot/addons/gdharness_runtime/runtime_words.gd +48 -18
- package/build/godot/operations/animation_reads.gd +11 -2
- package/build/godot/operations/editor_tools.gd +9 -0
- package/build/godot/operations/godot_operations.gd +2 -1
- package/build/godot/operations/property_values.gd +1 -1
- package/build/godot/operations/reading.gd +15 -0
- package/build/index.js +2789 -2765
- package/package.json +1 -1
|
@@ -590,7 +590,7 @@ static func _listed(type: int) -> bool:
|
|
|
590
590
|
|
|
591
591
|
## [param value] as a caller would write it, for a refusal to quote.
|
|
592
592
|
func shown(value: Variant) -> String:
|
|
593
|
-
return JSON.stringify(_values.serialize_value(value))
|
|
593
|
+
return JSON.stringify(_values.serialize_value(value), "", false)
|
|
594
594
|
|
|
595
595
|
|
|
596
596
|
## A dictionary carrying its own type name, as the serialiser writes it.
|
|
@@ -99,3 +99,18 @@ static func json_or_null(text: String) -> Variant:
|
|
|
99
99
|
if json.parse(text) != OK:
|
|
100
100
|
return null
|
|
101
101
|
return json.data
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
## [param said], the refusal for [param node_path] found nowhere in a scene whose root is called
|
|
105
|
+
## [param root_name], with how paths are read when the path starts with that name and the root has
|
|
106
|
+
## no child called that. Paths go from the root, so its own name there names a child of it, and a
|
|
107
|
+
## caller who read the root as Main in a tree wrote Main/Body and was told only that nothing is there.
|
|
108
|
+
static func from_the_root(said: String, node_path: String, root_name: String) -> String:
|
|
109
|
+
var first: String = node_path.get_slice("/", 0)
|
|
110
|
+
if root_name.is_empty() or first != root_name:
|
|
111
|
+
return said
|
|
112
|
+
var rest: String = node_path.substr(first.length() + 1)
|
|
113
|
+
var how: String = 'Paths go from the root, %s, whose own path is "."' % root_name
|
|
114
|
+
if not rest.is_empty():
|
|
115
|
+
how += ', so this one is "%s"' % rest
|
|
116
|
+
return "%s%s %s." % [said, "" if said.ends_with(".") else ".", how]
|