Skip to content

Commit f8f98ba

Browse files
committed
working script dock
0 parents  commit f8f98ba

File tree

7 files changed

+94
-0
lines changed

7 files changed

+94
-0
lines changed

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Normalize EOL for all files that Git considers text files.
2+
* text=auto eol=lf

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Godot 4+ specific ignores
2+
.godot/

addons/script-dock/plugin.cfg

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[plugin]
2+
3+
name="script-dock"
4+
description=""
5+
author=""
6+
version=""
7+
script="plugin.gd"

addons/script-dock/plugin.gd

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
@tool
2+
extends EditorPlugin
3+
4+
var control := MarginContainer.new()
5+
var panel: Control
6+
var default_parent: Control
7+
8+
func _enter_tree():
9+
default_parent = EditorInterface.get_script_editor().get_child(0).get_child(1)
10+
panel = default_parent.get_child(0)
11+
panel.reparent(control)
12+
13+
control.size_flags_horizontal = Control.SIZE_EXPAND_FILL
14+
control.size_flags_vertical = Control.SIZE_EXPAND_FILL
15+
control.name = "Scripts"
16+
add_control_to_dock(EditorPlugin.DOCK_SLOT_LEFT_BR, control)
17+
18+
func _exit_tree():
19+
panel.reparent(default_parent)
20+
default_parent.move_child(panel, 0)
21+
remove_control_from_docks(control)

icon.svg

+1
Loading

icon.svg.import

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="CompressedTexture2D"
5+
uid="uid://doh8idgy3upl8"
6+
path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://icon.svg"
14+
dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"]
15+
16+
[params]
17+
18+
compress/mode=0
19+
compress/high_quality=false
20+
compress/lossy_quality=0.7
21+
compress/hdr_compression=1
22+
compress/normal_map=0
23+
compress/channel_pack=0
24+
mipmaps/generate=false
25+
mipmaps/limit=-1
26+
roughness/mode=0
27+
roughness/src_normal=""
28+
process/fix_alpha_border=true
29+
process/premult_alpha=false
30+
process/normal_map_invert_y=false
31+
process/hdr_as_srgb=false
32+
process/hdr_clamp_exposure=false
33+
process/size_limit=0
34+
detect_3d/compress_to=1
35+
svg/scale=1.0
36+
editor/scale_with_editor_scale=false
37+
editor/convert_colors_with_editor_theme=false

project.godot

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
; Engine configuration file.
2+
; It's best edited using the editor UI and not directly,
3+
; since the parameters that go here are not all obvious.
4+
;
5+
; Format:
6+
; [section] ; section goes between []
7+
; param=value ; assign values to parameters
8+
9+
config_version=5
10+
11+
[application]
12+
13+
config/name="script-dock"
14+
config/features=PackedStringArray("4.3", "GL Compatibility")
15+
config/icon="res://icon.svg"
16+
17+
[dotnet]
18+
19+
project/assembly_name="script-dock"
20+
21+
[rendering]
22+
23+
renderer/rendering_method="gl_compatibility"
24+
renderer/rendering_method.mobile="gl_compatibility"

0 commit comments

Comments
 (0)