1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-27 22:41:56 +08:00

feat: 添加Godockly可视化Mod框架基础文件结构

添加Godockly插件核心文件,包括编辑器插件脚本、积木定义类、编辑器UI组件和样式资源
This commit is contained in:
2026-04-29 22:43:40 +08:00
parent 33192fbf8d
commit 350a6cafb8
14 changed files with 125 additions and 0 deletions
@@ -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
@@ -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
@@ -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")
+2
View File
@@ -0,0 +1,2 @@
@tool
extends EditorPlugin
+1
View File
@@ -0,0 +1 @@
uid://dpqyahk7el8gq
+9
View File
@@ -0,0 +1,9 @@
[plugin]
name="Godockly - UGC Visual Modding API"
description="A native Scratch-style visual scripting framework to power your games 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"
@@ -0,0 +1,4 @@
extends Control
class_name GodocklyBlock
@export var overrideContents: Array = []
@@ -0,0 +1 @@
uid://dji2rshw0rkm4
@@ -0,0 +1,2 @@
extends Control
class_name GodocklyEditor
@@ -0,0 +1 @@
uid://bd0aslrcr7tpf
@@ -0,0 +1,2 @@
extends RefCounted
class_name BlockDefinition
@@ -0,0 +1 @@
uid://cx6xcr2u08mrx
@@ -0,0 +1,2 @@
extends RefCounted
class_name CategoryDefinition
+4
View File
@@ -0,0 +1,4 @@
[gd_resource type="Theme" format=3 uid="uid://da6xdw3yqxy6l"]
[resource]
PanelContainer/styles/panel = null