update dialogic to v1.0
|
@ -1,4 +1,4 @@
|
||||||
[gd_scene load_steps=12 format=2]
|
[gd_scene load_steps=14 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://addons/dialogic/Images/next-indicator.png" type="Texture" id=1]
|
[ext_resource path="res://addons/dialogic/Images/next-indicator.png" type="Texture" id=1]
|
||||||
[ext_resource path="res://addons/dialogic/Images/background/background-2.png" type="Texture" id=2]
|
[ext_resource path="res://addons/dialogic/Images/background/background-2.png" type="Texture" id=2]
|
||||||
|
@ -13,6 +13,25 @@ bg_color = Color( 1, 1, 1, 0 )
|
||||||
expand_margin_left = 10.0
|
expand_margin_left = 10.0
|
||||||
|
|
||||||
[sub_resource type="Animation" id=2]
|
[sub_resource type="Animation" id=2]
|
||||||
|
resource_name = "Pulse"
|
||||||
|
loop = true
|
||||||
|
tracks/0/type = "value"
|
||||||
|
tracks/0/path = NodePath(".:self_modulate")
|
||||||
|
tracks/0/interp = 2
|
||||||
|
tracks/0/loop_wrap = true
|
||||||
|
tracks/0/imported = false
|
||||||
|
tracks/0/enabled = true
|
||||||
|
tracks/0/keys = {
|
||||||
|
"times": PoolRealArray( 0, 0.5 ),
|
||||||
|
"transitions": PoolRealArray( 1, 1 ),
|
||||||
|
"update": 0,
|
||||||
|
"values": [ Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ]
|
||||||
|
}
|
||||||
|
|
||||||
|
[sub_resource type="Animation" id=3]
|
||||||
|
resource_name = "Static"
|
||||||
|
|
||||||
|
[sub_resource type="Animation" id=4]
|
||||||
loop = true
|
loop = true
|
||||||
tracks/0/type = "value"
|
tracks/0/type = "value"
|
||||||
tracks/0/path = NodePath(".:margin_bottom")
|
tracks/0/path = NodePath(".:margin_bottom")
|
||||||
|
@ -27,13 +46,13 @@ tracks/0/keys = {
|
||||||
"values": [ 12.0, 55.0 ]
|
"values": [ 12.0, 55.0 ]
|
||||||
}
|
}
|
||||||
|
|
||||||
[sub_resource type="StyleBoxFlat" id=3]
|
[sub_resource type="StyleBoxFlat" id=5]
|
||||||
content_margin_left = 10.0
|
content_margin_left = 10.0
|
||||||
content_margin_right = 10.0
|
content_margin_right = 10.0
|
||||||
bg_color = Color( 1, 1, 1, 0 )
|
bg_color = Color( 1, 1, 1, 0 )
|
||||||
expand_margin_left = 10.0
|
expand_margin_left = 10.0
|
||||||
|
|
||||||
[sub_resource type="StyleBoxFlat" id=4]
|
[sub_resource type="StyleBoxFlat" id=6]
|
||||||
bg_color = Color( 0.196078, 0.196078, 0.196078, 0 )
|
bg_color = Color( 0.196078, 0.196078, 0.196078, 0 )
|
||||||
|
|
||||||
[node name="DialogNode" type="Control"]
|
[node name="DialogNode" type="Control"]
|
||||||
|
@ -77,15 +96,15 @@ __meta__ = {
|
||||||
}
|
}
|
||||||
|
|
||||||
[node name="ColorRect" type="ColorRect" parent="TextBubble"]
|
[node name="ColorRect" type="ColorRect" parent="TextBubble"]
|
||||||
|
visible = false
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
color = Color( 0, 0, 0, 0.639216 )
|
color = Color( 0, 0, 0, 1 )
|
||||||
__meta__ = {
|
__meta__ = {
|
||||||
"_edit_use_anchors_": false
|
"_edit_use_anchors_": false
|
||||||
}
|
}
|
||||||
|
|
||||||
[node name="TextureRect" type="TextureRect" parent="TextBubble"]
|
[node name="TextureRect" type="TextureRect" parent="TextBubble"]
|
||||||
visible = false
|
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
texture = ExtResource( 2 )
|
texture = ExtResource( 2 )
|
||||||
|
@ -128,7 +147,7 @@ anchor_bottom = 1.0
|
||||||
margin_left = -36.4279
|
margin_left = -36.4279
|
||||||
margin_top = -35.9016
|
margin_top = -35.9016
|
||||||
margin_right = 14.5721
|
margin_right = 14.5721
|
||||||
margin_bottom = 12.0
|
margin_bottom = 29.4015
|
||||||
rect_scale = Vector2( 0.4, 0.4 )
|
rect_scale = Vector2( 0.4, 0.4 )
|
||||||
texture = ExtResource( 1 )
|
texture = ExtResource( 1 )
|
||||||
stretch_mode = 4
|
stretch_mode = 4
|
||||||
|
@ -137,17 +156,20 @@ __meta__ = {
|
||||||
}
|
}
|
||||||
|
|
||||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="TextBubble/NextIndicator"]
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="TextBubble/NextIndicator"]
|
||||||
autoplay = "IDLE"
|
autoplay = "Up and down"
|
||||||
anims/IDLE = SubResource( 2 )
|
anims/Pulse = SubResource( 2 )
|
||||||
|
anims/Static = SubResource( 3 )
|
||||||
|
"anims/Up and down" = SubResource( 4 )
|
||||||
|
|
||||||
[node name="NameLabel" type="Label" parent="TextBubble"]
|
[node name="NameLabel" type="Label" parent="TextBubble"]
|
||||||
margin_top = -40.0
|
margin_top = -48.0
|
||||||
margin_right = 58.0
|
margin_right = 58.0
|
||||||
|
margin_bottom = -8.0
|
||||||
size_flags_vertical = 1
|
size_flags_vertical = 1
|
||||||
custom_styles/normal = SubResource( 3 )
|
custom_styles/normal = SubResource( 5 )
|
||||||
custom_fonts/font = ExtResource( 3 )
|
custom_fonts/font = ExtResource( 3 )
|
||||||
custom_colors/font_color = Color( 1, 1, 1, 1 )
|
custom_colors/font_color = Color( 1, 1, 1, 1 )
|
||||||
custom_colors/font_color_shadow = Color( 1, 1, 1, 0 )
|
custom_colors/font_color_shadow = Color( 0, 0, 0, 0.619608 )
|
||||||
custom_constants/shadow_offset_x = 2
|
custom_constants/shadow_offset_x = 2
|
||||||
custom_constants/shadow_offset_y = 2
|
custom_constants/shadow_offset_y = 2
|
||||||
align = 1
|
align = 1
|
||||||
|
@ -157,18 +179,18 @@ __meta__ = {
|
||||||
}
|
}
|
||||||
|
|
||||||
[node name="ColorRect" type="ColorRect" parent="TextBubble/NameLabel"]
|
[node name="ColorRect" type="ColorRect" parent="TextBubble/NameLabel"]
|
||||||
|
visible = false
|
||||||
show_behind_parent = true
|
show_behind_parent = true
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
size_flags_horizontal = 15
|
size_flags_horizontal = 15
|
||||||
size_flags_vertical = 15
|
size_flags_vertical = 15
|
||||||
color = Color( 0, 0, 0, 0.721569 )
|
color = Color( 0.156863, 0.156863, 0.156863, 1 )
|
||||||
__meta__ = {
|
__meta__ = {
|
||||||
"_edit_use_anchors_": false
|
"_edit_use_anchors_": false
|
||||||
}
|
}
|
||||||
|
|
||||||
[node name="TextureRect" type="TextureRect" parent="TextBubble/NameLabel"]
|
[node name="TextureRect" type="TextureRect" parent="TextBubble/NameLabel"]
|
||||||
visible = false
|
|
||||||
show_behind_parent = true
|
show_behind_parent = true
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
|
@ -249,7 +271,7 @@ margin_right = 208.0
|
||||||
mouse_filter = 1
|
mouse_filter = 1
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
size_flags_vertical = 3
|
size_flags_vertical = 3
|
||||||
custom_styles/panel = SubResource( 4 )
|
custom_styles/panel = SubResource( 6 )
|
||||||
script = ExtResource( 5 )
|
script = ExtResource( 5 )
|
||||||
__meta__ = {
|
__meta__ = {
|
||||||
"_edit_group_": true,
|
"_edit_group_": true,
|
||||||
|
@ -318,7 +340,6 @@ __meta__ = {
|
||||||
[node name="Timer" type="Timer" parent="DefinitionInfo"]
|
[node name="Timer" type="Timer" parent="DefinitionInfo"]
|
||||||
|
|
||||||
[node name="WaitSeconds" type="Timer" parent="."]
|
[node name="WaitSeconds" type="Timer" parent="."]
|
||||||
|
|
||||||
[connection signal="meta_hover_ended" from="TextBubble/RichTextLabel" to="." method="_on_RichTextLabel_meta_hover_ended"]
|
[connection signal="meta_hover_ended" from="TextBubble/RichTextLabel" to="." method="_on_RichTextLabel_meta_hover_ended"]
|
||||||
[connection signal="meta_hover_started" from="TextBubble/RichTextLabel" to="." method="_on_RichTextLabel_meta_hover_started"]
|
[connection signal="meta_hover_started" from="TextBubble/RichTextLabel" to="." method="_on_RichTextLabel_meta_hover_started"]
|
||||||
[connection signal="tween_completed" from="TextBubble/Tween" to="." method="_on_Tween_tween_completed"]
|
[connection signal="tween_completed" from="TextBubble/Tween" to="." method="_on_Tween_tween_completed"]
|
||||||
|
|
|
@ -27,6 +27,8 @@ func _ready():
|
||||||
nodes['display_name_checkbox'].connect('toggled', self, '_on_display_name_toggled')
|
nodes['display_name_checkbox'].connect('toggled', self, '_on_display_name_toggled')
|
||||||
nodes['name'].connect('text_changed', self, '_on_name_changed')
|
nodes['name'].connect('text_changed', self, '_on_name_changed')
|
||||||
nodes['color'].connect('color_changed', self, '_on_color_changed')
|
nodes['color'].connect('color_changed', self, '_on_color_changed')
|
||||||
|
var style = get('custom_styles/bg')
|
||||||
|
style.set('bg_color', get_color("base_color", "Editor"))
|
||||||
|
|
||||||
|
|
||||||
func is_selected(file: String):
|
func is_selected(file: String):
|
||||||
|
|
|
@ -8,12 +8,7 @@ content_margin_left = 5.0
|
||||||
content_margin_right = 5.0
|
content_margin_right = 5.0
|
||||||
content_margin_top = 5.0
|
content_margin_top = 5.0
|
||||||
content_margin_bottom = 5.0
|
content_margin_bottom = 5.0
|
||||||
bg_color = Color( 0.2, 0.219608, 0.278431, 1 )
|
bg_color = Color( 0.2, 0.23, 0.31, 1 )
|
||||||
border_width_left = 1
|
|
||||||
border_width_top = 1
|
|
||||||
border_width_right = 1
|
|
||||||
border_width_bottom = 1
|
|
||||||
border_color = Color( 0.0980392, 0.113725, 0.152941, 1 )
|
|
||||||
|
|
||||||
[node name="CharacterEditor" type="ScrollContainer"]
|
[node name="CharacterEditor" type="ScrollContainer"]
|
||||||
margin_left = 192.0
|
margin_left = 192.0
|
||||||
|
|
|
@ -8,10 +8,6 @@ func _ready():
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
func _process(_delta):
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
func _on_ButtonDelete_pressed():
|
func _on_ButtonDelete_pressed():
|
||||||
if $NameEdit.text == 'Default':
|
if $NameEdit.text == 'Default':
|
||||||
$PathEdit.text = ''
|
$PathEdit.text = ''
|
||||||
|
|
|
@ -105,6 +105,8 @@ func _add_timeline(timeline, select = false):
|
||||||
item.set_text(0, timeline['file'])
|
item.set_text(0, timeline['file'])
|
||||||
timeline['editor'] = 'Timeline'
|
timeline['editor'] = 'Timeline'
|
||||||
item.set_metadata(0, timeline)
|
item.set_metadata(0, timeline)
|
||||||
|
if not get_constant("dark_theme", "Editor"):
|
||||||
|
item.set_icon_modulate(0, get_color("property_color", "Editor"))
|
||||||
#item.set_editable(0, true)
|
#item.set_editable(0, true)
|
||||||
if select: # Auto selecting
|
if select: # Auto selecting
|
||||||
item.select(0)
|
item.select(0)
|
||||||
|
@ -122,7 +124,8 @@ func _add_theme(theme_item, select = false):
|
||||||
item.set_text(0, theme_item['name'])
|
item.set_text(0, theme_item['name'])
|
||||||
theme_item['editor'] = 'Theme'
|
theme_item['editor'] = 'Theme'
|
||||||
item.set_metadata(0, theme_item)
|
item.set_metadata(0, theme_item)
|
||||||
#item.set_editable(0, true)
|
if not get_constant("dark_theme", "Editor"):
|
||||||
|
item.set_icon_modulate(0, get_color("property_color", "Editor"))
|
||||||
if select: # Auto selecting
|
if select: # Auto selecting
|
||||||
item.select(0)
|
item.select(0)
|
||||||
|
|
||||||
|
@ -162,9 +165,10 @@ func _add_definition(definition, select = false):
|
||||||
item.set_icon(0, definition_icon)
|
item.set_icon(0, definition_icon)
|
||||||
if definition['type'] == 1:
|
if definition['type'] == 1:
|
||||||
item.set_icon(0, glossary_icon)
|
item.set_icon(0, glossary_icon)
|
||||||
|
|
||||||
definition['editor'] = 'Definition'
|
definition['editor'] = 'Definition'
|
||||||
item.set_metadata(0, definition)
|
item.set_metadata(0, definition)
|
||||||
|
if not get_constant("dark_theme", "Editor"):
|
||||||
|
item.set_icon_modulate(0, get_color("property_color", "Editor"))
|
||||||
if select: # Auto selecting
|
if select: # Auto selecting
|
||||||
item.select(0)
|
item.select(0)
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
[gd_scene load_steps=9 format=2]
|
[gd_scene load_steps=8 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/AudioBlock.gd" type="Script" id=1]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/AudioBlock.gd" type="Script" id=1]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=2]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=2]
|
||||||
[ext_resource path="res://addons/dialogic/Images/audio-event.svg" type="Texture" id=3]
|
[ext_resource path="res://addons/dialogic/Images/Events/audio-event.svg" type="Texture" id=3]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
|
||||||
[ext_resource path="res://addons/dialogic/Images/play.svg" type="Texture" id=5]
|
[ext_resource path="res://addons/dialogic/Images/play.svg" type="Texture" id=5]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/DragController.tscn" type="PackedScene" id=6]
|
|
||||||
[ext_resource path="res://addons/dialogic/Images/Remove.svg" type="Texture" id=7]
|
[ext_resource path="res://addons/dialogic/Images/Remove.svg" type="Texture" id=7]
|
||||||
|
|
||||||
[sub_resource type="StyleBoxFlat" id=1]
|
[sub_resource type="StyleBoxFlat" id=1]
|
||||||
|
@ -13,7 +12,7 @@ content_margin_left = 16.0
|
||||||
content_margin_right = 6.0
|
content_margin_right = 6.0
|
||||||
content_margin_top = 6.0
|
content_margin_top = 6.0
|
||||||
content_margin_bottom = 6.0
|
content_margin_bottom = 6.0
|
||||||
bg_color = Color( 0.580392, 0.286275, 0.227451, 0.447059 )
|
bg_color = Color( 0.160784, 0.423529, 0.309804, 0.447059 )
|
||||||
border_width_left = 2
|
border_width_left = 2
|
||||||
border_width_top = 2
|
border_width_top = 2
|
||||||
border_width_right = 2
|
border_width_right = 2
|
||||||
|
@ -75,25 +74,26 @@ text = " Audio "
|
||||||
[node name="Name" type="Label" parent="PanelContainer/VBoxContainer/Header"]
|
[node name="Name" type="Label" parent="PanelContainer/VBoxContainer/Header"]
|
||||||
margin_left = 87.0
|
margin_left = 87.0
|
||||||
margin_top = 7.0
|
margin_top = 7.0
|
||||||
margin_right = 87.0
|
margin_right = 352.0
|
||||||
margin_bottom = 21.0
|
margin_bottom = 21.0
|
||||||
|
text = "No sound (will stop previous audio event)"
|
||||||
|
|
||||||
[node name="ButtonAudio" type="Button" parent="PanelContainer/VBoxContainer/Header"]
|
[node name="ButtonAudio" type="Button" parent="PanelContainer/VBoxContainer/Header"]
|
||||||
margin_left = 91.0
|
margin_left = 356.0
|
||||||
margin_right = 115.0
|
margin_right = 380.0
|
||||||
margin_bottom = 28.0
|
margin_bottom = 28.0
|
||||||
text = "..."
|
text = "..."
|
||||||
|
|
||||||
[node name="ButtonClear" type="Button" parent="PanelContainer/VBoxContainer/Header"]
|
[node name="ButtonClear" type="Button" parent="PanelContainer/VBoxContainer/Header"]
|
||||||
margin_left = 119.0
|
margin_left = 384.0
|
||||||
margin_right = 147.0
|
margin_right = 412.0
|
||||||
margin_bottom = 28.0
|
margin_bottom = 28.0
|
||||||
disabled = true
|
disabled = true
|
||||||
icon = ExtResource( 7 )
|
icon = ExtResource( 7 )
|
||||||
|
|
||||||
[node name="ButtonPreviewPlay" type="Button" parent="PanelContainer/VBoxContainer/Header"]
|
[node name="ButtonPreviewPlay" type="Button" parent="PanelContainer/VBoxContainer/Header"]
|
||||||
margin_left = 151.0
|
margin_left = 416.0
|
||||||
margin_right = 185.0
|
margin_right = 450.0
|
||||||
margin_bottom = 28.0
|
margin_bottom = 28.0
|
||||||
disabled = true
|
disabled = true
|
||||||
icon = ExtResource( 5 )
|
icon = ExtResource( 5 )
|
||||||
|
@ -108,7 +108,7 @@ custom_colors/font_color = Color( 1, 1, 1, 0.513726 )
|
||||||
text = " ..."
|
text = " ..."
|
||||||
|
|
||||||
[node name="Spacer" parent="PanelContainer/VBoxContainer/Header" instance=ExtResource( 2 )]
|
[node name="Spacer" parent="PanelContainer/VBoxContainer/Header" instance=ExtResource( 2 )]
|
||||||
margin_left = 189.0
|
margin_left = 454.0
|
||||||
margin_right = 1735.0
|
margin_right = 1735.0
|
||||||
margin_bottom = 28.0
|
margin_bottom = 28.0
|
||||||
|
|
||||||
|
@ -119,8 +119,6 @@ margin_bottom = 28.0
|
||||||
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
||||||
|
|
||||||
[node name="AudioPreview" type="AudioStreamPlayer" parent="PanelContainer"]
|
[node name="AudioPreview" type="AudioStreamPlayer" parent="PanelContainer"]
|
||||||
|
|
||||||
[node name="DragController" parent="." instance=ExtResource( 6 )]
|
|
||||||
[connection signal="pressed" from="PanelContainer/VBoxContainer/Header/ButtonAudio" to="." method="_on_ButtonAudio_pressed"]
|
[connection signal="pressed" from="PanelContainer/VBoxContainer/Header/ButtonAudio" to="." method="_on_ButtonAudio_pressed"]
|
||||||
[connection signal="pressed" from="PanelContainer/VBoxContainer/Header/ButtonClear" to="." method="_on_ButtonClear_pressed"]
|
[connection signal="pressed" from="PanelContainer/VBoxContainer/Header/ButtonClear" to="." method="_on_ButtonClear_pressed"]
|
||||||
[connection signal="pressed" from="PanelContainer/VBoxContainer/Header/ButtonPreviewPlay" to="." method="_on_ButtonPreviewPlay_pressed"]
|
[connection signal="pressed" from="PanelContainer/VBoxContainer/Header/ButtonPreviewPlay" to="." method="_on_ButtonPreviewPlay_pressed"]
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
[gd_scene load_steps=9 format=2]
|
[gd_scene load_steps=8 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/BackgroundMusic.gd" type="Script" id=1]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/BackgroundMusic.gd" type="Script" id=1]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=2]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=2]
|
||||||
[ext_resource path="res://addons/dialogic/Images/audio-event.svg" type="Texture" id=3]
|
[ext_resource path="res://addons/dialogic/Images/Events/background-music.svg" type="Texture" id=3]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
|
||||||
[ext_resource path="res://addons/dialogic/Images/play.svg" type="Texture" id=5]
|
[ext_resource path="res://addons/dialogic/Images/play.svg" type="Texture" id=5]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/DragController.tscn" type="PackedScene" id=6]
|
|
||||||
[ext_resource path="res://addons/dialogic/Images/Remove.svg" type="Texture" id=7]
|
[ext_resource path="res://addons/dialogic/Images/Remove.svg" type="Texture" id=7]
|
||||||
|
|
||||||
[sub_resource type="StyleBoxFlat" id=1]
|
[sub_resource type="StyleBoxFlat" id=1]
|
||||||
|
@ -13,7 +12,7 @@ content_margin_left = 16.0
|
||||||
content_margin_right = 6.0
|
content_margin_right = 6.0
|
||||||
content_margin_top = 6.0
|
content_margin_top = 6.0
|
||||||
content_margin_bottom = 6.0
|
content_margin_bottom = 6.0
|
||||||
bg_color = Color( 0.298039, 0.172549, 0.14902, 0.447059 )
|
bg_color = Color( 0.160784, 0.423529, 0.309804, 0.447059 )
|
||||||
border_width_left = 2
|
border_width_left = 2
|
||||||
border_width_top = 2
|
border_width_top = 2
|
||||||
border_width_right = 2
|
border_width_right = 2
|
||||||
|
@ -75,26 +74,26 @@ text = " Background Music"
|
||||||
[node name="Name" type="Label" parent="PanelContainer/VBoxContainer/Header"]
|
[node name="Name" type="Label" parent="PanelContainer/VBoxContainer/Header"]
|
||||||
margin_left = 154.0
|
margin_left = 154.0
|
||||||
margin_top = 7.0
|
margin_top = 7.0
|
||||||
margin_right = 188.0
|
margin_right = 368.0
|
||||||
margin_bottom = 21.0
|
margin_bottom = 21.0
|
||||||
text = "None"
|
text = "No music (will stop with fade out)"
|
||||||
|
|
||||||
[node name="ButtonAudio" type="Button" parent="PanelContainer/VBoxContainer/Header"]
|
[node name="ButtonAudio" type="Button" parent="PanelContainer/VBoxContainer/Header"]
|
||||||
margin_left = 192.0
|
margin_left = 372.0
|
||||||
margin_right = 216.0
|
margin_right = 396.0
|
||||||
margin_bottom = 28.0
|
margin_bottom = 28.0
|
||||||
text = "..."
|
text = "..."
|
||||||
|
|
||||||
[node name="ButtonClear" type="Button" parent="PanelContainer/VBoxContainer/Header"]
|
[node name="ButtonClear" type="Button" parent="PanelContainer/VBoxContainer/Header"]
|
||||||
margin_left = 220.0
|
margin_left = 400.0
|
||||||
margin_right = 248.0
|
margin_right = 428.0
|
||||||
margin_bottom = 28.0
|
margin_bottom = 28.0
|
||||||
disabled = true
|
disabled = true
|
||||||
icon = ExtResource( 7 )
|
icon = ExtResource( 7 )
|
||||||
|
|
||||||
[node name="ButtonPreviewPlay" type="Button" parent="PanelContainer/VBoxContainer/Header"]
|
[node name="ButtonPreviewPlay" type="Button" parent="PanelContainer/VBoxContainer/Header"]
|
||||||
margin_left = 252.0
|
margin_left = 432.0
|
||||||
margin_right = 286.0
|
margin_right = 466.0
|
||||||
margin_bottom = 28.0
|
margin_bottom = 28.0
|
||||||
disabled = true
|
disabled = true
|
||||||
icon = ExtResource( 5 )
|
icon = ExtResource( 5 )
|
||||||
|
@ -109,7 +108,7 @@ custom_colors/font_color = Color( 1, 1, 1, 0.513726 )
|
||||||
text = " ..."
|
text = " ..."
|
||||||
|
|
||||||
[node name="Spacer" parent="PanelContainer/VBoxContainer/Header" instance=ExtResource( 2 )]
|
[node name="Spacer" parent="PanelContainer/VBoxContainer/Header" instance=ExtResource( 2 )]
|
||||||
margin_left = 290.0
|
margin_left = 470.0
|
||||||
margin_right = 1735.0
|
margin_right = 1735.0
|
||||||
margin_bottom = 28.0
|
margin_bottom = 28.0
|
||||||
|
|
||||||
|
@ -120,8 +119,6 @@ margin_bottom = 28.0
|
||||||
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
||||||
|
|
||||||
[node name="AudioPreview" type="AudioStreamPlayer" parent="PanelContainer"]
|
[node name="AudioPreview" type="AudioStreamPlayer" parent="PanelContainer"]
|
||||||
|
|
||||||
[node name="DragController" parent="." instance=ExtResource( 6 )]
|
|
||||||
[connection signal="pressed" from="PanelContainer/VBoxContainer/Header/ButtonAudio" to="." method="_on_ButtonAudio_pressed"]
|
[connection signal="pressed" from="PanelContainer/VBoxContainer/Header/ButtonAudio" to="." method="_on_ButtonAudio_pressed"]
|
||||||
[connection signal="pressed" from="PanelContainer/VBoxContainer/Header/ButtonClear" to="." method="_on_ButtonClear_pressed"]
|
[connection signal="pressed" from="PanelContainer/VBoxContainer/Header/ButtonClear" to="." method="_on_ButtonClear_pressed"]
|
||||||
[connection signal="pressed" from="PanelContainer/VBoxContainer/Header/ButtonPreviewPlay" to="." method="_on_ButtonPreviewPlay_pressed"]
|
[connection signal="pressed" from="PanelContainer/VBoxContainer/Header/ButtonPreviewPlay" to="." method="_on_ButtonPreviewPlay_pressed"]
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
[gd_scene load_steps=7 format=2]
|
[gd_scene load_steps=6 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/ChangeScene.gd" type="Script" id=1]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/ChangeScene.gd" type="Script" id=1]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=2]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=2]
|
||||||
[ext_resource path="res://addons/dialogic/Images/change-scene.svg" type="Texture" id=3]
|
[ext_resource path="res://addons/dialogic/Images/Events/change-scene.svg" type="Texture" id=3]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/DragController.tscn" type="PackedScene" id=6]
|
|
||||||
|
|
||||||
[sub_resource type="StyleBoxFlat" id=1]
|
[sub_resource type="StyleBoxFlat" id=1]
|
||||||
content_margin_left = 16.0
|
content_margin_left = 16.0
|
||||||
|
@ -103,7 +102,5 @@ margin_bottom = 28.0
|
||||||
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
||||||
|
|
||||||
[node name="AudioPreview" type="AudioStreamPlayer" parent="PanelContainer"]
|
[node name="AudioPreview" type="AudioStreamPlayer" parent="PanelContainer"]
|
||||||
|
|
||||||
[node name="DragController" parent="." instance=ExtResource( 6 )]
|
|
||||||
[connection signal="pressed" from="PanelContainer/VBoxContainer/Header/ButtonScenePicker" to="." method="_on_ButtonScenePicker_pressed"]
|
[connection signal="pressed" from="PanelContainer/VBoxContainer/Header/ButtonScenePicker" to="." method="_on_ButtonScenePicker_pressed"]
|
||||||
[connection signal="finished" from="PanelContainer/AudioPreview" to="." method="_on_AudioPreview_finished"]
|
[connection signal="finished" from="PanelContainer/AudioPreview" to="." method="_on_AudioPreview_finished"]
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
[gd_scene load_steps=7 format=2]
|
[gd_scene load_steps=6 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/ChangeTimeline.gd" type="Script" id=1]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/ChangeTimeline.gd" type="Script" id=1]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=2]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=2]
|
||||||
[ext_resource path="res://addons/dialogic/Images/change-timeline.svg" type="Texture" id=3]
|
[ext_resource path="res://addons/dialogic/Images/Events/change-timeline.svg" type="Texture" id=3]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/DragController.tscn" type="PackedScene" id=5]
|
|
||||||
|
|
||||||
[sub_resource type="StyleBoxFlat" id=1]
|
[sub_resource type="StyleBoxFlat" id=1]
|
||||||
content_margin_left = 16.0
|
content_margin_left = 16.0
|
||||||
|
@ -91,6 +90,4 @@ margin_left = 1739.0
|
||||||
margin_right = 1776.0
|
margin_right = 1776.0
|
||||||
margin_bottom = 28.0
|
margin_bottom = 28.0
|
||||||
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
||||||
|
|
||||||
[node name="DragController" parent="." instance=ExtResource( 5 )]
|
|
||||||
[connection signal="about_to_show" from="PanelContainer/VBoxContainer/Header/MenuButton" to="." method="_on_MenuButton_about_to_show"]
|
[connection signal="about_to_show" from="PanelContainer/VBoxContainer/Header/MenuButton" to="." method="_on_MenuButton_about_to_show"]
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
[gd_scene load_steps=10 format=2]
|
[gd_scene load_steps=9 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=1]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=1]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=2]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=2]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/CharacterJoinBlock.gd" type="Script" id=3]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/CharacterJoinBlock.gd" type="Script" id=3]
|
||||||
[ext_resource path="res://addons/dialogic/Images/character-join.svg" type="Texture" id=4]
|
[ext_resource path="res://addons/dialogic/Images/character-join.svg" type="Texture" id=4]
|
||||||
[ext_resource path="res://addons/dialogic/Images/character.svg" type="Texture" id=5]
|
[ext_resource path="res://addons/dialogic/Images/character.svg" type="Texture" id=5]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/DragController.tscn" type="PackedScene" id=6]
|
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PortraitPicker.tscn" type="PackedScene" id=7]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PortraitPicker.tscn" type="PackedScene" id=7]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/CharacterPicker.tscn" type="PackedScene" id=8]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/CharacterPicker.tscn" type="PackedScene" id=8]
|
||||||
|
|
||||||
|
@ -134,5 +133,3 @@ margin_bottom = 30.0
|
||||||
margin_left = 1739.0
|
margin_left = 1739.0
|
||||||
margin_right = 1776.0
|
margin_right = 1776.0
|
||||||
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
||||||
|
|
||||||
[node name="DragController" parent="." instance=ExtResource( 6 )]
|
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
[gd_scene load_steps=7 format=2]
|
[gd_scene load_steps=6 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/CharacterLeaveBlock.gd" type="Script" id=1]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/CharacterLeaveBlock.gd" type="Script" id=1]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=2]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=2]
|
||||||
[ext_resource path="res://addons/dialogic/Images/character-leave.svg" type="Texture" id=3]
|
[ext_resource path="res://addons/dialogic/Images/character-leave.svg" type="Texture" id=3]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/DragController.tscn" type="PackedScene" id=5]
|
|
||||||
|
|
||||||
[sub_resource type="StyleBoxFlat" id=1]
|
[sub_resource type="StyleBoxFlat" id=1]
|
||||||
content_margin_left = 16.0
|
content_margin_left = 16.0
|
||||||
|
@ -99,6 +98,4 @@ margin_left = 1739.0
|
||||||
margin_right = 1776.0
|
margin_right = 1776.0
|
||||||
margin_bottom = 28.0
|
margin_bottom = 28.0
|
||||||
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
||||||
|
|
||||||
[node name="DragController" parent="." instance=ExtResource( 5 )]
|
|
||||||
[connection signal="about_to_show" from="PanelContainer/VBoxContainer/Header/CharacterDropdown" to="." method="_on_CharacterDropdown_about_to_show"]
|
[connection signal="about_to_show" from="PanelContainer/VBoxContainer/Header/CharacterDropdown" to="." method="_on_CharacterDropdown_about_to_show"]
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
[gd_scene load_steps=9 format=2]
|
[gd_scene load_steps=8 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://addons/dialogic/Images/choice.svg" type="Texture" id=1]
|
[ext_resource path="res://addons/dialogic/Images/choice.svg" type="Texture" id=1]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Choice.gd" type="Script" id=2]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Choice.gd" type="Script" id=2]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=3]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=3]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/DragController.tscn" type="PackedScene" id=5]
|
|
||||||
[ext_resource path="res://addons/dialogic/Images/warning.svg" type="Texture" id=6]
|
[ext_resource path="res://addons/dialogic/Images/warning.svg" type="Texture" id=6]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/CustomLineEdit.tscn" type="PackedScene" id=7]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/CustomLineEdit.tscn" type="PackedScene" id=7]
|
||||||
|
|
||||||
|
@ -109,6 +108,4 @@ margin_left = 945.0
|
||||||
margin_right = 982.0
|
margin_right = 982.0
|
||||||
margin_bottom = 28.0
|
margin_bottom = 28.0
|
||||||
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
||||||
|
|
||||||
[node name="DragController" parent="." instance=ExtResource( 5 )]
|
|
||||||
[connection signal="visibility_changed" from="Indent" to="." method="_on_Indent_visibility_changed"]
|
[connection signal="visibility_changed" from="Indent" to="." method="_on_Indent_visibility_changed"]
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
[gd_scene load_steps=7 format=2]
|
[gd_scene load_steps=6 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/DragController.tscn" type="PackedScene" id=1]
|
|
||||||
[ext_resource path="res://addons/dialogic/Images/end-dialog.svg" type="Texture" id=2]
|
[ext_resource path="res://addons/dialogic/Images/end-dialog.svg" type="Texture" id=2]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=3]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=3]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/CloseDialog.gd" type="Script" id=4]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/CloseDialog.gd" type="Script" id=4]
|
||||||
|
@ -85,5 +84,3 @@ margin_left = 1739.0
|
||||||
margin_right = 1776.0
|
margin_right = 1776.0
|
||||||
margin_bottom = 28.0
|
margin_bottom = 28.0
|
||||||
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
||||||
|
|
||||||
[node name="DragController" parent="." instance=ExtResource( 1 )]
|
|
||||||
|
|
|
@ -1,49 +0,0 @@
|
||||||
tool
|
|
||||||
extends Control
|
|
||||||
|
|
||||||
var moving
|
|
||||||
var hover = false
|
|
||||||
|
|
||||||
func _ready():
|
|
||||||
get_parent().connect("gui_input", self, '_on_gui_input')
|
|
||||||
get_parent().connect("mouse_entered", self, '_on_mouse_entered')
|
|
||||||
get_parent().connect("mouse_exited", self, '_on_mouse_exited')
|
|
||||||
|
|
||||||
func _process(delta):
|
|
||||||
if moving:
|
|
||||||
var current_position = get_global_mouse_position()
|
|
||||||
var movement_offset = 15
|
|
||||||
var height = get_parent().get_node("PanelContainer").rect_size.y + movement_offset
|
|
||||||
var node_position = get_parent().rect_global_position.y
|
|
||||||
if current_position.y < node_position - movement_offset:
|
|
||||||
get_parent().get_node("PanelContainer/VBoxContainer/Header/OptionButton")._on_OptionSelected(0)
|
|
||||||
if current_position.y > node_position + height:
|
|
||||||
get_parent().get_node("PanelContainer/VBoxContainer/Header/OptionButton")._on_OptionSelected(1)
|
|
||||||
|
|
||||||
# TODO: I have to figure out a way to modify only an instance's theme.
|
|
||||||
# This code modifies the custom theme of all the same kind of scenes.
|
|
||||||
|
|
||||||
#if hover:
|
|
||||||
# get_parent().get_node("PanelContainer").self_modulate = Color("#dd42ff")
|
|
||||||
# var panel = get_parent().get_node("PanelContainer").get('custom_styles/panel')
|
|
||||||
# panel.set('border_color', '#ffffff')
|
|
||||||
#else:
|
|
||||||
# get_parent().get_node("PanelContainer").self_modulate = Color("#ffffff")
|
|
||||||
# var panel = get_parent().get_node("PanelContainer").get('custom_styles/panel')
|
|
||||||
# panel.set('border_color', '#202020')
|
|
||||||
|
|
||||||
|
|
||||||
func _on_gui_input(event):
|
|
||||||
if event is InputEventMouseButton and event.button_index == 1:
|
|
||||||
if moving:
|
|
||||||
moving = false
|
|
||||||
else:
|
|
||||||
moving = true
|
|
||||||
|
|
||||||
|
|
||||||
func _on_mouse_entered():
|
|
||||||
hover = true
|
|
||||||
|
|
||||||
|
|
||||||
func _on_mouse_exited():
|
|
||||||
hover = false
|
|
|
@ -1,10 +0,0 @@
|
||||||
[gd_scene load_steps=2 format=2]
|
|
||||||
|
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/DragController.gd" type="Script" id=1]
|
|
||||||
|
|
||||||
[node name="DragController" type="Control"]
|
|
||||||
visible = false
|
|
||||||
margin_left = 1024.0
|
|
||||||
margin_right = 1024.0
|
|
||||||
margin_bottom = 126.0
|
|
||||||
script = ExtResource( 1 )
|
|
|
@ -1,10 +1,9 @@
|
||||||
[gd_scene load_steps=8 format=2]
|
[gd_scene load_steps=7 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://addons/dialogic/Images/signal.svg" type="Texture" id=1]
|
[ext_resource path="res://addons/dialogic/Images/signal.svg" type="Texture" id=1]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/EmitSignal.gd" type="Script" id=2]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/EmitSignal.gd" type="Script" id=2]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=3]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=3]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/DragController.tscn" type="PackedScene" id=5]
|
|
||||||
|
|
||||||
[sub_resource type="StyleBoxFlat" id=1]
|
[sub_resource type="StyleBoxFlat" id=1]
|
||||||
content_margin_left = 16.0
|
content_margin_left = 16.0
|
||||||
|
@ -115,6 +114,4 @@ margin_left = 945.0
|
||||||
margin_right = 982.0
|
margin_right = 982.0
|
||||||
margin_bottom = 28.0
|
margin_bottom = 28.0
|
||||||
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
||||||
|
|
||||||
[node name="DragController" parent="." instance=ExtResource( 5 )]
|
|
||||||
[connection signal="text_changed" from="PanelContainer/VBoxContainer/Header/LineEdit" to="." method="_on_LineEdit_text_changed"]
|
[connection signal="text_changed" from="PanelContainer/VBoxContainer/Header/LineEdit" to="." method="_on_LineEdit_text_changed"]
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
[gd_scene load_steps=7 format=2]
|
[gd_scene load_steps=6 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=1]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=1]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=2]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=2]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/DragController.tscn" type="PackedScene" id=3]
|
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/EndBranch.gd" type="Script" id=4]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/EndBranch.gd" type="Script" id=4]
|
||||||
[ext_resource path="res://addons/dialogic/Images/end-choice.svg" type="Texture" id=5]
|
[ext_resource path="res://addons/dialogic/Images/end-choice.svg" type="Texture" id=5]
|
||||||
|
|
||||||
|
@ -88,5 +87,3 @@ margin_left = 965.0
|
||||||
margin_right = 1002.0
|
margin_right = 1002.0
|
||||||
margin_bottom = 28.0
|
margin_bottom = 28.0
|
||||||
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
||||||
|
|
||||||
[node name="DragController" parent="." instance=ExtResource( 3 )]
|
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
[gd_scene load_steps=10 format=2]
|
[gd_scene load_steps=9 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://addons/dialogic/Images/condition.svg" type="Texture" id=1]
|
[ext_resource path="res://addons/dialogic/Images/condition.svg" type="Texture" id=1]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/IfCondition.gd" type="Script" id=2]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/IfCondition.gd" type="Script" id=2]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/ConditionPicker.tscn" type="PackedScene" id=3]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/ConditionPicker.tscn" type="PackedScene" id=3]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/DragController.tscn" type="PackedScene" id=5]
|
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/CustomLineEdit.tscn" type="PackedScene" id=6]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/CustomLineEdit.tscn" type="PackedScene" id=6]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/DefinitionPicker.tscn" type="PackedScene" id=7]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/DefinitionPicker.tscn" type="PackedScene" id=7]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=8]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=8]
|
||||||
|
@ -96,5 +95,3 @@ margin_left = 945.0
|
||||||
margin_right = 982.0
|
margin_right = 982.0
|
||||||
margin_bottom = 28.0
|
margin_bottom = 28.0
|
||||||
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
||||||
|
|
||||||
[node name="DragController" parent="." instance=ExtResource( 5 )]
|
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
[gd_scene load_steps=7 format=2]
|
[gd_scene load_steps=6 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://addons/dialogic/Images/question.svg" type="Texture" id=1]
|
[ext_resource path="res://addons/dialogic/Images/question.svg" type="Texture" id=1]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Question.gd" type="Script" id=2]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Question.gd" type="Script" id=2]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=3]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=3]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/DragController.tscn" type="PackedScene" id=5]
|
|
||||||
|
|
||||||
[sub_resource type="StyleBoxFlat" id=1]
|
[sub_resource type="StyleBoxFlat" id=1]
|
||||||
content_margin_left = 16.0
|
content_margin_left = 16.0
|
||||||
|
@ -98,6 +97,4 @@ margin_left = 945.0
|
||||||
margin_right = 982.0
|
margin_right = 982.0
|
||||||
margin_bottom = 28.0
|
margin_bottom = 28.0
|
||||||
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
||||||
|
|
||||||
[node name="DragController" parent="." instance=ExtResource( 5 )]
|
|
||||||
[connection signal="text_changed" from="PanelContainer/VBoxContainer/Header/LineEdit" to="." method="_on_LineEdit_text_changed"]
|
[connection signal="text_changed" from="PanelContainer/VBoxContainer/Header/LineEdit" to="." method="_on_LineEdit_text_changed"]
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
[gd_scene load_steps=8 format=2]
|
[gd_scene load_steps=7 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://addons/dialogic/Images/scene.svg" type="Texture" id=1]
|
[ext_resource path="res://addons/dialogic/Images/Events/scene.svg" type="Texture" id=1]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=2]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=2]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/DragController.tscn" type="PackedScene" id=3]
|
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/VisibleToggle.tscn" type="PackedScene" id=4]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/VisibleToggle.tscn" type="PackedScene" id=4]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/SceneEvent.gd" type="Script" id=5]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/SceneEvent.gd" type="Script" id=5]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=6]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=6]
|
||||||
|
@ -38,7 +37,7 @@ margin_bottom = 74.0
|
||||||
|
|
||||||
[node name="PanelContainer" type="PanelContainer" parent="."]
|
[node name="PanelContainer" type="PanelContainer" parent="."]
|
||||||
margin_right = 1024.0
|
margin_right = 1024.0
|
||||||
margin_bottom = 78.0
|
margin_bottom = 74.0
|
||||||
mouse_filter = 1
|
mouse_filter = 1
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
size_flags_vertical = 3
|
size_flags_vertical = 3
|
||||||
|
@ -48,7 +47,7 @@ custom_styles/panel = SubResource( 1 )
|
||||||
margin_left = 16.0
|
margin_left = 16.0
|
||||||
margin_top = 6.0
|
margin_top = 6.0
|
||||||
margin_right = 1018.0
|
margin_right = 1018.0
|
||||||
margin_bottom = 72.0
|
margin_bottom = 68.0
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
|
|
||||||
[node name="Header" type="HBoxContainer" parent="PanelContainer/VBoxContainer"]
|
[node name="Header" type="HBoxContainer" parent="PanelContainer/VBoxContainer"]
|
||||||
|
@ -125,11 +124,9 @@ size_flags_horizontal = 3
|
||||||
[node name="TextureRect" type="TextureRect" parent="PanelContainer/VBoxContainer"]
|
[node name="TextureRect" type="TextureRect" parent="PanelContainer/VBoxContainer"]
|
||||||
margin_top = 62.0
|
margin_top = 62.0
|
||||||
margin_right = 1002.0
|
margin_right = 1002.0
|
||||||
margin_bottom = 66.0
|
margin_bottom = 62.0
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
size_flags_vertical = 3
|
size_flags_vertical = 3
|
||||||
expand = true
|
expand = true
|
||||||
stretch_mode = 5
|
stretch_mode = 5
|
||||||
|
|
||||||
[node name="DragController" parent="." instance=ExtResource( 3 )]
|
|
||||||
[connection signal="pressed" from="PanelContainer/VBoxContainer/HBoxContainer/ImageButton" to="." method="_on_ImageButton_pressed"]
|
[connection signal="pressed" from="PanelContainer/VBoxContainer/HBoxContainer/ImageButton" to="." method="_on_ImageButton_pressed"]
|
||||||
|
|
|
@ -1,17 +1,16 @@
|
||||||
[gd_scene load_steps=7 format=2]
|
[gd_scene load_steps=6 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/SetTheme.gd" type="Script" id=1]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/SetTheme.gd" type="Script" id=1]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=2]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=2]
|
||||||
[ext_resource path="res://addons/dialogic/Images/theme.svg" type="Texture" id=3]
|
[ext_resource path="res://addons/dialogic/Images/theme.svg" type="Texture" id=3]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/DragController.tscn" type="PackedScene" id=5]
|
|
||||||
|
|
||||||
[sub_resource type="StyleBoxFlat" id=1]
|
[sub_resource type="StyleBoxFlat" id=1]
|
||||||
content_margin_left = 16.0
|
content_margin_left = 16.0
|
||||||
content_margin_right = 6.0
|
content_margin_right = 6.0
|
||||||
content_margin_top = 6.0
|
content_margin_top = 6.0
|
||||||
content_margin_bottom = 6.0
|
content_margin_bottom = 6.0
|
||||||
bg_color = Color( 0.203922, 0.478431, 0.45098, 0.443137 )
|
bg_color = Color( 0.219608, 0.34902, 0.701961, 0.443137 )
|
||||||
border_width_left = 2
|
border_width_left = 2
|
||||||
border_width_top = 2
|
border_width_top = 2
|
||||||
border_width_right = 2
|
border_width_right = 2
|
||||||
|
@ -91,6 +90,4 @@ margin_left = 1739.0
|
||||||
margin_right = 1776.0
|
margin_right = 1776.0
|
||||||
margin_bottom = 28.0
|
margin_bottom = 28.0
|
||||||
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
||||||
|
|
||||||
[node name="DragController" parent="." instance=ExtResource( 5 )]
|
|
||||||
[connection signal="about_to_show" from="PanelContainer/VBoxContainer/Header/MenuButton" to="." method="_on_MenuButton_about_to_show"]
|
[connection signal="about_to_show" from="PanelContainer/VBoxContainer/Header/MenuButton" to="." method="_on_MenuButton_about_to_show"]
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
[gd_scene load_steps=10 format=2]
|
[gd_scene load_steps=9 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/SetValue.gd" type="Script" id=1]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/SetValue.gd" type="Script" id=1]
|
||||||
[ext_resource path="res://addons/dialogic/Images/Resources/definition.svg" type="Texture" id=2]
|
[ext_resource path="res://addons/dialogic/Images/Resources/definition.svg" type="Texture" id=2]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=3]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=3]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/DragController.tscn" type="PackedScene" id=5]
|
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/DefinitionPicker.tscn" type="PackedScene" id=6]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/DefinitionPicker.tscn" type="PackedScene" id=6]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/OperationPicker.tscn" type="PackedScene" id=7]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/OperationPicker.tscn" type="PackedScene" id=7]
|
||||||
|
|
||||||
|
@ -125,7 +124,4 @@ margin_left = 945.0
|
||||||
margin_right = 982.0
|
margin_right = 982.0
|
||||||
margin_bottom = 28.0
|
margin_bottom = 28.0
|
||||||
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
||||||
|
|
||||||
[node name="DragController" parent="." instance=ExtResource( 5 )]
|
|
||||||
|
|
||||||
[connection signal="text_changed" from="PanelContainer/VBoxContainer/Header/LineEdit" to="." method="_on_LineEdit_text_changed"]
|
[connection signal="text_changed" from="PanelContainer/VBoxContainer/Header/LineEdit" to="." method="_on_LineEdit_text_changed"]
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
[gd_scene load_steps=10 format=2]
|
[gd_scene load_steps=9 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/TextBlock.gd" type="Script" id=1]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/TextBlock.gd" type="Script" id=1]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/VisibleToggle.tscn" type="PackedScene" id=2]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/VisibleToggle.tscn" type="PackedScene" id=2]
|
||||||
[ext_resource path="res://addons/dialogic/Images/dialog.svg" type="Texture" id=3]
|
[ext_resource path="res://addons/dialogic/Images/dialog.svg" type="Texture" id=3]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/DragController.tscn" type="PackedScene" id=5]
|
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/CharacterPicker.tscn" type="PackedScene" id=6]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/CharacterPicker.tscn" type="PackedScene" id=6]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PortraitPicker.tscn" type="PackedScene" id=7]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PortraitPicker.tscn" type="PackedScene" id=7]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=8]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=8]
|
||||||
|
@ -128,6 +127,4 @@ size_flags_vertical = 3
|
||||||
show_line_numbers = true
|
show_line_numbers = true
|
||||||
smooth_scrolling = true
|
smooth_scrolling = true
|
||||||
wrap_enabled = true
|
wrap_enabled = true
|
||||||
|
|
||||||
[node name="DragController" parent="." instance=ExtResource( 5 )]
|
|
||||||
[connection signal="text_changed" from="PanelContainer/VBoxContainer/TextEdit" to="." method="_on_TextEdit_text_changed"]
|
[connection signal="text_changed" from="PanelContainer/VBoxContainer/TextEdit" to="." method="_on_TextEdit_text_changed"]
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
[gd_scene load_steps=7 format=2]
|
[gd_scene load_steps=6 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://addons/dialogic/Images/Wait.svg" type="Texture" id=1]
|
[ext_resource path="res://addons/dialogic/Images/Events/Wait.svg" type="Texture" id=1]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/WaitSeconds.gd" type="Script" id=2]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/WaitSeconds.gd" type="Script" id=2]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=3]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/Spacer.tscn" type="PackedScene" id=3]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
|
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/PieceExtraSettings.tscn" type="PackedScene" id=4]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/Pieces/Common/DragController.tscn" type="PackedScene" id=5]
|
|
||||||
|
|
||||||
[sub_resource type="StyleBoxFlat" id=1]
|
[sub_resource type="StyleBoxFlat" id=1]
|
||||||
content_margin_left = 16.0
|
content_margin_left = 16.0
|
||||||
|
@ -104,6 +103,4 @@ margin_left = 945.0
|
||||||
margin_right = 982.0
|
margin_right = 982.0
|
||||||
margin_bottom = 28.0
|
margin_bottom = 28.0
|
||||||
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
items = [ "Move Up", null, 0, false, false, 0, 0, null, "", false, "Move Down", null, 0, false, false, 1, 0, null, "", false, "", null, 0, false, false, 2, 0, null, "", true, "Remove", null, 0, false, false, 3, 0, null, "", false ]
|
||||||
|
|
||||||
[node name="DragController" parent="." instance=ExtResource( 5 )]
|
|
||||||
[connection signal="value_changed" from="PanelContainer/VBoxContainer/Header/SpinBox" to="." method="_on_SpinBox_value_changed"]
|
[connection signal="value_changed" from="PanelContainer/VBoxContainer/Header/SpinBox" to="." method="_on_SpinBox_value_changed"]
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
[gd_resource type="StyleBoxFlat" format=2]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
content_margin_left = 6.0
|
||||||
|
content_margin_right = 6.0
|
||||||
|
content_margin_top = 6.0
|
||||||
|
content_margin_bottom = 6.0
|
||||||
|
bg_color = Color( 0.0980392, 0.329412, 0.509804, 1 )
|
||||||
|
border_width_left = 2
|
||||||
|
border_width_top = 2
|
||||||
|
border_width_right = 2
|
||||||
|
border_width_bottom = 2
|
||||||
|
border_color = Color( 0.0901961, 0.560784, 0.937255, 1 )
|
||||||
|
corner_radius_top_left = 6
|
||||||
|
corner_radius_top_right = 6
|
||||||
|
corner_radius_bottom_right = 6
|
||||||
|
corner_radius_bottom_left = 6
|
|
@ -25,6 +25,7 @@ onready var n = {
|
||||||
'background_texture_button_visible': $VBoxContainer/HBoxContainer2/DialogBox/GridContainer/HBoxContainer3/CheckBox,
|
'background_texture_button_visible': $VBoxContainer/HBoxContainer2/DialogBox/GridContainer/HBoxContainer3/CheckBox,
|
||||||
'theme_background_image': $VBoxContainer/HBoxContainer2/DialogBox/GridContainer/HBoxContainer3/BackgroundTextureButton,
|
'theme_background_image': $VBoxContainer/HBoxContainer2/DialogBox/GridContainer/HBoxContainer3/BackgroundTextureButton,
|
||||||
'theme_next_image': $VBoxContainer/HBoxContainer2/DialogBox/GridContainer/NextIndicatorButton,
|
'theme_next_image': $VBoxContainer/HBoxContainer2/DialogBox/GridContainer/NextIndicatorButton,
|
||||||
|
'next_animation': $VBoxContainer/HBoxContainer2/DialogBox/GridContainer/NextAnimation,
|
||||||
'theme_action_key': $VBoxContainer/HBoxContainer2/DialogBox/GridContainer/BoxContainer/ActionOptionButton,
|
'theme_action_key': $VBoxContainer/HBoxContainer2/DialogBox/GridContainer/BoxContainer/ActionOptionButton,
|
||||||
'theme_background_color_visible': $VBoxContainer/HBoxContainer2/DialogBox/GridContainer/HBoxContainer2/CheckBox,
|
'theme_background_color_visible': $VBoxContainer/HBoxContainer2/DialogBox/GridContainer/HBoxContainer2/CheckBox,
|
||||||
'theme_background_color': $VBoxContainer/HBoxContainer2/DialogBox/GridContainer/HBoxContainer2/ColorPickerButton,
|
'theme_background_color': $VBoxContainer/HBoxContainer2/DialogBox/GridContainer/HBoxContainer2/ColorPickerButton,
|
||||||
|
@ -68,6 +69,10 @@ onready var n = {
|
||||||
func _ready():
|
func _ready():
|
||||||
# Signal connection to free up some memory
|
# Signal connection to free up some memory
|
||||||
connect("visibility_changed", self, "_on_visibility_changed")
|
connect("visibility_changed", self, "_on_visibility_changed")
|
||||||
|
if get_constant("dark_theme", "Editor"):
|
||||||
|
$VBoxContainer/HBoxContainer3/PreviewButton.icon = load("res://addons/dialogic/Images/Plugin/plugin-editor-icon-dark-theme.svg")
|
||||||
|
else:
|
||||||
|
$VBoxContainer/HBoxContainer3/PreviewButton.icon = load("res://addons/dialogic/Images/Plugin/plugin-editor-icon-light-theme.svg")
|
||||||
# Force preview update
|
# Force preview update
|
||||||
_on_visibility_changed()
|
_on_visibility_changed()
|
||||||
|
|
||||||
|
@ -141,6 +146,16 @@ func load_theme(filename):
|
||||||
n['name_bottom_gap'].value = theme.get_value('name', 'bottom_gap', 48)
|
n['name_bottom_gap'].value = theme.get_value('name', 'bottom_gap', 48)
|
||||||
|
|
||||||
|
|
||||||
|
# Next indicator animations
|
||||||
|
var animations = ['Up and down', 'Pulse', 'Static'] # TODO: dynamically get all the animations from the Dialog.tscn NextIndicator
|
||||||
|
n['next_animation'].clear()
|
||||||
|
var next_animation_selected = theme.get_value('next_indicator', 'animation', 'Up and down')
|
||||||
|
var nix = 0
|
||||||
|
for a in animations:
|
||||||
|
n['next_animation'].add_item(a)
|
||||||
|
if a == next_animation_selected:
|
||||||
|
n['next_animation'].select(nix)
|
||||||
|
nix += 1
|
||||||
|
|
||||||
# Preview text
|
# Preview text
|
||||||
n['text_preview'].text = theme.get_value('text', 'preview', 'This is preview text. You can use [color=#A5EFAC]BBCode[/color] to style it.\n[wave amp=50 freq=2]You can even use effects![/wave]')
|
n['text_preview'].text = theme.get_value('text', 'preview', 'This is preview text. You can use [color=#A5EFAC]BBCode[/color] to style it.\n[wave amp=50 freq=2]You can even use effects![/wave]')
|
||||||
|
@ -180,6 +195,10 @@ func _on_indicator_selected(path, target):
|
||||||
n['theme_next_image'].text = DialogicResources.get_filename_from_path(path)
|
n['theme_next_image'].text = DialogicResources.get_filename_from_path(path)
|
||||||
|
|
||||||
|
|
||||||
|
func _on_NextAnimation_item_selected(index):
|
||||||
|
DialogicResources.set_theme_value(current_theme, 'next_indicator', 'animation', n['next_animation'].get_item_text(index))
|
||||||
|
|
||||||
|
|
||||||
func _on_ColorPickerButton_color_changed(color):
|
func _on_ColorPickerButton_color_changed(color):
|
||||||
DialogicResources.set_theme_value(current_theme, 'text','color', '#' + color.to_html())
|
DialogicResources.set_theme_value(current_theme, 'text','color', '#' + color.to_html())
|
||||||
|
|
||||||
|
@ -203,7 +222,6 @@ func _on_PreviewButton_pressed():
|
||||||
var preview_dialog = dialogic_node.instance()
|
var preview_dialog = dialogic_node.instance()
|
||||||
preview_dialog.preview = true
|
preview_dialog.preview = true
|
||||||
preview_dialog.get_node('DefinitionInfo').in_theme_editor = true
|
preview_dialog.get_node('DefinitionInfo').in_theme_editor = true
|
||||||
preview_dialog.get_node('TextBubble/NextIndicator/AnimationPlayer').play('IDLE')
|
|
||||||
|
|
||||||
# Random character preview if there are any
|
# Random character preview if there are any
|
||||||
var characters = DialogicUtil.get_character_list()
|
var characters = DialogicUtil.get_character_list()
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[gd_scene load_steps=4 format=2]
|
[gd_scene load_steps=4 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://addons/dialogic/Images/plugin-editor-icon.svg" type="Texture" id=1]
|
[ext_resource path="res://addons/dialogic/Images/Plugin/plugin-editor-icon-light-theme.svg" type="Texture" id=1]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/ThemeEditor/ThemeEditor.gd" type="Script" id=2]
|
[ext_resource path="res://addons/dialogic/Editor/ThemeEditor/ThemeEditor.gd" type="Script" id=2]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/ThemeEditor/SectionTitle.tscn" type="PackedScene" id=3]
|
[ext_resource path="res://addons/dialogic/Editor/ThemeEditor/SectionTitle.tscn" type="PackedScene" id=3]
|
||||||
|
|
||||||
|
@ -444,20 +444,20 @@ __meta__ = {
|
||||||
[node name="GridContainer" type="GridContainer" parent="VBoxContainer/HBoxContainer2/DialogBox"]
|
[node name="GridContainer" type="GridContainer" parent="VBoxContainer/HBoxContainer2/DialogBox"]
|
||||||
margin_top = 34.0
|
margin_top = 34.0
|
||||||
margin_right = 315.0
|
margin_right = 315.0
|
||||||
margin_bottom = 218.0
|
margin_bottom = 242.0
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
custom_constants/hseparation = 10
|
custom_constants/hseparation = 10
|
||||||
columns = 2
|
columns = 2
|
||||||
|
|
||||||
[node name="Label5" type="Label" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
[node name="Label5" type="Label" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
||||||
margin_top = 5.0
|
margin_top = 5.0
|
||||||
margin_right = 132.0
|
margin_right = 126.0
|
||||||
margin_bottom = 19.0
|
margin_bottom = 19.0
|
||||||
text = "Background Color"
|
text = "Background Color"
|
||||||
|
|
||||||
[node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
[node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
||||||
margin_left = 142.0
|
margin_left = 136.0
|
||||||
margin_right = 294.0
|
margin_right = 288.0
|
||||||
margin_bottom = 24.0
|
margin_bottom = 24.0
|
||||||
|
|
||||||
[node name="CheckBox" type="CheckBox" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer/HBoxContainer2"]
|
[node name="CheckBox" type="CheckBox" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer/HBoxContainer2"]
|
||||||
|
@ -472,14 +472,14 @@ size_flags_horizontal = 3
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
||||||
margin_top = 33.0
|
margin_top = 33.0
|
||||||
margin_right = 132.0
|
margin_right = 126.0
|
||||||
margin_bottom = 47.0
|
margin_bottom = 47.0
|
||||||
text = "Background Texture"
|
text = "Background Texture"
|
||||||
|
|
||||||
[node name="HBoxContainer3" type="HBoxContainer" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
[node name="HBoxContainer3" type="HBoxContainer" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
||||||
margin_left = 142.0
|
margin_left = 136.0
|
||||||
margin_top = 28.0
|
margin_top = 28.0
|
||||||
margin_right = 294.0
|
margin_right = 288.0
|
||||||
margin_bottom = 52.0
|
margin_bottom = 52.0
|
||||||
|
|
||||||
[node name="CheckBox" type="CheckBox" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer/HBoxContainer3"]
|
[node name="CheckBox" type="CheckBox" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer/HBoxContainer3"]
|
||||||
|
@ -496,28 +496,43 @@ text = "background-2"
|
||||||
|
|
||||||
[node name="Label2" type="Label" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
[node name="Label2" type="Label" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
||||||
margin_top = 59.0
|
margin_top = 59.0
|
||||||
margin_right = 132.0
|
margin_right = 126.0
|
||||||
margin_bottom = 73.0
|
margin_bottom = 73.0
|
||||||
text = "Next dialog indicator"
|
text = "Next indicator"
|
||||||
|
|
||||||
[node name="NextIndicatorButton" type="Button" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
[node name="NextIndicatorButton" type="Button" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
||||||
margin_left = 142.0
|
margin_left = 136.0
|
||||||
margin_top = 56.0
|
margin_top = 56.0
|
||||||
margin_right = 294.0
|
margin_right = 288.0
|
||||||
margin_bottom = 76.0
|
margin_bottom = 76.0
|
||||||
text = "next-indicator"
|
text = "next-indicator"
|
||||||
|
|
||||||
|
[node name="Label4" type="Label" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
||||||
|
margin_top = 83.0
|
||||||
|
margin_right = 126.0
|
||||||
|
margin_bottom = 97.0
|
||||||
|
text = "Next animation"
|
||||||
|
|
||||||
|
[node name="NextAnimation" type="OptionButton" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
||||||
|
margin_left = 136.0
|
||||||
|
margin_top = 80.0
|
||||||
|
margin_right = 288.0
|
||||||
|
margin_bottom = 100.0
|
||||||
|
__meta__ = {
|
||||||
|
"_edit_use_anchors_": false
|
||||||
|
}
|
||||||
|
|
||||||
[node name="Label6" type="Label" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
[node name="Label6" type="Label" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
||||||
margin_top = 85.0
|
margin_top = 109.0
|
||||||
margin_right = 132.0
|
margin_right = 126.0
|
||||||
margin_bottom = 99.0
|
margin_bottom = 123.0
|
||||||
text = "Box padding"
|
text = "Box padding"
|
||||||
|
|
||||||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
||||||
margin_left = 142.0
|
margin_left = 136.0
|
||||||
margin_top = 80.0
|
margin_top = 104.0
|
||||||
margin_right = 294.0
|
margin_right = 288.0
|
||||||
margin_bottom = 104.0
|
margin_bottom = 128.0
|
||||||
|
|
||||||
[node name="TextOffsetV" type="SpinBox" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer/HBoxContainer"]
|
[node name="TextOffsetV" type="SpinBox" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer/HBoxContainer"]
|
||||||
margin_right = 74.0
|
margin_right = 74.0
|
||||||
|
@ -535,16 +550,16 @@ rounded = true
|
||||||
allow_lesser = true
|
allow_lesser = true
|
||||||
|
|
||||||
[node name="Label7" type="Label" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
[node name="Label7" type="Label" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
||||||
margin_top = 113.0
|
margin_top = 137.0
|
||||||
margin_right = 132.0
|
margin_right = 126.0
|
||||||
margin_bottom = 127.0
|
margin_bottom = 151.0
|
||||||
text = "Box Size (pixels)"
|
text = "Box Size (pixels)"
|
||||||
|
|
||||||
[node name="HBoxContainer4" type="HBoxContainer" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
[node name="HBoxContainer4" type="HBoxContainer" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
||||||
margin_left = 142.0
|
margin_left = 136.0
|
||||||
margin_top = 108.0
|
margin_top = 132.0
|
||||||
margin_right = 294.0
|
margin_right = 288.0
|
||||||
margin_bottom = 132.0
|
margin_bottom = 156.0
|
||||||
|
|
||||||
[node name="BoxSizeW" type="SpinBox" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer/HBoxContainer4"]
|
[node name="BoxSizeW" type="SpinBox" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer/HBoxContainer4"]
|
||||||
margin_right = 74.0
|
margin_right = 74.0
|
||||||
|
@ -565,16 +580,16 @@ allow_greater = true
|
||||||
allow_lesser = true
|
allow_lesser = true
|
||||||
|
|
||||||
[node name="Label8" type="Label" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
[node name="Label8" type="Label" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
||||||
margin_top = 141.0
|
margin_top = 165.0
|
||||||
margin_right = 132.0
|
margin_right = 126.0
|
||||||
margin_bottom = 155.0
|
margin_bottom = 179.0
|
||||||
text = "Bottom gap"
|
text = "Bottom gap"
|
||||||
|
|
||||||
[node name="HBoxContainer5" type="HBoxContainer" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
[node name="HBoxContainer5" type="HBoxContainer" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
||||||
margin_left = 142.0
|
margin_left = 136.0
|
||||||
margin_top = 136.0
|
margin_top = 160.0
|
||||||
margin_right = 294.0
|
margin_right = 288.0
|
||||||
margin_bottom = 160.0
|
margin_bottom = 184.0
|
||||||
|
|
||||||
[node name="BottomGap" type="SpinBox" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer/HBoxContainer5"]
|
[node name="BottomGap" type="SpinBox" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer/HBoxContainer5"]
|
||||||
margin_right = 74.0
|
margin_right = 74.0
|
||||||
|
@ -586,17 +601,17 @@ allow_greater = true
|
||||||
allow_lesser = true
|
allow_lesser = true
|
||||||
|
|
||||||
[node name="Label3" type="Label" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
[node name="Label3" type="Label" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
||||||
margin_top = 164.0
|
margin_top = 188.0
|
||||||
margin_right = 132.0
|
margin_right = 126.0
|
||||||
margin_bottom = 184.0
|
margin_bottom = 208.0
|
||||||
size_flags_vertical = 5
|
size_flags_vertical = 5
|
||||||
text = "Action key"
|
text = "Action key"
|
||||||
|
|
||||||
[node name="BoxContainer" type="HBoxContainer" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
[node name="BoxContainer" type="HBoxContainer" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer"]
|
||||||
margin_left = 142.0
|
margin_left = 136.0
|
||||||
margin_top = 164.0
|
margin_top = 188.0
|
||||||
margin_right = 294.0
|
margin_right = 288.0
|
||||||
margin_bottom = 184.0
|
margin_bottom = 208.0
|
||||||
|
|
||||||
[node name="ActionOptionButton" type="OptionButton" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer/BoxContainer"]
|
[node name="ActionOptionButton" type="OptionButton" parent="VBoxContainer/HBoxContainer2/DialogBox/GridContainer/BoxContainer"]
|
||||||
margin_right = 152.0
|
margin_right = 152.0
|
||||||
|
@ -821,6 +836,7 @@ size_flags_vertical = 3
|
||||||
[connection signal="toggled" from="VBoxContainer/HBoxContainer2/DialogBox/GridContainer/HBoxContainer3/CheckBox" to="." method="_on_BackgroundTexture_CheckBox_toggled"]
|
[connection signal="toggled" from="VBoxContainer/HBoxContainer2/DialogBox/GridContainer/HBoxContainer3/CheckBox" to="." method="_on_BackgroundTexture_CheckBox_toggled"]
|
||||||
[connection signal="pressed" from="VBoxContainer/HBoxContainer2/DialogBox/GridContainer/HBoxContainer3/BackgroundTextureButton" to="." method="_on_BackgroundTextureButton_pressed"]
|
[connection signal="pressed" from="VBoxContainer/HBoxContainer2/DialogBox/GridContainer/HBoxContainer3/BackgroundTextureButton" to="." method="_on_BackgroundTextureButton_pressed"]
|
||||||
[connection signal="pressed" from="VBoxContainer/HBoxContainer2/DialogBox/GridContainer/NextIndicatorButton" to="." method="_on_NextIndicatorButton_pressed"]
|
[connection signal="pressed" from="VBoxContainer/HBoxContainer2/DialogBox/GridContainer/NextIndicatorButton" to="." method="_on_NextIndicatorButton_pressed"]
|
||||||
|
[connection signal="item_selected" from="VBoxContainer/HBoxContainer2/DialogBox/GridContainer/NextAnimation" to="." method="_on_NextAnimation_item_selected"]
|
||||||
[connection signal="value_changed" from="VBoxContainer/HBoxContainer2/DialogBox/GridContainer/HBoxContainer/TextOffsetV" to="." method="_on_TextMargin_value_changed"]
|
[connection signal="value_changed" from="VBoxContainer/HBoxContainer2/DialogBox/GridContainer/HBoxContainer/TextOffsetV" to="." method="_on_TextMargin_value_changed"]
|
||||||
[connection signal="value_changed" from="VBoxContainer/HBoxContainer2/DialogBox/GridContainer/HBoxContainer/TextOffsetH" to="." method="_on_TextMargin_value_changed"]
|
[connection signal="value_changed" from="VBoxContainer/HBoxContainer2/DialogBox/GridContainer/HBoxContainer/TextOffsetH" to="." method="_on_TextMargin_value_changed"]
|
||||||
[connection signal="value_changed" from="VBoxContainer/HBoxContainer2/DialogBox/GridContainer/HBoxContainer4/BoxSizeW" to="." method="_on_BoxSize_value_changed"]
|
[connection signal="value_changed" from="VBoxContainer/HBoxContainer2/DialogBox/GridContainer/HBoxContainer4/BoxSizeW" to="." method="_on_BoxSize_value_changed"]
|
||||||
|
|
|
@ -12,9 +12,13 @@ onready var events_warning = $ScrollContainer/EventContainer/EventsWarning
|
||||||
|
|
||||||
var hovered_item = null
|
var hovered_item = null
|
||||||
var selected_style : StyleBoxFlat = load("res://addons/dialogic/Editor/Pieces/selected_styleboxflat.tres")
|
var selected_style : StyleBoxFlat = load("res://addons/dialogic/Editor/Pieces/selected_styleboxflat.tres")
|
||||||
|
var selected_style_text : StyleBoxFlat = load("res://addons/dialogic/Editor/Pieces/selected_styleboxflat_text_event.tres")
|
||||||
var saved_style : StyleBoxFlat
|
var saved_style : StyleBoxFlat
|
||||||
var selected_item : Node
|
var selected_item : Node
|
||||||
|
|
||||||
|
|
||||||
|
var moving_piece = null
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
# We connect all the event buttons to the event creation functions
|
# We connect all the event buttons to the event creation functions
|
||||||
for b in $ScrollContainer/EventContainer.get_children():
|
for b in $ScrollContainer/EventContainer.get_children():
|
||||||
|
@ -26,6 +30,26 @@ func _ready():
|
||||||
else:
|
else:
|
||||||
b.connect('pressed', self, "_create_event_button_pressed", [b.name])
|
b.connect('pressed', self, "_create_event_button_pressed", [b.name])
|
||||||
|
|
||||||
|
var style = $TimelineArea.get('custom_styles/bg')
|
||||||
|
style.set('bg_color', get_color("dark_color_1", "Editor"))
|
||||||
|
|
||||||
|
|
||||||
|
func _process(delta):
|
||||||
|
if moving_piece != null:
|
||||||
|
var current_position = get_global_mouse_position()
|
||||||
|
var node_position = moving_piece.rect_global_position.y
|
||||||
|
var height = get_block_height(moving_piece)
|
||||||
|
var up_offset = get_block_height(get_block_above(moving_piece))
|
||||||
|
var down_offset = get_block_height(get_block_below(moving_piece))
|
||||||
|
if up_offset != null:
|
||||||
|
up_offset = (up_offset / 2) + 5
|
||||||
|
if current_position.y < node_position - up_offset:
|
||||||
|
move_block(moving_piece, 'up')
|
||||||
|
if down_offset != null:
|
||||||
|
down_offset = height + (down_offset / 2) + 5
|
||||||
|
if current_position.y > node_position + down_offset:
|
||||||
|
move_block(moving_piece, 'down')
|
||||||
|
|
||||||
|
|
||||||
func _clear_selection():
|
func _clear_selection():
|
||||||
if selected_item != null and saved_style != null:
|
if selected_item != null and saved_style != null:
|
||||||
|
@ -36,21 +60,33 @@ func _clear_selection():
|
||||||
saved_style = null
|
saved_style = null
|
||||||
|
|
||||||
|
|
||||||
|
func _is_item_selected(item: Node):
|
||||||
|
return item == selected_item
|
||||||
|
|
||||||
|
|
||||||
func _select_item(item: Node):
|
func _select_item(item: Node):
|
||||||
if item != selected_item:
|
if item != null and not _is_item_selected(item):
|
||||||
_clear_selection()
|
_clear_selection()
|
||||||
var panel: PanelContainer = item.get_node("PanelContainer")
|
var panel: PanelContainer = item.get_node("PanelContainer")
|
||||||
if panel != null:
|
if panel != null:
|
||||||
saved_style = panel.get('custom_styles/panel')
|
saved_style = panel.get('custom_styles/panel')
|
||||||
selected_item = item
|
selected_item = item
|
||||||
|
if selected_item.event_data.has('text') and selected_item.event_data.has('character'):
|
||||||
|
panel.set('custom_styles/panel', selected_style_text)
|
||||||
|
else:
|
||||||
panel.set('custom_styles/panel', selected_style)
|
panel.set('custom_styles/panel', selected_style)
|
||||||
else:
|
else:
|
||||||
_clear_selection()
|
_clear_selection()
|
||||||
|
|
||||||
|
|
||||||
func _on_gui_input(event, item: Node):
|
func _on_gui_input(event, item: Node):
|
||||||
if event is InputEventMouseButton and event.button_index == 1 and event.is_pressed():
|
if event is InputEventMouseButton and event.button_index == 1:
|
||||||
|
if event.is_pressed():
|
||||||
|
if not _is_item_selected(item):
|
||||||
_select_item(item)
|
_select_item(item)
|
||||||
|
moving_piece = item
|
||||||
|
else:
|
||||||
|
moving_piece = null
|
||||||
|
|
||||||
|
|
||||||
# Event Creation signal for buttons
|
# Event Creation signal for buttons
|
||||||
|
@ -216,6 +252,29 @@ func clear_timeline():
|
||||||
event.free()
|
event.free()
|
||||||
|
|
||||||
|
|
||||||
|
func get_block_above(block):
|
||||||
|
var block_index = block.get_index()
|
||||||
|
var item = null
|
||||||
|
if block_index > 0:
|
||||||
|
item = timeline.get_child(block_index - 1)
|
||||||
|
return item
|
||||||
|
|
||||||
|
|
||||||
|
func get_block_below(block):
|
||||||
|
var block_index = block.get_index()
|
||||||
|
var item = null
|
||||||
|
if block_index < timeline.get_child_count() - 1:
|
||||||
|
item = timeline.get_child(block_index + 1)
|
||||||
|
return item
|
||||||
|
|
||||||
|
|
||||||
|
func get_block_height(block):
|
||||||
|
if block != null:
|
||||||
|
return block.get_node("PanelContainer").rect_size.y
|
||||||
|
else:
|
||||||
|
return null
|
||||||
|
|
||||||
|
|
||||||
# ordering blocks in timeline
|
# ordering blocks in timeline
|
||||||
func move_block(block, direction):
|
func move_block(block, direction):
|
||||||
var block_index = block.get_index()
|
var block_index = block.get_index()
|
||||||
|
|
|
@ -1,30 +1,31 @@
|
||||||
[gd_scene load_steps=21 format=2]
|
[gd_scene load_steps=22 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://addons/dialogic/Images/character-join.svg" type="Texture" id=1]
|
[ext_resource path="res://addons/dialogic/Images/character-join.svg" type="Texture" id=1]
|
||||||
[ext_resource path="res://addons/dialogic/Images/dialog.svg" type="Texture" id=2]
|
[ext_resource path="res://addons/dialogic/Images/dialog.svg" type="Texture" id=2]
|
||||||
[ext_resource path="res://addons/dialogic/Images/audio-event.svg" type="Texture" id=3]
|
[ext_resource path="res://addons/dialogic/Images/Events/audio-event.svg" type="Texture" id=3]
|
||||||
[ext_resource path="res://addons/dialogic/Images/scene.svg" type="Texture" id=4]
|
[ext_resource path="res://addons/dialogic/Images/Events/scene.svg" type="Texture" id=4]
|
||||||
[ext_resource path="res://addons/dialogic/Images/condition.svg" type="Texture" id=5]
|
[ext_resource path="res://addons/dialogic/Images/condition.svg" type="Texture" id=5]
|
||||||
[ext_resource path="res://addons/dialogic/Images/end-dialog.svg" type="Texture" id=6]
|
[ext_resource path="res://addons/dialogic/Images/end-dialog.svg" type="Texture" id=6]
|
||||||
[ext_resource path="res://addons/dialogic/Images/character-leave.svg" type="Texture" id=7]
|
[ext_resource path="res://addons/dialogic/Images/character-leave.svg" type="Texture" id=7]
|
||||||
[ext_resource path="res://addons/dialogic/Images/question.svg" type="Texture" id=8]
|
[ext_resource path="res://addons/dialogic/Images/question.svg" type="Texture" id=8]
|
||||||
[ext_resource path="res://addons/dialogic/Images/end-choice.svg" type="Texture" id=9]
|
[ext_resource path="res://addons/dialogic/Images/end-choice.svg" type="Texture" id=9]
|
||||||
[ext_resource path="res://addons/dialogic/Images/change-timeline.svg" type="Texture" id=10]
|
[ext_resource path="res://addons/dialogic/Images/Events/change-timeline.svg" type="Texture" id=10]
|
||||||
[ext_resource path="res://addons/dialogic/Images/Resources/definition.svg" type="Texture" id=11]
|
[ext_resource path="res://addons/dialogic/Images/Resources/definition.svg" type="Texture" id=11]
|
||||||
[ext_resource path="res://addons/dialogic/Images/choice.svg" type="Texture" id=12]
|
[ext_resource path="res://addons/dialogic/Images/choice.svg" type="Texture" id=12]
|
||||||
[ext_resource path="res://addons/dialogic/Images/tutorials/arrow-down.svg" type="Texture" id=13]
|
[ext_resource path="res://addons/dialogic/Images/tutorials/arrow-down.svg" type="Texture" id=13]
|
||||||
[ext_resource path="res://addons/dialogic/Images/Wait.svg" type="Texture" id=14]
|
[ext_resource path="res://addons/dialogic/Images/Events/Wait.svg" type="Texture" id=14]
|
||||||
[ext_resource path="res://addons/dialogic/Images/change-scene.svg" type="Texture" id=15]
|
[ext_resource path="res://addons/dialogic/Images/Events/change-scene.svg" type="Texture" id=15]
|
||||||
[ext_resource path="res://addons/dialogic/Images/signal.svg" type="Texture" id=16]
|
[ext_resource path="res://addons/dialogic/Images/signal.svg" type="Texture" id=16]
|
||||||
[ext_resource path="res://addons/dialogic/Editor/TimelineEditor/TimelineEditor.gd" type="Script" id=17]
|
[ext_resource path="res://addons/dialogic/Editor/TimelineEditor/TimelineEditor.gd" type="Script" id=17]
|
||||||
[ext_resource path="res://addons/dialogic/Images/theme.svg" type="Texture" id=18]
|
[ext_resource path="res://addons/dialogic/Images/theme.svg" type="Texture" id=18]
|
||||||
|
[ext_resource path="res://addons/dialogic/Images/Events/background-music.svg" type="Texture" id=19]
|
||||||
|
|
||||||
[sub_resource type="StyleBoxFlat" id=1]
|
[sub_resource type="StyleBoxFlat" id=1]
|
||||||
content_margin_left = 5.0
|
content_margin_left = 5.0
|
||||||
content_margin_right = 5.0
|
content_margin_right = 5.0
|
||||||
content_margin_top = 5.0
|
content_margin_top = 5.0
|
||||||
content_margin_bottom = 5.0
|
content_margin_bottom = 5.0
|
||||||
bg_color = Color( 0.14902, 0.172549, 0.231373, 1 )
|
bg_color = Color( 0, 0, 0, 1 )
|
||||||
border_width_left = 1
|
border_width_left = 1
|
||||||
border_width_top = 1
|
border_width_top = 1
|
||||||
border_width_right = 1
|
border_width_right = 1
|
||||||
|
@ -44,6 +45,7 @@ corner_radius_bottom_left = 5
|
||||||
[node name="TimelineEditor" type="HSplitContainer"]
|
[node name="TimelineEditor" type="HSplitContainer"]
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
|
margin_bottom = 138.0
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
size_flags_vertical = 3
|
size_flags_vertical = 3
|
||||||
custom_constants/separation = 0
|
custom_constants/separation = 0
|
||||||
|
@ -55,7 +57,7 @@ __meta__ = {
|
||||||
|
|
||||||
[node name="TimelineArea" type="ScrollContainer" parent="."]
|
[node name="TimelineArea" type="ScrollContainer" parent="."]
|
||||||
margin_right = 816.0
|
margin_right = 816.0
|
||||||
margin_bottom = 600.0
|
margin_bottom = 738.0
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
size_flags_vertical = 3
|
size_flags_vertical = 3
|
||||||
custom_styles/bg = SubResource( 1 )
|
custom_styles/bg = SubResource( 1 )
|
||||||
|
@ -67,7 +69,7 @@ __meta__ = {
|
||||||
margin_left = 5.0
|
margin_left = 5.0
|
||||||
margin_top = 5.0
|
margin_top = 5.0
|
||||||
margin_right = 811.0
|
margin_right = 811.0
|
||||||
margin_bottom = 595.0
|
margin_bottom = 733.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
|
@ -76,12 +78,12 @@ size_flags_vertical = 3
|
||||||
[node name="ScrollContainer" type="ScrollContainer" parent="."]
|
[node name="ScrollContainer" type="ScrollContainer" parent="."]
|
||||||
margin_left = 824.0
|
margin_left = 824.0
|
||||||
margin_right = 1024.0
|
margin_right = 1024.0
|
||||||
margin_bottom = 600.0
|
margin_bottom = 738.0
|
||||||
rect_min_size = Vector2( 200, 0 )
|
rect_min_size = Vector2( 200, 0 )
|
||||||
|
|
||||||
[node name="EventContainer" type="VBoxContainer" parent="ScrollContainer"]
|
[node name="EventContainer" type="VBoxContainer" parent="ScrollContainer"]
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 702.0
|
margin_bottom = 738.0
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
size_flags_vertical = 3
|
size_flags_vertical = 3
|
||||||
__meta__ = {
|
__meta__ = {
|
||||||
|
@ -89,14 +91,14 @@ __meta__ = {
|
||||||
}
|
}
|
||||||
|
|
||||||
[node name="EventsWarning" type="PanelContainer" parent="ScrollContainer/EventContainer"]
|
[node name="EventsWarning" type="PanelContainer" parent="ScrollContainer/EventContainer"]
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 68.0
|
margin_bottom = 60.0
|
||||||
custom_styles/panel = SubResource( 2 )
|
custom_styles/panel = SubResource( 2 )
|
||||||
|
|
||||||
[node name="HBoxContainer" type="HBoxContainer" parent="ScrollContainer/EventContainer/EventsWarning"]
|
[node name="HBoxContainer" type="HBoxContainer" parent="ScrollContainer/EventContainer/EventsWarning"]
|
||||||
margin_top = 10.0
|
margin_top = 10.0
|
||||||
margin_right = 182.0
|
margin_right = 194.0
|
||||||
margin_bottom = 58.0
|
margin_bottom = 50.0
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
size_flags_vertical = 3
|
size_flags_vertical = 3
|
||||||
__meta__ = {
|
__meta__ = {
|
||||||
|
@ -105,15 +107,15 @@ __meta__ = {
|
||||||
|
|
||||||
[node name="TextureRect" type="TextureRect" parent="ScrollContainer/EventContainer/EventsWarning/HBoxContainer"]
|
[node name="TextureRect" type="TextureRect" parent="ScrollContainer/EventContainer/EventsWarning/HBoxContainer"]
|
||||||
margin_right = 40.0
|
margin_right = 40.0
|
||||||
margin_bottom = 48.0
|
margin_bottom = 40.0
|
||||||
rect_min_size = Vector2( 40, 40 )
|
rect_min_size = Vector2( 40, 40 )
|
||||||
texture = ExtResource( 13 )
|
texture = ExtResource( 13 )
|
||||||
stretch_mode = 4
|
stretch_mode = 4
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="ScrollContainer/EventContainer/EventsWarning/HBoxContainer"]
|
[node name="Label" type="Label" parent="ScrollContainer/EventContainer/EventsWarning/HBoxContainer"]
|
||||||
margin_left = 44.0
|
margin_left = 44.0
|
||||||
margin_right = 182.0
|
margin_right = 194.0
|
||||||
margin_bottom = 48.0
|
margin_bottom = 40.0
|
||||||
rect_min_size = Vector2( 100, 0 )
|
rect_min_size = Vector2( 100, 0 )
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
size_flags_vertical = 1
|
size_flags_vertical = 1
|
||||||
|
@ -122,9 +124,9 @@ text = "Add an event to start building your timeline"
|
||||||
autowrap = true
|
autowrap = true
|
||||||
|
|
||||||
[node name="HBoxContainer6" type="HBoxContainer" parent="ScrollContainer/EventContainer"]
|
[node name="HBoxContainer6" type="HBoxContainer" parent="ScrollContainer/EventContainer"]
|
||||||
margin_top = 72.0
|
margin_top = 64.0
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 86.0
|
margin_bottom = 78.0
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="ScrollContainer/EventContainer/HBoxContainer6"]
|
[node name="Label" type="Label" parent="ScrollContainer/EventContainer/HBoxContainer6"]
|
||||||
margin_right = 77.0
|
margin_right = 77.0
|
||||||
|
@ -133,38 +135,38 @@ text = "Main Events"
|
||||||
|
|
||||||
[node name="HSeparator2" type="HSeparator" parent="ScrollContainer/EventContainer/HBoxContainer6"]
|
[node name="HSeparator2" type="HSeparator" parent="ScrollContainer/EventContainer/HBoxContainer6"]
|
||||||
margin_left = 81.0
|
margin_left = 81.0
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 14.0
|
margin_bottom = 14.0
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
|
|
||||||
[node name="TextBlock" type="Button" parent="ScrollContainer/EventContainer"]
|
[node name="TextBlock" type="Button" parent="ScrollContainer/EventContainer"]
|
||||||
margin_top = 90.0
|
margin_top = 82.0
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 118.0
|
margin_bottom = 110.0
|
||||||
text = " Text Event"
|
text = " Text Event"
|
||||||
icon = ExtResource( 2 )
|
icon = ExtResource( 2 )
|
||||||
align = 0
|
align = 0
|
||||||
|
|
||||||
[node name="CharacterJoinBlock" type="Button" parent="ScrollContainer/EventContainer"]
|
[node name="CharacterJoinBlock" type="Button" parent="ScrollContainer/EventContainer"]
|
||||||
margin_top = 122.0
|
margin_top = 114.0
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 150.0
|
margin_bottom = 142.0
|
||||||
text = " Character Join"
|
text = " Character Join"
|
||||||
icon = ExtResource( 1 )
|
icon = ExtResource( 1 )
|
||||||
align = 0
|
align = 0
|
||||||
|
|
||||||
[node name="CharacterLeaveBlock" type="Button" parent="ScrollContainer/EventContainer"]
|
[node name="CharacterLeaveBlock" type="Button" parent="ScrollContainer/EventContainer"]
|
||||||
margin_top = 154.0
|
margin_top = 146.0
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 182.0
|
margin_bottom = 174.0
|
||||||
text = " Character Leave"
|
text = " Character Leave"
|
||||||
icon = ExtResource( 7 )
|
icon = ExtResource( 7 )
|
||||||
align = 0
|
align = 0
|
||||||
|
|
||||||
[node name="HBoxContainer5" type="HBoxContainer" parent="ScrollContainer/EventContainer"]
|
[node name="HBoxContainer5" type="HBoxContainer" parent="ScrollContainer/EventContainer"]
|
||||||
margin_top = 186.0
|
margin_top = 178.0
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 200.0
|
margin_bottom = 192.0
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="ScrollContainer/EventContainer/HBoxContainer5"]
|
[node name="Label" type="Label" parent="ScrollContainer/EventContainer/HBoxContainer5"]
|
||||||
margin_right = 33.0
|
margin_right = 33.0
|
||||||
|
@ -173,54 +175,54 @@ text = "Logic"
|
||||||
|
|
||||||
[node name="HSeparator2" type="HSeparator" parent="ScrollContainer/EventContainer/HBoxContainer5"]
|
[node name="HSeparator2" type="HSeparator" parent="ScrollContainer/EventContainer/HBoxContainer5"]
|
||||||
margin_left = 37.0
|
margin_left = 37.0
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 14.0
|
margin_bottom = 14.0
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
|
|
||||||
[node name="ButtonQuestion" type="Button" parent="ScrollContainer/EventContainer"]
|
[node name="ButtonQuestion" type="Button" parent="ScrollContainer/EventContainer"]
|
||||||
margin_top = 204.0
|
margin_top = 196.0
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 232.0
|
margin_bottom = 224.0
|
||||||
text = " Question"
|
text = " Question"
|
||||||
icon = ExtResource( 8 )
|
icon = ExtResource( 8 )
|
||||||
align = 0
|
align = 0
|
||||||
|
|
||||||
[node name="Choice" type="Button" parent="ScrollContainer/EventContainer"]
|
[node name="Choice" type="Button" parent="ScrollContainer/EventContainer"]
|
||||||
margin_top = 236.0
|
margin_top = 228.0
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 264.0
|
margin_bottom = 256.0
|
||||||
text = " Choice"
|
text = " Choice"
|
||||||
icon = ExtResource( 12 )
|
icon = ExtResource( 12 )
|
||||||
align = 0
|
align = 0
|
||||||
|
|
||||||
[node name="IfCondition" type="Button" parent="ScrollContainer/EventContainer"]
|
[node name="IfCondition" type="Button" parent="ScrollContainer/EventContainer"]
|
||||||
margin_top = 268.0
|
margin_top = 260.0
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 296.0
|
margin_bottom = 288.0
|
||||||
text = " Condition"
|
text = " Condition"
|
||||||
icon = ExtResource( 5 )
|
icon = ExtResource( 5 )
|
||||||
align = 0
|
align = 0
|
||||||
|
|
||||||
[node name="EndBranch" type="Button" parent="ScrollContainer/EventContainer"]
|
[node name="EndBranch" type="Button" parent="ScrollContainer/EventContainer"]
|
||||||
margin_top = 300.0
|
margin_top = 292.0
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 328.0
|
margin_bottom = 320.0
|
||||||
text = " End Branch"
|
text = " End Branch"
|
||||||
icon = ExtResource( 9 )
|
icon = ExtResource( 9 )
|
||||||
align = 0
|
align = 0
|
||||||
|
|
||||||
[node name="SetValue" type="Button" parent="ScrollContainer/EventContainer"]
|
[node name="SetValue" type="Button" parent="ScrollContainer/EventContainer"]
|
||||||
margin_top = 332.0
|
margin_top = 324.0
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 360.0
|
margin_bottom = 352.0
|
||||||
text = " Set Value"
|
text = " Set Value"
|
||||||
icon = ExtResource( 11 )
|
icon = ExtResource( 11 )
|
||||||
align = 0
|
align = 0
|
||||||
|
|
||||||
[node name="HBoxContainer3" type="HBoxContainer" parent="ScrollContainer/EventContainer"]
|
[node name="HBoxContainer3" type="HBoxContainer" parent="ScrollContainer/EventContainer"]
|
||||||
margin_top = 364.0
|
margin_top = 356.0
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 378.0
|
margin_bottom = 370.0
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="ScrollContainer/EventContainer/HBoxContainer3"]
|
[node name="Label" type="Label" parent="ScrollContainer/EventContainer/HBoxContainer3"]
|
||||||
margin_right = 56.0
|
margin_right = 56.0
|
||||||
|
@ -229,55 +231,55 @@ text = "Timeline"
|
||||||
|
|
||||||
[node name="HSeparator2" type="HSeparator" parent="ScrollContainer/EventContainer/HBoxContainer3"]
|
[node name="HSeparator2" type="HSeparator" parent="ScrollContainer/EventContainer/HBoxContainer3"]
|
||||||
margin_left = 60.0
|
margin_left = 60.0
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 14.0
|
margin_bottom = 14.0
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
|
|
||||||
[node name="ChangeTimeline" type="Button" parent="ScrollContainer/EventContainer"]
|
[node name="ChangeTimeline" type="Button" parent="ScrollContainer/EventContainer"]
|
||||||
margin_top = 382.0
|
margin_top = 374.0
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 410.0
|
margin_bottom = 402.0
|
||||||
hint_tooltip = "This will instantly teleport you to the start of the desired timeline."
|
hint_tooltip = "This will instantly teleport you to the start of the desired timeline."
|
||||||
text = " Change Timeline"
|
text = " Change Timeline"
|
||||||
icon = ExtResource( 10 )
|
icon = ExtResource( 10 )
|
||||||
align = 0
|
align = 0
|
||||||
|
|
||||||
[node name="SceneEvent" type="Button" parent="ScrollContainer/EventContainer"]
|
[node name="SceneEvent" type="Button" parent="ScrollContainer/EventContainer"]
|
||||||
margin_top = 414.0
|
margin_top = 406.0
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 442.0
|
margin_bottom = 434.0
|
||||||
text = " Scene Event"
|
text = " Scene Event"
|
||||||
icon = ExtResource( 4 )
|
icon = ExtResource( 4 )
|
||||||
align = 0
|
align = 0
|
||||||
|
|
||||||
[node name="CloseDialog" type="Button" parent="ScrollContainer/EventContainer"]
|
[node name="CloseDialog" type="Button" parent="ScrollContainer/EventContainer"]
|
||||||
margin_top = 446.0
|
margin_top = 438.0
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 474.0
|
margin_bottom = 466.0
|
||||||
text = " Close Dialog"
|
text = " Close Dialog"
|
||||||
icon = ExtResource( 6 )
|
icon = ExtResource( 6 )
|
||||||
align = 0
|
align = 0
|
||||||
|
|
||||||
[node name="WaitSeconds" type="Button" parent="ScrollContainer/EventContainer"]
|
[node name="WaitSeconds" type="Button" parent="ScrollContainer/EventContainer"]
|
||||||
margin_top = 478.0
|
margin_top = 470.0
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 506.0
|
margin_bottom = 498.0
|
||||||
text = " Wait Seconds"
|
text = " Wait Seconds"
|
||||||
icon = ExtResource( 14 )
|
icon = ExtResource( 14 )
|
||||||
align = 0
|
align = 0
|
||||||
|
|
||||||
[node name="SetTheme" type="Button" parent="ScrollContainer/EventContainer"]
|
[node name="SetTheme" type="Button" parent="ScrollContainer/EventContainer"]
|
||||||
margin_top = 510.0
|
margin_top = 502.0
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 538.0
|
margin_bottom = 530.0
|
||||||
text = " Set Theme"
|
text = " Set Theme"
|
||||||
icon = ExtResource( 18 )
|
icon = ExtResource( 18 )
|
||||||
align = 0
|
align = 0
|
||||||
|
|
||||||
[node name="HBoxContainer4" type="HBoxContainer" parent="ScrollContainer/EventContainer"]
|
[node name="HBoxContainer4" type="HBoxContainer" parent="ScrollContainer/EventContainer"]
|
||||||
margin_top = 542.0
|
margin_top = 534.0
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 556.0
|
margin_bottom = 548.0
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="ScrollContainer/EventContainer/HBoxContainer4"]
|
[node name="Label" type="Label" parent="ScrollContainer/EventContainer/HBoxContainer4"]
|
||||||
margin_right = 37.0
|
margin_right = 37.0
|
||||||
|
@ -286,30 +288,30 @@ text = "Audio"
|
||||||
|
|
||||||
[node name="HSeparator2" type="HSeparator" parent="ScrollContainer/EventContainer/HBoxContainer4"]
|
[node name="HSeparator2" type="HSeparator" parent="ScrollContainer/EventContainer/HBoxContainer4"]
|
||||||
margin_left = 41.0
|
margin_left = 41.0
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 14.0
|
margin_bottom = 14.0
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
|
|
||||||
[node name="AudioBlock" type="Button" parent="ScrollContainer/EventContainer"]
|
[node name="AudioBlock" type="Button" parent="ScrollContainer/EventContainer"]
|
||||||
margin_top = 560.0
|
margin_top = 552.0
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 588.0
|
margin_bottom = 580.0
|
||||||
text = " Audio Event"
|
text = " Audio Event"
|
||||||
icon = ExtResource( 3 )
|
icon = ExtResource( 3 )
|
||||||
align = 0
|
align = 0
|
||||||
|
|
||||||
[node name="BackgroundMusic" type="Button" parent="ScrollContainer/EventContainer"]
|
[node name="BackgroundMusic" type="Button" parent="ScrollContainer/EventContainer"]
|
||||||
margin_top = 592.0
|
margin_top = 584.0
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 620.0
|
margin_bottom = 612.0
|
||||||
text = " Background Music"
|
text = " Background Music"
|
||||||
icon = ExtResource( 3 )
|
icon = ExtResource( 19 )
|
||||||
align = 0
|
align = 0
|
||||||
|
|
||||||
[node name="HBoxContainer" type="HBoxContainer" parent="ScrollContainer/EventContainer"]
|
[node name="HBoxContainer" type="HBoxContainer" parent="ScrollContainer/EventContainer"]
|
||||||
margin_top = 624.0
|
margin_top = 616.0
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 638.0
|
margin_bottom = 630.0
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="ScrollContainer/EventContainer/HBoxContainer"]
|
[node name="Label" type="Label" parent="ScrollContainer/EventContainer/HBoxContainer"]
|
||||||
margin_right = 39.0
|
margin_right = 39.0
|
||||||
|
@ -318,22 +320,22 @@ text = "Godot"
|
||||||
|
|
||||||
[node name="HSeparator2" type="HSeparator" parent="ScrollContainer/EventContainer/HBoxContainer"]
|
[node name="HSeparator2" type="HSeparator" parent="ScrollContainer/EventContainer/HBoxContainer"]
|
||||||
margin_left = 43.0
|
margin_left = 43.0
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 14.0
|
margin_bottom = 14.0
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
|
|
||||||
[node name="EmitSignal" type="Button" parent="ScrollContainer/EventContainer"]
|
[node name="EmitSignal" type="Button" parent="ScrollContainer/EventContainer"]
|
||||||
margin_top = 642.0
|
margin_top = 634.0
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 670.0
|
margin_bottom = 662.0
|
||||||
text = " Emit Signal"
|
text = " Emit Signal"
|
||||||
icon = ExtResource( 16 )
|
icon = ExtResource( 16 )
|
||||||
align = 0
|
align = 0
|
||||||
|
|
||||||
[node name="ChangeScene" type="Button" parent="ScrollContainer/EventContainer"]
|
[node name="ChangeScene" type="Button" parent="ScrollContainer/EventContainer"]
|
||||||
margin_top = 674.0
|
margin_top = 666.0
|
||||||
margin_right = 188.0
|
margin_right = 200.0
|
||||||
margin_bottom = 702.0
|
margin_bottom = 694.0
|
||||||
hint_tooltip = "This will instantly change
|
hint_tooltip = "This will instantly change
|
||||||
the current scene."
|
the current scene."
|
||||||
text = " Change Scene"
|
text = " Change Scene"
|
||||||
|
|
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 2 KiB |
|
@ -2,15 +2,15 @@
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="StreamTexture"
|
||||||
path="res://.import/Wait.svg-3067f9c4ae9af9327c6bfe7ece5d6521.stex"
|
path="res://.import/Wait.svg-967925959cce4f8e3ee840598b69a612.stex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://addons/dialogic/Images/Wait.svg"
|
source_file="res://addons/dialogic/Images/Events/Wait.svg"
|
||||||
dest_files=[ "res://.import/Wait.svg-3067f9c4ae9af9327c6bfe7ece5d6521.stex" ]
|
dest_files=[ "res://.import/Wait.svg-967925959cce4f8e3ee840598b69a612.stex" ]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
4
addons/dialogic/Images/Events/audio-event.svg
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M3 14V8C3 7.44772 3.44772 7 4 7H6.7132C6.90062 7 7.08427 6.94733 7.2432 6.848L13.47 2.95625C14.136 2.53997 15 3.01881 15 3.80425V10.6313C14.7507 10.5508 14.4911 10.507 14.2299 10.5008L14.2119 10.5003H14.2075C12.7898 10.479 11.4999 11.5842 11.5 13.1117V13.112V17.8125L7.2432 15.152C7.08427 15.0527 6.90062 15 6.7132 15H4C3.44772 15 3 14.5523 3 14ZM15 14.0686V17.9309L14.5 18.2403V13.7592L15 14.0686Z" fill="white"/>
|
||||||
|
<path d="M14.1939 12.0003C13.539 11.9855 12.9999 12.4877 13 13.1117V18.888C13.0008 19.7431 13.9725 20.2769 14.7499 19.8495L19.4164 16.9625C20.1945 16.5347 20.1945 15.4648 19.4164 15.0371L14.7499 12.15C14.5807 12.0563 14.3895 12.005 14.194 12.0003H14.1939Z" fill="#51B7FF"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 841 B |
|
@ -2,15 +2,15 @@
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="StreamTexture"
|
||||||
path="res://.import/audio-event.svg-f466bed1a2d6642d6551ef16a9c08581.stex"
|
path="res://.import/audio-event.svg-bd534461a0eafdc8864d2de10c52b1e3.stex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://addons/dialogic/Images/audio-event.svg"
|
source_file="res://addons/dialogic/Images/Events/audio-event.svg"
|
||||||
dest_files=[ "res://.import/audio-event.svg-f466bed1a2d6642d6551ef16a9c08581.stex" ]
|
dest_files=[ "res://.import/audio-event.svg-bd534461a0eafdc8864d2de10c52b1e3.stex" ]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
4
addons/dialogic/Images/Events/background-music.svg
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M13.5287 11C12.827 10.9838 12.2494 11.5331 12.2495 12.2156V18.5333C12.2503 19.4686 13.2915 20.0524 14.1245 19.5849L19.1245 16.4273C19.9582 15.9594 19.9582 14.7893 19.1245 14.3214L14.1245 11.1638C13.9432 11.0613 13.7383 11.0052 13.5288 11H13.5287Z" fill="#51B7FF"/>
|
||||||
|
<path d="M15.9637 2.25251C15.8597 2.2551 15.7563 2.27069 15.6561 2.2989L6.90613 4.7989C6.64523 4.87366 6.41574 5.03129 6.25234 5.24799C6.08894 5.46468 6.00049 5.72867 6.00037 6.00007V12.9386C5.79469 12.8965 5.5853 12.8752 5.37537 12.8751C4.54656 12.8751 3.75171 13.2043 3.16566 13.7904C2.57961 14.3764 2.25037 15.1713 2.25037 16.0001C2.25037 16.8289 2.57961 17.6238 3.16566 18.2098C3.75171 18.7959 4.54656 19.1251 5.37537 19.1251C6.18463 19.1243 6.96205 18.8097 7.544 18.2473C8.12594 17.6849 8.46704 16.9187 8.49549 16.11C8.49873 16.0734 8.50036 16.0368 8.50037 16.0001V6.94498L14.7504 5.16036V9.12523L17.2504 7.87523V3.50023C17.2501 3.33316 17.2163 3.16784 17.1511 3.01404C17.0859 2.86024 16.9904 2.72107 16.8705 2.60477C16.7505 2.48847 16.6085 2.39739 16.4528 2.33691C16.297 2.27644 16.1307 2.24779 15.9637 2.25267L15.9637 2.25251Z" fill="white"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.2 KiB |
34
addons/dialogic/Images/Events/background-music.svg.import
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/background-music.svg-ce4f516e1adc748da06ba03cfc5f5aea.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://addons/dialogic/Images/Events/background-music.svg"
|
||||||
|
dest_files=[ "res://.import/background-music.svg-ce4f516e1adc748da06ba03cfc5f5aea.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=0
|
||||||
|
flags/filter=true
|
||||||
|
flags/mipmaps=false
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=2
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=true
|
||||||
|
svg/scale=1.0
|
4
addons/dialogic/Images/Events/change-scene.svg
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M16.6245 2.42908L19.4514 2L19.8155 4.5873L17.6554 4.91423L16.6245 2.42908ZM11.6397 3.18254L14.132 2.80453L15.1629 5.29216L12.6706 5.67016L11.6397 3.18254ZM6.65249 3.93854L9.14482 3.56054L10.1757 6.04817L7.68338 6.42617L6.65249 3.93854ZM2 4.64347L4.16015 4.31654L5.19105 6.80166L2.36413 7.23074L2 4.64347ZM2.36406 16.3846V8.53844H20V12.6075L17.4024 12.5359C16.0416 12.4985 14.908 13.5713 14.8705 14.9321C14.8567 15.4334 14.9935 15.9038 15.2399 16.3C14.7353 16.4628 14.2827 16.4937 13.9025 16.4567C12.8164 16.3512 11.7699 15.6475 11.1538 14.5406C10.4918 13.3511 8.99072 12.9235 7.80118 13.5856C6.61165 14.2477 6.18406 15.7487 6.84615 16.9382C7.26641 17.6933 7.79823 18.3912 8.42228 19H4.88348C3.49204 19 2.36406 17.8291 2.36406 16.3846Z" fill="white"/>
|
||||||
|
<path d="M19.939 15.7394C15.8678 20.7388 10.9236 19.1954 9 15.7394M19.8447 18.2901L20.8202 15.096L17.3346 15" stroke="#51B7FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.1 KiB |
|
@ -2,15 +2,15 @@
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="StreamTexture"
|
||||||
path="res://.import/change-scene.svg-6741e154480a026a1704d39dc9993684.stex"
|
path="res://.import/change-scene.svg-4ec53c6e2be3e1a24d1aeb9767277503.stex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://addons/dialogic/Images/change-scene.svg"
|
source_file="res://addons/dialogic/Images/Events/change-scene.svg"
|
||||||
dest_files=[ "res://.import/change-scene.svg-6741e154480a026a1704d39dc9993684.stex" ]
|
dest_files=[ "res://.import/change-scene.svg-4ec53c6e2be3e1a24d1aeb9767277503.stex" ]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
4
addons/dialogic/Images/Events/change-timeline.svg
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M3 2C2.44772 2 2 2.44772 2 3V4C2 4.55228 2.44772 5 3 5H19C19.5523 5 20 4.55228 20 4V3C20 2.44772 19.5523 2 19 2H3ZM3 7C2.44772 7 2 7.44772 2 8V9C2 9.55228 2.44772 10 3 10H19C19.5523 10 20 9.55228 20 9V8C20 7.44772 19.5523 7 19 7H3ZM2 13C2 12.4477 2.44772 12 3 12H19C19.4121 12 19.766 12.2493 19.9191 12.6053L17.4024 12.5359C16.0416 12.4985 14.908 13.5713 14.8705 14.9321C14.8699 14.9548 14.8695 14.9774 14.8695 15H11.4507C11.3434 14.8559 11.244 14.7026 11.1538 14.5406C10.4918 13.3511 8.99072 12.9235 7.80118 13.5856C7.22745 13.9049 6.83097 14.4194 6.64851 15H3C2.44772 15 2 14.5523 2 14V13ZM6.88085 17H3C2.44772 17 2 17.4477 2 18V19C2 19.5523 2.44772 20 3 20H9.65183C8.50244 19.2281 7.55346 18.1862 6.88085 17Z" fill="white"/>
|
||||||
|
<path d="M19.939 15.7394C15.8678 20.7388 10.9236 19.1954 9 15.7394M19.8447 18.2901L20.8202 15.096L17.3346 15" stroke="#51B7FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1 KiB |
|
@ -2,15 +2,15 @@
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="StreamTexture"
|
||||||
path="res://.import/change-timeline.svg-783cf6946622396a13124d15e21599a3.stex"
|
path="res://.import/change-timeline.svg-6aceaf7d093889feea334bbe4350d8be.stex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://addons/dialogic/Images/change-timeline.svg"
|
source_file="res://addons/dialogic/Images/Events/change-timeline.svg"
|
||||||
dest_files=[ "res://.import/change-timeline.svg-783cf6946622396a13124d15e21599a3.stex" ]
|
dest_files=[ "res://.import/change-timeline.svg-6aceaf7d093889feea334bbe4350d8be.stex" ]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
4
addons/dialogic/Images/Events/scene.svg
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M3.07188 2C2.7876 2 2.51496 2.10536 2.31395 2.29289C2.11293 2.48043 2 2.73478 2 3V19C2 19.2652 2.11293 19.5196 2.31395 19.7071C2.51496 19.8946 2.7876 20 3.07188 20H18.9281C18.9281 20 19.485 19.8946 19.6861 19.7071C19.8871 19.5196 20 19.2652 20 19C20 18.7348 20 3 20 3C20 2.73478 19.8871 2.48043 19.6861 2.29289C19.485 2.10536 19.2124 2 18.9281 2H3.07188ZM4 4H18V16H4V4Z" fill="white"/>
|
||||||
|
<path d="M14.9894 14.3602H7.17412C6.49264 14.3602 5.98862 13.761 6.14272 13.1341L6.68913 10.9111C6.80974 10.4204 7.29797 10.0911 7.82855 10.1425L9.53217 10.3075C9.87368 10.3406 10.211 10.2152 10.437 9.97121L12.5385 7.70295C13.0832 7.11506 14.0993 7.31757 14.346 8.06318L16 13.062C16.2131 13.7059 15.7037 14.3602 14.9894 14.3602Z" fill="white"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 843 B |
|
@ -2,15 +2,15 @@
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="StreamTexture"
|
||||||
path="res://.import/scene.svg-7e486b606631b7f10f94075876ec8fce.stex"
|
path="res://.import/scene.svg-ca26fe974139b6679b31bddcfc26e995.stex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://addons/dialogic/Images/scene.svg"
|
source_file="res://addons/dialogic/Images/Events/scene.svg"
|
||||||
dest_files=[ "res://.import/scene.svg-7e486b606631b7f10f94075876ec8fce.stex" ]
|
dest_files=[ "res://.import/scene.svg-ca26fe974139b6679b31bddcfc26e995.stex" ]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M1 2C1 1.44771 1.44772 1 2 1H14C14.5523 1 15 1.44772 15 2V11C15 13.5 7 15 7 15L9.24 12H2C1.44772 12 1 11.5523 1 11V2ZM3 8C3 7.68776 3.10876 7.44304 3.32629 7.26582C3.54381 7.08861 3.82931 7 4.18279 7C4.54534 7 4.83537 7.08861 5.05289 7.26582C5.27042 7.44304 5.37918 7.68776 5.37918 8C5.37918 8.29536 5.27042 8.53586 5.05289 8.72152C4.83537 8.90717 4.54534 9 4.18279 9C3.82931 9 3.54381 8.90717 3.32629 8.72152C3.10876 8.53586 3 8.29536 3 8ZM6.81041 8C6.81041 7.68776 6.91917 7.44304 7.1367 7.26582C7.35422 7.08861 7.63972 7 7.9932 7C8.35574 7 8.64578 7.08861 8.8633 7.26582C9.08083 7.44304 9.18959 7.68776 9.18959 8C9.18959 8.29536 9.08083 8.53586 8.8633 8.72152C8.64578 8.90717 8.35574 9 7.9932 9C7.63972 9 7.35422 8.90717 7.1367 8.72152C6.91917 8.53586 6.81041 8.29536 6.81041 8ZM10.9471 7.26582C10.7296 7.44304 10.6208 7.68776 10.6208 8C10.6208 8.29536 10.7296 8.53586 10.9471 8.72152C11.1646 8.90717 11.4501 9 11.8036 9C12.1662 9 12.4562 8.90717 12.6737 8.72152C12.8912 8.53586 13 8.29536 13 8C13 7.68776 12.8912 7.44304 12.6737 7.26582C12.4562 7.08861 12.1662 7 11.8036 7C11.4501 7 11.1646 7.08861 10.9471 7.26582Z" fill="#E0E0E0"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.3 KiB |
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/plugin-editor-icon-dark-theme.svg-4945c419e7e7434b4eff87c00fedb862.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://addons/dialogic/Images/Plugin/plugin-editor-icon-dark-theme.svg"
|
||||||
|
dest_files=[ "res://.import/plugin-editor-icon-dark-theme.svg-4945c419e7e7434b4eff87c00fedb862.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=0
|
||||||
|
flags/filter=true
|
||||||
|
flags/mipmaps=false
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=2
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=true
|
||||||
|
svg/scale=1.0
|
|
@ -0,0 +1,3 @@
|
||||||
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M1 2C1 1.44771 1.44772 1 2 1H14C14.5523 1 15 1.44772 15 2V11C15 13.5 7 15 7 15L9.24 12H2C1.44772 12 1 11.5523 1 11V2ZM3 8C3 7.68776 3.10876 7.44304 3.32629 7.26582C3.54381 7.08861 3.82931 7 4.18279 7C4.54534 7 4.83537 7.08861 5.05289 7.26582C5.27042 7.44304 5.37918 7.68776 5.37918 8C5.37918 8.29536 5.27042 8.53586 5.05289 8.72152C4.83537 8.90717 4.54534 9 4.18279 9C3.82931 9 3.54381 8.90717 3.32629 8.72152C3.10876 8.53586 3 8.29536 3 8ZM6.81041 8C6.81041 7.68776 6.91917 7.44304 7.1367 7.26582C7.35422 7.08861 7.63972 7 7.9932 7C8.35574 7 8.64578 7.08861 8.8633 7.26582C9.08083 7.44304 9.18959 7.68776 9.18959 8C9.18959 8.29536 9.08083 8.53586 8.8633 8.72152C8.64578 8.90717 8.35574 9 7.9932 9C7.63972 9 7.35422 8.90717 7.1367 8.72152C6.91917 8.53586 6.81041 8.29536 6.81041 8ZM10.9471 7.26582C10.7296 7.44304 10.6208 7.68776 10.6208 8C10.6208 8.29536 10.7296 8.53586 10.9471 8.72152C11.1646 8.90717 11.4501 9 11.8036 9C12.1662 9 12.4562 8.90717 12.6737 8.72152C12.8912 8.53586 13 8.29536 13 8C13 7.68776 12.8912 7.44304 12.6737 7.26582C12.4562 7.08861 12.1662 7 11.8036 7C11.4501 7 11.1646 7.08861 10.9471 7.26582Z" fill="#5A5A5A"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.3 KiB |
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/plugin-editor-icon-light-theme.svg-fbd42cd06e4ce1cb7eef3585a7eb830a.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://addons/dialogic/Images/Plugin/plugin-editor-icon-light-theme.svg"
|
||||||
|
dest_files=[ "res://.import/plugin-editor-icon-light-theme.svg-fbd42cd06e4ce1cb7eef3585a7eb830a.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=0
|
||||||
|
flags/filter=true
|
||||||
|
flags/mipmaps=false
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=2
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=true
|
||||||
|
svg/scale=1.0
|
|
@ -1,4 +0,0 @@
|
||||||
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path d="M13.5288 11C12.827 10.9838 12.2494 11.5331 12.2495 12.2156V18.5333C12.2504 19.4686 13.2915 20.0524 14.1245 19.5849L19.1245 16.4273C19.9582 15.9594 19.9582 14.7893 19.1245 14.3214L14.1245 11.1638C13.9432 11.0613 13.7383 11.0052 13.5288 11H13.5288Z" fill="white"/>
|
|
||||||
<path d="M15.9638 2.25251C15.8597 2.2551 15.7563 2.27069 15.6561 2.2989L6.90614 4.7989C6.64524 4.87366 6.41576 5.03129 6.25236 5.24799C6.08895 5.46468 6.00051 5.72867 6.00038 6.00007V12.9386C5.79471 12.8965 5.58532 12.8752 5.37538 12.8751C4.54658 12.8751 3.75172 13.2043 3.16567 13.7904C2.57962 14.3764 2.25038 15.1713 2.25038 16.0001C2.25038 16.8289 2.57962 17.6238 3.16567 18.2098C3.75172 18.7959 4.54658 19.1251 5.37538 19.1251C6.18465 19.1243 6.96206 18.8097 7.54401 18.2473C8.12596 17.6849 8.46705 16.9187 8.49551 16.11C8.49874 16.0734 8.50037 16.0368 8.50039 16.0001V6.94498L14.7504 5.16036V9.12523L17.2504 7.87523V3.50023C17.2501 3.33316 17.2164 3.16784 17.1511 3.01404C17.0859 2.86024 16.9905 2.72107 16.8705 2.60477C16.7506 2.48847 16.6085 2.39739 16.4528 2.33691C16.297 2.27644 16.1308 2.24779 15.9638 2.25267L15.9638 2.25251Z" fill="#A5EFAC"/>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 1.2 KiB |
|
@ -1,4 +0,0 @@
|
||||||
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path d="M17.8535 4L15.6094 4.32812L16.4278 6.22852L18.1426 5.97852L17.8535 4ZM13.6308 4.61523L11.6523 4.90429L12.4707 6.80659L14.4492 6.51753L13.6308 4.61523ZM9.6718 5.19335L7.6933 5.48241L8.51166 7.38471L10.4902 7.09565L9.6718 5.19335ZM5.7148 5.77147L4 6.02147L4.28906 7.99997L6.53316 7.67185L5.7148 5.77147ZM4.289 8.99997V15C4.289 16.1046 5.18443 17 6.289 17H18.289V8.99997H4.289Z" fill="white"/>
|
|
||||||
<path d="M18.5 11V13C16.8038 13.9451 15.8145 14.1267 14 14V16L11 13L14 10V12C15.904 12.0262 16.8791 11.7785 18.5 11Z" fill="#72DDFF"/>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 638 B |
|
@ -1,4 +0,0 @@
|
||||||
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M7 2C6.44772 2 6 2.44772 6 3V19H8V4H15V19H17V3C17 2.44772 16.5523 2 16 2H7Z" fill="white"/>
|
|
||||||
<path d="M18.5 11V13C16.8038 13.9451 15.8145 14.1267 14 14V16L11 13L14 10V12C15.904 12.0262 16.8791 11.7785 18.5 11Z" fill="#72DDFF"/>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 379 B |
|
@ -1,3 +0,0 @@
|
||||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M1 2C1 1.44771 1.44772 1 2 1H14C14.5523 1 15 1.44772 15 2V10V11V12L7 15L9.24 12H2C1.44772 12 1 11.5523 1 11V2ZM3 8C3 7.68776 3.10876 7.44304 3.32629 7.26582C3.54381 7.08861 3.82931 7 4.18279 7C4.54534 7 4.83537 7.08861 5.05289 7.26582C5.27042 7.44304 5.37918 7.68776 5.37918 8C5.37918 8.29536 5.27042 8.53586 5.05289 8.72152C4.83537 8.90717 4.54534 9 4.18279 9C3.82931 9 3.54381 8.90717 3.32629 8.72152C3.10876 8.53586 3 8.29536 3 8ZM6.81041 8C6.81041 7.68776 6.91917 7.44304 7.1367 7.26582C7.35422 7.08861 7.63972 7 7.9932 7C8.35574 7 8.64578 7.08861 8.8633 7.26582C9.08083 7.44304 9.18959 7.68776 9.18959 8C9.18959 8.29536 9.08083 8.53586 8.8633 8.72152C8.64578 8.90717 8.35574 9 7.9932 9C7.63972 9 7.35422 8.90717 7.1367 8.72152C6.91917 8.53586 6.81041 8.29536 6.81041 8ZM10.9471 7.26582C10.7296 7.44304 10.6208 7.68776 10.6208 8C10.6208 8.29536 10.7296 8.53586 10.9471 8.72152C11.1646 8.90717 11.4501 9 11.8036 9C12.1662 9 12.4562 8.90717 12.6737 8.72152C12.8912 8.53586 13 8.29536 13 8C13 7.68776 12.8912 7.44304 12.6737 7.26582C12.4562 7.08861 12.1662 7 11.8036 7C11.4501 7 11.1646 7.08861 10.9471 7.26582Z" fill="#E0E0E0"/>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 1.3 KiB |
|
@ -1,34 +0,0 @@
|
||||||
[remap]
|
|
||||||
|
|
||||||
importer="texture"
|
|
||||||
type="StreamTexture"
|
|
||||||
path="res://.import/plugin-editor-icon.svg-b27733904a7899b70bf2e32c6ffbb24b.stex"
|
|
||||||
metadata={
|
|
||||||
"vram_texture": false
|
|
||||||
}
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://addons/dialogic/Images/plugin-editor-icon.svg"
|
|
||||||
dest_files=[ "res://.import/plugin-editor-icon.svg-b27733904a7899b70bf2e32c6ffbb24b.stex" ]
|
|
||||||
|
|
||||||
[params]
|
|
||||||
|
|
||||||
compress/mode=0
|
|
||||||
compress/lossy_quality=0.7
|
|
||||||
compress/hdr_mode=0
|
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
|
||||||
flags/repeat=0
|
|
||||||
flags/filter=true
|
|
||||||
flags/mipmaps=false
|
|
||||||
flags/anisotropic=false
|
|
||||||
flags/srgb=2
|
|
||||||
process/fix_alpha_border=true
|
|
||||||
process/premult_alpha=false
|
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
stream=false
|
|
||||||
size_limit=0
|
|
||||||
detect_3d=true
|
|
||||||
svg/scale=1.0
|
|
|
@ -1,3 +0,0 @@
|
||||||
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M4 2C3.44772 2 3 2.44772 3 3V18C3 18.5523 3.44772 19 4 19H19C19.5523 19 20 18.5523 20 18V3C20 2.44772 19.5523 2 19 2H4ZM5 17V4H18V12C15.5 7 12 8.5 11 10C10 11.5 6.5 16.6667 5 17Z" fill="white"/>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 347 B |
|
@ -5,20 +5,25 @@ onready var _anim_player := $AnimationPlayer
|
||||||
onready var _track1 := $Track1
|
onready var _track1 := $Track1
|
||||||
onready var _track2 := $Track2
|
onready var _track2 := $Track2
|
||||||
|
|
||||||
|
var current_path = ""
|
||||||
|
|
||||||
func crossfade_to(audio_stream: AudioStream) -> void:
|
func crossfade_to(path: String) -> void:
|
||||||
|
if current_path != path:
|
||||||
|
current_path = path
|
||||||
|
var stream: AudioStream = load(current_path)
|
||||||
if _track1.playing and _track2.playing:
|
if _track1.playing and _track2.playing:
|
||||||
return
|
return
|
||||||
|
|
||||||
if _track2.playing:
|
if _track2.playing:
|
||||||
_track1.stream = audio_stream
|
_track1.stream = stream
|
||||||
_track1.play()
|
_track1.play()
|
||||||
_anim_player.play("FadeToTrack1")
|
_anim_player.play("FadeToTrack1")
|
||||||
else:
|
else:
|
||||||
_track2.stream = audio_stream
|
_track2.stream = stream
|
||||||
_track2.play()
|
_track2.play()
|
||||||
_anim_player.play("FadeToTrack2")
|
_anim_player.play("FadeToTrack2")
|
||||||
|
|
||||||
|
|
||||||
func fade_out() -> void:
|
func fade_out() -> void:
|
||||||
|
current_path = ""
|
||||||
_anim_player.play("FadeOut")
|
_anim_player.play("FadeOut")
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
[ext_resource path="res://addons/dialogic/Nodes/BackgroundMusic.gd" type="Script" id=1]
|
[ext_resource path="res://addons/dialogic/Nodes/BackgroundMusic.gd" type="Script" id=1]
|
||||||
|
|
||||||
|
[sub_resource type="Animation" id=1]
|
||||||
[sub_resource type="Animation" id=3]
|
|
||||||
resource_name = "FadeOut"
|
resource_name = "FadeOut"
|
||||||
|
length = 0.5
|
||||||
tracks/0/type = "value"
|
tracks/0/type = "value"
|
||||||
tracks/0/path = NodePath("Track1:volume_db")
|
tracks/0/path = NodePath("Track1:volume_db")
|
||||||
tracks/0/interp = 1
|
tracks/0/interp = 1
|
||||||
|
@ -54,8 +54,7 @@ tracks/3/keys = {
|
||||||
"values": [ false ]
|
"values": [ false ]
|
||||||
}
|
}
|
||||||
|
|
||||||
[sub_resource type="Animation" id=1]
|
[sub_resource type="Animation" id=2]
|
||||||
resource_name = "FadeToTrack1"
|
|
||||||
length = 0.5
|
length = 0.5
|
||||||
tracks/0/type = "value"
|
tracks/0/type = "value"
|
||||||
tracks/0/path = NodePath("Track1:volume_db")
|
tracks/0/path = NodePath("Track1:volume_db")
|
||||||
|
@ -94,8 +93,7 @@ tracks/2/keys = {
|
||||||
"values": [ false ]
|
"values": [ false ]
|
||||||
}
|
}
|
||||||
|
|
||||||
[sub_resource type="Animation" id=2]
|
[sub_resource type="Animation" id=3]
|
||||||
resource_name = "FadeToTrack2"
|
|
||||||
length = 0.5
|
length = 0.5
|
||||||
tracks/0/type = "value"
|
tracks/0/type = "value"
|
||||||
tracks/0/path = NodePath("Track1:volume_db")
|
tracks/0/path = NodePath("Track1:volume_db")
|
||||||
|
@ -145,8 +143,9 @@ __meta__ = {
|
||||||
[node name="Track1" type="AudioStreamPlayer" parent="."]
|
[node name="Track1" type="AudioStreamPlayer" parent="."]
|
||||||
|
|
||||||
[node name="Track2" type="AudioStreamPlayer" parent="."]
|
[node name="Track2" type="AudioStreamPlayer" parent="."]
|
||||||
|
volume_db = -80.0
|
||||||
|
|
||||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||||
anims/FadeOut = SubResource( 3 )
|
anims/FadeOut = SubResource( 1 )
|
||||||
anims/FadeToTrack1 = SubResource( 1 )
|
anims/FadeToTrack1 = SubResource( 2 )
|
||||||
anims/FadeToTrack2 = SubResource( 2 )
|
anims/FadeToTrack2 = SubResource( 3 )
|
||||||
|
|
|
@ -68,7 +68,7 @@ func _ready():
|
||||||
|
|
||||||
func load_config_files():
|
func load_config_files():
|
||||||
if not Engine.is_editor_hint():
|
if not Engine.is_editor_hint():
|
||||||
# Make sure saves are ready
|
if reset_saves:
|
||||||
DialogicSingleton.init(reset_saves)
|
DialogicSingleton.init(reset_saves)
|
||||||
definitions = DialogicSingleton.get_definitions()
|
definitions = DialogicSingleton.get_definitions()
|
||||||
else:
|
else:
|
||||||
|
@ -468,8 +468,7 @@ func event_handler(event: Dictionary):
|
||||||
{'background-music'}, {'background-music', 'file'}:
|
{'background-music'}, {'background-music', 'file'}:
|
||||||
emit_signal("event_start", "background-music", event)
|
emit_signal("event_start", "background-music", event)
|
||||||
if event['background-music'] == 'play' and 'file' in event.keys() and not event['file'].empty():
|
if event['background-music'] == 'play' and 'file' in event.keys() and not event['file'].empty():
|
||||||
var stream: AudioStream = load(event['file'])
|
$FX/BackgroundMusic.crossfade_to(event['file'])
|
||||||
$FX/BackgroundMusic.crossfade_to(stream)
|
|
||||||
else:
|
else:
|
||||||
$FX/BackgroundMusic.fade_out()
|
$FX/BackgroundMusic.fade_out()
|
||||||
go_to_next_event()
|
go_to_next_event()
|
||||||
|
@ -738,6 +737,13 @@ func load_theme(filename):
|
||||||
$TextBubble/NameLabel.set('custom_constants/shadow_offset_y', name_shadow_offset.y)
|
$TextBubble/NameLabel.set('custom_constants/shadow_offset_y', name_shadow_offset.y)
|
||||||
$TextBubble/NameLabel.rect_position.y = theme.get_value('name', 'bottom_gap', 48) * -1
|
$TextBubble/NameLabel.rect_position.y = theme.get_value('name', 'bottom_gap', 48) * -1
|
||||||
|
|
||||||
|
|
||||||
|
# Setting next indicator animation
|
||||||
|
$TextBubble/NextIndicator.self_modulate = Color('#ffffff')
|
||||||
|
$TextBubble/NextIndicator/AnimationPlayer.play(
|
||||||
|
theme.get_value('next_indicator', 'animation', 'Up and down')
|
||||||
|
)
|
||||||
|
|
||||||
return theme
|
return theme
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,7 @@ static func init_saves(overwrite: bool=true):
|
||||||
init_state_saves(overwrite)
|
init_state_saves(overwrite)
|
||||||
init_definitions_saves(overwrite)
|
init_definitions_saves(overwrite)
|
||||||
else:
|
else:
|
||||||
print('Error creating working directory: ' + str(err))
|
print('[Dialogic] Error creating working directory: ' + str(err))
|
||||||
|
|
||||||
|
|
||||||
static func init_working_dir():
|
static func init_working_dir():
|
||||||
|
@ -91,7 +91,7 @@ static func init_state_saves(overwrite: bool=true):
|
||||||
file.store_string('')
|
file.store_string('')
|
||||||
file.close()
|
file.close()
|
||||||
else:
|
else:
|
||||||
print('Error opening saved state file: ' + str(err))
|
print('[Dialogic] Error opening saved state file: ' + str(err))
|
||||||
|
|
||||||
|
|
||||||
static func init_definitions_saves(overwrite: bool=true):
|
static func init_definitions_saves(overwrite: bool=true):
|
||||||
|
@ -102,12 +102,12 @@ static func init_definitions_saves(overwrite: bool=true):
|
||||||
var err
|
var err
|
||||||
if not directory.file_exists(paths["SAVED_DEFINITIONS_FILE"]):
|
if not directory.file_exists(paths["SAVED_DEFINITIONS_FILE"]):
|
||||||
err = sink.open(paths["SAVED_DEFINITIONS_FILE"], File.WRITE)
|
err = sink.open(paths["SAVED_DEFINITIONS_FILE"], File.WRITE)
|
||||||
print('Saved definitions not present, creating file: ' + str(err))
|
print('[Dialogic] Saved definitions not present, creating file: ' + str(err))
|
||||||
if err == OK:
|
if err == OK:
|
||||||
sink.store_string('')
|
sink.store_string('')
|
||||||
sink.close()
|
sink.close()
|
||||||
else:
|
else:
|
||||||
print('Error opening saved definitions file: ' + str(err))
|
print('[Dialogic] Error opening saved definitions file: ' + str(err))
|
||||||
|
|
||||||
err = sink.open(paths["SAVED_DEFINITIONS_FILE"], File.READ_WRITE)
|
err = sink.open(paths["SAVED_DEFINITIONS_FILE"], File.READ_WRITE)
|
||||||
if err == OK:
|
if err == OK:
|
||||||
|
@ -116,11 +116,11 @@ static func init_definitions_saves(overwrite: bool=true):
|
||||||
if err == OK:
|
if err == OK:
|
||||||
sink.store_string(source.get_as_text())
|
sink.store_string(source.get_as_text())
|
||||||
else:
|
else:
|
||||||
print('Error opening default definitions file: ' + str(err))
|
print('[Dialogic] Error opening default definitions file: ' + str(err))
|
||||||
else:
|
else:
|
||||||
print('Did not overwrite previous saved definitions')
|
print('[Dialogic] Did not overwrite previous saved definitions')
|
||||||
else:
|
else:
|
||||||
print('Error opening saved definitions file: ' + str(err))
|
print('[Dialogic] Error opening saved definitions file: ' + str(err))
|
||||||
|
|
||||||
source.close()
|
source.close()
|
||||||
sink.close()
|
sink.close()
|
||||||
|
@ -155,7 +155,7 @@ static func listdir(path: String) -> Array:
|
||||||
file_name = dir.get_next()
|
file_name = dir.get_next()
|
||||||
dir.list_dir_end()
|
dir.list_dir_end()
|
||||||
else:
|
else:
|
||||||
print("Error while accessing path " + path + " - Error: " + str(err))
|
print("[Dialogic] Error while accessing path " + path + " - Error: " + str(err))
|
||||||
return files
|
return files
|
||||||
|
|
||||||
|
|
||||||
|
@ -175,7 +175,7 @@ static func get_config(id: String) -> ConfigFile:
|
||||||
if id in paths.keys():
|
if id in paths.keys():
|
||||||
var err = config.load(paths[id])
|
var err = config.load(paths[id])
|
||||||
if err != OK:
|
if err != OK:
|
||||||
print("Error while opening config file " + paths[id] + ". Error: " + str(err))
|
print("[Dialogic] Error while opening config file " + paths[id] + ". Error: " + str(err))
|
||||||
return config
|
return config
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@ var default_definitions := {}
|
||||||
var current_timeline := ''
|
var current_timeline := ''
|
||||||
|
|
||||||
func _init() -> void:
|
func _init() -> void:
|
||||||
|
# Load saves on script init
|
||||||
init(false)
|
init(false)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,10 @@ func make_visible(visible):
|
||||||
|
|
||||||
|
|
||||||
func get_plugin_icon():
|
func get_plugin_icon():
|
||||||
return preload("res://addons/dialogic/Images/plugin-editor-icon.svg")
|
# https://github.com/godotengine/godot-proposals/issues/572
|
||||||
|
if get_editor_interface().get_editor_settings().get_setting("interface/theme/base_color").v > 0.5:
|
||||||
|
return preload("res://addons/dialogic/Images/Plugin/plugin-editor-icon-light-theme.svg")
|
||||||
|
return preload("res://addons/dialogic/Images/Plugin/plugin-editor-icon-dark-theme.svg")
|
||||||
|
|
||||||
|
|
||||||
func _add_custom_editor_view():
|
func _add_custom_editor_view():
|
||||||
|
|
|
@ -24,3 +24,5 @@ color="#ffffffff"
|
||||||
[name]
|
[name]
|
||||||
|
|
||||||
image_visible=true
|
image_visible=true
|
||||||
|
auto_color=true
|
||||||
|
shadow_visible=true
|
||||||
|
|