diff --git a/addons/godockly/components/GodocklyBlock.tscn b/addons/godockly/components/GodocklyBlock.tscn new file mode 100644 index 0000000..4e9dc5e --- /dev/null +++ b/addons/godockly/components/GodocklyBlock.tscn @@ -0,0 +1,34 @@ +[gd_scene format=3 uid="uid://c71l67qe8hqsb"] + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_2bxqf"] +content_margin_left = 0.0 +content_margin_top = 0.0 +content_margin_right = 0.0 +content_margin_bottom = 0.0 +bg_color = Color(0.1, 0.1, 0.1, 0.6) +corner_radius_top_left = 3 +corner_radius_top_right = 3 +corner_radius_bottom_right = 3 +corner_radius_bottom_left = 3 +corner_detail = 5 + +[node name="GodocklyBlock" type="Control" unique_id=2090065521] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="box" type="PanelContainer" parent="." unique_id=1037155878] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_styles/panel = SubResource("StyleBoxFlat_2bxqf") + +[node name="content" type="HBoxContainer" parent="box" unique_id=1244641889] +unique_name_in_owner = true +layout_mode = 2 diff --git a/addons/godockly/components/GodocklyCategory.tscn b/addons/godockly/components/GodocklyCategory.tscn new file mode 100644 index 0000000..83bdee5 --- /dev/null +++ b/addons/godockly/components/GodocklyCategory.tscn @@ -0,0 +1,17 @@ +[gd_scene format=3 uid="uid://ea3x0pyrc4dw"] + +[node name="GodocklyCategory" type="Control" unique_id=1090402117] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="box" type="VBoxContainer" parent="." unique_id=1433870590] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 diff --git a/addons/godockly/components/GodocklyEditor.tscn b/addons/godockly/components/GodocklyEditor.tscn new file mode 100644 index 0000000..4a19c58 --- /dev/null +++ b/addons/godockly/components/GodocklyEditor.tscn @@ -0,0 +1,45 @@ +[gd_scene format=3 uid="uid://cnvkwswgc2g7x"] + +[ext_resource type="Theme" uid="uid://da6xdw3yqxy6l" path="res://addons/godockly/styles/godockly.tres" id="1_8m0fh"] + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_8m0fh"] +content_margin_left = 0.0 +content_margin_top = 0.0 +content_margin_right = 0.0 +content_margin_bottom = 0.0 +bg_color = Color(0.1, 0.1, 0.1, 0.6) +corner_radius_top_left = 3 +corner_radius_top_right = 3 +corner_radius_bottom_right = 3 +corner_radius_bottom_left = 3 +corner_detail = 5 + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_0xipn"] +content_margin_left = 10.0 +content_margin_top = 10.0 +content_margin_right = 10.0 +content_margin_bottom = 10.0 +bg_color = Color(0, 0, 0, 0.8) + +[node name="GodocklyEditor" type="Control" unique_id=320412377] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="background" type="PanelContainer" parent="." unique_id=1789288835] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme = ExtResource("1_8m0fh") +theme_override_styles/panel = SubResource("StyleBoxFlat_8m0fh") + +[node name="categories" type="PanelContainer" parent="background" unique_id=1710712250] +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxFlat_0xipn") diff --git a/addons/godockly/godocklyPlugin.gd b/addons/godockly/godocklyPlugin.gd new file mode 100644 index 0000000..5af87f6 --- /dev/null +++ b/addons/godockly/godocklyPlugin.gd @@ -0,0 +1,2 @@ +@tool +extends EditorPlugin diff --git a/addons/godockly/godocklyPlugin.gd.uid b/addons/godockly/godocklyPlugin.gd.uid new file mode 100644 index 0000000..64b5250 --- /dev/null +++ b/addons/godockly/godocklyPlugin.gd.uid @@ -0,0 +1 @@ +uid://dpqyahk7el8gq diff --git a/addons/godockly/plugin.cfg b/addons/godockly/plugin.cfg new file mode 100644 index 0000000..e9bb5fc --- /dev/null +++ b/addons/godockly/plugin.cfg @@ -0,0 +1,9 @@ +[plugin] + +name="Godockly - UGC Visual Modding API" +description="A native Scratch-style visual scripting framework to power your game’s UGC ecosystem. Empowers players to create gameplay mods via intuitive drag-and-drop blocks, replacing unstable IL injections with a secure, instantly reloadable sandbox. + +基于Godot原生UI的积木式可视化Mod框架,专为构建游戏UGC生态设计。让无代码基础的玩家通过拖拽积木创建玩法Mod,以安全的沙盒环境替代不稳定的IL注入,实现毫秒级热重载。" +author="FallingShrimp" +version="1.0.0" +script="godocklyPlugin.gd" diff --git a/addons/godockly/scripts/Statemachine/GodocklyBlock.gd b/addons/godockly/scripts/Statemachine/GodocklyBlock.gd new file mode 100644 index 0000000..2a6c8ff --- /dev/null +++ b/addons/godockly/scripts/Statemachine/GodocklyBlock.gd @@ -0,0 +1,4 @@ +extends Control +class_name GodocklyBlock + +@export var overrideContents: Array = [] diff --git a/addons/godockly/scripts/Statemachine/GodocklyBlock.gd.uid b/addons/godockly/scripts/Statemachine/GodocklyBlock.gd.uid new file mode 100644 index 0000000..316139f --- /dev/null +++ b/addons/godockly/scripts/Statemachine/GodocklyBlock.gd.uid @@ -0,0 +1 @@ +uid://dji2rshw0rkm4 diff --git a/addons/godockly/scripts/Statemachine/GodocklyEditor.gd b/addons/godockly/scripts/Statemachine/GodocklyEditor.gd new file mode 100644 index 0000000..a7a9381 --- /dev/null +++ b/addons/godockly/scripts/Statemachine/GodocklyEditor.gd @@ -0,0 +1,2 @@ +extends Control +class_name GodocklyEditor diff --git a/addons/godockly/scripts/Statemachine/GodocklyEditor.gd.uid b/addons/godockly/scripts/Statemachine/GodocklyEditor.gd.uid new file mode 100644 index 0000000..d1081f4 --- /dev/null +++ b/addons/godockly/scripts/Statemachine/GodocklyEditor.gd.uid @@ -0,0 +1 @@ +uid://bd0aslrcr7tpf diff --git a/addons/godockly/scripts/Structs/BlockDefinition.gd b/addons/godockly/scripts/Structs/BlockDefinition.gd new file mode 100644 index 0000000..ab8946a --- /dev/null +++ b/addons/godockly/scripts/Structs/BlockDefinition.gd @@ -0,0 +1,2 @@ +extends RefCounted +class_name BlockDefinition \ No newline at end of file diff --git a/addons/godockly/scripts/Structs/BlockDefinition.gd.uid b/addons/godockly/scripts/Structs/BlockDefinition.gd.uid new file mode 100644 index 0000000..f18404a --- /dev/null +++ b/addons/godockly/scripts/Structs/BlockDefinition.gd.uid @@ -0,0 +1 @@ +uid://cx6xcr2u08mrx diff --git a/addons/godockly/scripts/Structs/CategoryDefinition.gd b/addons/godockly/scripts/Structs/CategoryDefinition.gd new file mode 100644 index 0000000..41a5b05 --- /dev/null +++ b/addons/godockly/scripts/Structs/CategoryDefinition.gd @@ -0,0 +1,2 @@ +extends RefCounted +class_name CategoryDefinition \ No newline at end of file diff --git a/addons/godockly/styles/godockly.tres b/addons/godockly/styles/godockly.tres new file mode 100644 index 0000000..da9af7f --- /dev/null +++ b/addons/godockly/styles/godockly.tres @@ -0,0 +1,4 @@ +[gd_resource type="Theme" format=3 uid="uid://da6xdw3yqxy6l"] + +[resource] +PanelContainer/styles/panel = null