Uploaded game files

This commit is contained in:
JamnedZ 2022-11-18 00:52:05 +07:00
parent 459da513f6
commit f71e7e39a0
1543 changed files with 50503 additions and 0 deletions

View file

@ -0,0 +1,49 @@
tool
extends "res://addons/dialogic/Editor/Events/Parts/EventPart.gd"
# has an event_data variable that stores the current data!!!
## node references
onready var seconds_selector = $HBoxContainer/SecondsBox
onready var skippable_selector = $HBoxContainer/SkippableCheckbox
onready var hideBox_selector = $HBoxContainer/HideDialogBoxCheckbox
# used to connect the signals
func _ready():
seconds_selector.connect("value_changed", self, "_on_SecondsSelector_value_changed")
skippable_selector.connect("toggled", self, "_on_SkippableSelector_toggled")
hideBox_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)
# Now update the ui nodes to display the data.
seconds_selector.value = event_data['wait_seconds']
skippable_selector.pressed = event_data.get('waiting_skippable', false)
hideBox_selector.pressed = event_data.get('hide_dialogbox', true)
if event_data['wait_seconds'] == 1:
$HBoxContainer/Label2.text = "second"
else:
$HBoxContainer/Label2.text = "seconds"
func _on_SecondsSelector_value_changed(value):
event_data['wait_seconds'] = value
if value == 1:
$HBoxContainer/Label2.text = "second"
else:
$HBoxContainer/Label2.text = "seconds"
data_changed()
func _on_SkippableSelector_toggled(checkbox_value):
event_data['waiting_skippable'] = checkbox_value
data_changed()
func _on_HideDialogBox_toggled(checkbox_value):
event_data['hide_dialogbox'] = checkbox_value
data_changed()
# has to return the wanted preview, only useful for body parts
func get_preview():
return ''

View file

@ -0,0 +1,56 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://addons/dialogic/Editor/Events/Parts/WaitSeconds/EventPart_WaitSeconds.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]
[ext_resource path="res://addons/dialogic/Editor/Events/Parts/SpinBoxPreventDnD.gd" type="Script" id=4]
[node name="VBoxContainer" type="VBoxContainer"]
size_flags_vertical = 4
theme = ExtResource( 3 )
script = ExtResource( 1 )
[node name="HBoxContainer" type="HBoxContainer" parent="."]
margin_right = 377.0
margin_bottom = 24.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" parent="HBoxContainer" instance=ExtResource( 2 )]
margin_top = 5.0
margin_right = 17.0
margin_bottom = 19.0
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "for"
[node name="SecondsBox" type="SpinBox" parent="HBoxContainer"]
margin_left = 21.0
margin_right = 97.0
margin_bottom = 24.0
min_value = 0.1
step = 0.1
value = 1.0
allow_greater = true
align = 1
script = ExtResource( 4 )
[node name="Label2" parent="HBoxContainer" instance=ExtResource( 2 )]
margin_left = 101.0
margin_top = 5.0
margin_right = 154.0
margin_bottom = 19.0
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "seconds"
[node name="SkippableCheckbox" type="CheckBox" parent="HBoxContainer"]
margin_left = 158.0
margin_right = 247.0
margin_bottom = 24.0
text = "Skippable"
[node name="HideDialogBoxCheckbox" type="CheckBox" parent="HBoxContainer"]
margin_left = 251.0
margin_right = 377.0
margin_bottom = 24.0
text = "Hide DialogBox"