Uploaded game files
This commit is contained in:
parent
459da513f6
commit
f71e7e39a0
1543 changed files with 50503 additions and 0 deletions
|
@ -0,0 +1,29 @@
|
|||
tool
|
||||
extends "res://addons/dialogic/Editor/Events/Parts/EventPart.gd"
|
||||
|
||||
# has an event_data variable that stores the current data!!!
|
||||
|
||||
## node references
|
||||
onready var number_box = $HBox/NumberBox
|
||||
|
||||
# used to connect the signals
|
||||
func _ready():
|
||||
number_box.connect("value_changed", self, "_on_NumberBox_value_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.
|
||||
number_box.value = event_data['transition_duration']
|
||||
|
||||
# has to return the wanted preview, only useful for body parts
|
||||
func get_preview():
|
||||
return ''
|
||||
|
||||
func _on_NumberBox_value_changed(value):
|
||||
event_data['transition_duration'] = value
|
||||
|
||||
# informs the parent about the changes!
|
||||
data_changed()
|
|
@ -0,0 +1,35 @@
|
|||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://addons/dialogic/Editor/Events/Parts/SpinBoxPreventDnD.gd" type="Script" id=1]
|
||||
[ext_resource path="res://addons/dialogic/Editor/Events/Parts/Numbers/EventPart_TransitonLengthPicker.gd" type="Script" id=2]
|
||||
|
||||
[node name="TransitonLengthPicker" type="VBoxContainer"]
|
||||
margin_right = 195.0
|
||||
margin_bottom = 24.0
|
||||
size_flags_vertical = 3
|
||||
script = ExtResource( 2 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="HBox" type="HBoxContainer" parent="."]
|
||||
margin_right = 195.0
|
||||
margin_bottom = 24.0
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="NameLabel" type="Label" parent="HBox"]
|
||||
margin_top = 5.0
|
||||
margin_right = 117.0
|
||||
margin_bottom = 19.0
|
||||
text = "Fade-out duration:"
|
||||
|
||||
[node name="NumberBox" type="SpinBox" parent="HBox"]
|
||||
margin_left = 121.0
|
||||
margin_right = 195.0
|
||||
margin_bottom = 24.0
|
||||
size_flags_vertical = 6
|
||||
step = 0.1
|
||||
value = 1.0
|
||||
allow_greater = true
|
||||
align = 1
|
||||
script = ExtResource( 1 )
|
Loading…
Add table
Add a link
Reference in a new issue