Add addons
This commit is contained in:
parent
2c862b2235
commit
3367bad24f
527 changed files with 36197 additions and 0 deletions
|
|
@ -0,0 +1,18 @@
|
|||
extends Node
|
||||
class_name CustomEventConverter
|
||||
|
||||
# This is an extension to the Converter to allow for converting custom scenes
|
||||
# This will take a 1.x event node with a custom scene, and let you convert it to the new format
|
||||
# One type is provided for example. If you wish to convert them into a new format, add it here as another Match case
|
||||
# Otherwise, it will just create it as a commment with the parameters in it for you to do in-editor
|
||||
|
||||
|
||||
static func convertCustomEvent(event):
|
||||
var returnString = ""
|
||||
|
||||
match event['event_id']:
|
||||
"comment_001":
|
||||
# Example node, a custom event to simply store comments, as there wasn't a built-in one in 1.x
|
||||
returnString += "# " + event['comment_text']
|
||||
|
||||
return returnString
|
||||
34
Sprout/addons/dialogic/Events/Converter/icon.png.import
Normal file
34
Sprout/addons/dialogic/Events/Converter/icon.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://d0vwotbceutf6"
|
||||
path="res://.godot/imported/icon.png-1a336d53bfc8ce6e2b3ee694eb2fd062.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/dialogic/Events/Converter/icon.png"
|
||||
dest_files=["res://.godot/imported/icon.png-1a336d53bfc8ce6e2b3ee694eb2fd062.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
5
Sprout/addons/dialogic/Events/Converter/index.gd
Normal file
5
Sprout/addons/dialogic/Events/Converter/index.gd
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
@tool
|
||||
extends DialogicIndexer
|
||||
|
||||
func _get_settings_pages() -> Array:
|
||||
return [this_folder.path_join('settings_converter.tscn')]
|
||||
1022
Sprout/addons/dialogic/Events/Converter/settings_converter.gd
Normal file
1022
Sprout/addons/dialogic/Events/Converter/settings_converter.gd
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,89 @@
|
|||
[gd_scene load_steps=3 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://addons/dialogic/Events/Converter/settings_converter.gd" id="1_3feab"]
|
||||
[ext_resource type="StyleBox" uid="uid://dmsjhgv22dns8" path="res://addons/dialogic/Editor/Common/TitleBgStylebox.tres" id="2_lrwmv"]
|
||||
|
||||
[node name="Dialogic 1 Converter" type="HSplitContainer"]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_3feab")
|
||||
|
||||
[node name="LeftPanel" type="VBoxContainer" parent="."]
|
||||
layout_mode = 2
|
||||
offset_right = 727.0
|
||||
offset_bottom = 648.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_stretch_ratio = 1.75
|
||||
|
||||
[node name="Label" type="Label" parent="LeftPanel"]
|
||||
layout_mode = 2
|
||||
offset_right = 727.0
|
||||
offset_bottom = 36.0
|
||||
theme_override_styles/normal = ExtResource("2_lrwmv")
|
||||
text = "Output"
|
||||
|
||||
[node name="ScrollContainer" type="ScrollContainer" parent="LeftPanel"]
|
||||
layout_mode = 2
|
||||
offset_top = 40.0
|
||||
offset_right = 727.0
|
||||
offset_bottom = 648.0
|
||||
size_flags_vertical = 3
|
||||
vertical_scroll_mode = 0
|
||||
|
||||
[node name="OutputLog" type="RichTextLabel" parent="LeftPanel/ScrollContainer"]
|
||||
unique_name_in_owner = true
|
||||
clip_contents = false
|
||||
layout_mode = 2
|
||||
offset_right = 727.0
|
||||
offset_bottom = 608.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
bbcode_enabled = true
|
||||
text = "This is a converter script to convert Dialogic 1.4+ files into Dialogic 2.0 format.
|
||||
|
||||
Please copy your res://dialogic folder from a Dialogic 1.4 project into this project before proceeding.
|
||||
|
||||
Once you are ready, the Verify Files button will do a check to make sure all of the files are present, and prepare it for conversion."
|
||||
|
||||
[node name="RightPanel" type="VBoxContainer" parent="."]
|
||||
layout_mode = 2
|
||||
offset_left = 739.0
|
||||
offset_right = 1152.0
|
||||
offset_bottom = 648.0
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="Label2" type="Label" parent="RightPanel"]
|
||||
layout_mode = 2
|
||||
offset_right = 413.0
|
||||
offset_bottom = 36.0
|
||||
theme_override_styles/normal = ExtResource("2_lrwmv")
|
||||
text = "Settings"
|
||||
|
||||
[node name="CheckBox" type="CheckBox" parent="RightPanel"]
|
||||
layout_mode = 2
|
||||
offset_top = 40.0
|
||||
offset_right = 413.0
|
||||
offset_bottom = 71.0
|
||||
text = "Add prefix to duplicate characters"
|
||||
|
||||
[node name="Verify" type="Button" parent="RightPanel"]
|
||||
layout_mode = 2
|
||||
offset_top = 75.0
|
||||
offset_right = 413.0
|
||||
offset_bottom = 106.0
|
||||
text = "Verify Files"
|
||||
|
||||
[node name="Begin" type="Button" parent="RightPanel"]
|
||||
layout_mode = 2
|
||||
offset_top = 110.0
|
||||
offset_right = 413.0
|
||||
offset_bottom = 141.0
|
||||
disabled = true
|
||||
text = "Begin Conversion"
|
||||
|
||||
[connection signal="toggled" from="RightPanel/CheckBox" to="." method="_on_check_box_toggled"]
|
||||
[connection signal="pressed" from="RightPanel/Verify" to="." method="_on_verify_pressed"]
|
||||
[connection signal="pressed" from="RightPanel/Begin" to="." method="_on_begin_pressed"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue