This repository was archived by the owner on Mar 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed
addons/event_system_plugin Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,25 @@ func _init() -> void:
99 event_name = "Go to Event"
1010 event_color = Color ("#FBB13C" )
1111 event_icon = load ("res://addons/event_system_plugin/assets/icons/event_icons/jump_to_event.png" ) as Texture
12- event_preview_string = "Go to event [??? ]"
12+ event_preview_string = "Go to event [{next_event} ]"
1313 continue_at_end = true
1414 event_category = "Logic"
1515 event_hint = "Helper event to define the next event after this event"
1616
17-
1817func set_next_event (value :String ) -> void :
1918 next_event = value
2019 emit_changed ()
2120 property_list_changed_notify ()
21+
22+
23+ func _get (property ):
24+ if property == "event_node_path_ignore" :
25+ return true
26+ if property == "continue_at_end_ignore" :
27+ return true
28+
29+
30+ func _get_property_list ():
31+ var p := []
32+ p .append ({"name" :"next_event" , "type" :TYPE_OBJECT , "hint" :PROPERTY_HINT_RESOURCE_TYPE })
33+ return p
Original file line number Diff line number Diff line change @@ -131,12 +131,16 @@ func _get_property_list() -> Array:
131131func property_can_revert (property :String ) -> bool :
132132 if property == "event_node_path" :
133133 return true
134+ if property == "next_event" :
135+ return true
134136 return false
135137
136138
137139func property_get_revert (property :String ):
138140 if property == "event_node_path" :
139141 return NodePath ()
142+ if property == "next_event" :
143+ return null
140144
141145
142146func _to_string () -> String :
You can’t perform that action at this time.
0 commit comments