Uploaded game files
This commit is contained in:
parent
459da513f6
commit
f71e7e39a0
1543 changed files with 50503 additions and 0 deletions
|
@ -0,0 +1,35 @@
|
|||
tool
|
||||
extends "res://addons/dialogic/Editor/Events/Parts/EventPart.gd"
|
||||
|
||||
# has an event_data variable that stores the current data!!!
|
||||
|
||||
## node references
|
||||
onready var noskip_selector = $HBoxContainer/NoSkipCheckbox
|
||||
onready var autoadvance_time = $HBoxContainer2/AutoAdvanceTime
|
||||
|
||||
# used to connect the signals
|
||||
func _ready():
|
||||
autoadvance_time.connect("value_changed", self, "_on_SecondsSelector_value_changed")
|
||||
noskip_selector.connect("toggled", self, "_on_HideDialogBox_toggled")
|
||||
|
||||
# called by the event block
|
||||
func load_data(data:Dictionary):
|
||||
# First set the event_data
|
||||
.load_data(data)
|
||||
|
||||
autoadvance_time.value = event_data['wait_time']
|
||||
noskip_selector.pressed = event_data.get('block_input', true)
|
||||
|
||||
|
||||
func _on_SecondsSelector_value_changed(value):
|
||||
event_data['wait_time'] = value
|
||||
data_changed()
|
||||
|
||||
|
||||
func _on_HideDialogBox_toggled(checkbox_value):
|
||||
event_data['block_input'] = checkbox_value
|
||||
data_changed()
|
||||
|
||||
# has to return the wanted preview, only useful for body parts
|
||||
func get_preview():
|
||||
return ''
|
|
@ -0,0 +1,56 @@
|
|||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://addons/dialogic/Editor/Events/Parts/NoSkip/EventPart_NoSkip.gd" type="Script" id=1]
|
||||
[ext_resource path="res://addons/dialogic/Editor/Events/Parts/Text/GreyLabel.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://addons/dialogic/Editor/Events/styles/InputFieldsStyle.tres" type="Theme" id=3]
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer"]
|
||||
size_flags_vertical = 4
|
||||
theme = ExtResource( 3 )
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
||||
margin_right = 392.0
|
||||
margin_bottom = 31.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Label" parent="HBoxContainer" instance=ExtResource( 2 )]
|
||||
margin_top = 0.0
|
||||
margin_right = 243.0
|
||||
margin_bottom = 31.0
|
||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||
text = "Ignore input and auto advance dialog?
|
||||
until an unchecked No Skip is reached"
|
||||
|
||||
[node name="NoSkipCheckbox" type="CheckBox" parent="HBoxContainer"]
|
||||
margin_left = 368.0
|
||||
margin_right = 392.0
|
||||
margin_bottom = 31.0
|
||||
size_flags_horizontal = 10
|
||||
|
||||
[node name="HSeparator" type="HSeparator" parent="."]
|
||||
margin_top = 35.0
|
||||
margin_right = 392.0
|
||||
margin_bottom = 39.0
|
||||
|
||||
[node name="HBoxContainer2" type="HBoxContainer" parent="."]
|
||||
margin_top = 43.0
|
||||
margin_right = 392.0
|
||||
margin_bottom = 67.0
|
||||
|
||||
[node name="Label2" parent="HBoxContainer2" instance=ExtResource( 2 )]
|
||||
margin_top = 5.0
|
||||
margin_right = 312.0
|
||||
margin_bottom = 19.0
|
||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||
text = "Default wait time after dialog finishes in seconds"
|
||||
|
||||
[node name="AutoAdvanceTime" type="SpinBox" parent="HBoxContainer2"]
|
||||
margin_left = 316.0
|
||||
margin_right = 392.0
|
||||
margin_bottom = 24.0
|
||||
min_value = 2.0
|
||||
max_value = 50.0
|
||||
value = 2.0
|
Loading…
Add table
Add a link
Reference in a new issue