File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed
addons/dialog_plugin/Nodes Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,11 @@ var next_input = 'ui_accept'
19
19
onready var DialogNode := get_node_or_null (DialogNode_path )
20
20
onready var PortraitManager := get_node_or_null (PortraitsNode_path )
21
21
22
+ func _ready () -> void :
23
+ if not Engine .editor_hint :
24
+ # FIXME: You should handle this warning elsewhere
25
+ push_warning ("[Dialogic] " + DialogUtil .Error .DIALOGNODE_IS_NOT_CHILD_OF_CANVASLAYER )
26
+
22
27
23
28
func _input (event : InputEvent ) -> void :
24
29
if not next_input :
@@ -30,6 +35,8 @@ func _input(event: InputEvent) -> void:
30
35
31
36
32
37
func start_timeline () -> void :
38
+ if Engine .editor_hint :
39
+ return
33
40
_verify_timeline ()
34
41
timeline .start (self )
35
42
@@ -50,6 +57,8 @@ func _verify_timeline() -> void:
50
57
51
58
52
59
func _set_nodes_default_values () -> void :
60
+ if Engine .editor_hint :
61
+ return
53
62
visible = false
54
63
if DialogNode :
55
64
DialogNode .visible = false
@@ -59,6 +68,12 @@ func _set_nodes_default_values() -> void:
59
68
PortraitManager .visible = false
60
69
61
70
71
+ func _get_configuration_warning () -> String :
72
+ # FIXME: WHAT KIND OF ABOMINATION IS THIS IF STATEMENT?!
73
+ if (get_parent () is CanvasLayer ) or (get_parent () is Control ):
74
+ return ""
75
+ return DialogUtil .Error .DIALOGNODE_IS_NOT_CHILD_OF_CANVASLAYER
76
+
62
77
func _on_event_start (_event ):
63
78
event_finished = false
64
79
if DialogNode :
Original file line number Diff line number Diff line change
1
+ tool
1
2
extends DialogBaseNode
2
3
3
4
# This does nothing special. It's just a placeholder.
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ resource_local_to_scene = true
9
9
size = 20
10
10
font_data = ExtResource ( 3 )
11
11
12
- [node name ="IngameNode " instance =ExtResource ( 1 )]
12
+ [node name ="TextBox " instance =ExtResource ( 1 )]
13
13
script = ExtResource ( 2 )
14
14
DialogNode_path = NodePath ("DialogNode" )
15
15
PortraitsNode_path = NodePath ("Portraits" )
You can’t perform that action at this time.
0 commit comments