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.
Files changed (27) hide show
  1. package/build/cli.js +1435 -1410
  2. package/build/godot/addons/gdharness_editor/animation_reads.gd +11 -2
  3. package/build/godot/addons/gdharness_editor/bridge_client.gd +2 -1
  4. package/build/godot/addons/gdharness_editor/headless_check.gd +22 -11
  5. package/build/godot/addons/gdharness_editor/property_values.gd +1 -1
  6. package/build/godot/addons/gdharness_editor/reading.gd +15 -0
  7. package/build/godot/addons/gdharness_editor/scene_file.gd +9 -0
  8. package/build/godot/addons/gdharness_editor/tools/animation_tools.gd +39 -5
  9. package/build/godot/addons/gdharness_editor/tools/resource_tools.gd +68 -15
  10. package/build/godot/addons/gdharness_editor/tools/scene_tools.gd +12 -12
  11. package/build/godot/addons/gdharness_runtime/reading.gd +15 -0
  12. package/build/godot/addons/gdharness_runtime/runtime_autoload.gd +3 -1
  13. package/build/godot/addons/gdharness_runtime/runtime_changes.gd +2 -2
  14. package/build/godot/addons/gdharness_runtime/runtime_input.gd +15 -2
  15. package/build/godot/addons/gdharness_runtime/runtime_items.gd +175 -0
  16. package/build/godot/addons/gdharness_runtime/runtime_items.gd.uid +1 -0
  17. package/build/godot/addons/gdharness_runtime/runtime_paths.gd +43 -10
  18. package/build/godot/addons/gdharness_runtime/runtime_targets.gd +61 -20
  19. package/build/godot/addons/gdharness_runtime/runtime_values.gd +3 -1
  20. package/build/godot/addons/gdharness_runtime/runtime_words.gd +48 -18
  21. package/build/godot/operations/animation_reads.gd +11 -2
  22. package/build/godot/operations/editor_tools.gd +9 -0
  23. package/build/godot/operations/godot_operations.gd +2 -1
  24. package/build/godot/operations/property_values.gd +1 -1
  25. package/build/godot/operations/reading.gd +15 -0
  26. package/build/index.js +2789 -2765
  27. 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]