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,47 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://addons/dialogic/Editor/Events/Parts/ResourcePickers/Files/FilePicker.tscn" type="PackedScene" id=1]
[ext_resource path="res://addons/dialogic/Editor/Events/Parts/Images/EventPart_BackgroundPicker.gd" type="Script" id=2]
[ext_resource path="res://addons/dialogic/Editor/Events/Parts/SpinBoxPreventDnD.gd" type="Script" id=3]
[ext_resource path="res://addons/dialogic/Editor/Events/styles/InputFieldsStyle.tres" type="Theme" id=4]
[node name="BackgroundPicker" type="VBoxContainer"]
margin_top = 1.0
margin_right = 331.0
margin_bottom = 23.0
size_flags_vertical = 4
theme = ExtResource( 4 )
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="HBox" type="HBoxContainer" parent="."]
margin_right = 353.0
margin_bottom = 24.0
size_flags_horizontal = 3
size_flags_vertical = 3
__meta__ = {
"_edit_use_anchors_": false
}
[node name="FilePicker" parent="HBox" instance=ExtResource( 1 )]
margin_right = 149.0
[node name="FadeLabel" type="Label" parent="HBox"]
margin_left = 153.0
margin_top = 5.0
margin_right = 273.0
margin_bottom = 19.0
text = " Fade-in duration:"
[node name="NumberBox" type="SpinBox" parent="HBox"]
margin_left = 277.0
margin_right = 353.0
margin_bottom = 24.0
size_flags_vertical = 6
step = 0.1
value = 1.0
allow_greater = true
align = 1
script = ExtResource( 3 )

View file

@ -0,0 +1,30 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://addons/dialogic/Editor/Events/Parts/Images/EventPart_BackgroundPreview.gd" type="Script" id=1]
[node name="BackgroundPreview" type="VBoxContainer"]
margin_right = 40.0
margin_bottom = 40.0
size_flags_horizontal = 0
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Box" type="CenterContainer" parent="."]
margin_right = 200.0
margin_bottom = 200.0
mouse_filter = 1
size_flags_horizontal = 3
size_flags_vertical = 3
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TextureRect" type="TextureRect" parent="Box"]
margin_right = 200.0
margin_bottom = 200.0
rect_min_size = Vector2( 200, 200 )
size_flags_vertical = 5
expand = true
stretch_mode = 6

View file

@ -0,0 +1,73 @@
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 = $HBox/FilePicker
onready var fade_duration_label = $HBox/FadeLabel
onready var fade_duration = $HBox/NumberBox
# used to connect the signals
func _ready():
file_picker.connect("data_changed", self, "_on_FilePicker_data_changed")
fade_duration.connect('value_changed', self, '_on_fade_duration_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)
if event_data['background']:
fade_duration_label.visible = true
fade_duration.visible = true
emit_signal("request_close_body")
else:
fade_duration_label.visible = false
fade_duration.visible = false
emit_signal("request_close_body")
fade_duration.value = event_data.get('fade_duration', 1)
# has to return the wanted preview, only useful for body parts
func get_preview():
return ''
func _on_FilePicker_data_changed(data):
event_data = data
fade_duration.visible = !data['background'].empty()
fade_duration_label.visible = !data['background'].empty()
if !data['background'].empty():
emit_signal("request_open_body")
else:
emit_signal("request_close_body")
# informs the parent about the changes!
data_changed()
#func _on_ClearButton_pressed():
# event_data['background'] = ''
#
# clear_button.disabled = true
# name_label.text = 'No image (will clear previous background)'
# image_button.hint_tooltip = 'No background selected'
# fade_duration.visible = false
# fade_duration_label.visible = false
# fade_duration.value = 1
#
# emit_signal("request_close_body")
#
# # informs the parent about the changes!
# data_changed()
func _on_fade_duration_changed(value: float):
event_data['fade_duration'] = value
# informs the parent about the changes!
data_changed()

View file

@ -0,0 +1,39 @@
tool
extends "res://addons/dialogic/Editor/Events/Parts/EventPart.gd"
# has an event_data variable that stores the current data!!!
## node references
onready var texture_rect = $Box/TextureRect
# used to connect the signals
func _ready():
pass
# 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.
if event_data['background']:
if not event_data['background'].ends_with('.tscn'):
emit_signal("request_set_body_enabled", true)
texture_rect.texture = load(event_data['background'])
else:
emit_signal("request_set_body_enabled", false)
if editor_reference and editor_reference.editor_interface:
editor_reference.editor_interface.get_resource_previewer().queue_resource_preview(event_data['background'], self, "show_scene_preview", null)
else:
emit_signal("request_set_body_enabled", false)
# has to return the wanted preview, only useful for body parts
func get_preview():
return ''
func show_scene_preview(path:String, preview:Texture, user_data):
if preview:
texture_rect.texture = preview
emit_signal("request_set_body_enabled", true)