Browse Source

remove tests

Arnaud Vergnet 2 years ago
parent
commit
1af9952b43
2 changed files with 0 additions and 64 deletions
  1. 0
    44
      tests/NodeTest.gd
  2. 0
    20
      tests/NodeTest.tscn

+ 0
- 44
tests/NodeTest.gd View File

@@ -1,44 +0,0 @@
1
-extends Node
2
-
3
-onready var _LineNode: LineNode = self.get_node("Line")
4
-
5
-var _json_structure = {
6
-	"speaker": {
7
-		"id": 5,
8
-		"emotion": "happy"
9
-	},
10
-	"scene": {
11
-		"id": 2
12
-	},
13
-	"dialog": {
14
-		"message": "plop",
15
-		"choices_multiple": [
16
-			{
17
-				"title": "test",
18
-				"conditions": [
19
-					{
20
-						"id": "coucou",
21
-						"value": 5
22
-					}
23
-				],
24
-				"infobox": {
25
-					"text": "info info",
26
-					"conditions": [
27
-						{
28
-							"id": "zzzz",
29
-							"value": 1
30
-						}
31
-					]
32
-				}
33
-			},
34
-			{
35
-				"title": "cc",
36
-				"conditions": []
37
-			}
38
-
39
-		]
40
-	}
41
-}
42
-
43
-func _on_Button_pressed():
44
-	_LineNode.set_text(JSON.print(_json_structure))

+ 0
- 20
tests/NodeTest.tscn View File

@@ -1,20 +0,0 @@
1
-[gd_scene load_steps=3 format=2]
2
-
3
-[ext_resource path="res://addons/EXP-System-Dialog/Dialog Editor/Nodes/Line/Line_Node.tscn" type="PackedScene" id=1]
4
-[ext_resource path="res://tests/NodeTest.gd" type="Script" id=2]
5
-
6
-[node name="NodeTest" type="Node"]
7
-script = ExtResource( 2 )
8
-
9
-[node name="Line" parent="." instance=ExtResource( 1 )]
10
-
11
-[node name="Button" type="Button" parent="."]
12
-margin_left = 378.27
13
-margin_top = 132.451
14
-margin_right = 427.27
15
-margin_bottom = 152.451
16
-text = "LOAD"
17
-__meta__ = {
18
-"_edit_use_anchors_": false
19
-}
20
-[connection signal="pressed" from="Button" to="." method="_on_Button_pressed"]

Loading…
Cancel
Save