Add dialogic

This commit is contained in:
snider committed 2022-08-13 19:33:12 -07:00
1 parent 89d4d3a29c
commit 2c47b309ae
603 files changed
+34501

No files matched your search

@@ -0,0 +1,28 @@
tool
extends "res://addons/dialogic/Editor/Events/Parts/EventPart.gd"
# has an event_data variable that stores the current data!!!
## node references
onready var file_picker = $FilePicker
# used to connect the signals
func _ready():
file_picker.connect("data_changed", self, "_on_ScenePicker_data_changed")
# called by the event block
func load_data(data:Dictionary):
# First set the event_data
.load_data(data)
# Now update the ui nodes to display the data.
file_picker.load_data(data)
# has to return the wanted preview, only useful for body parts
func get_preview():
return ''
func _on_ScenePicker_data_changed(data):
event_data = data
data_changed()
@@ -0,0 +1,19 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://addons/dialogic/Editor/Events/Parts/ResourcePickers/Scenes/EventPart_ScenePicker.gd" type="Script" id=1]
[ext_resource path="res://addons/dialogic/Editor/Events/Parts/ResourcePickers/Files/FilePicker.tscn" type="PackedScene" id=2]
[node name="ScenePicker" type="VBoxContainer"]
margin_right = 40.0
margin_bottom = 40.0
size_flags_vertical = 4
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="FilePicker" parent="." instance=ExtResource( 2 )]
margin_top = 0.0
margin_right = 199.0
margin_bottom = 22.0
Mode = "Scene"