diff --git a/demo/Resources/Data/Character/Player Defaults/player_health.tres b/demo/Resources/Data/Character/Player Defaults/player_health.tres
new file mode 100644
index 0000000..b8a1d65
--- /dev/null
+++ b/demo/Resources/Data/Character/Player Defaults/player_health.tres
@@ -0,0 +1,9 @@
+[gd_resource type="Resource" script_class="HealthResource" load_steps=2 format=3 uid="uid://bmm74325qvi5l"]
+
+[ext_resource type="Script" uid="uid://yoaga45bppw8" path="res://Scripts/Resources/health_data_resource.gd" id="1_aml5a"]
+
+[resource]
+script = ExtResource("1_aml5a")
+max_hp = 100
+regen_per_second = 0.0
+metadata/_custom_type_script = "uid://yoaga45bppw8"
diff --git a/demo/Scenes/Characters/Player.tscn b/demo/Scenes/Characters/Player.tscn
new file mode 100644
index 0000000..51c547f
--- /dev/null
+++ b/demo/Scenes/Characters/Player.tscn
@@ -0,0 +1,38 @@
+[gd_scene load_steps=7 format=3 uid="uid://djvqisfxi1l0b"]
+
+[ext_resource type="Script" uid="uid://dpd2la1tonipl" path="res://Scripts/Characters/player.gd" id="1_gjot8"]
+[ext_resource type="Script" uid="uid://gihel4imt7xk" path="res://Scripts/Components/health_component.gd" id="2_0el0d"]
+[ext_resource type="Resource" uid="uid://bmm74325qvi5l" path="res://Resources/Data/Character/Player Defaults/player_health.tres" id="3_o5en2"]
+
+[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_gjot8"]
+
+[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_gjot8"]
+albedo_color = Color(1, 0, 1, 1)
+
+[sub_resource type="CapsuleMesh" id="CapsuleMesh_gjot8"]
+material = SubResource("StandardMaterial3D_gjot8")
+
+[node name="Player" type="CharacterBody3D"]
+script = ExtResource("1_gjot8")
+
+[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
+shape = SubResource("CapsuleShape3D_gjot8")
+
+[node name="Pivot" type="Node3D" parent="."]
+
+[node name="MeshInstance3D" type="MeshInstance3D" parent="Pivot"]
+mesh = SubResource("CapsuleMesh_gjot8")
+skeleton = NodePath("../..")
+
+[node name="SpringArm3D" type="SpringArm3D" parent="Pivot"]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
+spring_length = 0.0
+
+[node name="Camera3D" type="Camera3D" parent="Pivot/SpringArm3D"]
+
+[node name="SteamAudioListener" type="SteamAudioListener" parent="Pivot/SpringArm3D/Camera3D"]
+
+[node name="HealthComponenent" type="Node" parent="."]
+script = ExtResource("2_0el0d")
+data = ExtResource("3_o5en2")
+metadata/_custom_type_script = "uid://gihel4imt7xk"
diff --git a/demo/Scenes/game.tscn b/demo/Scenes/game.tscn
new file mode 100644
index 0000000..841c23a
--- /dev/null
+++ b/demo/Scenes/game.tscn
@@ -0,0 +1,52 @@
+[gd_scene load_steps=6 format=3 uid="uid://dtccwj1qujhxp"]
+
+[ext_resource type="PackedScene" uid="uid://djvqisfxi1l0b" path="res://Scenes/Characters/Player.tscn" id="1_ebmjs"]
+[ext_resource type="Texture2D" uid="uid://bj23bn0s4mt0d" path="res://icon.svg" id="1_qxrlw"]
+
+[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_wrm1d"]
+albedo_texture = ExtResource("1_qxrlw")
+
+[sub_resource type="PlaneMesh" id="PlaneMesh_2poj3"]
+material = SubResource("StandardMaterial3D_wrm1d")
+size = Vector2(200, 200)
+subdivide_width = 2
+subdivide_depth = 2
+
+[sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_ebmjs"]
+
+[node name="Game" type="Node3D"]
+
+[node name="Floor" type="Node3D" parent="."]
+
+[node name="MeshInstance3D" type="MeshInstance3D" parent="Floor"]
+mesh = SubResource("PlaneMesh_2poj3")
+skeleton = NodePath("../..")
+
+[node name="StaticBody3D" type="StaticBody3D" parent="Floor/MeshInstance3D"]
+
+[node name="CollisionShape3D" type="CollisionShape3D" parent="Floor/MeshInstance3D/StaticBody3D"]
+shape = SubResource("WorldBoundaryShape3D_ebmjs")
+
+[node name="SteamAudioStaticMesh" type="SteamAudioStaticMesh" parent="Floor/MeshInstance3D"]
+
+[node name="MeshInstance3D2" type="MeshInstance3D" parent="Floor"]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 199.503, 0, 0)
+mesh = SubResource("PlaneMesh_2poj3")
+skeleton = NodePath("../..")
+
+[node name="StaticBody3D" type="StaticBody3D" parent="Floor/MeshInstance3D2"]
+
+[node name="CollisionShape3D" type="CollisionShape3D" parent="Floor/MeshInstance3D2/StaticBody3D"]
+shape = SubResource("WorldBoundaryShape3D_ebmjs")
+
+[node name="SteamAudioStaticMesh" type="SteamAudioStaticMesh" parent="Floor/MeshInstance3D2"]
+
+[node name="Player" parent="." instance=ExtResource("1_ebmjs")]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.039711, 1, -0.146652)
+
+[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
+transform = Transform3D(1, 0, 0, 0, 0.703544, 0.710652, 0, -0.710652, 0.703544, 0, 7.28685, 0)
+
+[node name="SteamAudioManager" type="SteamAudioManager" parent="."]
+
+[node name="SteamAudioSource" type="SteamAudioSource" parent="."]
diff --git a/demo/Scripts/Characters/player.gd b/demo/Scripts/Characters/player.gd
new file mode 100644
index 0000000..f9e4bd4
--- /dev/null
+++ b/demo/Scripts/Characters/player.gd
@@ -0,0 +1,52 @@
+extends CharacterBody3D
+class_name PlayerController
+
+@onready var springarm:SpringArm3D = $Pivot/SpringArm3D
+
+@export_category("Movement")
+@export var speed:float = 14.0
+@export var fall_acceleration:float = 75.0
+@export var jump_speed:float = 10
+
+@export_category("Camera")
+@export var max_look_up:float = 80.0
+@export var max_look_down:float = -80.0
+@export var mouse_sensitivity:float= 0.15
+@export var joystick_sensitivity:float = 100.00
+var target_velocity:Vector3 = Vector3.ZERO
+
+func _ready() -> void:
+ Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
+
+func _physics_process(delta: float) -> void:
+ var direction_2d = Input.get_vector(&"move_left",&"move_right",&"move_back",&"move_forward")
+ var direction_3d = (transform.basis.x * direction_2d.x + -transform.basis.z * direction_2d.y).normalized()
+
+ velocity.x = direction_3d.x*speed
+ velocity.z = direction_3d.z*speed
+ if not is_on_floor():
+ velocity.y -= fall_acceleration * delta
+
+ move_and_slide()
+func _process(delta: float) -> void:
+ var horiz = Input.get_axis(&"look_right",&"look_left")
+ var vert = Input.get_axis(&"look_down",&"look_up")
+ var camera_direction = Input.get_vector(&"look_right",&"look_left",&"look_down",&"look_up")
+ if camera_direction != Vector2.ZERO:
+ _apply_look(Vector2(horiz, vert)*(joystick_sensitivity*delta))
+
+func _input(event: InputEvent) -> void:
+ # mouse look (unchanged)
+ if event is InputEventMouseMotion and Input.get_mouse_mode() == Input.MOUSE_MODE_CAPTURED:
+ _apply_look(Vector2(-event.relative.x, -event.relative.y) * mouse_sensitivity)
+ if event.is_action_pressed(&"jump") and is_on_floor():
+ _jump()
+
+func _apply_look(delta: Vector2) -> void:
+ rotate_y(deg_to_rad(delta.x))
+
+ var new_pitch = springarm.rotation_degrees.x + delta.y
+ springarm.rotation_degrees.x = clamp(new_pitch,max_look_down,max_look_up)
+
+func _jump() -> void:
+ velocity.y = jump_speed
diff --git a/demo/Scripts/Characters/player.gd.uid b/demo/Scripts/Characters/player.gd.uid
new file mode 100644
index 0000000..12624ac
--- /dev/null
+++ b/demo/Scripts/Characters/player.gd.uid
@@ -0,0 +1 @@
+uid://dpd2la1tonipl
diff --git a/demo/Scripts/Components/health_component.gd b/demo/Scripts/Components/health_component.gd
new file mode 100644
index 0000000..0da6da5
--- /dev/null
+++ b/demo/Scripts/Components/health_component.gd
@@ -0,0 +1,21 @@
+extends Node
+
+class_name HealthComponenent
+
+signal hp_changed(current_hp)
+signal died()
+
+@export var data: HealthResource
+
+var current_hp: float
+
+func _ready() -> void:
+ current_hp = data.max_hp
+func _take_damage(amount:float )->void:
+ current_hp = max(current_hp-amount,0)
+ emit_signal(&"hp_changed", current_hp)
+ if current_hp == 0:
+ emit_signal(&"died")
+func _heal(amount:float)->void:
+ current_hp= min(current_hp+amount, data.max_hp)
+ emit_signal(&"hp_changed",current_hp)
diff --git a/demo/Scripts/Components/health_component.gd.uid b/demo/Scripts/Components/health_component.gd.uid
new file mode 100644
index 0000000..925d8db
--- /dev/null
+++ b/demo/Scripts/Components/health_component.gd.uid
@@ -0,0 +1 @@
+uid://gihel4imt7xk
diff --git a/demo/Scripts/Resources/health_data_resource.gd b/demo/Scripts/Resources/health_data_resource.gd
new file mode 100644
index 0000000..c33018c
--- /dev/null
+++ b/demo/Scripts/Resources/health_data_resource.gd
@@ -0,0 +1,6 @@
+extends Resource
+
+class_name HealthResource
+
+@export var max_hp:int = 100
+@export var regen_per_second:float = 0.0
diff --git a/demo/Scripts/Resources/health_data_resource.gd.uid b/demo/Scripts/Resources/health_data_resource.gd.uid
new file mode 100644
index 0000000..8ad4c87
--- /dev/null
+++ b/demo/Scripts/Resources/health_data_resource.gd.uid
@@ -0,0 +1 @@
+uid://yoaga45bppw8
diff --git a/demo/addons/SteamAudioGodot/lib/Windows-AMD64/~libSteamAudioGodot-d.dll~RF5d52702.TMP b/demo/addons/SteamAudioGodot/lib/Windows-AMD64/~libSteamAudioGodot-d.dll~RF5d52702.TMP
new file mode 100644
index 0000000..ed5d363
Binary files /dev/null and b/demo/addons/SteamAudioGodot/lib/Windows-AMD64/~libSteamAudioGodot-d.dll~RF5d52702.TMP differ
diff --git a/demo/addons/csharp_gdextension_bindgen/UNLICENSE b/demo/addons/csharp_gdextension_bindgen/UNLICENSE
new file mode 100644
index 0000000..68a49da
--- /dev/null
+++ b/demo/addons/csharp_gdextension_bindgen/UNLICENSE
@@ -0,0 +1,24 @@
+This is free and unencumbered software released into the public domain.
+
+Anyone is free to copy, modify, publish, use, compile, sell, or
+distribute this software, either in source code form or as a compiled
+binary, for any purpose, commercial or non-commercial, and by any
+means.
+
+In jurisdictions that recognize copyright laws, the author or authors
+of this software dedicate any and all copyright interest in the
+software to the public domain. We make this dedication for the benefit
+of the public at large and to the detriment of our heirs and
+successors. We intend this dedication to be an overt act of
+relinquishment in perpetuity of all present and future rights to this
+software under copyright law.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+For more information, please refer to
diff --git a/demo/addons/csharp_gdextension_bindgen/cli_entrypoint.gd b/demo/addons/csharp_gdextension_bindgen/cli_entrypoint.gd
new file mode 100644
index 0000000..5f3f0ce
--- /dev/null
+++ b/demo/addons/csharp_gdextension_bindgen/cli_entrypoint.gd
@@ -0,0 +1,9 @@
+extends SceneTree
+
+
+const CSharpGDExtensionBindgen = preload("csharp_gdextension_bindgen.gd")
+
+
+func _initialize():
+ CSharpGDExtensionBindgen.generate_gdextension_csharp_scripts.callv(OS.get_cmdline_user_args())
+ quit()
diff --git a/demo/addons/csharp_gdextension_bindgen/cli_entrypoint.gd.uid b/demo/addons/csharp_gdextension_bindgen/cli_entrypoint.gd.uid
new file mode 100644
index 0000000..3deb7ff
--- /dev/null
+++ b/demo/addons/csharp_gdextension_bindgen/cli_entrypoint.gd.uid
@@ -0,0 +1 @@
+uid://najinjv0m445
diff --git a/demo/addons/csharp_gdextension_bindgen/csharp_gdextension_bindgen.gd b/demo/addons/csharp_gdextension_bindgen/csharp_gdextension_bindgen.gd
new file mode 100644
index 0000000..5db41a1
--- /dev/null
+++ b/demo/addons/csharp_gdextension_bindgen/csharp_gdextension_bindgen.gd
@@ -0,0 +1,849 @@
+## GDExtension to C# binding generator
+##
+## The C# classes generated are not attached scripts, but rather wrappers that
+## forward execution to a GodotObject using dynamic calls.
+##
+## Use the "Project -> Tools -> Generate C# GDExtension Bindings" menu item to
+## generate C# bindings from GDExtension.
+@tool
+extends EditorPlugin
+
+
+const MENU_ITEM_NAME = "Generate C# GDExtension Bindings"
+const GENERATED_NAMESPACE = "GDExtensionBindgen"
+const GENERATED_SCRIPTS_FOLDER = "res://GDExtensionBindgen"
+
+enum StringNameType {
+ PROPERTY_NAME,
+ METHOD_NAME,
+ SIGNAL_NAME,
+}
+const StringNameTypeName = {
+ StringNameType.PROPERTY_NAME: "PropertyName",
+ StringNameType.METHOD_NAME: "MethodName",
+ StringNameType.SIGNAL_NAME: "SignalName",
+}
+const PASCAL_CASE_NAME_OVERRIDES = {
+ "BitMap": "Bitmap",
+ "JSONRPC": "JsonRpc",
+ "Object": "GodotObject",
+ "OpenXRIPBinding": "OpenXRIPBinding",
+ "SkeletonModification2DCCDIK": "SkeletonModification2DCcdik",
+ "SkeletonModification2DFABRIK": "SkeletonModification2DFabrik",
+ "SkeletonModification3DCCDIK": "SkeletonModification3DCcdik",
+ "SkeletonModification3DFABRIK": "SkeletonModification3DFabrik",
+ "System": "System_",
+ "Thread": "GodotThread",
+}
+const PASCAL_CASE_PART_OVERRIDES = {
+ "AA": "AA", # Anti Aliasing
+ "AO": "AO", # Ambient Occlusion
+ "FILENAME": "FileName",
+ "FADEIN": "FadeIn",
+ "FADEOUT": "FadeOut",
+ "FX": "FX",
+ "GI": "GI", # Global Illumination
+ "GZIP": "GZip",
+ "HBOX": "HBox", # Horizontal Box
+ "ID": "Id",
+ "IO": "IO", # Input/Output
+ "IP": "IP", # Internet Protocol
+ "IV": "IV", # Initialization Vector
+ "MACOS": "MacOS",
+ "NODEPATH": "NodePath",
+ "SPIRV": "SpirV",
+ "STDIN": "StdIn",
+ "STDOUT": "StdOut",
+ "USERNAME": "UserName",
+ "UV": "UV",
+ "UV2": "UV2",
+ "VBOX": "VBox", # Vertical Box
+ "WHITESPACE": "WhiteSpace",
+ "WM": "WM",
+ "XR": "XR",
+ "XRAPI": "XRApi",
+}
+
+
+func _enter_tree():
+ add_tool_menu_item(MENU_ITEM_NAME, generate_gdextension_csharp_scripts)
+
+
+func _exit_tree():
+ remove_tool_menu_item(MENU_ITEM_NAME)
+
+
+static func generate_csharp_script(
+ cls_name: StringName,
+ output_dir := GENERATED_SCRIPTS_FOLDER,
+ name_space := GENERATED_NAMESPACE,
+):
+ var class_is_editor_only = _is_editor_extension_class(cls_name)
+ var parent_class = ClassDB.get_parent_class(cls_name)
+ var parent_class_is_extension = _is_extension_class(parent_class)
+ var no_inheritance = parent_class_is_extension
+ var engine_class = _first_non_extension_parent(cls_name)
+
+ var regions = PackedStringArray()
+
+ # Engine object used for calling engine methods
+ if not parent_class_is_extension:
+ regions.append("// Engine object used for calling engine methods\nprotected %s _object;" % parent_class)
+
+ # Constructors
+ var ctor_fmt
+ if parent_class_is_extension:
+ ctor_fmt = """
+ public {cls_name}() : base(NativeName)
+ {
+ }
+ protected {cls_name}(StringName @class) : base(@class)
+ {
+ }
+ protected {cls_name}(Variant variant) : base(variant)
+ {
+ }
+ protected {cls_name}([NotNull] {engine_class} @object) : base(@object)
+ {
+ }
+ """
+ else:
+ ctor_fmt = """
+ public {cls_name}() : this(NativeName)
+ {
+ }
+ protected {cls_name}(StringName @class) : this(ClassDB.Instantiate(@class))
+ {
+ }
+ protected {cls_name}(Variant variant) : this(({engine_class}) variant)
+ {
+ }
+ protected {cls_name}([NotNull] {engine_class} @object)
+ {
+ _object = @object;
+ }
+ """
+ var ctor = ctor_fmt.dedent().format({
+ cls_name = cls_name,
+ engine_class = engine_class,
+ }).strip_edges()
+ regions.append(ctor)
+
+ var casts = """
+ public static implicit operator {engine_class}({cls_name} self) => self?._object;
+ public static implicit operator Variant({cls_name} self) => self?._object;
+ public static explicit operator {cls_name}(Variant variant) => variant.AsGodotObject() != null ? new(variant) : null;
+ """.dedent().format({
+ cls_name = cls_name,
+ engine_class = engine_class,
+ }).strip_edges()
+ regions.append(casts)
+
+ # ENUMS
+ var enums = PackedStringArray()
+ for enum_name in ClassDB.class_get_enum_list(cls_name, true):
+ enums.append(_generate_enum(cls_name, enum_name))
+
+ # INTEGER CONSTANTS
+ var integer_constants = PackedStringArray()
+ for constant_name in ClassDB.class_get_integer_constant_list(cls_name, true):
+ if not ClassDB.class_get_integer_constant_enum(cls_name, constant_name, true).is_empty():
+ continue
+ integer_constants.append(_generate_integer_constant(cls_name, constant_name))
+
+ # PROPERTIES
+ var properties = PackedStringArray()
+ var property_names = PackedStringArray()
+ for property in ClassDB.class_get_property_list(cls_name, true):
+ if property["usage"] & (PROPERTY_USAGE_GROUP | PROPERTY_USAGE_SUBGROUP):
+ continue
+ property_names.append(property["name"])
+ properties.append(_generate_property(cls_name, property))
+
+ var inherited_properties = PackedStringArray()
+ if not parent_class_is_extension:
+ for inherited_class in _get_parent_classes(cls_name):
+ for property in ClassDB.class_get_property_list(inherited_class, true):
+ if property["usage"] & (PROPERTY_USAGE_GROUP | PROPERTY_USAGE_SUBGROUP):
+ continue
+ inherited_properties.append(_generate_property(inherited_class, property))
+
+ # METHODS
+ var methods = PackedStringArray()
+ var method_names = PackedStringArray()
+ for method in ClassDB.class_get_method_list(cls_name, true):
+ if method["flags"] & (METHOD_FLAG_VIRTUAL | METHOD_FLAG_VIRTUAL_REQUIRED):
+ continue
+ if method["name"].begins_with("_"):
+ continue
+ method_names.append(method["name"])
+ methods.append(_generate_method(cls_name, method))
+
+ var inherited_methods = PackedStringArray()
+ if not parent_class_is_extension:
+ for inherited_class in _get_parent_classes(cls_name):
+ for method in ClassDB.class_get_method_list(inherited_class, true):
+ if method["flags"] & (METHOD_FLAG_VIRTUAL | METHOD_FLAG_VIRTUAL_REQUIRED):
+ continue
+ if method["name"].begins_with("_"):
+ continue
+ inherited_methods.append(_generate_method(inherited_class, method))
+
+ # SIGNALS
+ var signals = PackedStringArray()
+ var signal_names = PackedStringArray()
+ for sig in ClassDB.class_get_signal_list(cls_name, true):
+ signal_names.append(sig["name"])
+ signals.append(_generate_signal(cls_name, sig))
+
+ var inherited_signals = PackedStringArray()
+ if not parent_class_is_extension:
+ for inherited_class in _get_parent_classes(cls_name):
+ for method in ClassDB.class_get_signal_list(inherited_class, true):
+ inherited_signals.append(_generate_signal(inherited_class, method))
+
+ # StringName caches
+ regions.append(_generate_strings_class(cls_name, StringNameType.PROPERTY_NAME, property_names))
+ regions.append(_generate_strings_class(cls_name, StringNameType.METHOD_NAME, method_names))
+ regions.append(_generate_strings_class(cls_name, StringNameType.SIGNAL_NAME, signal_names))
+ regions.append("private static readonly StringName NativeName = \"{cls_name}\";".format({
+ cls_name = cls_name,
+ }))
+
+ if not enums.is_empty():
+ regions.append("#region Enums")
+ regions.append("\n\n".join(enums))
+ regions.append("#endregion")
+ if not integer_constants.is_empty():
+ regions.append("#region Integer Constants")
+ regions.append("\n\n".join(integer_constants))
+ regions.append("#endregion")
+ if not properties.is_empty():
+ regions.append("#region Properties")
+ regions.append("\n\n".join(properties))
+ regions.append("#endregion")
+ if not inherited_properties.is_empty():
+ regions.append("#region Inherited Properties")
+ regions.append("\n\n".join(inherited_properties))
+ regions.append("#endregion")
+ if not methods.is_empty():
+ regions.append("#region Methods")
+ regions.append("\n\n".join(methods))
+ regions.append("#endregion")
+ if not inherited_methods.is_empty():
+ regions.append("#region Inherited Methods")
+ regions.append("\n\n".join(inherited_methods))
+ regions.append("#endregion")
+ if not signals.is_empty():
+ regions.append("#region Signals")
+ regions.append("\n\n".join(signals))
+ regions.append("#endregion")
+ if not inherited_signals.is_empty():
+ regions.append("#region Inherited Signals")
+ regions.append("\n\n".join(inherited_signals))
+ regions.append("#endregion")
+
+ var code = """
+ // This code was automatically generated by GDExtension C# Bindgen
+ using System;
+ using System.Diagnostics.CodeAnalysis;
+ using Godot;
+
+ namespace {name_space};
+
+ public class {cls_name}{inheritance}
+ {
+ {regions}
+ }
+ """.dedent().format({
+ name_space = name_space,
+ cls_name = cls_name,
+ inheritance = " : " + parent_class if parent_class_is_extension else "",
+ regions = "\n\n".join(regions).indent("\t"),
+ }).strip_edges()
+
+ if class_is_editor_only:
+ code = """
+ #if TOOLS
+ {code}
+ #endif
+ """.dedent().format({
+ code = code,
+ }).strip_edges()
+
+ code += "\n"
+
+ if not DirAccess.dir_exists_absolute(output_dir):
+ DirAccess.make_dir_recursive_absolute(output_dir)
+
+ var new_script = FileAccess.open(output_dir.path_join(cls_name + ".cs"), FileAccess.WRITE)
+ new_script.store_string(code)
+
+
+static func generate_gdextension_csharp_scripts(
+ output_dir := GENERATED_SCRIPTS_FOLDER,
+ name_space := GENERATED_NAMESPACE,
+):
+ var classes = ClassDB.get_class_list()
+ for cls_name in classes:
+ if _is_extension_class(cls_name):
+ generate_csharp_script(cls_name, output_dir, name_space)
+
+
+static func _generate_enum(cls_name: StringName, enum_name: StringName) -> String:
+ var common_prefix = null
+ for constant_name in ClassDB.class_get_enum_constants(cls_name, enum_name, true):
+ if common_prefix == null:
+ common_prefix = constant_name
+ else:
+ common_prefix = _get_common_prefix(common_prefix, constant_name)
+ # Handle special case where one of the constants is present in all constant
+ # names: remove last word from prefix.
+ # Example case: Node.ProcessThreadMessages and FLAG_PROCESS_THREAD_MESSAGES
+ if common_prefix in ClassDB.class_get_enum_constants(cls_name, enum_name, true):
+ common_prefix = common_prefix.rsplit("_", false, 1)[0]
+
+ var constants = PackedStringArray()
+ for constant_name in ClassDB.class_get_enum_constants(cls_name, enum_name, true):
+ constants.append("{csharp_constant_name} = {constant_value}L,".format({
+ csharp_constant_name = constant_name.substr(common_prefix.length()).to_pascal_case(),
+ constant_value = ClassDB.class_get_integer_constant(cls_name, constant_name),
+ }))
+
+ return """
+ {flags}
+ public enum {enum_name}{maybe_enum_suffix} : long
+ {
+ {constants}
+ }
+ """.dedent().format({
+ flags = "[Flags]" if ClassDB.is_class_enum_bitfield(cls_name, enum_name) else "",
+ enum_name = enum_name,
+ constants = "\n".join(constants).indent("\t"),
+ maybe_enum_suffix = "Enum" if _needs_enum_suffix(cls_name, enum_name) else "",
+ }).strip_edges()
+
+
+static func _generate_integer_constant(cls_name: StringName, constant_name: StringName) -> String:
+ return "public const long {csharp_constant_name} = {constant_value}L;".format({
+ csharp_constant_name = constant_name.to_pascal_case(),
+ constant_value = ClassDB.class_get_integer_constant(cls_name, constant_name),
+ })
+
+
+static func _generate_property(cls_name: StringName, property: Dictionary) -> String:
+ var property_name = property["name"]
+ var csharp_property_name = property_name.to_pascal_case()
+ var property_type = _get_property_type(cls_name, property)
+
+ var getset = PackedStringArray()
+
+ var getter = ClassDB.class_get_property_getter(cls_name, property_name)
+ if getter:
+ if _is_extension_class(cls_name):
+ getset.append("get => {get_cast}_object.Get(PropertyName.{csharp_property_name});".format({
+ get_cast = _property_get_cast(cls_name, property),
+ csharp_property_name = csharp_property_name,
+ }))
+ else:
+ getset.append("get => _object.{csharp_property_name};".format({
+ csharp_property_name = csharp_property_name,
+ }))
+
+ var setter = ClassDB.class_get_property_setter(cls_name, property_name)
+ if setter:
+ if _is_extension_class(cls_name):
+ getset.append("set => _object.Set(PropertyName.{csharp_property_name}, {set_cast}value);".format({
+ set_cast = _property_set_cast(property),
+ csharp_property_name = csharp_property_name,
+ }))
+ else:
+ getset.append("set => _object.{csharp_property_name} = value;".format({
+ csharp_property_name = csharp_property_name,
+ }))
+
+ return """
+ public {property_type} {csharp_property_name}
+ {
+ {getset}
+ }
+ """.dedent().format({
+ property_type = property_type,
+ csharp_property_name = csharp_property_name,
+ getset = "\n".join(getset).indent("\t"),
+ }).strip_edges()
+
+
+static func _generate_method(cls_name: StringName, method: Dictionary) -> String:
+ var method_name = method["name"]
+ var csharp_method_name = method_name.to_pascal_case()
+ var return_type = _get_method_return_type(cls_name, method_name, method["return"])
+ var is_static = method["flags"] & METHOD_FLAG_STATIC
+
+ var arg_types = PackedStringArray()
+ var arg_names = PackedStringArray()
+
+ var args = PackedStringArray()
+ for argument in method["args"]:
+ var arg_type = _get_property_type(cls_name, argument)
+ var arg_name = "@" + argument["name"]
+ # hardcode type that cannot be known from reflection in GDScript
+ if method["name"] == "connect" and arg_name == "@flags":
+ arg_type = "uint"
+ args.append("{arg_type} {arg_name}".format({
+ arg_type = arg_type,
+ arg_name = arg_name,
+ }))
+ arg_types.append(arg_type)
+ if _property_is_enum(argument):
+ arg_names.append("(int)" + arg_name)
+ else:
+ arg_names.append(arg_name)
+
+ var implementation = PackedStringArray()
+ var default_args = method["default_args"]
+ var i = args.size() - default_args.size()
+ for default_value in default_args:
+ if default_value == null:
+ default_value = "default"
+ # handle enums
+ elif default_value is int and arg_types[i] != "int":
+ default_value = ("(%s)" % arg_types[i]) + str(default_value)
+ # C# requires the "f" suffix for float literals
+ elif default_value is float and arg_types[i] == "float":
+ default_value = "%sf" % default_value
+ # NOTE: don't move this branch below the String one, since most of the
+ # time when arg_types[i] == StringName, default_value is String
+ elif default_value is StringName or arg_types[i] == "Godot.StringName":
+ implementation.append('%s ??= "%s";' % [arg_names[i], default_value])
+ default_value = "null"
+ elif default_value is String:
+ default_value = '"%s"' % default_value
+ elif default_value is Array:
+ assert(default_value.is_empty(), "Populated Array not supported yet! " + str(default_value)) # TODO: support populated array as default value
+ implementation.append("%s ??= new();" % arg_names[i])
+ default_value = "null"
+ elif default_value is Dictionary:
+ assert(default_value.is_empty(), "Populated Dictionary not supported yet! " + str(default_value)) # TODO: support populated dictionary as default value
+ implementation.append("%s ??= new();" % arg_names[i])
+ default_value = "null"
+ elif (
+ default_value is Vector2 or default_value is Vector3 or default_value is Vector4
+ or default_value is Color
+ ):
+ args[i] = args[i].replace(arg_types[i], arg_types[i] + "?")
+ var impl = "%s ??= new%s;" % [arg_names[i], default_value]
+ if not OS.has_feature("double"):
+ impl = impl.replace(",", "f,").replace(")", "f)")
+ implementation.append(impl)
+ default_value = "null"
+ elif (
+ default_value is PackedByteArray
+ or default_value is PackedInt32Array or default_value is PackedInt64Array
+ or default_value is PackedFloat32Array or default_value is PackedFloat64Array
+ or default_value is PackedVector2Array or default_value is PackedVector3Array or default_value is PackedVector4Array
+ or default_value is PackedColorArray
+ ):
+ assert(default_value.is_empty(), "Populated Packed Array not supported yet! " + str(default_value))
+ implementation.append("%s ??= System.Array.Empty<%s>();" % [arg_names[i], arg_types[i].replace("[]", "")])
+ default_value = "null"
+ elif default_value is Transform2D:
+ assert(default_value == Transform2D.IDENTITY, "Only identity Transform2D is supported as default value")
+ args[i] = args[i].replace(arg_types[i], arg_types[i] + "?")
+ implementation.append("%s ??= Godot.Transform2D.Identity;" % arg_names[i])
+ default_value = "null"
+ elif default_value is Transform3D:
+ assert(default_value == Transform3D.IDENTITY, "Only identity Transform3D is supported as default value")
+ args[i] = args[i].replace(arg_types[i], arg_types[i] + "?")
+ implementation.append("%s ??= Godot.Transform3D.Identity;" % arg_names[i])
+ default_value = "null"
+ args[i] += " = " + str(default_value)
+ i += 1
+
+ if method["flags"] & METHOD_FLAG_VARARG:
+ args.append("params Variant[] varargs")
+ arg_names.append("varargs")
+
+ if _is_extension_class(cls_name):
+ arg_names.insert(0, "MethodName.{csharp_method_name}".format({
+ csharp_method_name = csharp_method_name,
+ }))
+ if is_static:
+ implementation.append("{maybe_return}ClassDB.ClassCallStatic(NativeName, {arg_names});".format({
+ arg_names = ", ".join(arg_names),
+ maybe_return = "return " + _property_get_cast(cls_name, method["return"]) if return_type != "void" else "",
+ }))
+ else:
+ implementation.append("{maybe_return}_object.Call({arg_names});".format({
+ arg_names = ", ".join(arg_names),
+ maybe_return = "return " + _property_get_cast(cls_name, method["return"]) if return_type != "void" else "",
+ }))
+ else:
+ if is_static:
+ implementation.append("{maybe_return}{engine_class}.{csharp_method_name}({arg_names});".format({
+ arg_names = ", ".join(arg_names),
+ engine_class = _first_non_extension_parent(cls_name),
+ csharp_method_name = csharp_method_name,
+ maybe_return = "return " if return_type != "void" else "",
+ }))
+ else:
+ implementation.append("{maybe_return}_object.{csharp_method_name}({arg_names});".format({
+ arg_names = ", ".join(arg_names),
+ csharp_method_name = csharp_method_name,
+ maybe_return = "return " if return_type != "void" else "",
+ }))
+
+ return """
+ public {maybe_static}{maybe_override}{return_type} {csharp_method_name}({args})
+ {
+ {implementation}
+ }
+ """.dedent().format({
+ args = ", ".join(args),
+ csharp_method_name = csharp_method_name,
+ implementation = "\n".join(implementation).indent("\t"),
+ maybe_override = "override " if csharp_method_name == "ToString" else "",
+ maybe_static = "static " if is_static else "",
+ return_type = return_type,
+ }).strip_edges()
+
+
+static func _generate_signal(cls_name: StringName, sig: Dictionary):
+ var signal_name = sig["name"]
+ var csharp_signal_name = signal_name.to_pascal_case()
+ var return_type = _get_method_return_type(cls_name, signal_name, sig["return"])
+
+ var arg_types = PackedStringArray()
+ for argument in sig["args"]:
+ var arg_type = _get_property_type(cls_name, argument)
+ arg_types.append(arg_type)
+
+ var delegate_type
+ if return_type == "void":
+ if not arg_types.is_empty():
+ delegate_type = "Action<{arg_types}>".format({
+ arg_types = ", ".join(arg_types)
+ })
+ else:
+ delegate_type = "Action"
+ else:
+ arg_types.append(return_type)
+ delegate_type = "Func<{arg_types}>".format({
+ arg_types = ", ".join(arg_types)
+ })
+
+ return """
+ public event {delegate_type} {csharp_signal_name}
+ {
+ add
+ {
+ Connect(SignalName.{csharp_signal_name}, Callable.From(value));
+ }
+ remove
+ {
+ Disconnect(SignalName.{csharp_signal_name}, Callable.From(value));
+ }
+ }
+ """.dedent().format({
+ delegate_type = delegate_type,
+ csharp_signal_name = csharp_signal_name,
+ }).strip_edges()
+
+
+static func _property_is_enum(property: Dictionary) -> bool:
+ return property["usage"] & (PROPERTY_USAGE_CLASS_IS_ENUM | PROPERTY_USAGE_CLASS_IS_BITFIELD)
+
+
+static func _get_property_type(cls_name: StringName, property: Dictionary) -> String:
+ match property["type"]:
+ TYPE_NIL:
+ return "Variant"
+ TYPE_BOOL:
+ return "bool"
+ TYPE_INT:
+ if _property_is_enum(property):
+ var enum_name = property["class_name"]
+ if enum_name == "Error":
+ return "Godot.Error"
+ var split = enum_name.split(".")
+ if split.size() == 1:
+ return enum_name + ("Enum" if _needs_enum_suffix(cls_name, enum_name) else "")
+ else:
+ return enum_name + ("Enum" if _needs_enum_suffix(split[0], split[1]) else "")
+ return "int"
+ TYPE_FLOAT:
+ return "double" if OS.has_feature("double") else "float"
+ TYPE_STRING:
+ return "string"
+ TYPE_VECTOR2I:
+ return "Godot.Vector2I"
+ TYPE_RECT2I:
+ return "Godot.Rect2I"
+ TYPE_VECTOR3I:
+ return "Godot.Vector3I"
+ TYPE_VECTOR4I:
+ return "Godot.Vector4I"
+ TYPE_AABB:
+ return "Godot.Aabb"
+ TYPE_RID:
+ return "Godot.Rid"
+ TYPE_OBJECT:
+ if property["class_name"] and property["class_name"] != "Object":
+ return _pascal_to_pascal_case(_get_class_from_class_name(property["class_name"]))
+ else:
+ return "GodotObject"
+ TYPE_ARRAY:
+ if property["hint"] & PROPERTY_HINT_ARRAY_TYPE:
+ return "Godot.Collections.Array<%s>" % _get_mapped_variant_type(property["hint_string"])
+ else:
+ return "Godot.Collections.Array"
+ TYPE_DICTIONARY:
+ return "Godot.Collections.Dictionary"
+ TYPE_PACKED_BYTE_ARRAY:
+ return "byte[]"
+ TYPE_PACKED_INT32_ARRAY:
+ return "int[]"
+ TYPE_PACKED_INT64_ARRAY:
+ return "long[]"
+ TYPE_PACKED_FLOAT32_ARRAY:
+ return "float[]"
+ TYPE_PACKED_FLOAT64_ARRAY:
+ return "double[]"
+ TYPE_PACKED_STRING_ARRAY:
+ return "string[]"
+ TYPE_PACKED_VECTOR2_ARRAY:
+ return "Godot.Vector2[]"
+ TYPE_PACKED_VECTOR3_ARRAY:
+ return "Godot.Vector3[]"
+ TYPE_PACKED_VECTOR4_ARRAY:
+ return "Godot.Vector4[]"
+ TYPE_PACKED_COLOR_ARRAY:
+ return "Godot.Color[]"
+ var t:
+ return "Godot." + type_string(t)
+
+
+static func _get_mapped_variant_type(variant_type_name: String) -> String:
+ var _type_map = {
+ "Variant": "Variant",
+ type_string(TYPE_BOOL): "bool",
+ type_string(TYPE_INT): "int",
+ type_string(TYPE_FLOAT): "double" if OS.has_feature("double") else "float",
+ type_string(TYPE_STRING): "string",
+ type_string(TYPE_STRING_NAME): "StringName",
+ type_string(TYPE_VECTOR2I): "Godot.Vector2I",
+ type_string(TYPE_RECT2I): "Godot.Rect2I",
+ type_string(TYPE_VECTOR3I): "Godot.Vector3I",
+ type_string(TYPE_VECTOR4I): "Godot.Vector4I",
+ type_string(TYPE_AABB): "Godot.Aabb",
+ type_string(TYPE_RID): "Godot.Rid",
+ type_string(TYPE_OBJECT): "GodotObject",
+ type_string(TYPE_ARRAY): "Godot.Collections.Array",
+ type_string(TYPE_DICTIONARY): "Godot.Collections.Dictionary",
+ type_string(TYPE_PACKED_BYTE_ARRAY): "byte[]",
+ type_string(TYPE_PACKED_INT32_ARRAY): "int[]",
+ type_string(TYPE_PACKED_INT64_ARRAY): "long[]",
+ type_string(TYPE_PACKED_FLOAT32_ARRAY): "float[]",
+ type_string(TYPE_PACKED_FLOAT64_ARRAY): "double[]",
+ type_string(TYPE_PACKED_STRING_ARRAY): "string[]",
+ type_string(TYPE_PACKED_VECTOR2_ARRAY): "Godot.Vector2[]",
+ type_string(TYPE_PACKED_VECTOR3_ARRAY): "Godot.Vector3[]",
+ type_string(TYPE_PACKED_VECTOR4_ARRAY): "Godot.Vector4[]",
+ type_string(TYPE_PACKED_COLOR_ARRAY): "Godot.Color[]",
+ }
+ return _type_map.get(variant_type_name, "Godot." + variant_type_name)
+
+
+static func _property_get_cast(cls_name: StringName, property: Dictionary):
+ var property_type = _get_property_type(cls_name, property)
+ if _property_is_enum(property):
+ return "(%s)(int)" % property_type
+ else:
+ return "(%s)" % property_type
+
+
+static func _property_set_cast(property: Dictionary):
+ if _property_is_enum(property):
+ return "(int)"
+ else:
+ return ""
+
+
+static func _is_extension_class(cls_name: StringName) -> bool:
+ return ClassDB.class_get_api_type(cls_name) in [
+ ClassDB.APIType.API_EXTENSION,
+ ClassDB.APIType.API_EDITOR_EXTENSION,
+ ]
+
+
+static func _is_editor_extension_class(cls_name: StringName) -> bool:
+ return ClassDB.class_get_api_type(cls_name) == ClassDB.APIType.API_EDITOR_EXTENSION
+
+
+static func _first_non_extension_parent(cls_name: StringName) -> StringName:
+ while _is_extension_class(cls_name):
+ cls_name = ClassDB.get_parent_class(cls_name)
+ return cls_name
+
+
+static func _get_method_return_type(cls_name: StringName, method_name: StringName, method_return: Dictionary) -> String:
+ # hardcode type that cannot be known from reflection in GDScript
+ if method_name == "get_instance_id":
+ return "ulong"
+
+ if method_return["type"] == TYPE_NIL:
+ if method_return["usage"] & PROPERTY_USAGE_NIL_IS_VARIANT:
+ return "Variant"
+ else:
+ return "void"
+ else:
+ return _get_property_type(cls_name, method_return)
+
+
+static func _get_parent_classes(cls_name: StringName) -> Array[StringName]:
+ var parent_classes = [] as Array[StringName]
+ while true:
+ cls_name = ClassDB.get_parent_class(cls_name)
+ parent_classes.append(cls_name)
+ if cls_name == "Object":
+ break
+ return parent_classes
+
+
+static func _generate_strings_class(cls_name: StringName, string_name_type: StringNameType, string_names: PackedStringArray) -> String:
+ var parent_class = ClassDB.get_parent_class(cls_name)
+ var lines = PackedStringArray()
+ for name in string_names:
+ if string_name_type == StringNameType.METHOD_NAME and ClassDB.class_has_method(parent_class, name):
+ continue
+ if string_name_type == StringNameType.SIGNAL_NAME and ClassDB.class_has_signal(parent_class, name):
+ continue
+ lines.append("public static readonly StringName {cs_name} = \"{name}\";".format({
+ cs_name = name.to_pascal_case(),
+ name = name,
+ }))
+ return """
+ public {maybe_new}class {strings_class} : {parent_class}.{strings_class}
+ {
+ {lines}
+ }
+ """.dedent().format({
+ lines = "\n".join(lines).indent("\t"),
+ maybe_new = "new " if _is_extension_class(parent_class) else "",
+ parent_class = parent_class,
+ strings_class = StringNameTypeName[string_name_type],
+ }).strip_edges()
+
+
+static func _get_common_prefix(s1: String, s2: String) -> String:
+ var common_length = min(s1.length(), s2.length())
+ for i in range(common_length):
+ if s1[i] != s2[i]:
+ return s1.substr(0, i)
+ return s1.substr(0, common_length)
+
+
+static func _get_class_from_class_name(cls_name: String) -> String:
+ var classes = cls_name.split(",")
+ if classes.size() == 1:
+ return cls_name
+
+ # Handle special case where 2 or more class names are present separated
+ # by ",": calculate the common parent class.
+ # Example case: CanvasItem.material uses "CanvasItemMaterial,ShaderMaterial"
+ var parent_classes = _get_parent_classes(classes[0])
+ for i in range(1, classes.size()):
+ var test_cls = classes[i]
+ while not ClassDB.is_parent_class(test_cls, parent_classes[0]):
+ parent_classes.pop_front()
+ return parent_classes[0]
+
+
+static func _needs_enum_suffix(cls_name: StringName, enum_name: String) -> bool:
+ var snake_case_enum_name = enum_name.to_snake_case()
+ if ClassDB.class_has_method(cls_name, snake_case_enum_name):
+ return true
+ if ClassDB.class_has_signal(cls_name, snake_case_enum_name):
+ return true
+ var properties = ClassDB.class_get_property_list(cls_name)
+ for property in properties:
+ if snake_case_enum_name == property["name"]:
+ return true
+ return false
+
+
+# Pascal case conversion used for class names.
+# Replicates the logic from `godot/modules/mono/utils/naming_utils.cpp`
+static func _is_ascii_upper_case(c: String) -> bool:
+ return c.to_upper() == c
+
+
+static func _is_ascii_lower_case(c: String) -> bool:
+ return c.to_lower() == c
+
+
+static func _is_digit(c: String) -> bool:
+ return c >= "0" and c <= "9"
+
+
+static func _split_pascal_case(p_identifier: String) -> PackedStringArray:
+ var parts := PackedStringArray()
+ var current_part_start := 0
+ var prev_was_upper := _is_ascii_upper_case(p_identifier[0])
+ for i in range(1, p_identifier.length()):
+ if prev_was_upper:
+ if _is_digit(p_identifier[i]) or _is_ascii_lower_case(p_identifier[i]):
+ if not _is_digit(p_identifier[i]):
+ # These conditions only apply when the separator is not a digit.
+ if i - current_part_start == 1:
+ # Upper character was only the beginning of a word.
+ prev_was_upper = false
+ continue
+ if i != p_identifier.length():
+ # If this is not the last character, the last uppercase
+ # character is the start of the next word.
+ i -= 1
+ if i - current_part_start > 0:
+ parts.append(p_identifier.substr(current_part_start, i - current_part_start))
+ current_part_start = i
+ prev_was_upper = false
+ else:
+ if _is_digit(p_identifier[i]) or _is_ascii_upper_case(p_identifier[i]):
+ parts.append(p_identifier.substr(current_part_start, i - current_part_start))
+ current_part_start = i
+ prev_was_upper = true
+
+ # Add the rest of the identifier as the last part.
+ if current_part_start != p_identifier.length():
+ parts.append(p_identifier.substr(current_part_start))
+ return parts
+
+
+static func _pascal_to_pascal_case(p_identifier: String) -> String:
+ if p_identifier.length() == 0:
+ return p_identifier
+ if p_identifier.length() <= 2:
+ return p_identifier.to_upper()
+ if PASCAL_CASE_NAME_OVERRIDES.has(p_identifier):
+ return PASCAL_CASE_NAME_OVERRIDES[p_identifier]
+
+ var parts := _split_pascal_case(p_identifier)
+ var ret := ""
+ for part in parts:
+ if PASCAL_CASE_PART_OVERRIDES.has(part):
+ ret += PASCAL_CASE_PART_OVERRIDES[part]
+ continue
+
+ if part.length() <= 2 and _is_ascii_upper_case(part):
+ ret += part.to_upper()
+ continue
+
+ part[0] = part[0].to_upper()
+ for i in range(1, part.length()):
+ if _is_digit(part[i - 1]):
+ # Use uppercase after digits.
+ part[i] = part[i].to_upper()
+ else:
+ part[i] = part[i].to_lower()
+ ret += part
+ return ret
diff --git a/demo/addons/csharp_gdextension_bindgen/csharp_gdextension_bindgen.gd.uid b/demo/addons/csharp_gdextension_bindgen/csharp_gdextension_bindgen.gd.uid
new file mode 100644
index 0000000..ff46220
--- /dev/null
+++ b/demo/addons/csharp_gdextension_bindgen/csharp_gdextension_bindgen.gd.uid
@@ -0,0 +1 @@
+uid://cy4tmwy5iyogu
diff --git a/demo/addons/csharp_gdextension_bindgen/icon.png b/demo/addons/csharp_gdextension_bindgen/icon.png
new file mode 100644
index 0000000..5151e35
--- /dev/null
+++ b/demo/addons/csharp_gdextension_bindgen/icon.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4b8893835becb01d0b2e55c1198ec74bbb2130c39e7cf921f808469b7cff0d6b
+size 5120
diff --git a/demo/addons/csharp_gdextension_bindgen/icon.png.import b/demo/addons/csharp_gdextension_bindgen/icon.png.import
new file mode 100644
index 0000000..a87909b
--- /dev/null
+++ b/demo/addons/csharp_gdextension_bindgen/icon.png.import
@@ -0,0 +1,40 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://blckign68biqs"
+path="res://.godot/imported/icon.png-6749c396fd9e755f292f935bb84594b0.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/csharp_gdextension_bindgen/icon.png"
+dest_files=["res://.godot/imported/icon.png-6749c396fd9e755f292f935bb84594b0.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+compress/uastc_level=0
+compress/rdo_quality_loss=0.0
+compress/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=false
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/channel_remap/red=0
+process/channel_remap/green=1
+process/channel_remap/blue=2
+process/channel_remap/alpha=3
+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
diff --git a/demo/addons/csharp_gdextension_bindgen/plugin.cfg b/demo/addons/csharp_gdextension_bindgen/plugin.cfg
new file mode 100644
index 0000000..10ad789
--- /dev/null
+++ b/demo/addons/csharp_gdextension_bindgen/plugin.cfg
@@ -0,0 +1,7 @@
+[plugin]
+
+name="C# GDExtension Bindgen"
+description="Automatic C# bindings generator for GDExtension classes (Godot 4.4+)"
+author="gilzoide"
+version="0.3.1"
+script="csharp_gdextension_bindgen.gd"
diff --git a/demo/addons/godot-git-plugin/LICENSE b/demo/addons/godot-git-plugin/LICENSE
new file mode 100644
index 0000000..f153fb8
--- /dev/null
+++ b/demo/addons/godot-git-plugin/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2016-2023 The Godot Engine community
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/demo/addons/godot-git-plugin/THIRDPARTY.md b/demo/addons/godot-git-plugin/THIRDPARTY.md
new file mode 100644
index 0000000..837488f
--- /dev/null
+++ b/demo/addons/godot-git-plugin/THIRDPARTY.md
@@ -0,0 +1,1349 @@
+# Third-Party Notices
+
+The Godot Git Plugin source code uses the following third-party source code:
+
+1. godotengine/godot-cpp - MIT License - https://github.com/godotengine/godot-cpp/tree/02336831735fd6affbe0a6fa252ec98d3e78120c
+2. libgit2/libgit2 - GPLv2 with a special Linking Exception - https://github.com/libgit2/libgit2/tree/b7bad55e4bb0a285b073ba5e02b01d3f522fc95d
+3. libssh2/libssh2 - BSD-3-Clause License - https://github.com/libssh2/libssh2/tree/635caa90787220ac3773c1d5ba11f1236c22eae8
+
+We also link to these third-party libraries (only in the compiled binary form):
+
+1. OpenSSL - Only on Linux and MacOS - OpenSSL License - http://www.openssl.org/source/openssl-1.1.1s.tar.gz
+
+## License Texts
+
+### godotengine/godot-cpp
+
+```
+# MIT License
+
+Copyright (c) 2017-2022 Godot Engine contributors.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+```
+
+### libgit2/libgit2
+
+```
+ libgit2 is Copyright (C) the libgit2 contributors,
+ unless otherwise stated. See the AUTHORS file for details.
+
+ Note that the only valid version of the GPL as far as this project
+ is concerned is _this_ particular version of the license (ie v2, not
+ v2.2 or v3.x or whatever), unless explicitly otherwise stated.
+
+----------------------------------------------------------------------
+
+ LINKING EXCEPTION
+
+ In addition to the permissions in the GNU General Public License,
+ the authors give you unlimited permission to link the compiled
+ version of this library into combinations with other programs,
+ and to distribute those combinations without any restriction
+ coming from the use of this file. (The General Public License
+ restrictions do apply in other respects; for example, they cover
+ modification of the file, and distribution when not linked into
+ a combined executable.)
+
+----------------------------------------------------------------------
+
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Library General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ , 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Library General
+Public License instead of this License.
+
+----------------------------------------------------------------------
+
+The bundled ZLib code is licensed under the ZLib license:
+
+Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler
+
+ This software is provided 'as-is', without any express or implied
+ warranty. In no event will the authors be held liable for any damages
+ arising from the use of this software.
+
+ Permission is granted to anyone to use this software for any purpose,
+ including commercial applications, and to alter it and redistribute it
+ freely, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+
+ Jean-loup Gailly Mark Adler
+ jloup@gzip.org madler@alumni.caltech.edu
+
+----------------------------------------------------------------------
+
+The Clar framework is licensed under the ISC license:
+
+Copyright (c) 2011-2015 Vicent Marti
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+----------------------------------------------------------------------
+
+The regex library (deps/regex/) is licensed under the GNU LGPL
+(available at the end of this file).
+
+Definitions for data structures and routines for the regular
+expression library.
+
+Copyright (C) 1985,1989-93,1995-98,2000,2001,2002,2003,2005,2006,2008
+Free Software Foundation, Inc.
+This file is part of the GNU C Library.
+
+The GNU C Library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+The GNU C Library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with the GNU C Library; if not, write to the Free
+Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+----------------------------------------------------------------------
+
+The bundled winhttp definition files (deps/winhttp/) are licensed under
+the GNU LGPL (available at the end of this file).
+
+Copyright (C) 2007 Francois Gouget
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+
+----------------------------------------------------------------------
+
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 2.1, February 1999
+
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+[This is the first released version of the Lesser GPL. It also counts
+ as the successor of the GNU Library Public License, version 2, hence
+ the version number 2.1.]
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+Licenses are intended to guarantee your freedom to share and change
+free software--to make sure the software is free for all its users.
+
+ This license, the Lesser General Public License, applies to some
+specially designated software packages--typically libraries--of the
+Free Software Foundation and other authors who decide to use it. You
+can use it too, but we suggest you first think carefully about whether
+this license or the ordinary General Public License is the better
+strategy to use in any particular case, based on the explanations below.
+
+ When we speak of free software, we are referring to freedom of use,
+not price. Our General Public Licenses are designed to make sure that
+you have the freedom to distribute copies of free software (and charge
+for this service if you wish); that you receive source code or can get
+it if you want it; that you can change the software and use pieces of
+it in new free programs; and that you are informed that you can do
+these things.
+
+ To protect your rights, we need to make restrictions that forbid
+distributors to deny you these rights or to ask you to surrender these
+rights. These restrictions translate to certain responsibilities for
+you if you distribute copies of the library or if you modify it.
+
+ For example, if you distribute copies of the library, whether gratis
+or for a fee, you must give the recipients all the rights that we gave
+you. You must make sure that they, too, receive or can get the source
+code. If you link other code with the library, you must provide
+complete object files to the recipients, so that they can relink them
+with the library after making changes to the library and recompiling
+it. And you must show them these terms so they know their rights.
+
+ We protect your rights with a two-step method: (1) we copyright the
+library, and (2) we offer you this license, which gives you legal
+permission to copy, distribute and/or modify the library.
+
+ To protect each distributor, we want to make it very clear that
+there is no warranty for the free library. Also, if the library is
+modified by someone else and passed on, the recipients should know
+that what they have is not the original version, so that the original
+author's reputation will not be affected by problems that might be
+introduced by others.
+
+ Finally, software patents pose a constant threat to the existence of
+any free program. We wish to make sure that a company cannot
+effectively restrict the users of a free program by obtaining a
+restrictive license from a patent holder. Therefore, we insist that
+any patent license obtained for a version of the library must be
+consistent with the full freedom of use specified in this license.
+
+ Most GNU software, including some libraries, is covered by the
+ordinary GNU General Public License. This license, the GNU Lesser
+General Public License, applies to certain designated libraries, and
+is quite different from the ordinary General Public License. We use
+this license for certain libraries in order to permit linking those
+libraries into non-free programs.
+
+ When a program is linked with a library, whether statically or using
+a shared library, the combination of the two is legally speaking a
+combined work, a derivative of the original library. The ordinary
+General Public License therefore permits such linking only if the
+entire combination fits its criteria of freedom. The Lesser General
+Public License permits more lax criteria for linking other code with
+the library.
+
+ We call this license the "Lesser" General Public License because it
+does Less to protect the user's freedom than the ordinary General
+Public License. It also provides other free software developers Less
+of an advantage over competing non-free programs. These disadvantages
+are the reason we use the ordinary General Public License for many
+libraries. However, the Lesser license provides advantages in certain
+special circumstances.
+
+ For example, on rare occasions, there may be a special need to
+encourage the widest possible use of a certain library, so that it becomes
+a de-facto standard. To achieve this, non-free programs must be
+allowed to use the library. A more frequent case is that a free
+library does the same job as widely used non-free libraries. In this
+case, there is little to gain by limiting the free library to free
+software only, so we use the Lesser General Public License.
+
+ In other cases, permission to use a particular library in non-free
+programs enables a greater number of people to use a large body of
+free software. For example, permission to use the GNU C Library in
+non-free programs enables many more people to use the whole GNU
+operating system, as well as its variant, the GNU/Linux operating
+system.
+
+ Although the Lesser General Public License is Less protective of the
+users' freedom, it does ensure that the user of a program that is
+linked with the Library has the freedom and the wherewithal to run
+that program using a modified version of the Library.
+
+ The precise terms and conditions for copying, distribution and
+modification follow. Pay close attention to the difference between a
+"work based on the library" and a "work that uses the library". The
+former contains code derived from the library, whereas the latter must
+be combined with the library in order to run.
+
+ GNU LESSER GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License Agreement applies to any software library or other
+program which contains a notice placed by the copyright holder or
+other authorized party saying it may be distributed under the terms of
+this Lesser General Public License (also called "this License").
+Each licensee is addressed as "you".
+
+ A "library" means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.
+
+ The "Library", below, refers to any such software library or work
+which has been distributed under these terms. A "work based on the
+Library" means either the Library or any derivative work under
+copyright law: that is to say, a work containing the Library or a
+portion of it, either verbatim or with modifications and/or translated
+straightforwardly into another language. (Hereinafter, translation is
+included without limitation in the term "modification".)
+
+ "Source code" for a work means the preferred form of the work for
+making modifications to it. For a library, complete source code means
+all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation
+and installation of the library.
+
+ Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running a program using the Library is not restricted, and output from
+such a program is covered only if its contents constitute a work based
+on the Library (independent of the use of the Library in a tool for
+writing it). Whether that is true depends on what the Library does
+and what the program that uses the Library does.
+
+ 1. You may copy and distribute verbatim copies of the Library's
+complete source code as you receive it, in any medium, provided that
+you conspicuously and appropriately publish on each copy an
+appropriate copyright notice and disclaimer of warranty; keep intact
+all the notices that refer to this License and to the absence of any
+warranty; and distribute a copy of this License along with the
+Library.
+
+ You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange for a
+fee.
+
+ 2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) The modified work must itself be a software library.
+
+ b) You must cause the files modified to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ c) You must cause the whole of the work to be licensed at no
+ charge to all third parties under the terms of this License.
+
+ d) If a facility in the modified Library refers to a function or a
+ table of data to be supplied by an application program that uses
+ the facility, other than as an argument passed when the facility
+ is invoked, then you must make a good faith effort to ensure that,
+ in the event an application does not supply such function or
+ table, the facility still operates, and performs whatever part of
+ its purpose remains meaningful.
+
+ (For example, a function in a library to compute square roots has
+ a purpose that is entirely well-defined independent of the
+ application. Therefore, Subsection 2d requires that any
+ application-supplied function or table used by this function must
+ be optional: if the application does not supply it, the square
+ root function must still compute square roots.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Library, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Library.
+
+In addition, mere aggregation of another work not based on the Library
+with the Library (or with a work based on the Library) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may opt to apply the terms of the ordinary GNU General Public
+License instead of this License to a given copy of the Library. To do
+this, you must alter all the notices that refer to this License, so
+that they refer to the ordinary GNU General Public License, version 2,
+instead of to this License. (If a newer version than version 2 of the
+ordinary GNU General Public License has appeared, then you can specify
+that version instead if you wish.) Do not make any other change in
+these notices.
+
+ Once this change is made in a given copy, it is irreversible for
+that copy, so the ordinary GNU General Public License applies to all
+subsequent copies and derivative works made from that copy.
+
+ This option is useful when you wish to copy part of the code of
+the Library into a program that is not a library.
+
+ 4. You may copy and distribute the Library (or a portion or
+derivative of it, under Section 2) in object code or executable form
+under the terms of Sections 1 and 2 above provided that you accompany
+it with the complete corresponding machine-readable source code, which
+must be distributed under the terms of Sections 1 and 2 above on a
+medium customarily used for software interchange.
+
+ If distribution of object code is made by offering access to copy
+from a designated place, then offering equivalent access to copy the
+source code from the same place satisfies the requirement to
+distribute the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 5. A program that contains no derivative of any portion of the
+Library, but is designed to work with the Library by being compiled or
+linked with it, is called a "work that uses the Library". Such a
+work, in isolation, is not a derivative work of the Library, and
+therefore falls outside the scope of this License.
+
+ However, linking a "work that uses the Library" with the Library
+creates an executable that is a derivative of the Library (because it
+contains portions of the Library), rather than a "work that uses the
+library". The executable is therefore covered by this License.
+Section 6 states terms for distribution of such executables.
+
+ When a "work that uses the Library" uses material from a header file
+that is part of the Library, the object code for the work may be a
+derivative work of the Library even though the source code is not.
+Whether this is true is especially significant if the work can be
+linked without the Library, or if the work is itself a library. The
+threshold for this to be true is not precisely defined by law.
+
+ If such an object file uses only numerical parameters, data
+structure layouts and accessors, and small macros and small inline
+functions (ten lines or less in length), then the use of the object
+file is unrestricted, regardless of whether it is legally a derivative
+work. (Executables containing this object code plus portions of the
+Library will still fall under Section 6.)
+
+ Otherwise, if the work is a derivative of the Library, you may
+distribute the object code for the work under the terms of Section 6.
+Any executables containing that work also fall under Section 6,
+whether or not they are linked directly with the Library itself.
+
+ 6. As an exception to the Sections above, you may also combine or
+link a "work that uses the Library" with the Library to produce a
+work containing portions of the Library, and distribute that work
+under terms of your choice, provided that the terms permit
+modification of the work for the customer's own use and reverse
+engineering for debugging such modifications.
+
+ You must give prominent notice with each copy of the work that the
+Library is used in it and that the Library and its use are covered by
+this License. You must supply a copy of this License. If the work
+during execution displays copyright notices, you must include the
+copyright notice for the Library among them, as well as a reference
+directing the user to the copy of this License. Also, you must do one
+of these things:
+
+ a) Accompany the work with the complete corresponding
+ machine-readable source code for the Library including whatever
+ changes were used in the work (which must be distributed under
+ Sections 1 and 2 above); and, if the work is an executable linked
+ with the Library, with the complete machine-readable "work that
+ uses the Library", as object code and/or source code, so that the
+ user can modify the Library and then relink to produce a modified
+ executable containing the modified Library. (It is understood
+ that the user who changes the contents of definitions files in the
+ Library will not necessarily be able to recompile the application
+ to use the modified definitions.)
+
+ b) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (1) uses at run time a
+ copy of the library already present on the user's computer system,
+ rather than copying library functions into the executable, and (2)
+ will operate properly with a modified version of the library, if
+ the user installs one, as long as the modified version is
+ interface-compatible with the version that the work was made with.
+
+ c) Accompany the work with a written offer, valid for at
+ least three years, to give the same user the materials
+ specified in Subsection 6a, above, for a charge no more
+ than the cost of performing this distribution.
+
+ d) If distribution of the work is made by offering access to copy
+ from a designated place, offer equivalent access to copy the above
+ specified materials from the same place.
+
+ e) Verify that the user has already received a copy of these
+ materials or that you have already sent this user a copy.
+
+ For an executable, the required form of the "work that uses the
+Library" must include any data and utility programs needed for
+reproducing the executable from it. However, as a special exception,
+the materials to be distributed need not include anything that is
+normally distributed (in either source or binary form) with the major
+components (compiler, kernel, and so on) of the operating system on
+which the executable runs, unless that component itself accompanies
+the executable.
+
+ It may happen that this requirement contradicts the license
+restrictions of other proprietary libraries that do not normally
+accompany the operating system. Such a contradiction means you cannot
+use both them and the Library together in an executable that you
+distribute.
+
+ 7. You may place library facilities that are a work based on the
+Library side-by-side in a single library together with other library
+facilities not covered by this License, and distribute such a combined
+library, provided that the separate distribution of the work based on
+the Library and of the other library facilities is otherwise
+permitted, and provided that you do these two things:
+
+ a) Accompany the combined library with a copy of the same work
+ based on the Library, uncombined with any other library
+ facilities. This must be distributed under the terms of the
+ Sections above.
+
+ b) Give prominent notice with the combined library of the fact
+ that part of it is a work based on the Library, and explaining
+ where to find the accompanying uncombined form of the same work.
+
+ 8. You may not copy, modify, sublicense, link with, or distribute
+the Library except as expressly provided under this License. Any
+attempt otherwise to copy, modify, sublicense, link with, or
+distribute the Library is void, and will automatically terminate your
+rights under this License. However, parties who have received copies,
+or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.
+
+ 9. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Library or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Library (or any work based on the
+Library), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Library or works based on it.
+
+ 10. Each time you redistribute the Library (or any work based on the
+Library), the recipient automatically receives a license from the
+original licensor to copy, distribute, link with or modify the Library
+subject to these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties with
+this License.
+
+ 11. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Library at all. For example, if a patent
+license would not permit royalty-free redistribution of the Library by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Library.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply,
+and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 12. If the distribution and/or use of the Library is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Library under this License may add
+an explicit geographical distribution limitation excluding those countries,
+so that distribution is permitted only in or among countries not thus
+excluded. In such case, this License incorporates the limitation as if
+written in the body of this License.
+
+ 13. The Free Software Foundation may publish revised and/or new
+versions of the Lesser General Public License from time to time.
+Such new versions will be similar in spirit to the present version,
+but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Library
+specifies a version number of this License which applies to it and
+"any later version", you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation. If the Library does not specify a
+license version number, you may choose any version ever published by
+the Free Software Foundation.
+
+ 14. If you wish to incorporate parts of the Library into other free
+programs whose distribution conditions are incompatible with these,
+write to the author to ask for permission. For software which is
+copyrighted by the Free Software Foundation, write to the Free
+Software Foundation; we sometimes make exceptions for this. Our
+decision will be guided by the two goals of preserving the free status
+of all derivatives of our free software and of promoting the sharing
+and reuse of software generally.
+
+ NO WARRANTY
+
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Libraries
+
+ If you develop a new library, and you want it to be of the greatest
+possible use to the public, we recommend making it free software that
+everyone can redistribute and change. You can do so by permitting
+redistribution under these terms (or, alternatively, under the terms of the
+ordinary General Public License).
+
+ To apply these terms, attach the following notices to the library. It is
+safest to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+Also add information on how to contact you by electronic and paper mail.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the library, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
+ library `Frob' (a library for tweaking knobs) written by James Random Hacker.
+
+ , 1 April 1990
+ Ty Coon, President of Vice
+
+That's all there is to it!
+
+----------------------------------------------------------------------
+
+The bundled SHA1 collision detection code is licensed under the MIT license:
+
+MIT License
+
+Copyright (c) 2017:
+ Marc Stevens
+ Cryptology Group
+ Centrum Wiskunde & Informatica
+ P.O. Box 94079, 1090 GB Amsterdam, Netherlands
+ marc@marc-stevens.nl
+
+ Dan Shumow
+ Microsoft Research
+ danshu@microsoft.com
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+----------------------------------------------------------------------
+
+The bundled wildmatch code is licensed under the BSD license:
+
+Copyright Rich Salz.
+All rights reserved.
+
+Redistribution and use in any form are permitted provided that the
+following restrictions are are met:
+
+1. Source distributions must retain this entire copyright notice
+ and comment.
+2. Binary distributions must include the acknowledgement ``This
+ product includes software developed by Rich Salz'' in the
+ documentation or other materials provided with the
+ distribution. This must not be represented as an endorsement
+ or promotion without specific prior written permission.
+3. The origin of this software must not be misrepresented, either
+ by explicit claim or by omission. Credits must appear in the
+ source and documentation.
+4. Altered versions must be plainly marked as such in the source
+ and documentation and must not be misrepresented as being the
+ original software.
+
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
+WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+
+----------------------------------------------------------------------
+
+Portions of the OpenSSL headers are included under the OpenSSL license:
+
+Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
+All rights reserved.
+
+This package is an SSL implementation written
+by Eric Young (eay@cryptsoft.com).
+The implementation was written so as to conform with Netscapes SSL.
+
+This library is free for commercial and non-commercial use as long as
+the following conditions are aheared to. The following conditions
+apply to all code found in this distribution, be it the RC4, RSA,
+lhash, DES, etc., code; not just the SSL code. The SSL documentation
+included with this distribution is covered by the same copyright terms
+except that the holder is Tim Hudson (tjh@cryptsoft.com).
+
+Copyright remains Eric Young's, and as such any Copyright notices in
+the code are not to be removed.
+If this package is used in a product, Eric Young should be given attribution
+as the author of the parts of the library used.
+This can be in the form of a textual message at program startup or
+in documentation (online or textual) provided with the package.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the copyright
+ notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+3. All advertising materials mentioning features or use of this software
+ must display the following acknowledgement:
+ "This product includes cryptographic software written by
+ Eric Young (eay@cryptsoft.com)"
+ The word 'cryptographic' can be left out if the rouines from the library
+ being used are not cryptographic related :-).
+4. If you include any Windows specific code (or a derivative thereof) from
+ the apps directory (application code) you must include an acknowledgement:
+ "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
+
+THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGE.
+
+The licence and distribution terms for any publically available version or
+derivative of this code cannot be changed. i.e. this code cannot simply be
+copied and put under another distribution licence
+[including the GNU Public Licence.]
+
+====================================================================
+Copyright (c) 1998-2007 The OpenSSL Project. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+3. All advertising materials mentioning features or use of this
+ software must display the following acknowledgment:
+ "This product includes software developed by the OpenSSL Project
+ for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
+
+4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
+ endorse or promote products derived from this software without
+ prior written permission. For written permission, please contact
+ openssl-core@openssl.org.
+
+5. Products derived from this software may not be called "OpenSSL"
+ nor may "OpenSSL" appear in their names without prior written
+ permission of the OpenSSL Project.
+
+6. Redistributions of any form whatsoever must retain the following
+ acknowledgment:
+ "This product includes software developed by the OpenSSL Project
+ for use in the OpenSSL Toolkit (http://www.openssl.org/)"
+
+THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
+EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
+ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+OF THE POSSIBILITY OF SUCH DAMAGE.
+```
+
+### libssh2/libssh2
+
+```
+/* Copyright (c) 2004-2007 Sara Golemon
+ * Copyright (c) 2005,2006 Mikhail Gusarov
+ * Copyright (c) 2006-2007 The Written Word, Inc.
+ * Copyright (c) 2007 Eli Fant
+ * Copyright (c) 2009-2021 Daniel Stenberg
+ * Copyright (C) 2008, 2009 Simon Josefsson
+ * Copyright (c) 2000 Markus Friedl
+ * Copyright (c) 2015 Microsoft Corp.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms,
+ * with or without modification, are permitted provided
+ * that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above
+ * copyright notice, this list of conditions and the
+ * following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above
+ * copyright notice, this list of conditions and the following
+ * disclaimer in the documentation and/or other materials
+ * provided with the distribution.
+ *
+ * Neither the name of the copyright holder nor the names
+ * of any other contributors may be used to endorse or
+ * promote products derived from this software without
+ * specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
+ * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
+ * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ */
+```
+
+### OpenSSL
+
+```
+
+ LICENSE ISSUES
+ ==============
+
+ The OpenSSL toolkit stays under a double license, i.e. both the conditions of
+ the OpenSSL License and the original SSLeay license apply to the toolkit.
+ See below for the actual license texts.
+
+ OpenSSL License
+ ---------------
+
+/* ====================================================================
+ * Copyright (c) 1998-2019 The OpenSSL Project. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * 3. All advertising materials mentioning features or use of this
+ * software must display the following acknowledgment:
+ * "This product includes software developed by the OpenSSL Project
+ * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
+ *
+ * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
+ * endorse or promote products derived from this software without
+ * prior written permission. For written permission, please contact
+ * openssl-core@openssl.org.
+ *
+ * 5. Products derived from this software may not be called "OpenSSL"
+ * nor may "OpenSSL" appear in their names without prior written
+ * permission of the OpenSSL Project.
+ *
+ * 6. Redistributions of any form whatsoever must retain the following
+ * acknowledgment:
+ * "This product includes software developed by the OpenSSL Project
+ * for use in the OpenSSL Toolkit (http://www.openssl.org/)"
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
+ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
+ * ====================================================================
+ *
+ * This product includes cryptographic software written by Eric Young
+ * (eay@cryptsoft.com). This product includes software written by Tim
+ * Hudson (tjh@cryptsoft.com).
+ *
+ */
+
+ Original SSLeay License
+ -----------------------
+
+/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
+ * All rights reserved.
+ *
+ * This package is an SSL implementation written
+ * by Eric Young (eay@cryptsoft.com).
+ * The implementation was written so as to conform with Netscapes SSL.
+ *
+ * This library is free for commercial and non-commercial use as long as
+ * the following conditions are aheared to. The following conditions
+ * apply to all code found in this distribution, be it the RC4, RSA,
+ * lhash, DES, etc., code; not just the SSL code. The SSL documentation
+ * included with this distribution is covered by the same copyright terms
+ * except that the holder is Tim Hudson (tjh@cryptsoft.com).
+ *
+ * Copyright remains Eric Young's, and as such any Copyright notices in
+ * the code are not to be removed.
+ * If this package is used in a product, Eric Young should be given attribution
+ * as the author of the parts of the library used.
+ * This can be in the form of a textual message at program startup or
+ * in documentation (online or textual) provided with the package.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * "This product includes cryptographic software written by
+ * Eric Young (eay@cryptsoft.com)"
+ * The word 'cryptographic' can be left out if the rouines from the library
+ * being used are not cryptographic related :-).
+ * 4. If you include any Windows specific code (or a derivative thereof) from
+ * the apps directory (application code) you must include an acknowledgement:
+ * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
+ *
+ * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * The licence and distribution terms for any publically available version or
+ * derivative of this code cannot be changed. i.e. this code cannot simply be
+ * copied and put under another distribution licence
+ * [including the GNU Public Licence.]
+ */
+```
diff --git a/demo/addons/godot-git-plugin/git_plugin.gdextension b/demo/addons/godot-git-plugin/git_plugin.gdextension
new file mode 100644
index 0000000..49fffbf
--- /dev/null
+++ b/demo/addons/godot-git-plugin/git_plugin.gdextension
@@ -0,0 +1,12 @@
+[configuration]
+
+entry_symbol = "git_plugin_init"
+compatibility_minimum = "4.1.0"
+
+[libraries]
+
+macos.editor = "macos/libgit_plugin.macos.editor.universal.dylib"
+windows.editor.x86_64 = "win64/libgit_plugin.windows.editor.x86_64.dll"
+linux.editor.x86_64 = "linux/libgit_plugin.linux.editor.x86_64.so"
+linux.editor.arm64 = "linux/libgit_plugin.linux.editor.arm64.so"
+linux.editor.rv64 = ""
diff --git a/demo/addons/godot-git-plugin/git_plugin.gdextension.uid b/demo/addons/godot-git-plugin/git_plugin.gdextension.uid
new file mode 100644
index 0000000..0708e3b
--- /dev/null
+++ b/demo/addons/godot-git-plugin/git_plugin.gdextension.uid
@@ -0,0 +1 @@
+uid://dd53bxo7wl2cm
diff --git a/demo/addons/godot-git-plugin/linux/libgit_plugin.linux.editor.x86_64.so b/demo/addons/godot-git-plugin/linux/libgit_plugin.linux.editor.x86_64.so
new file mode 100644
index 0000000..5881a38
--- /dev/null
+++ b/demo/addons/godot-git-plugin/linux/libgit_plugin.linux.editor.x86_64.so
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:35d308252e33ca83f07cdd3f4a6c81049cb5d5c10c5bbab0a26d20186b2691d8
+size 11991528
diff --git a/demo/addons/godot-git-plugin/macos/libgit_plugin.macos.editor.universal.dylib b/demo/addons/godot-git-plugin/macos/libgit_plugin.macos.editor.universal.dylib
new file mode 100644
index 0000000..0cf5aae
--- /dev/null
+++ b/demo/addons/godot-git-plugin/macos/libgit_plugin.macos.editor.universal.dylib
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e8a3d110b63ea57f7ad213e2e9f674984a8b964756a743940fde4986fc864c88
+size 16775480
diff --git a/demo/addons/godot-git-plugin/plugin.cfg b/demo/addons/godot-git-plugin/plugin.cfg
new file mode 100644
index 0000000..9c4e36f
--- /dev/null
+++ b/demo/addons/godot-git-plugin/plugin.cfg
@@ -0,0 +1,7 @@
+[plugin]
+
+name="Godot Git Plugin"
+description="This plugin lets you interact with Git without leaving the Godot editor. More information can be found at https://github.com/godotengine/godot-git-plugin/wiki"
+author="twaritwaikar"
+version="v3.1.1"
+script="godot-git-plugin.gd"
diff --git a/demo/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.exp b/demo/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.exp
new file mode 100644
index 0000000..6c68d89
Binary files /dev/null and b/demo/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.exp differ
diff --git a/demo/addons/godot-git-plugin/win64/~libgit_plugin.windows.editor.x86_64.dll~RF5d526a4.TMP b/demo/addons/godot-git-plugin/win64/~libgit_plugin.windows.editor.x86_64.dll~RF5d526a4.TMP
new file mode 100644
index 0000000..47bbb1d
Binary files /dev/null and b/demo/addons/godot-git-plugin/win64/~libgit_plugin.windows.editor.x86_64.dll~RF5d526a4.TMP differ
diff --git a/demo/addons/script-ide/LICENSE b/demo/addons/script-ide/LICENSE
new file mode 100644
index 0000000..ffc9cf2
--- /dev/null
+++ b/demo/addons/script-ide/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2023 Marius Hanl
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/demo/addons/script-ide/README.md b/demo/addons/script-ide/README.md
new file mode 100644
index 0000000..5cfa4cb
--- /dev/null
+++ b/demo/addons/script-ide/README.md
@@ -0,0 +1,65 @@
+# Script IDE
+
+Transforms the Script UI into an IDE like UI.
+Tabs are used for navigating between scripts.
+The default Outline got an overhaul and now shows all members of the script (not just methods) with unique icons for faster navigation.
+Enhanced keyboard navigation for Scripts and Outline.
+Fast quick search functionality.
+Quick function Override functionality.
+
+Features:
+- Scripts are now shown as Tabs inside a TabContainer
+- The Outline got an overhaul and shows more than just the methods of the script. It includes the following members with a unique icon:
+ - Classes (Red Square)
+ - Constants (Red Circle)
+ - Signals (Yellow)
+ - Export variables (Orange)
+ - (Static) Variables (Red)
+ - Engine callback functions (Blue)
+ - (Static) Functions (Green)
+ - Setter functions (Green circle, with an arrow inside it pointing to the right)
+ - Getter functions (Green circle, with an arrow inside it pointing to the left)
+- All the different members of the script can be hidden or made visible again by the outline filter. This allows fine control what should be visible (e.g. only signals, (Godot) functions, ...)
+- A `Right Click` enables only the clicked filter, another `Right Click` will enable all filters again
+- The Outline can be opened in a Popup with a defined shortcut for quick navigation between methods
+- You can navigate through the Outline with the `Arrow` keys (or `Page up/Page down`) and scroll to the selected item by pressing `ENTER`
+- Scripts can be opened in a Popup with a defined shortcut or when clicking the three dots on the top right of the TabContainer for quick navigation between scripts
+- The currently edited script is automatically selected in the Filesystem Dock
+- Files can be quickly searched by the Quick Search Popup with `Shift`+`Shift`
+- You can find and quickly override any method from your super classes with `Alt`+`Ins`
+- The plugin is written with performance in mind, everything is very fast and works without any lags or stuttering
+
+Customization:
+- The Outline is on the right side (can be changed to be on the left side again)
+- The Outline can be toggled via `File -> Toggle Scripts Panel`. This will hide or show it
+- The order in the Outline can be changed
+- There is also the possibility to hide private members, this is all members starting with a `_`
+- The Script ItemList is not visible by default, but can be made visible again
+
+All settings can be changed in the `Editor Settings` under `Plugin` -> `Script Ide`:
+- `Open Outline Popup` = Shortcut to control how the Outline Popup should be triggered (default=CTRL+O or META+O)
+- `Outline Position Right` = Flag to control whether the outline should be on the right or on the left side of the script editor (default=true)
+- `Outline Order` = List which specifies the order of all different types in the Outline
+- `Hide Private Members` = Flag to control whether private members (methods/variables/constants starting with '_') should be hidden in the Outline or not (default=false)
+- `Open Script Popup` = Shortcut to control how the Script Popup should be triggered (default=CTRL+U or META+U)
+- `Script List Visible` = Flag to control whether the script list should still be visible or not (above the outline) (default=false)
+- `Script Tabs Visible` = Flag to control whether the script tabs should be visible or not (default=true)
+- `Script Tabs Position Top` = Flag to control whether the script tabs should be on the top or on the bottom (default=true)
+- `Auto Navigate in FileSystem Dock` = Flag to control whether the script that is currently edited should be automatically selected in the Filesystem Dock (default=true)
+- `Open Quick Search Popup` = Shortcut to control how the Quick Search Popup should be triggered (default=Shift+Shift, double press behavior is hardcoded for now)
+- `Open Override Popup` = Shortcut to control how the Override Popup should be triggered (default=Alt+Ins)
+- `Cycle Tab forward` = Shortcut to cycle the script tabs in the forward direction (only works in the 'Script' Editor Tab) (default=CTRL+TAB)
+- `Cycle Tab backward` = Shortcut to cycle the script tabs in the backward direction (only works in the 'Script' Editor Tab) (default=CTRL+SHIFT+TAB)
+- All outline visibility settings
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/demo/addons/script-ide/icon/class.svg b/demo/addons/script-ide/icon/class.svg
new file mode 100644
index 0000000..12f44f7
--- /dev/null
+++ b/demo/addons/script-ide/icon/class.svg
@@ -0,0 +1 @@
+
diff --git a/demo/addons/script-ide/icon/class.svg.import b/demo/addons/script-ide/icon/class.svg.import
new file mode 100644
index 0000000..4154c41
--- /dev/null
+++ b/demo/addons/script-ide/icon/class.svg.import
@@ -0,0 +1,44 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://csik7oxvt7tq3"
+path="res://.godot/imported/class.svg-e6f2816a1f06041fb421c2af52817a4a.ctex"
+metadata={
+"has_editor_variant": true,
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/script-ide/icon/class.svg"
+dest_files=["res://.godot/imported/class.svg-e6f2816a1f06041fb421c2af52817a4a.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+compress/uastc_level=0
+compress/rdo_quality_loss=0.0
+compress/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=false
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/channel_remap/red=0
+process/channel_remap/green=1
+process/channel_remap/blue=2
+process/channel_remap/alpha=3
+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
+svg/scale=1.0
+editor/scale_with_editor_scale=true
+editor/convert_colors_with_editor_theme=false
diff --git a/demo/addons/script-ide/icon/constant.svg b/demo/addons/script-ide/icon/constant.svg
new file mode 100644
index 0000000..8be4457
--- /dev/null
+++ b/demo/addons/script-ide/icon/constant.svg
@@ -0,0 +1 @@
+
diff --git a/demo/addons/script-ide/icon/constant.svg.import b/demo/addons/script-ide/icon/constant.svg.import
new file mode 100644
index 0000000..87e7e62
--- /dev/null
+++ b/demo/addons/script-ide/icon/constant.svg.import
@@ -0,0 +1,44 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://cawc456ja8vf5"
+path="res://.godot/imported/constant.svg-f6e857276565573c7540f3c32801842a.ctex"
+metadata={
+"has_editor_variant": true,
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/script-ide/icon/constant.svg"
+dest_files=["res://.godot/imported/constant.svg-f6e857276565573c7540f3c32801842a.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+compress/uastc_level=0
+compress/rdo_quality_loss=0.0
+compress/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=false
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/channel_remap/red=0
+process/channel_remap/green=1
+process/channel_remap/blue=2
+process/channel_remap/alpha=3
+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
+svg/scale=1.0
+editor/scale_with_editor_scale=true
+editor/convert_colors_with_editor_theme=false
diff --git a/demo/addons/script-ide/icon/engine_func.svg b/demo/addons/script-ide/icon/engine_func.svg
new file mode 100644
index 0000000..dee80a2
--- /dev/null
+++ b/demo/addons/script-ide/icon/engine_func.svg
@@ -0,0 +1 @@
+
diff --git a/demo/addons/script-ide/icon/engine_func.svg.import b/demo/addons/script-ide/icon/engine_func.svg.import
new file mode 100644
index 0000000..bef868a
--- /dev/null
+++ b/demo/addons/script-ide/icon/engine_func.svg.import
@@ -0,0 +1,44 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://cupb0polhqrwj"
+path="res://.godot/imported/engine_func.svg-91320e42f9cc7bdd7576002e82fa6ab8.ctex"
+metadata={
+"has_editor_variant": true,
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/script-ide/icon/engine_func.svg"
+dest_files=["res://.godot/imported/engine_func.svg-91320e42f9cc7bdd7576002e82fa6ab8.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+compress/uastc_level=0
+compress/rdo_quality_loss=0.0
+compress/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=false
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/channel_remap/red=0
+process/channel_remap/green=1
+process/channel_remap/blue=2
+process/channel_remap/alpha=3
+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
+svg/scale=1.0
+editor/scale_with_editor_scale=true
+editor/convert_colors_with_editor_theme=false
diff --git a/demo/addons/script-ide/icon/export.svg b/demo/addons/script-ide/icon/export.svg
new file mode 100644
index 0000000..a8e8721
--- /dev/null
+++ b/demo/addons/script-ide/icon/export.svg
@@ -0,0 +1 @@
+
diff --git a/demo/addons/script-ide/icon/export.svg.import b/demo/addons/script-ide/icon/export.svg.import
new file mode 100644
index 0000000..1275303
--- /dev/null
+++ b/demo/addons/script-ide/icon/export.svg.import
@@ -0,0 +1,44 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://bvu2gnj8fv2kw"
+path="res://.godot/imported/export.svg-d2d18132258a7a219ec1af1f0316c91c.ctex"
+metadata={
+"has_editor_variant": true,
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/script-ide/icon/export.svg"
+dest_files=["res://.godot/imported/export.svg-d2d18132258a7a219ec1af1f0316c91c.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+compress/uastc_level=0
+compress/rdo_quality_loss=0.0
+compress/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=false
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/channel_remap/red=0
+process/channel_remap/green=1
+process/channel_remap/blue=2
+process/channel_remap/alpha=3
+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
+svg/scale=1.0
+editor/scale_with_editor_scale=true
+editor/convert_colors_with_editor_theme=false
diff --git a/demo/addons/script-ide/icon/func.svg b/demo/addons/script-ide/icon/func.svg
new file mode 100644
index 0000000..5388596
--- /dev/null
+++ b/demo/addons/script-ide/icon/func.svg
@@ -0,0 +1 @@
+
diff --git a/demo/addons/script-ide/icon/func.svg.import b/demo/addons/script-ide/icon/func.svg.import
new file mode 100644
index 0000000..0a9f522
--- /dev/null
+++ b/demo/addons/script-ide/icon/func.svg.import
@@ -0,0 +1,44 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://rni04cl446ov"
+path="res://.godot/imported/func.svg-139842caa5b4b7e4839711b6c756d0f7.ctex"
+metadata={
+"has_editor_variant": true,
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/script-ide/icon/func.svg"
+dest_files=["res://.godot/imported/func.svg-139842caa5b4b7e4839711b6c756d0f7.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+compress/uastc_level=0
+compress/rdo_quality_loss=0.0
+compress/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=false
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/channel_remap/red=0
+process/channel_remap/green=1
+process/channel_remap/blue=2
+process/channel_remap/alpha=3
+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
+svg/scale=1.0
+editor/scale_with_editor_scale=true
+editor/convert_colors_with_editor_theme=false
diff --git a/demo/addons/script-ide/icon/func_get.svg b/demo/addons/script-ide/icon/func_get.svg
new file mode 100644
index 0000000..2fc6857
--- /dev/null
+++ b/demo/addons/script-ide/icon/func_get.svg
@@ -0,0 +1 @@
+
diff --git a/demo/addons/script-ide/icon/func_get.svg.import b/demo/addons/script-ide/icon/func_get.svg.import
new file mode 100644
index 0000000..96e854d
--- /dev/null
+++ b/demo/addons/script-ide/icon/func_get.svg.import
@@ -0,0 +1,44 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://c2a3aowyhxj5x"
+path="res://.godot/imported/func_get.svg-093f0ce02889d1f102ff9cc3e7f72654.ctex"
+metadata={
+"has_editor_variant": true,
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/script-ide/icon/func_get.svg"
+dest_files=["res://.godot/imported/func_get.svg-093f0ce02889d1f102ff9cc3e7f72654.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+compress/uastc_level=0
+compress/rdo_quality_loss=0.0
+compress/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=false
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/channel_remap/red=0
+process/channel_remap/green=1
+process/channel_remap/blue=2
+process/channel_remap/alpha=3
+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
+svg/scale=1.0
+editor/scale_with_editor_scale=true
+editor/convert_colors_with_editor_theme=false
diff --git a/demo/addons/script-ide/icon/func_set.svg b/demo/addons/script-ide/icon/func_set.svg
new file mode 100644
index 0000000..d4613a3
--- /dev/null
+++ b/demo/addons/script-ide/icon/func_set.svg
@@ -0,0 +1 @@
+
diff --git a/demo/addons/script-ide/icon/func_set.svg.import b/demo/addons/script-ide/icon/func_set.svg.import
new file mode 100644
index 0000000..6fb602f
--- /dev/null
+++ b/demo/addons/script-ide/icon/func_set.svg.import
@@ -0,0 +1,44 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://bvjkrti6kj6o2"
+path="res://.godot/imported/func_set.svg-c31168d90866ff1707ad9834754bd2c9.ctex"
+metadata={
+"has_editor_variant": true,
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/script-ide/icon/func_set.svg"
+dest_files=["res://.godot/imported/func_set.svg-c31168d90866ff1707ad9834754bd2c9.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+compress/uastc_level=0
+compress/rdo_quality_loss=0.0
+compress/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=false
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/channel_remap/red=0
+process/channel_remap/green=1
+process/channel_remap/blue=2
+process/channel_remap/alpha=3
+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
+svg/scale=1.0
+editor/scale_with_editor_scale=true
+editor/convert_colors_with_editor_theme=false
diff --git a/demo/addons/script-ide/icon/property.svg b/demo/addons/script-ide/icon/property.svg
new file mode 100644
index 0000000..144cda9
--- /dev/null
+++ b/demo/addons/script-ide/icon/property.svg
@@ -0,0 +1 @@
+
diff --git a/demo/addons/script-ide/icon/property.svg.import b/demo/addons/script-ide/icon/property.svg.import
new file mode 100644
index 0000000..2143346
--- /dev/null
+++ b/demo/addons/script-ide/icon/property.svg.import
@@ -0,0 +1,44 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dbwlgnwv5e8kl"
+path="res://.godot/imported/property.svg-9e228499f30651faad74aa99e4499d7e.ctex"
+metadata={
+"has_editor_variant": true,
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/script-ide/icon/property.svg"
+dest_files=["res://.godot/imported/property.svg-9e228499f30651faad74aa99e4499d7e.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+compress/uastc_level=0
+compress/rdo_quality_loss=0.0
+compress/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=false
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/channel_remap/red=0
+process/channel_remap/green=1
+process/channel_remap/blue=2
+process/channel_remap/alpha=3
+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
+svg/scale=1.0
+editor/scale_with_editor_scale=true
+editor/convert_colors_with_editor_theme=false
diff --git a/demo/addons/script-ide/icon/signal.svg b/demo/addons/script-ide/icon/signal.svg
new file mode 100644
index 0000000..d3f97b8
--- /dev/null
+++ b/demo/addons/script-ide/icon/signal.svg
@@ -0,0 +1 @@
+
diff --git a/demo/addons/script-ide/icon/signal.svg.import b/demo/addons/script-ide/icon/signal.svg.import
new file mode 100644
index 0000000..00dc018
--- /dev/null
+++ b/demo/addons/script-ide/icon/signal.svg.import
@@ -0,0 +1,44 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://bnccvnaloqnte"
+path="res://.godot/imported/signal.svg-97182e1498b520a1ff5b8b9017c3b480.ctex"
+metadata={
+"has_editor_variant": true,
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/script-ide/icon/signal.svg"
+dest_files=["res://.godot/imported/signal.svg-97182e1498b520a1ff5b8b9017c3b480.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+compress/uastc_level=0
+compress/rdo_quality_loss=0.0
+compress/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=false
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/channel_remap/red=0
+process/channel_remap/green=1
+process/channel_remap/blue=2
+process/channel_remap/alpha=3
+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
+svg/scale=1.0
+editor/scale_with_editor_scale=true
+editor/convert_colors_with_editor_theme=false
diff --git a/demo/addons/script-ide/override/override_panel.gd b/demo/addons/script-ide/override/override_panel.gd
new file mode 100644
index 0000000..18119e0
--- /dev/null
+++ b/demo/addons/script-ide/override/override_panel.gd
@@ -0,0 +1,336 @@
+@tool
+extends PopupPanel
+
+const FUNC_META: StringName = &"func"
+
+@onready var filter_txt: LineEdit = %FilterTxt
+@onready var class_func_tree: Tree = %ClassFuncTree
+@onready var ok_btn: Button = %OkBtn
+@onready var cancel_btn: Button = %CancelBtn
+
+var plugin: EditorPlugin
+
+var selections: Dictionary[String, bool] = {} # Used as Set.
+var class_to_functions: Dictionary[StringName, PackedStringArray]
+
+func _ready() -> void:
+ filter_txt.text_changed.connect(update_tree_filter.unbind(1))
+
+ class_func_tree.multi_selected.connect(func(item: TreeItem, col: int, selected: bool): save_selection(selected, item))
+ class_func_tree.item_activated.connect(generate_functions)
+
+ cancel_btn.pressed.connect(hide)
+ ok_btn.pressed.connect(generate_functions)
+
+ about_to_popup.connect(on_show)
+
+ if (plugin != null):
+ filter_txt.gui_input.connect(navigate_on_tree)
+
+func navigate_on_tree(event: InputEvent):
+ if (event.is_action_pressed(&"ui_down", true)):
+ var selected: TreeItem = get_selected_tree_item()
+ if (selected == null):
+ return
+ var item: TreeItem = selected.get_next_in_tree()
+ if (item == null):
+ return
+
+ focus_tree_item(item)
+ elif (event.is_action_pressed(&"ui_up", true)):
+ var selected: TreeItem = get_selected_tree_item()
+ if (selected == null):
+ return
+ var item: TreeItem = selected.get_prev_in_tree()
+ if (item == null):
+ return
+
+ focus_tree_item(item)
+ elif (event.is_action_pressed(&"ui_page_down", true)):
+ var selected: TreeItem = get_selected_tree_item()
+ if (selected == null):
+ return
+
+ var item: TreeItem = selected.get_next_in_tree()
+ if (item == null):
+ return
+
+ for index: int in 4:
+ var next: TreeItem = item.get_next_in_tree()
+ if (next == null):
+ break
+ item = next
+
+ focus_tree_item(item)
+ elif (event.is_action_pressed(&"ui_page_up", true)):
+ var selected: TreeItem = get_selected_tree_item()
+ if (selected == null):
+ return
+
+ var item: TreeItem = selected.get_prev_in_tree()
+ if (item == null):
+ return
+
+ for index: int in 4:
+ var prev: TreeItem = item.get_prev_in_tree()
+ if (prev == null):
+ break
+ item = prev
+
+ focus_tree_item(item)
+ elif (event.is_action_pressed(&"ui_select", true)):
+ var selected: TreeItem = get_selected_tree_item()
+ if (selected == null):
+ return
+
+ if (!selected.is_selectable(0)):
+ selected.collapsed = !selected.collapsed
+ class_func_tree.accept_event()
+ return
+
+ if (selected.is_selected(0)):
+ selected.deselect(0)
+ save_selection(false, selected)
+ else:
+ selected.select(0)
+ save_selection(true, selected)
+
+ class_func_tree.accept_event()
+ elif (event.is_action_pressed(&"ui_text_submit", true)):
+ if (selections.size() == 0):
+ return
+
+ generate_functions()
+ class_func_tree.accept_event()
+
+func get_selected_tree_item() -> TreeItem:
+ var selected: TreeItem = class_func_tree.get_selected()
+ if (selected == null):
+ selected = class_func_tree.get_root()
+ return selected
+
+func focus_tree_item(item: TreeItem):
+ var was_selected: bool = item.is_selected(0)
+ item.select(0)
+ item.deselect(0)
+ if (was_selected):
+ item.select(0)
+
+ class_func_tree.ensure_cursor_is_visible()
+ class_func_tree.accept_event()
+
+func update_tree_filter():
+ update_tree()
+
+func save_selection(selected: bool, item: TreeItem):
+ if (selected):
+ selections[item.get_text(0)] = true
+ else:
+ selections.erase(item.get_text(0))
+
+ ok_btn.disabled = selections.size() == 0
+
+func on_show():
+ class_func_tree.clear()
+ selections.clear()
+ ok_btn.disabled = true
+ filter_txt.text = &""
+
+ var script: Script = EditorInterface.get_script_editor().get_current_script()
+ class_to_functions = collect_all_class_functions(script) # [StringName, PackedStringArray]
+ if (class_to_functions.is_empty()):
+ return
+
+ update_tree()
+ filter_txt.grab_focus()
+
+func update_tree():
+ class_func_tree.clear()
+
+ var text: String = filter_txt.text
+
+ var root: TreeItem = class_func_tree.create_item()
+ for class_name_str: StringName in class_to_functions.keys():
+ var class_item: TreeItem = root.create_child(0)
+ class_item.set_selectable(0, false)
+ class_item.set_text(0, class_name_str)
+
+ for function: String in class_to_functions.get(class_name_str):
+ var is_preselected: bool = selections.has(function)
+ if (is_preselected || text.is_empty() || text.is_subsequence_ofn(function)):
+ var func_item: TreeItem = class_item.create_child()
+ func_item.set_text(0, function)
+ if (plugin.keywords.has(function.get_slice("(", 0))):
+ func_item.set_icon(0, plugin.engine_func_icon)
+ else:
+ func_item.set_icon(0, plugin.func_icon)
+
+ if (is_preselected):
+ func_item.select(0)
+
+func collect_all_class_functions(script: Script) -> Dictionary[StringName, PackedStringArray]:
+ var existing_funcs: Dictionary[String, bool] = {} # Used as Set.
+ for func_str: String in plugin.outline_cache.engine_funcs:
+ existing_funcs[func_str] = true
+ for func_str: String in plugin.outline_cache.funcs:
+ existing_funcs[func_str] = true
+
+ var class_to_functions: Dictionary[StringName, PackedStringArray] = collect_super_class_functions(script.get_base_script(), existing_funcs)
+ var native_class_to_functions: Dictionary[StringName, PackedStringArray] = collect_native_class_functions(script.get_instance_base_type(), existing_funcs)
+
+ return native_class_to_functions.merged(class_to_functions)
+
+func collect_super_class_functions(base_script: Script, existing_funcs: Dictionary[String, bool]) -> Dictionary[StringName, PackedStringArray]:
+ var super_classes: Array[Script] = []
+ while (base_script != null):
+ super_classes.insert(0, base_script)
+
+ base_script = base_script.get_base_script()
+
+ var class_to_functions: Dictionary[StringName, PackedStringArray] = {}
+ for super_class: Script in super_classes:
+ var functions: PackedStringArray = collect_script_functions(super_class, existing_funcs)
+ if (functions.is_empty()):
+ continue
+
+ class_to_functions[super_class.get_global_name()] = functions
+
+ return class_to_functions
+
+func collect_native_class_functions(native_class: StringName, existing_funcs: Dictionary[String, bool]) -> Dictionary[StringName, PackedStringArray]:
+ var super_native_classes: Array[StringName] = []
+ while (native_class != &""):
+ super_native_classes.insert(0, native_class)
+
+ native_class = ClassDB.get_parent_class(native_class)
+
+ var class_to_functions: Dictionary[StringName, PackedStringArray] = {}
+ for super_native_class: StringName in super_native_classes:
+ var functions: PackedStringArray = collect_class_functions(super_native_class, existing_funcs)
+ if (functions.is_empty()):
+ continue
+
+ class_to_functions[super_native_class] = functions
+
+ return class_to_functions
+
+func collect_class_functions(native_class: StringName, existing_funcs: Dictionary[String, bool]):
+ var functions: PackedStringArray = []
+
+ for method: Dictionary in ClassDB.class_get_method_list(native_class, true):
+ if (method[&"flags"] & METHOD_FLAG_VIRTUAL <= 0):
+ continue
+
+ var func_name: String = method[&"name"]
+ if (existing_funcs.has(func_name)):
+ continue
+
+ func_name = create_function_signature(method)
+ functions.append(func_name)
+
+ return functions
+
+func collect_script_functions(super_class: Script, existing_funcs: Dictionary[String, bool]) -> PackedStringArray:
+ var functions: PackedStringArray = []
+
+ for method: Dictionary in super_class.get_script_method_list():
+ var func_name: String = method[&"name"]
+ if (existing_funcs.has(func_name)):
+ continue
+
+ existing_funcs[func_name] = true
+
+ func_name = create_function_signature(method)
+ functions.append(func_name)
+
+ return functions
+
+func create_function_signature(method: Dictionary) -> String:
+ var func_name: String = method[&"name"]
+ func_name += "("
+
+ var args: Array = method[&"args"]
+ var default_args: Array = method[&"default_args"]
+
+ var arg_index: int = 0
+ var default_arg_index: int = 0
+ var arg_str: String = ""
+ for arg: Dictionary in args:
+ if (arg_str != ""):
+ arg_str += ", "
+
+ arg_str += arg[&"name"]
+ var type: String = get_type(arg)
+ if (type != ""):
+ arg_str += ": " + type
+
+ if (args.size() - arg_index <= default_args.size()):
+ var default_arg: Variant = default_args[default_arg_index]
+ if (!default_arg):
+ var type_hint: int = arg[&"type"]
+ if (is_dictionary(type_hint)):
+ default_arg = {}
+ elif (is_array(type_hint)):
+ default_arg = []
+
+ arg_str += " = " + var_to_str(default_arg)
+
+ default_arg_index += 1
+
+ arg_index += 1
+
+ func_name += arg_str + ")"
+
+ var return_str: String = get_type(method[&"return"])
+ if (return_str == ""):
+ return_str = "void"
+
+ func_name += " -> " + return_str
+
+ return func_name
+
+func generate_functions():
+ if (selections.size() == 0):
+ return
+
+ var generated_text: String = ""
+ for function: String in selections.keys():
+ generated_text += "\nfunc " + function + ":\n\tpass\n"
+
+ var editor: CodeEdit = EditorInterface.get_script_editor().get_current_editor().get_base_editor()
+ editor.text += generated_text
+
+ plugin.goto_line(editor.get_line_count() - 1)
+
+ hide()
+
+func get_type(dict: Dictionary) -> String:
+ var type: String = dict[&"class_name"]
+ if (type != &""):
+ return type
+
+ var type_hint: int = dict[&"type"]
+ if (type_hint == 0):
+ return &""
+
+ type = type_string(type_hint)
+
+ if (is_dictionary(type_hint)):
+ var generic: String = dict[&"hint_string"]
+ if (generic != &""):
+ var generic_parts: PackedStringArray = generic.split(";")
+ if (generic_parts.size() == 2):
+ return type + "[" + generic_parts[0] + ", " + generic_parts[1] + "]"
+
+ if (is_array(type_hint)):
+ var generic: String = dict[&"hint_string"]
+ if (generic != &""):
+ return type + "[" + generic + "]"
+
+ return type
+
+func is_dictionary(type_hint: int):
+ return type_hint == 27
+
+func is_array(type_hint: int):
+ return type_hint == 28
diff --git a/demo/addons/script-ide/override/override_panel.gd.uid b/demo/addons/script-ide/override/override_panel.gd.uid
new file mode 100644
index 0000000..2505729
--- /dev/null
+++ b/demo/addons/script-ide/override/override_panel.gd.uid
@@ -0,0 +1 @@
+uid://gtyj60r7yti6
diff --git a/demo/addons/script-ide/override/override_panel.tscn b/demo/addons/script-ide/override/override_panel.tscn
new file mode 100644
index 0000000..7a1f72a
--- /dev/null
+++ b/demo/addons/script-ide/override/override_panel.tscn
@@ -0,0 +1,59 @@
+[gd_scene load_steps=2 format=3 uid="uid://bb1n82qxlqanh"]
+
+[ext_resource type="Script" uid="uid://jwla7ovpvhdw" path="res://addons/script-ide/override/override_panel.gd" id="1_c3eqr"]
+
+[node name="OverridePanel" type="PopupPanel"]
+size = Vector2i(551, 194)
+visible = true
+script = ExtResource("1_c3eqr")
+
+[node name="PanelContainer" type="PanelContainer" parent="."]
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+offset_left = 9.0
+offset_top = 9.0
+offset_right = -9.0
+offset_bottom = -9.0
+grow_horizontal = 2
+grow_vertical = 2
+
+[node name="MarginContainer" type="MarginContainer" parent="PanelContainer"]
+layout_mode = 2
+
+[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer/MarginContainer"]
+layout_mode = 2
+theme_override_constants/separation = 4
+
+[node name="Label" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer"]
+layout_mode = 2
+text = "Select Functions to Override/Implement"
+
+[node name="FilterTxt" type="LineEdit" parent="PanelContainer/MarginContainer/VBoxContainer"]
+unique_name_in_owner = true
+layout_mode = 2
+placeholder_text = "Filter Methods"
+
+[node name="ClassFuncTree" type="Tree" parent="PanelContainer/MarginContainer/VBoxContainer"]
+unique_name_in_owner = true
+layout_mode = 2
+size_flags_vertical = 3
+hide_root = true
+select_mode = 2
+
+[node name="HBoxContainer" type="HBoxContainer" parent="PanelContainer/MarginContainer/VBoxContainer"]
+layout_mode = 2
+theme_override_constants/separation = 4
+alignment = 2
+
+[node name="OkBtn" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
+unique_name_in_owner = true
+custom_minimum_size = Vector2(64, 0)
+layout_mode = 2
+text = "Ok"
+
+[node name="CancelBtn" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
+unique_name_in_owner = true
+custom_minimum_size = Vector2(64, 0)
+layout_mode = 2
+text = "Cancel"
diff --git a/demo/addons/script-ide/plugin.cfg b/demo/addons/script-ide/plugin.cfg
new file mode 100644
index 0000000..c769690
--- /dev/null
+++ b/demo/addons/script-ide/plugin.cfg
@@ -0,0 +1,7 @@
+[plugin]
+
+name="Script-IDE"
+description="Transforms the Script UI into an IDE like UI. Tabs are used for navigating between scripts. The default Outline got an overhaul and now shows all members of the script (not just methods) with unique icons for faster navigation. Enhanced keyboard navigation for Scripts and Outline. Fast quick search functionality."
+author="Marius Hanl"
+version="1.9.1"
+script="plugin.gd"
diff --git a/demo/addons/script-ide/plugin.gd b/demo/addons/script-ide/plugin.gd
new file mode 100644
index 0000000..6bf9703
--- /dev/null
+++ b/demo/addons/script-ide/plugin.gd
@@ -0,0 +1,1339 @@
+## Copyright (c) 2023-present Marius Hanl under the MIT License.
+## The editor plugin entrypoint for Script-IDE.
+##
+## The Script Tabs and Outline modifies the code that is inside 'script_editor_plugin.cpp'.
+## That is, the structure is changed a little bit.
+## The internals of then native C++ code are therefore important in order to make this plugin work
+## without interfering with the Engine.
+## All the other functionality does not modify anything Engine related.
+##
+## Script-IDE does not use global class_name's in order to not clutter projects using it.
+## Especially since this is an editor only plugin, we do not want this plugin in the final game.
+## Therefore, code that references other code inside this plugin is untyped.
+@tool
+extends EditorPlugin
+
+const GETTER: StringName = &"get"
+const SETTER: StringName = &"set"
+const UNDERSCORE: StringName = &"_"
+const INLINE: StringName = &"@"
+
+const BUILT_IN_SCRIPT: StringName = &"::GDScript"
+
+#region Settings and Shortcuts
+## Editor setting path
+const SCRIPT_IDE: StringName = &"plugin/script_ide/"
+## Editor setting for the outline position
+const OUTLINE_POSITION_RIGHT: StringName = SCRIPT_IDE + &"outline_position_right"
+## Editor setting to control the order of the outline
+const OUTLINE_ORDER: StringName = SCRIPT_IDE + &"outline_order"
+## Editor setting to control whether private members (annotated with '_' should be hidden or not)
+const HIDE_PRIVATE_MEMBERS: StringName = SCRIPT_IDE + &"hide_private_members"
+## Editor setting to control whether we want to auto navigate to the script
+## in the filesystem (dock) when selected
+const AUTO_NAVIGATE_IN_FS: StringName = SCRIPT_IDE + &"auto_navigate_in_filesystem_dock"
+## Editor setting to control whether the script list should be visible or not
+const SCRIPT_LIST_VISIBLE: StringName = SCRIPT_IDE + &"script_list_visible"
+## Editor setting to control whether the script tabs should be visible or not.
+const SCRIPT_TABS_VISIBLE: StringName = SCRIPT_IDE + &"script_tabs_visible"
+## Editor setting to control where the script tabs should be.
+const SCRIPT_TAB_POSITION_TOP: StringName = SCRIPT_IDE + &"script_tab_position_top"
+
+## Editor setting for the 'Open Outline Popup' shortcut
+const OPEN_OUTLINE_POPUP: StringName = SCRIPT_IDE + &"open_outline_popup"
+## Editor setting for the 'Open Scripts Popup' shortcut
+const OPEN_SCRIPTS_POPUP: StringName = SCRIPT_IDE + &"open_scripts_popup"
+## Editor setting for the 'Open Scripts Popup' shortcut
+const OPEN_QUICK_SEARCH_POPUP: StringName = SCRIPT_IDE + &"open_quick_search_popup"
+## Editor setting for the 'Open Override Popup' shortcut
+const OPEN_OVERRIDE_POPUP: StringName = SCRIPT_IDE + &"open_override_popup"
+## Editor setting for the 'Tab cycle forward' shortcut
+const TAB_CYCLE_FORWARD: StringName = SCRIPT_IDE + &"tab_cycle_forward"
+## Editor setting for the 'Tab cycle backward' shortcut
+const TAB_CYCLE_BACKWARD: StringName = SCRIPT_IDE + &"tab_cycle_backward"
+#endregion
+
+#region Outline type name and icon
+const ENGINE_FUNCS: StringName = &"Engine Callbacks"
+const FUNCS: StringName = &"Functions"
+const SIGNALS: StringName = &"Signals"
+const EXPORTED: StringName = &"Exported Properties"
+const PROPERTIES: StringName = &"Properties"
+const CLASSES: StringName = &"Classes"
+const CONSTANTS: StringName = &"Constants"
+
+var engine_func_icon: Texture2D
+var func_icon: Texture2D
+var func_get_icon: Texture2D
+var func_set_icon: Texture2D
+var property_icon: Texture2D
+var export_icon: Texture2D
+var signal_icon: Texture2D
+var constant_icon: Texture2D
+var class_icon: Texture2D
+#endregion
+
+#region Editor settings
+var is_outline_right: bool = true
+var is_script_list_visible: bool = false
+var hide_private_members: bool = false
+var is_auto_navigate_in_fs: bool = true
+var is_script_tabs_visible: bool = true
+var is_script_tabs_top: bool = true
+var outline_order: PackedStringArray
+
+var open_outline_popup_shc: Shortcut
+var open_scripts_popup_shc: Shortcut
+var open_quick_search_popup_shc: Shortcut
+var open_override_popup_shc: Shortcut
+var tab_cycle_forward_shc: Shortcut
+var tab_cycle_backward_shc: Shortcut
+#endregion
+
+#region Existing controls we modify
+var outline_container: Control
+var outline_parent: Control
+var scripts_tab_container: TabContainer
+var scripts_tab_bar: TabBar
+var script_filter_txt: LineEdit
+var scripts_item_list: ItemList
+var panel_container: VSplitContainer
+
+var split_container: HSplitContainer
+var old_outline: ItemList
+var outline_filter_txt: LineEdit
+var sort_btn: Button
+#endregion
+
+#region Own controls we add
+var outline: ItemList
+var outline_popup: PopupPanel
+var filter_box: HBoxContainer
+
+var scripts_popup: PopupPanel
+var quick_open_popup: PopupPanel
+var override_popup: PopupPanel
+
+var class_btn: Button
+var constant_btn: Button
+var signal_btn: Button
+var property_btn: Button
+var export_btn: Button
+var func_btn: Button
+var engine_func_btn: Button
+#endregion
+
+#region Plugin variables
+var keywords: Dictionary[String, bool] = {} # Used as Set.
+var outline_type_order: Array[OutlineType] = []
+var outline_cache: OutlineCache
+var tab_state: TabStateCache
+
+var old_script_editor_base: ScriptEditorBase
+var old_script_type: StringName
+
+var selected_tab: int = -1
+var last_tab_hovered: int = -1
+var sync_script_list: bool = false
+var file_to_navigate: String = &""
+var suppress_settings_sync: bool = false
+
+const QUICK_OPEN_INTERVAL: int = 400
+var quick_open_tween: Tween
+#endregion
+
+#region Plugin Enter / Exit setup
+## Change the Godot script UI and transform into an IDE like UI
+func _enter_tree() -> void:
+ init_icons()
+ init_settings()
+ init_shortcuts()
+
+ # Update on filesystem changed (e.g. save operation).
+ var file_system: EditorFileSystem = EditorInterface.get_resource_filesystem()
+ file_system.filesystem_changed.connect(schedule_update)
+
+ # Sync settings changes for this plugin.
+ get_editor_settings().settings_changed.connect(sync_settings)
+
+ var script_editor: ScriptEditor = EditorInterface.get_script_editor()
+
+ # Change script item list visibility (based on settings).
+ scripts_item_list = find_or_null(script_editor.find_children("*", "ItemList", true, false))
+ scripts_item_list.allow_reselect = true
+ scripts_item_list.item_selected.connect(hide_scripts_popup.unbind(1))
+ update_script_list_visibility()
+
+ # Add script filter navigation.
+ script_filter_txt = find_or_null(scripts_item_list.get_parent().find_children("*", "LineEdit", true, false))
+ script_filter_txt.gui_input.connect(navigate_on_list.bind(scripts_item_list, select_script))
+
+ # Make tab container visible.
+ scripts_tab_container = find_or_null(script_editor.find_children("*", "TabContainer", true, false))
+ scripts_tab_bar = scripts_tab_container.get_tab_bar()
+
+ # Save old tab state to restore later.
+ tab_state = TabStateCache.new()
+ tab_state.save(scripts_tab_container, scripts_tab_bar)
+
+ # Create and set script popup.
+ create_set_scripts_popup()
+
+ # Configure tab container and bar.
+ scripts_tab_container.tabs_visible = is_script_tabs_visible
+ scripts_tab_container.drag_to_rearrange_enabled = true
+ scripts_tab_container.auto_translate_mode = Node.AUTO_TRANSLATE_MODE_DISABLED
+ update_tabs_position()
+
+ scripts_tab_bar.tab_close_display_policy = TabBar.CLOSE_BUTTON_SHOW_ACTIVE_ONLY
+ scripts_tab_bar.drag_to_rearrange_enabled = true
+ scripts_tab_bar.select_with_rmb = true
+ scripts_tab_bar.tab_close_pressed.connect(on_tab_close)
+ scripts_tab_bar.tab_rmb_clicked.connect(on_tab_rmb)
+ scripts_tab_bar.tab_hovered.connect(on_tab_hovered)
+ scripts_tab_bar.mouse_exited.connect(on_tab_bar_mouse_exited)
+ scripts_tab_bar.active_tab_rearranged.connect(on_active_tab_rearranged)
+ scripts_tab_bar.gui_input.connect(on_tab_bar_gui_input)
+
+ scripts_tab_bar.tab_changed.connect(on_tab_changed)
+
+ # Remove existing outline and add own outline.
+ split_container = find_or_null(script_editor.find_children("*", "HSplitContainer", true, false))
+ outline_container = split_container.get_child(0)
+
+ if (is_outline_right):
+ update_outline_position()
+
+ old_outline = find_or_null(outline_container.find_children("*", "ItemList", true, false), 1)
+ outline_parent = old_outline.get_parent()
+ outline_parent.remove_child(old_outline)
+
+ outline = ItemList.new()
+ outline.allow_reselect = true
+ outline.size_flags_vertical = Control.SIZE_EXPAND_FILL
+ outline_parent.add_child(outline)
+
+ outline.item_selected.connect(scroll_outline)
+
+ # Add a filter box for all kind of members
+ filter_box = HBoxContainer.new()
+
+ engine_func_btn = create_filter_btn(engine_func_icon, ENGINE_FUNCS)
+ func_btn = create_filter_btn(func_icon, FUNCS)
+ signal_btn = create_filter_btn(signal_icon, SIGNALS)
+ export_btn = create_filter_btn(export_icon, EXPORTED)
+ property_btn = create_filter_btn(property_icon, PROPERTIES)
+ class_btn = create_filter_btn(class_icon, CLASSES)
+ constant_btn = create_filter_btn(constant_icon, CONSTANTS)
+ update_outline_button_order()
+
+ outline.get_parent().add_child(filter_box)
+ outline.get_parent().move_child(filter_box, outline.get_index())
+
+ # Add navigation to the filter and text filtering.
+ outline_filter_txt = find_or_null(outline_container.find_children("*", "LineEdit", true, false), 1)
+ outline_filter_txt.gui_input.connect(navigate_on_list.bind(outline, scroll_outline))
+ outline_filter_txt.text_changed.connect(update_outline.unbind(1))
+
+ # Add callback when the sorting changed.
+ sort_btn = find_or_null(outline_container.find_children("*", "Button", true, false))
+ sort_btn.pressed.connect(update_outline)
+
+ on_tab_changed(scripts_tab_bar.current_tab)
+
+## Restore the old Godot script UI and free everything we created
+func _exit_tree() -> void:
+ var file_system: EditorFileSystem = EditorInterface.get_resource_filesystem()
+ file_system.filesystem_changed.disconnect(schedule_update)
+
+ if (old_script_editor_base != null):
+ old_script_editor_base.edited_script_changed.disconnect(update_selected_tab)
+
+ if (split_container != null):
+ if (split_container != outline_container.get_parent()):
+ split_container.add_child(outline_container)
+
+ # Try to restore the previous split offset.
+ if (is_outline_right):
+ var split_offset: float = split_container.get_child(1).size.x
+ split_container.split_offset = split_offset
+
+ split_container.move_child(outline_container, 0)
+
+ outline_filter_txt.gui_input.disconnect(navigate_on_list)
+ outline_filter_txt.text_changed.disconnect(update_outline)
+ sort_btn.pressed.disconnect(update_outline)
+
+ outline.item_selected.disconnect(scroll_outline)
+
+ outline_parent.remove_child(filter_box)
+ outline_parent.remove_child(outline)
+ outline_parent.add_child(old_outline)
+ outline_parent.move_child(old_outline, 2)
+
+ filter_box.free()
+ outline.free()
+
+ if (scripts_tab_container != null):
+ tab_state.restore(scripts_tab_container, scripts_tab_bar)
+
+ scripts_tab_container.pre_popup_pressed.disconnect(prepare_scripts_popup)
+ scripts_tab_container.set_popup(null)
+ scripts_popup.free()
+
+ if (scripts_tab_bar != null):
+ scripts_tab_bar.mouse_exited.disconnect(on_tab_bar_mouse_exited)
+ scripts_tab_bar.gui_input.disconnect(on_tab_bar_gui_input)
+ scripts_tab_bar.tab_close_pressed.disconnect(on_tab_close)
+ scripts_tab_bar.tab_rmb_clicked.disconnect(on_tab_rmb)
+ scripts_tab_bar.tab_hovered.disconnect(on_tab_hovered)
+ scripts_tab_bar.active_tab_rearranged.disconnect(on_active_tab_rearranged)
+
+ scripts_tab_bar.tab_changed.disconnect(on_tab_changed)
+
+ if (scripts_item_list != null):
+ scripts_item_list.allow_reselect = false
+ scripts_item_list.item_selected.disconnect(hide_scripts_popup)
+ scripts_item_list.get_parent().visible = true
+
+ if (script_filter_txt != null):
+ script_filter_txt.gui_input.disconnect(navigate_on_list)
+
+ if (outline_popup != null):
+ outline_popup.free()
+ if (quick_open_popup != null):
+ quick_open_popup.free()
+ if (override_popup != null):
+ override_popup.free()
+
+ get_editor_settings().settings_changed.disconnect(sync_settings)
+#endregion
+
+#region Plugin and Shortcut processing
+## Lazy pattern to update the editor only once per frame
+func _process(delta: float) -> void:
+ update_editor()
+ set_process(false)
+
+## Process the user defined shortcuts
+func _shortcut_input(event: InputEvent) -> void:
+ if (!event.is_pressed() || event.is_echo()):
+ return
+
+ if (open_outline_popup_shc.matches_event(event)):
+ get_viewport().set_input_as_handled()
+ open_outline_popup()
+ elif (open_scripts_popup_shc.matches_event(event)):
+ get_viewport().set_input_as_handled()
+ open_scripts_popup()
+ elif (open_quick_search_popup_shc.matches_event(event)):
+ if (quick_open_tween != null && quick_open_tween.is_running()):
+ get_viewport().set_input_as_handled()
+ if (quick_open_tween != null):
+ quick_open_tween.kill()
+
+ quick_open_tween = create_tween()
+ quick_open_tween.tween_interval(0.1)
+ quick_open_tween.tween_callback(open_quick_search_popup)
+ quick_open_tween.tween_callback(func(): quick_open_tween = null)
+ else:
+ quick_open_tween = create_tween()
+ quick_open_tween.tween_interval(QUICK_OPEN_INTERVAL / 1000.0)
+ quick_open_tween.tween_callback(func(): quick_open_tween = null)
+ elif (open_override_popup_shc.matches_event(event)):
+ get_viewport().set_input_as_handled()
+ open_override_popup()
+ elif (EditorInterface.get_script_editor().is_visible_in_tree()):
+ if (tab_cycle_forward_shc.matches_event(event)):
+ get_viewport().set_input_as_handled()
+
+ var new_tab: int = scripts_tab_container.current_tab + 1
+ if (new_tab == scripts_tab_container.get_tab_count()):
+ new_tab = 0
+ scripts_tab_container.current_tab = new_tab
+ elif (tab_cycle_backward_shc.matches_event(event)):
+ get_viewport().set_input_as_handled()
+
+ var new_tab: int = scripts_tab_container.current_tab - 1
+ if (new_tab == -1):
+ new_tab = scripts_tab_container.get_tab_count() - 1
+ scripts_tab_container.current_tab = new_tab
+
+## May cancels the quick search shortcut timer.
+func _input(event: InputEvent) -> void:
+ if (event is InputEventKey):
+ if (!open_quick_search_popup_shc.matches_event(event)):
+ if (quick_open_tween != null):
+ quick_open_tween.kill()
+ quick_open_tween = null
+#endregion
+
+#region Icon, Settings, Shortcut initialization
+## Initializes all plugin icons, while respecting the editor settings.
+func init_icons():
+ engine_func_icon = create_editor_texture(load_rel("icon/engine_func.svg"))
+ func_icon = create_editor_texture(load_rel("icon/func.svg"))
+ func_get_icon = create_editor_texture(load_rel("icon/func_get.svg"))
+ func_set_icon = create_editor_texture(load_rel("icon/func_set.svg"))
+ property_icon = create_editor_texture(load_rel("icon/property.svg"))
+ export_icon = create_editor_texture(load_rel("icon/export.svg"))
+ signal_icon = create_editor_texture(load_rel("icon/signal.svg"))
+ constant_icon = create_editor_texture(load_rel("icon/constant.svg"))
+ class_icon = create_editor_texture(load_rel("icon/class.svg"))
+
+## Initializes all settings.
+## Every setting can be changed while this plugin is active, which will override them.
+func init_settings():
+ is_outline_right = get_setting(OUTLINE_POSITION_RIGHT, is_outline_right)
+ hide_private_members = get_setting(HIDE_PRIVATE_MEMBERS, hide_private_members)
+ is_script_list_visible = get_setting(SCRIPT_LIST_VISIBLE, is_script_list_visible)
+ is_auto_navigate_in_fs = get_setting(AUTO_NAVIGATE_IN_FS, is_auto_navigate_in_fs)
+ is_script_tabs_visible = get_setting(SCRIPT_TABS_VISIBLE, is_script_tabs_visible)
+ is_script_tabs_top = get_setting(SCRIPT_TAB_POSITION_TOP, is_script_tabs_top)
+
+ init_outline_order()
+
+## Initializes the outline type structure and sorts it based off the outline order.
+func init_outline_order():
+ var outline_type: OutlineType = OutlineType.new()
+ outline_type.type_name = ENGINE_FUNCS
+ outline_type.add_to_outline = func(): add_to_outline_if_selected(engine_func_btn,
+ func(): add_to_outline(outline_cache.engine_funcs, engine_func_icon, &"func"))
+ outline_type_order.append(outline_type)
+
+ outline_type = OutlineType.new()
+ outline_type.type_name = FUNCS
+ outline_type.add_to_outline = func(): add_to_outline_if_selected(func_btn,
+ func(): add_to_outline_ext(outline_cache.funcs, get_func_icon, &"func", &"static"))
+ outline_type_order.append(outline_type)
+
+ outline_type = OutlineType.new()
+ outline_type.type_name = SIGNALS
+ outline_type.add_to_outline = func(): add_to_outline_if_selected(signal_btn,
+ func(): add_to_outline(outline_cache.signals, signal_icon, &"signal"))
+ outline_type_order.append(outline_type)
+
+ outline_type = OutlineType.new()
+ outline_type.type_name = EXPORTED
+ outline_type.add_to_outline = func(): add_to_outline_if_selected(export_btn,
+ func(): add_to_outline(outline_cache.exports, export_icon, &"var", &"@export"))
+ outline_type_order.append(outline_type)
+
+ outline_type = OutlineType.new()
+ outline_type.type_name = PROPERTIES
+ outline_type.add_to_outline = func(): add_to_outline_if_selected(property_btn,
+ func(): add_to_outline(outline_cache.properties, property_icon, &"var"))
+ outline_type_order.append(outline_type)
+
+ outline_type = OutlineType.new()
+ outline_type.type_name = CLASSES
+ outline_type.add_to_outline = func(): add_to_outline_if_selected(class_btn,
+ func(): add_to_outline(outline_cache.classes, class_icon, &"class"))
+ outline_type_order.append(outline_type)
+
+ outline_type = OutlineType.new()
+ outline_type.type_name = CONSTANTS
+ outline_type.add_to_outline = func(): add_to_outline_if_selected(constant_btn,
+ func(): add_to_outline(outline_cache.constants, constant_icon, &"const", &"enum"))
+ outline_type_order.append(outline_type)
+
+ update_outline_order()
+
+func update_outline_button_order():
+ var all_buttons: Array[Button] = [engine_func_btn, func_btn, signal_btn, export_btn, property_btn, class_btn, constant_btn]
+ all_buttons.sort_custom(sort_buttons_by_outline_order)
+
+ for btn: Button in all_buttons:
+ if (btn.get_parent() != null):
+ filter_box.remove_child(btn)
+
+ for btn: Button in all_buttons:
+ filter_box.add_child(btn)
+
+func update_outline_order():
+ var editor_settings: EditorSettings = get_editor_settings()
+ if (editor_settings.has_setting(OUTLINE_ORDER)):
+ outline_order = editor_settings.get_setting(OUTLINE_ORDER)
+ else:
+ outline_order = [ENGINE_FUNCS, FUNCS, SIGNALS, EXPORTED, PROPERTIES, CONSTANTS, CLASSES]
+ editor_settings.set_setting(OUTLINE_ORDER, outline_order)
+
+ outline_type_order.sort_custom(sort_types_by_outline_order)
+
+func sort_buttons_by_outline_order(btn1: Button, btn2: Button) -> bool:
+ return sort_by_outline_order(btn1.tooltip_text, btn2.tooltip_text)
+
+func sort_types_by_outline_order(type1: OutlineType, type2: OutlineType) -> bool:
+ return sort_by_outline_order(type1.type_name, type2.type_name)
+
+func sort_by_outline_order(outline_type1: StringName, outline_type2: StringName) -> bool:
+ return outline_order.find(outline_type1) < outline_order.find(outline_type2)
+
+## Initializes all shortcuts.
+## Every shortcut can be changed while this plugin is active, which will override them.
+func init_shortcuts():
+ var editor_settings: EditorSettings = get_editor_settings()
+ if (!editor_settings.has_setting(OPEN_OUTLINE_POPUP)):
+ var shortcut: Shortcut = Shortcut.new()
+ var event: InputEventKey = InputEventKey.new()
+ event.device = -1
+ event.command_or_control_autoremap = true
+ event.keycode = KEY_O
+
+ shortcut.events = [ event ]
+ editor_settings.set_setting(OPEN_OUTLINE_POPUP, shortcut)
+
+ if (!editor_settings.has_setting(OPEN_SCRIPTS_POPUP)):
+ var shortcut: Shortcut = Shortcut.new()
+ var event: InputEventKey = InputEventKey.new()
+ event.device = -1
+ event.command_or_control_autoremap = true
+ event.keycode = KEY_U
+
+ shortcut.events = [ event ]
+ editor_settings.set_setting(OPEN_SCRIPTS_POPUP, shortcut)
+
+ if (!editor_settings.has_setting(OPEN_QUICK_SEARCH_POPUP)):
+ var shortcut: Shortcut = Shortcut.new()
+ var event: InputEventKey = InputEventKey.new()
+ event.device = -1
+ event.keycode = KEY_SHIFT
+
+ shortcut.events = [ event ]
+ editor_settings.set_setting(OPEN_QUICK_SEARCH_POPUP, shortcut)
+
+ if (!editor_settings.has_setting(OPEN_OVERRIDE_POPUP)):
+ var shortcut: Shortcut = Shortcut.new()
+ var event: InputEventKey = InputEventKey.new()
+ event.device = -1
+ event.keycode = KEY_INSERT
+ event.alt_pressed = true
+
+ shortcut.events = [ event ]
+ editor_settings.set_setting(OPEN_OVERRIDE_POPUP, shortcut)
+
+ if (!editor_settings.has_setting(TAB_CYCLE_FORWARD)):
+ var shortcut: Shortcut = Shortcut.new()
+ var event: InputEventKey = InputEventKey.new()
+ event.device = -1
+ event.keycode = KEY_TAB
+ event.ctrl_pressed = true
+
+ shortcut.events = [ event ]
+ editor_settings.set_setting(TAB_CYCLE_FORWARD, shortcut)
+
+ if (!editor_settings.has_setting(TAB_CYCLE_BACKWARD)):
+ var shortcut: Shortcut = Shortcut.new()
+ var event: InputEventKey = InputEventKey.new()
+ event.device = -1
+ event.keycode = KEY_TAB
+ event.shift_pressed = true
+ event.ctrl_pressed = true
+
+ shortcut.events = [ event ]
+ editor_settings.set_setting(TAB_CYCLE_BACKWARD, shortcut)
+
+ open_outline_popup_shc = editor_settings.get_setting(OPEN_OUTLINE_POPUP)
+ open_scripts_popup_shc = editor_settings.get_setting(OPEN_SCRIPTS_POPUP)
+ open_quick_search_popup_shc = editor_settings.get_setting(OPEN_QUICK_SEARCH_POPUP)
+ open_override_popup_shc = editor_settings.get_setting(OPEN_OVERRIDE_POPUP)
+ tab_cycle_forward_shc = editor_settings.get_setting(TAB_CYCLE_FORWARD)
+ tab_cycle_backward_shc = editor_settings.get_setting(TAB_CYCLE_BACKWARD)
+#endregion
+
+## Schedules an update on the next frame
+func schedule_update():
+ set_process(true)
+
+## Updates all parts of the editor that are needed to be synchronized with the file system change.
+func update_editor():
+ update_script_text_filter()
+
+ if (sync_script_list):
+ if (file_to_navigate != &""):
+ EditorInterface.get_file_system_dock().navigate_to_path(file_to_navigate)
+ EditorInterface.get_script_editor().get_current_editor().get_base_editor().grab_focus()
+ file_to_navigate = &""
+
+ sync_tab_with_script_list()
+ sync_script_list = false
+
+ update_tabs()
+ update_outline_cache()
+ update_outline()
+
+func add_to_outline_if_selected(btn: Button, action: Callable):
+ if (btn.button_pressed):
+ action.call()
+
+func open_quick_search_popup():
+ if (quick_open_popup == null):
+ quick_open_popup = load_rel("quickopen/quick_open_panel.tscn").instantiate()
+ quick_open_popup.plugin = self
+
+ if (quick_open_popup.get_parent() != null):
+ quick_open_popup.get_parent().remove_child(quick_open_popup)
+ quick_open_popup.popup_exclusive_on_parent(EditorInterface.get_script_editor(), get_center_editor_rect())
+
+func open_override_popup():
+ var script: Script = get_current_script()
+ if (!script):
+ return
+
+ if (override_popup == null):
+ override_popup = load_rel("override/override_panel.tscn").instantiate()
+ override_popup.plugin = self
+
+ if (override_popup.get_parent() != null):
+ override_popup.get_parent().remove_child(override_popup)
+ override_popup.popup_exclusive_on_parent(EditorInterface.get_script_editor(), get_center_editor_rect())
+
+func hide_scripts_popup():
+ if (scripts_popup != null && scripts_popup.visible):
+ scripts_popup.hide.call_deferred()
+
+func create_set_scripts_popup():
+ panel_container = scripts_item_list.get_parent().get_parent()
+
+ scripts_popup = PopupPanel.new()
+ scripts_popup.popup_hide.connect(restore_scripts_list)
+
+ # Need to be inside the tree, so it can be shown as popup for the tab container.
+ var script_editor: ScriptEditor = EditorInterface.get_script_editor()
+ script_editor.add_child(scripts_popup)
+
+ scripts_tab_container.pre_popup_pressed.connect(prepare_scripts_popup)
+ scripts_tab_container.set_popup(scripts_popup)
+
+func prepare_scripts_popup():
+ scripts_popup.size.x = outline.size.x
+ scripts_popup.size.y = panel_container.size.y - scripts_tab_bar.size.y
+
+ scripts_item_list.get_parent().reparent(scripts_popup)
+ scripts_item_list.get_parent().visible = true
+
+ script_filter_txt.grab_focus()
+
+func restore_scripts_list():
+ script_filter_txt.text = &""
+
+ update_script_list_visibility()
+
+ scripts_item_list.get_parent().reparent(panel_container)
+ panel_container.move_child(scripts_item_list.get_parent(), 0)
+
+func navigate_on_list(event: InputEvent, list: ItemList, submit: Callable):
+ if (event.is_action_pressed(&"ui_text_submit")):
+ var index: int = get_list_index(list)
+ if (index == -1):
+ return
+
+ submit.call(index)
+ list.accept_event()
+ elif (event.is_action_pressed(&"ui_down", true)):
+ var index: int = get_list_index(list)
+ if (index == list.item_count - 1):
+ return
+
+ navigate_list(list, index, 1)
+ elif (event.is_action_pressed(&"ui_up", true)):
+ var index: int = get_list_index(list)
+ if (index <= 0):
+ return
+
+ navigate_list(list, index, -1)
+ elif (event.is_action_pressed(&"ui_page_down", true)):
+ var index: int = get_list_index(list)
+ if (index == list.item_count - 1):
+ return
+
+ navigate_list(list, index, 5)
+ elif (event.is_action_pressed(&"ui_page_up", true)):
+ var index: int = get_list_index(list)
+ if (index <= 0):
+ return
+
+ navigate_list(list, index, -5)
+ elif (event is InputEventKey && list.item_count > 0 && !list.is_anything_selected()):
+ list.select(0)
+
+func get_list_index(list: ItemList) -> int:
+ var items: PackedInt32Array = list.get_selected_items()
+
+ if (items.is_empty()):
+ return -1
+
+ return items[0]
+
+func navigate_list(list: ItemList, index: int, amount: int):
+ index = clamp(index + amount, 0, list.item_count - 1)
+
+ list.select(index)
+ list.ensure_current_is_visible()
+ list.accept_event()
+
+func get_center_editor_rect() -> Rect2i:
+ var script_editor: ScriptEditor = EditorInterface.get_script_editor()
+
+ var size: Vector2i = Vector2i(400, 500)
+ var x: int
+ var y: int
+
+ if (script_editor.get_parent().get_parent() is Window):
+ # Floating editor.
+ var window: Window = script_editor.get_parent().get_parent()
+ var window_rect: Rect2 = window.get_visible_rect()
+
+ x = window_rect.size.x / 2 - size.x / 2
+ y = window_rect.size.y / 2 - size.y / 2
+ else:
+ x = script_editor.global_position.x + script_editor.size.x / 2 - size.x / 2
+ y = script_editor.global_position.y + script_editor.size.y / 2 - size.y / 2
+
+ return Rect2i(Vector2i(x, y), size)
+
+func open_outline_popup():
+ var button_flags: Array[bool] = []
+ for child: Node in filter_box.get_children():
+ var btn: Button = child
+ button_flags.append(btn.button_pressed)
+
+ btn.set_pressed_no_signal(true)
+
+ var old_text: String = outline_filter_txt.text
+ outline_filter_txt.text = &""
+
+ if (outline_popup == null):
+ outline_popup = PopupPanel.new()
+
+ var outline_initially_closed: bool = !outline_container.visible
+ if (outline_initially_closed):
+ outline_container.visible = true
+
+ outline_container.reparent(outline_popup)
+
+ outline_popup.popup_hide.connect(on_outline_popup_hidden.bind(outline_initially_closed, old_text, button_flags))
+
+ if (outline_popup.get_parent() != null):
+ outline_popup.get_parent().remove_child(outline_popup)
+ outline_popup.popup_exclusive_on_parent(EditorInterface.get_script_editor(), get_center_editor_rect())
+
+ update_outline()
+ outline_filter_txt.grab_focus()
+
+func on_outline_popup_hidden(outline_initially_closed: bool, old_text: String, button_flags: Array[bool]):
+ outline_popup.popup_hide.disconnect(on_outline_popup_hidden)
+
+ if outline_initially_closed:
+ outline_container.visible = false
+
+ outline_container.reparent(split_container)
+ if (!is_outline_right):
+ split_container.move_child(outline_container, 0)
+
+ outline_filter_txt.text = old_text
+
+ var index: int = 0
+ for flag: bool in button_flags:
+ var btn: Button = filter_box.get_child(index)
+ btn.set_pressed_no_signal(flag)
+ index += 1
+
+ update_outline()
+
+func open_scripts_popup():
+ scripts_item_list.get_parent().reparent(scripts_popup)
+ scripts_item_list.get_parent().visible = true
+
+ if (scripts_popup.get_parent() != null):
+ scripts_popup.get_parent().remove_child(scripts_popup)
+ scripts_popup.popup_exclusive_on_parent(EditorInterface.get_script_editor(), get_center_editor_rect())
+
+ script_filter_txt.grab_focus()
+
+## Removes the script filter text and emits the signal so that the tabs stay
+## and we do not break anything there.
+func update_script_text_filter():
+ if (script_filter_txt.text != &""):
+ script_filter_txt.text = &""
+ script_filter_txt.text_changed.emit(&"")
+
+func get_current_script() -> Script:
+ var script_editor: ScriptEditor = EditorInterface.get_script_editor()
+ return script_editor.get_current_script()
+
+func select_script(selected_idx: int):
+ hide_scripts_popup()
+
+ scripts_item_list.item_selected.emit(selected_idx)
+
+func scroll_outline(selected_idx: int):
+ if (outline_popup != null && outline_popup.visible):
+ outline_popup.hide.call_deferred()
+
+ var script: Script = get_current_script()
+ if (!script):
+ return
+
+ var text: String = outline.get_item_text(selected_idx)
+ var metadata: Dictionary[StringName, StringName] = outline.get_item_metadata(selected_idx)
+ var modifier: StringName = metadata[&"modifier"]
+ var type: StringName = metadata[&"type"]
+
+ var type_with_text: String = type + " " + text
+ if (type == &"func"):
+ type_with_text = type_with_text + "("
+
+ var source_code: String = script.get_source_code()
+ var lines: PackedStringArray = source_code.split("\n")
+
+ var index: int = 0
+ for line: String in lines:
+ # Easy case, like 'var abc'
+ if (line.begins_with(type_with_text)):
+ goto_line(index)
+ return
+
+ # We have an modifier, e.g. 'static'
+ if (modifier != &"" && line.begins_with(modifier)):
+ if (line.begins_with(modifier + " " + type_with_text)):
+ goto_line(index)
+ return
+ # Special case: An 'enum' is treated different.
+ elif (modifier == &"enum" && line.contains("enum " + text)):
+ goto_line(index)
+ return
+
+ # Hard case, probably something like '@onready var abc'
+ if (type == &"var" && line.contains(type_with_text)):
+ goto_line(index)
+ return
+
+ index += 1
+
+ push_error(type_with_text + " or " + modifier + " not found in source code")
+
+func goto_line(index: int):
+ var script_editor: ScriptEditor = EditorInterface.get_script_editor()
+ script_editor.goto_line(index)
+
+ var code_edit: CodeEdit = script_editor.get_current_editor().get_base_editor()
+ code_edit.set_caret_line(index)
+ code_edit.set_v_scroll(index)
+ code_edit.set_caret_column(code_edit.get_line(index).length())
+ code_edit.set_h_scroll(0)
+
+ code_edit.grab_focus()
+
+func create_filter_btn(icon: Texture2D, title: StringName) -> Button:
+ var btn: Button = Button.new()
+ btn.toggle_mode = true
+ btn.icon = icon
+ btn.icon_alignment = HORIZONTAL_ALIGNMENT_CENTER
+ btn.tooltip_text = title
+
+ var property: StringName = SCRIPT_IDE + title.to_lower().replace(" ", "_")
+ btn.set_meta(&"property", property)
+ btn.button_pressed = get_setting(property, true)
+
+ btn.toggled.connect(on_filter_button_pressed.bind(btn))
+ btn.gui_input.connect(on_right_click.bind(btn))
+
+ btn.add_theme_color_override(&"icon_pressed_color", Color.WHITE)
+ btn.add_theme_color_override(&"icon_hover_color", Color.WHITE)
+ btn.add_theme_color_override(&"icon_hover_pressed_color", Color.WHITE)
+ btn.add_theme_color_override(&"icon_focus_color", Color.WHITE)
+
+ var style_box_empty: StyleBoxEmpty = StyleBoxEmpty.new()
+ btn.add_theme_stylebox_override(&"normal", style_box_empty)
+
+ var style_box: StyleBoxFlat = StyleBoxFlat.new()
+ style_box.draw_center = false
+ style_box.border_color = get_editor_accent_color()
+ style_box.set_border_width_all(1 * get_editor_scale())
+ style_box.set_corner_radius_all(get_editor_corner_radius() * get_editor_scale())
+ btn.add_theme_stylebox_override(&"focus", style_box)
+
+ return btn
+
+func on_right_click(event: InputEvent, btn: Button):
+ if !(event is InputEventMouseButton):
+ return
+
+ var mouse_event: InputEventMouseButton = event
+
+ if (!mouse_event.is_pressed() || mouse_event.button_index != MOUSE_BUTTON_RIGHT):
+ return
+
+ btn.button_pressed = true
+
+ var pressed_state: bool = false
+ for child: Node in filter_box.get_children():
+ var other_btn: Button = child
+
+ if (btn != other_btn):
+ pressed_state = pressed_state || other_btn.button_pressed
+
+ for child: Node in filter_box.get_children():
+ var other_btn: Button = child
+
+ if (btn != other_btn):
+ other_btn.button_pressed = !pressed_state
+
+ outline_filter_txt.grab_focus()
+
+func on_filter_button_pressed(pressed: bool, btn: Button):
+ set_setting(btn.get_meta(&"property"), pressed)
+
+ update_outline()
+ outline_filter_txt.grab_focus()
+
+func update_outline_position():
+ if (is_outline_right):
+ # Try to restore the previous split offset.
+ var split_offset: float = split_container.get_child(1).size.x
+ split_container.split_offset = split_offset
+ split_container.move_child(outline_container, 1)
+ else:
+ split_container.move_child(outline_container, 0)
+
+func update_script_list_visibility():
+ scripts_item_list.get_parent().visible = is_script_list_visible
+
+func create_editor_texture(texture: Texture2D) -> Texture2D:
+ var image: Image = texture.get_image().duplicate()
+ image.adjust_bcs(1.0, 1.0, get_editor_icon_saturation())
+
+ return ImageTexture.create_from_image(image)
+
+func sync_settings():
+ if (suppress_settings_sync):
+ return
+
+ var changed_settings: PackedStringArray = get_editor_settings().get_changed_settings()
+ for setting: String in changed_settings:
+ if (setting == "interface/theme/icon_saturation"):
+ init_icons()
+ engine_func_btn.icon = engine_func_icon
+ func_btn.icon = func_icon
+ signal_btn.icon = signal_icon
+ export_btn.icon = export_icon
+ property_btn.icon = property_icon
+ class_btn.icon = class_icon
+ constant_btn.icon = constant_icon
+ update_outline()
+ continue
+
+ if (!setting.begins_with(SCRIPT_IDE)):
+ continue
+
+ if (setting == OUTLINE_POSITION_RIGHT):
+ var new_outline_right: bool = get_setting(OUTLINE_POSITION_RIGHT, is_outline_right)
+ if (new_outline_right != is_outline_right):
+ is_outline_right = new_outline_right
+
+ update_outline_position()
+ elif (setting == OUTLINE_ORDER):
+ update_outline_order()
+ update_outline_button_order()
+ update_outline()
+ elif (setting == HIDE_PRIVATE_MEMBERS):
+ var new_hide_private_members: bool = get_setting(HIDE_PRIVATE_MEMBERS, hide_private_members)
+ if (new_hide_private_members != hide_private_members):
+ hide_private_members = new_hide_private_members
+
+ update_outline_cache()
+ update_outline()
+ elif (setting == SCRIPT_LIST_VISIBLE):
+ var new_script_list_visible: bool = get_setting(SCRIPT_LIST_VISIBLE, is_script_list_visible)
+ if (new_script_list_visible != is_script_list_visible):
+ is_script_list_visible = new_script_list_visible
+
+ update_script_list_visibility()
+ elif (setting == SCRIPT_TABS_VISIBLE):
+ var new_script_tabs_visible: bool = get_setting(SCRIPT_TABS_VISIBLE, is_script_tabs_visible)
+ if (new_script_tabs_visible != is_script_tabs_visible):
+ is_script_tabs_visible = new_script_tabs_visible
+
+ scripts_tab_container.tabs_visible = is_script_tabs_visible
+ elif (setting == SCRIPT_TAB_POSITION_TOP):
+ var new_script_tabs_top: bool = get_setting(SCRIPT_TAB_POSITION_TOP, is_script_tabs_top)
+ if (new_script_tabs_top != is_script_tabs_top):
+ is_script_tabs_top = new_script_tabs_top
+
+ update_tabs_position()
+ elif (setting == AUTO_NAVIGATE_IN_FS):
+ is_auto_navigate_in_fs = get_setting(AUTO_NAVIGATE_IN_FS, is_auto_navigate_in_fs)
+ elif (setting == OPEN_OUTLINE_POPUP):
+ open_outline_popup_shc = get_shortcut(OPEN_OUTLINE_POPUP)
+ elif (setting == OPEN_SCRIPTS_POPUP):
+ open_scripts_popup_shc = get_shortcut(OPEN_SCRIPTS_POPUP)
+ elif (setting == OPEN_OVERRIDE_POPUP):
+ open_override_popup_shc = get_shortcut(OPEN_OVERRIDE_POPUP)
+ elif (setting == TAB_CYCLE_FORWARD):
+ tab_cycle_forward_shc = get_shortcut(TAB_CYCLE_FORWARD)
+ elif (setting == TAB_CYCLE_BACKWARD):
+ tab_cycle_backward_shc = get_shortcut(TAB_CYCLE_BACKWARD)
+ else:
+ # Update filter buttons.
+ for btn_node: Node in filter_box.get_children():
+ var btn: Button = btn_node
+ var property: StringName = btn.get_meta(&"property")
+
+ btn.button_pressed = get_setting(property, btn.button_pressed)
+
+func get_setting(property: StringName, alt: bool) -> bool:
+ var editor_settings: EditorSettings = get_editor_settings()
+ if (editor_settings.has_setting(property)):
+ return editor_settings.get_setting(property)
+ else:
+ editor_settings.set_setting(property, alt)
+ return alt
+
+func set_setting(property: StringName, value: bool):
+ var editor_settings: EditorSettings = get_editor_settings()
+
+ suppress_settings_sync = true
+ editor_settings.set_setting(property, value)
+ suppress_settings_sync = false
+
+func get_shortcut(property: StringName) -> Shortcut:
+ return get_editor_settings().get_setting(property)
+
+func on_tab_changed(index: int):
+ selected_tab = index;
+
+ if (old_script_editor_base != null):
+ old_script_editor_base.edited_script_changed.disconnect(update_selected_tab)
+ old_script_editor_base = null
+
+ var script_editor: ScriptEditor = EditorInterface.get_script_editor()
+ var script_editor_base: ScriptEditorBase = script_editor.get_current_editor()
+
+ if (script_editor_base != null):
+ script_editor_base.edited_script_changed.connect(update_selected_tab)
+
+ old_script_editor_base = script_editor_base
+
+ sync_script_list = true
+
+ if (is_auto_navigate_in_fs && script_editor.get_current_script() != null):
+ var file: String = script_editor.get_current_script().get_path()
+
+ if (file.contains(BUILT_IN_SCRIPT)):
+ # We navigate to the scene in case of a built-in script.
+ file = file.get_slice(BUILT_IN_SCRIPT, 0)
+
+ file_to_navigate = file
+ else:
+ file_to_navigate = &""
+
+ schedule_update()
+
+func update_selected_tab():
+ if (selected_tab == -1):
+ return
+
+ if (scripts_item_list.item_count == 0):
+ return
+
+ update_tab(selected_tab)
+
+func update_tabs():
+ for index: int in scripts_tab_container.get_tab_count():
+ update_tab(index)
+
+func update_tab(index: int):
+ scripts_tab_container.set_tab_title(index, scripts_item_list.get_item_text(index))
+ scripts_tab_container.set_tab_icon(index, scripts_item_list.get_item_icon(index))
+ scripts_tab_container.set_tab_tooltip(index, scripts_item_list.get_item_tooltip(index))
+
+func update_tabs_position():
+ if (is_script_tabs_top):
+ scripts_tab_container.tabs_position = TabContainer.POSITION_TOP
+ else:
+ scripts_tab_container.tabs_position = TabContainer.POSITION_BOTTOM
+
+func update_keywords(script: Script):
+ if (script == null):
+ return
+
+ var new_script_type: StringName = script.get_instance_base_type()
+ if (old_script_type != new_script_type):
+ old_script_type = new_script_type
+
+ keywords.clear()
+ keywords["_static_init"] = true
+ register_virtual_methods(new_script_type)
+
+func register_virtual_methods(clazz: String):
+ for method: Dictionary in ClassDB.class_get_method_list(clazz):
+ if (method[&"flags"] & METHOD_FLAG_VIRTUAL > 0):
+ keywords[method[&"name"]] = true
+
+func update_outline_cache():
+ outline_cache = null
+
+ var script: Script = get_current_script()
+ if (!script):
+ return
+
+ update_keywords(script)
+
+ # Check if built-in script. In this case we need to duplicate it for whatever reason.
+ if (script.get_path().contains(BUILT_IN_SCRIPT)):
+ script = script.duplicate()
+
+ outline_cache = OutlineCache.new()
+
+ # Collect all script members.
+ for_each_script_member(script, func(array: Array[String], item: String): array.append(item))
+
+ # Remove script members that only exist in the base script (which includes the base of the base etc.).
+ # Note: The method that only collects script members without including the base script(s)
+ # is not exposed to GDScript.
+ var base_script: Script = script.get_base_script()
+ if (base_script != null):
+ for_each_script_member(base_script, func(array: Array[String], item: String): array.erase(item))
+
+func for_each_script_member(script: Script, consumer: Callable):
+ # Functions / Methods
+ for dict: Dictionary in script.get_script_method_list():
+ var func_name: String = dict[&"name"]
+
+ if (keywords.has(func_name)):
+ consumer.call(outline_cache.engine_funcs, func_name)
+ else:
+ if hide_private_members && func_name.begins_with(UNDERSCORE):
+ continue
+
+ # Inline getter/setter will normally be shown as '@...getter', '@...setter'.
+ # Since we already show the variable itself, we will skip those.
+ if (func_name.begins_with(INLINE)):
+ continue
+
+ consumer.call(outline_cache.funcs, func_name)
+
+ # Properties / Exported variables
+ for dict: Dictionary in script.get_script_property_list():
+ var property: String = dict[&"name"]
+ if hide_private_members && property.begins_with(UNDERSCORE):
+ continue
+
+ var usage: int = dict[&"usage"]
+
+ if (usage & PROPERTY_USAGE_SCRIPT_VARIABLE):
+ if (usage & PROPERTY_USAGE_STORAGE && usage & PROPERTY_USAGE_EDITOR):
+ consumer.call(outline_cache.exports, property)
+ else:
+ consumer.call(outline_cache.properties, property)
+
+ # Static variables (are separated for whatever reason)
+ for dict: Dictionary in script.get_property_list():
+ var property: String = dict[&"name"]
+ if hide_private_members && property.begins_with(UNDERSCORE):
+ continue
+
+ var usage: int = dict[&"usage"]
+
+ if (usage & PROPERTY_USAGE_SCRIPT_VARIABLE):
+ consumer.call(outline_cache.properties, property)
+
+ # Signals
+ for dict: Dictionary in script.get_script_signal_list():
+ var signal_name: String = dict[&"name"]
+
+ consumer.call(outline_cache.signals, signal_name)
+
+ # Constants / Classes
+ for name_key: String in script.get_script_constant_map():
+ if hide_private_members && name_key.begins_with(UNDERSCORE):
+ continue
+
+ var object: Variant = script.get_script_constant_map().get(name_key)
+ # Inner classes have no source code, while a const of type GDScript has.
+ if (object is GDScript && !object.has_source_code()):
+ consumer.call(outline_cache.classes, name_key)
+ else:
+ consumer.call(outline_cache.constants, name_key)
+
+func update_outline():
+ outline.clear()
+
+ if (outline_cache == null):
+ return
+
+ for outline_type: OutlineType in outline_type_order:
+ outline_type.add_to_outline.call()
+
+func add_to_outline(items: Array[String], icon: Texture2D, type: StringName, modifier: StringName = &""):
+ add_to_outline_ext(items, func(str: String): return icon, type, modifier)
+
+func add_to_outline_ext(items: Array[String], icon_callable: Callable, type: StringName, modifier: StringName = &""):
+ var text: String = outline_filter_txt.get_text()
+
+ if (is_sorted()):
+ items = items.duplicate()
+ items.sort_custom(func(str1: String, str2: String): return str1.naturalnocasecmp_to(str2) < 0)
+
+ for item: String in items:
+ if (text.is_empty() || text.is_subsequence_ofn(item)):
+ var icon: Texture2D = icon_callable.call(item)
+ outline.add_item(item, icon, true)
+
+ var dict: Dictionary[StringName, StringName] = {
+ &"type": type,
+ &"modifier": modifier
+ }
+ outline.set_item_metadata(outline.item_count - 1, dict)
+
+func get_func_icon(func_name: String) -> Texture2D:
+ var icon: Texture2D = func_icon
+ if (func_name.begins_with(GETTER)):
+ icon = func_get_icon
+ elif (func_name.begins_with(SETTER)):
+ icon = func_set_icon
+
+ return icon
+
+func sync_tab_with_script_list():
+ # For some reason the selected tab is wrong. Looks like a Godot bug.
+ if (selected_tab >= scripts_item_list.item_count):
+ selected_tab = scripts_tab_bar.current_tab
+
+ # Hide filter and outline for non .gd scripts.
+ var is_script: bool = get_current_script() != null
+ filter_box.visible = is_script
+ outline.visible = is_script
+
+ # Sync with script item list.
+ if (selected_tab != -1 && scripts_item_list.item_count > 0 && !scripts_item_list.is_selected(selected_tab)):
+ scripts_item_list.select(selected_tab)
+ scripts_item_list.item_selected.emit(selected_tab)
+
+ scripts_item_list.ensure_current_is_visible()
+
+func on_tab_bar_mouse_exited():
+ last_tab_hovered = -1
+
+func on_tab_hovered(idx: int):
+ last_tab_hovered = idx
+
+func on_tab_bar_gui_input(event: InputEvent):
+ if (last_tab_hovered == -1):
+ return
+
+ if (event is InputEventMouseButton):
+ if event.is_pressed() and event.button_index == MOUSE_BUTTON_MIDDLE:
+ update_script_text_filter()
+ simulate_item_clicked(last_tab_hovered, MOUSE_BUTTON_MIDDLE)
+
+ if (last_tab_hovered >= scripts_tab_bar.tab_count - 1):
+ last_tab_hovered = -1
+
+func on_active_tab_rearranged(idx_to: int):
+ var control: Control = scripts_tab_container.get_tab_control(selected_tab)
+ if (!control):
+ return
+
+ scripts_tab_container.move_child(control, idx_to)
+ scripts_tab_container.current_tab = scripts_tab_container.current_tab
+ selected_tab = scripts_tab_container.current_tab
+
+func get_res_path(idx: int) -> String:
+ var tab_control: Control = scripts_tab_container.get_tab_control(idx)
+ if (tab_control == null):
+ return ''
+
+ var path_var: Variant = tab_control.get(&"metadata/_edit_res_path")
+ if (path_var == null):
+ return ''
+
+ return path_var
+
+func on_tab_rmb(tab_idx: int):
+ update_script_text_filter()
+ simulate_item_clicked(tab_idx, MOUSE_BUTTON_RIGHT)
+
+func on_tab_close(tab_idx: int):
+ update_script_text_filter()
+ simulate_item_clicked(tab_idx, MOUSE_BUTTON_MIDDLE)
+
+func simulate_item_clicked(tab_idx: int, mouse_idx: int):
+ scripts_item_list.item_clicked.emit(tab_idx, scripts_item_list.get_local_mouse_position(), mouse_idx)
+
+func get_editor_scale() -> float:
+ return EditorInterface.get_editor_scale()
+
+func get_editor_corner_radius() -> int:
+ return EditorInterface.get_editor_settings().get_setting("interface/theme/corner_radius")
+
+func get_editor_accent_color() -> Color:
+ return EditorInterface.get_editor_settings().get_setting("interface/theme/accent_color")
+
+func get_editor_icon_saturation() -> float:
+ return EditorInterface.get_editor_settings().get_setting("interface/theme/icon_saturation")
+
+func is_sorted() -> bool:
+ return get_editor_settings().get_setting("text_editor/script_list/sort_members_outline_alphabetically")
+
+func get_editor_settings() -> EditorSettings:
+ return EditorInterface.get_editor_settings()
+
+func load_rel(path: String) -> Variant:
+ var script_path: String = get_script().get_path().get_base_dir()
+ return load(script_path.path_join(path))
+
+static func find_or_null(arr: Array[Node], index: int = 0) -> Node:
+ if (arr.is_empty()):
+ push_error("""Node that is needed for Script-IDE not found.
+Plugin will not work correctly.
+This might be due to some other plugins or changes in the Engine.
+Please report this to Script-IDE, so we can figure out a fix.""")
+ return null
+ return arr[index]
+
+## Cache for everything inside we collected to show in the Outline.
+class OutlineCache:
+ var classes: Array[String] = []
+ var constants: Array[String] = []
+ var signals: Array[String] = []
+ var exports: Array[String] = []
+ var properties: Array[String] = []
+ var funcs: Array[String] = []
+ var engine_funcs: Array[String] = []
+
+## Outline type for a concrete button with their items in the Outline.
+class OutlineType:
+ var type_name: StringName
+ var add_to_outline: Callable
+
+## Contains everything we modify on the Tab Control. Used to save and restore the behaviour
+## to keep the Engine in a clean state when the plugin is disabled.
+class TabStateCache:
+ var tabs_visible: bool
+ var drag_to_rearrange_enabled: bool
+ var auto_translate_mode_state: Node.AutoTranslateMode
+ var tab_bar_drag_to_rearrange_enabled: bool
+ var tab_close_display_policy: TabBar.CloseButtonDisplayPolicy
+ var select_with_rmb: bool
+
+ func save(tab_container: TabContainer, tab_bar: TabBar):
+ if (tab_container != null):
+ tabs_visible = tab_container.tabs_visible
+ drag_to_rearrange_enabled = tab_container.drag_to_rearrange_enabled
+ auto_translate_mode_state = tab_container.auto_translate_mode
+ if (tab_bar != null):
+ tab_bar_drag_to_rearrange_enabled = tab_bar.drag_to_rearrange_enabled
+ tab_close_display_policy = tab_bar.tab_close_display_policy
+ select_with_rmb = tab_bar.select_with_rmb
+
+ func restore(tab_container: TabContainer, tab_bar: TabBar):
+ if (tab_container != null):
+ tab_container.tabs_visible = tabs_visible
+ tab_container.drag_to_rearrange_enabled = drag_to_rearrange_enabled
+ tab_container.auto_translate_mode = auto_translate_mode_state
+ if (tab_bar != null):
+ tab_bar.drag_to_rearrange_enabled = drag_to_rearrange_enabled
+ tab_bar.tab_close_display_policy = tab_close_display_policy
+ tab_bar.select_with_rmb = select_with_rmb
diff --git a/demo/addons/script-ide/plugin.gd.uid b/demo/addons/script-ide/plugin.gd.uid
new file mode 100644
index 0000000..5ef9e73
--- /dev/null
+++ b/demo/addons/script-ide/plugin.gd.uid
@@ -0,0 +1 @@
+uid://baqmg1xsni4de
diff --git a/demo/addons/script-ide/quickopen/quick_open_panel.gd b/demo/addons/script-ide/quickopen/quick_open_panel.gd
new file mode 100644
index 0000000..b744f0b
--- /dev/null
+++ b/demo/addons/script-ide/quickopen/quick_open_panel.gd
@@ -0,0 +1,234 @@
+## Quick open panel to quickly access all resources that are in the project.
+## Initially shows all resources, but can be changed to more specific resources
+## or filtered down with text.
+@tool
+extends PopupPanel
+
+const ADDONS: StringName = &"res://addons"
+const SEPARATOR: StringName = &" - "
+const STRUCTURE_START: StringName = &"("
+const STRUCTURE_END: StringName = &")"
+
+#region UI
+@onready var filter_bar: TabBar = %FilterBar
+@onready var search_option_btn: OptionButton = %SearchOptionBtn
+@onready var filter_txt: LineEdit = %FilterTxt
+@onready var files_list: ItemList = %FilesList
+#endregion
+
+var plugin: EditorPlugin
+
+var scenes: Array[FileData]
+var scripts: Array[FileData]
+var resources: Array[FileData]
+var others: Array[FileData]
+
+# For performance and memory considerations, we add all files into one reusable array.
+var all_files: Array[FileData]
+
+var is_rebuild_cache: bool = true
+
+#region Plugin and Shortcut processing
+func _ready() -> void:
+ files_list.item_selected.connect(open_file)
+ search_option_btn.item_selected.connect(rebuild_cache_and_ui.unbind(1))
+ filter_txt.text_changed.connect(fill_files_list.unbind(1))
+
+ filter_bar.tab_changed.connect(change_fill_files_list.unbind(1))
+
+ about_to_popup.connect(on_show)
+
+ var file_system: EditorFileSystem = EditorInterface.get_resource_filesystem()
+ file_system.filesystem_changed.connect(schedule_rebuild)
+
+ if (plugin != null):
+ filter_txt.gui_input.connect(plugin.navigate_on_list.bind(files_list, open_file))
+
+func _shortcut_input(event: InputEvent) -> void:
+ if (!event.is_pressed() || event.is_echo()):
+ return
+
+ if (plugin.tab_cycle_forward_shc.matches_event(event)):
+ get_viewport().set_input_as_handled()
+
+ var new_tab: int = filter_bar.current_tab + 1
+ if (new_tab == filter_bar.get_tab_count()):
+ new_tab = 0
+ filter_bar.current_tab = new_tab
+ elif (plugin.tab_cycle_backward_shc.matches_event(event)):
+ get_viewport().set_input_as_handled()
+
+ var new_tab: int = filter_bar.current_tab - 1
+ if (new_tab == -1):
+ new_tab = filter_bar.get_tab_count() - 1
+ filter_bar.current_tab = new_tab
+#endregion
+
+func open_file(index: int):
+ hide()
+
+ var file: String = files_list.get_item_metadata(index)
+
+ if (ResourceLoader.exists(file)):
+ var res: Resource = load(file)
+ EditorInterface.edit_resource(res)
+
+ if (res is PackedScene):
+ EditorInterface.open_scene_from_path(file)
+
+func schedule_rebuild():
+ is_rebuild_cache = true
+
+func on_show():
+ if (search_option_btn.selected != 0):
+ search_option_btn.selected = 0
+
+ is_rebuild_cache = true
+
+ var rebuild_ui: bool = false
+ var all_tab_not_pressed: bool = filter_bar.current_tab != 0
+ rebuild_ui = is_rebuild_cache || all_tab_not_pressed
+
+ if (is_rebuild_cache):
+ rebuild_cache()
+
+ if (rebuild_ui):
+ if (all_tab_not_pressed):
+ # Triggers the ui update.
+ filter_bar.current_tab = 0
+ else:
+ fill_files_list()
+
+ filter_txt.select_all()
+ focus_and_select_first()
+
+func rebuild_cache():
+ is_rebuild_cache = false
+
+ all_files.clear()
+ scenes.clear()
+ scripts.clear()
+ resources.clear()
+ others.clear()
+
+ build_file_cache()
+
+func rebuild_cache_and_ui():
+ rebuild_cache()
+ fill_files_list()
+
+ focus_and_select_first()
+
+func focus_and_select_first():
+ filter_txt.grab_focus()
+
+ if (files_list.item_count > 0):
+ files_list.select(0)
+
+func build_file_cache():
+ var dir: EditorFileSystemDirectory = EditorInterface.get_resource_filesystem().get_filesystem()
+ build_file_cache_dir(dir)
+
+ all_files.append_array(scenes)
+ all_files.append_array(scripts)
+ all_files.append_array(resources)
+ all_files.append_array(others)
+
+func build_file_cache_dir(dir: EditorFileSystemDirectory):
+ for index: int in dir.get_subdir_count():
+ build_file_cache_dir(dir.get_subdir(index))
+
+ for index: int in dir.get_file_count():
+ var file: String = dir.get_file_path(index)
+ if (search_option_btn.get_selected_id() == 0 && file.begins_with(ADDONS)):
+ continue
+
+ var last_delimiter: int = file.rfind(&"/")
+
+ var file_name: String = file.substr(last_delimiter + 1)
+ var file_structure: String = &""
+ if (file_name.length() + 6 != file.length()):
+ file_structure = SEPARATOR + STRUCTURE_START + file.substr(6, last_delimiter - 6) + STRUCTURE_END
+
+ var file_data: FileData = FileData.new()
+ file_data.file = file
+ file_data.file_name = file_name
+ file_data.file_name_structure = file_name + file_structure
+ file_data.file_type = dir.get_file_type(index)
+
+ # Needed, as otherwise we have no icon.
+ if (file_data.file_type == &"Resource"):
+ file_data.file_type = &"Object"
+
+ match (file.get_extension()):
+ &"tscn": scenes.append(file_data)
+ &"gd": scripts.append(file_data)
+ &"tres": resources.append(file_data)
+ &"gdshader": resources.append(file_data)
+ _: others.append(file_data)
+
+func change_fill_files_list():
+ fill_files_list()
+
+ focus_and_select_first()
+
+func fill_files_list():
+ files_list.clear()
+
+ if (filter_bar.current_tab == 0):
+ fill_files_list_with(all_files)
+ elif (filter_bar.current_tab == 1):
+ fill_files_list_with(scenes)
+ elif (filter_bar.current_tab == 2):
+ fill_files_list_with(scripts)
+ elif (filter_bar.current_tab == 3):
+ fill_files_list_with(resources)
+ elif (filter_bar.current_tab == 4):
+ fill_files_list_with(others)
+
+func fill_files_list_with(files: Array[FileData]):
+ var filter_text: String = filter_txt.text
+ files.sort_custom(sort_by_filter)
+
+ for file_data: FileData in files:
+ var file: String = file_data.file
+ if (filter_text.is_empty() || filter_text.is_subsequence_ofn(file)):
+ var icon: Texture2D = EditorInterface.get_base_control().get_theme_icon(file_data.file_type, &"EditorIcons")
+
+ files_list.add_item(file_data.file_name_structure, icon)
+ files_list.set_item_metadata(files_list.item_count - 1, file)
+ files_list.set_item_tooltip(files_list.item_count - 1, file)
+
+func sort_by_filter(file_data1: FileData, file_data2: FileData) -> bool:
+ var filter_text: String = filter_txt.text
+ var name1: String = file_data1.file_name
+ var name2: String = file_data2.file_name
+
+ for index: int in filter_text.length():
+ var a_oob: bool = index >= name1.length()
+ var b_oob: bool = index >= name2.length()
+
+ if (a_oob):
+ if (b_oob):
+ return false;
+ return true
+ if (b_oob):
+ return false
+
+ var char: String = filter_text[index]
+ var a_match: bool = char == name1[index]
+ var b_match: bool = char == name2[index]
+
+ if (a_match && !b_match):
+ return true
+
+ if (b_match && !a_match):
+ return false
+
+ return name1 < name2
+
+class FileData:
+ var file: String
+ var file_name: String
+ var file_name_structure: String
+ var file_type: StringName
diff --git a/demo/addons/script-ide/quickopen/quick_open_panel.gd.uid b/demo/addons/script-ide/quickopen/quick_open_panel.gd.uid
new file mode 100644
index 0000000..865f123
--- /dev/null
+++ b/demo/addons/script-ide/quickopen/quick_open_panel.gd.uid
@@ -0,0 +1 @@
+uid://cfcwyfqojcli6
diff --git a/demo/addons/script-ide/quickopen/quick_open_panel.tscn b/demo/addons/script-ide/quickopen/quick_open_panel.tscn
new file mode 100644
index 0000000..ab1d60b
--- /dev/null
+++ b/demo/addons/script-ide/quickopen/quick_open_panel.tscn
@@ -0,0 +1,148 @@
+[gd_scene load_steps=14 format=3 uid="uid://d2pttchmj3n7q"]
+
+[ext_resource type="Script" path="res://addons/script-ide/quickopen/quick_open_panel.gd" id="1_3tl1s"]
+
+[sub_resource type="Image" id="Image_dfysb"]
+data = {
+"data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 16, 225, 225, 225, 134, 224, 224, 224, 209, 224, 224, 224, 245, 224, 224, 224, 245, 224, 224, 224, 208, 224, 224, 224, 131, 236, 236, 236, 13, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 73, 224, 224, 224, 228, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 225, 225, 225, 225, 68, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 73, 224, 224, 224, 255, 224, 224, 224, 255, 225, 225, 225, 183, 224, 224, 224, 198, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 198, 224, 224, 224, 189, 224, 224, 224, 255, 224, 224, 224, 254, 224, 224, 224, 65, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 16, 224, 224, 224, 228, 224, 224, 224, 255, 224, 224, 224, 120, 226, 226, 226, 60, 224, 224, 224, 255, 225, 225, 225, 109, 225, 225, 225, 110, 224, 224, 224, 255, 226, 226, 226, 60, 224, 224, 224, 128, 224, 224, 224, 255, 225, 225, 225, 223, 234, 234, 234, 12, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 134, 224, 224, 224, 255, 225, 225, 225, 183, 255, 255, 255, 0, 224, 224, 224, 153, 224, 224, 224, 243, 255, 255, 255, 4, 255, 255, 255, 4, 224, 224, 224, 244, 225, 225, 225, 151, 255, 255, 255, 1, 225, 225, 225, 191, 224, 224, 224, 255, 225, 225, 225, 127, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 209, 224, 224, 224, 255, 224, 224, 224, 72, 255, 255, 255, 0, 224, 224, 224, 216, 224, 224, 224, 198, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 199, 224, 224, 224, 214, 255, 255, 255, 0, 226, 226, 226, 78, 224, 224, 224, 255, 224, 224, 224, 206, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 243, 224, 224, 224, 255, 226, 226, 226, 78, 255, 255, 255, 0, 224, 224, 224, 244, 225, 225, 225, 151, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 152, 224, 224, 224, 242, 255, 255, 255, 1, 227, 227, 227, 81, 224, 224, 224, 255, 224, 224, 224, 241, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 245, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 229, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 147, 225, 225, 225, 149, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 230, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 244, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 208, 224, 224, 224, 255, 224, 224, 224, 147, 224, 224, 224, 161, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 235, 224, 224, 224, 235, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 160, 225, 225, 225, 150, 224, 224, 224, 255, 224, 224, 224, 205, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 131, 224, 224, 224, 255, 224, 224, 224, 189, 255, 255, 255, 1, 224, 224, 224, 152, 224, 224, 224, 243, 255, 255, 255, 4, 255, 255, 255, 4, 224, 224, 224, 244, 225, 225, 225, 151, 255, 255, 255, 2, 225, 225, 225, 199, 224, 224, 224, 255, 225, 225, 225, 127, 255, 255, 255, 0, 255, 255, 255, 0, 236, 236, 236, 13, 224, 224, 224, 225, 224, 224, 224, 255, 224, 224, 224, 128, 225, 225, 225, 67, 224, 224, 224, 255, 225, 225, 225, 110, 226, 226, 226, 111, 224, 224, 224, 255, 225, 225, 225, 67, 225, 225, 225, 135, 224, 224, 224, 255, 224, 224, 224, 221, 234, 234, 234, 12, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 68, 224, 224, 224, 254, 224, 224, 224, 255, 224, 224, 224, 194, 224, 224, 224, 220, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 219, 224, 224, 224, 196, 224, 224, 224, 255, 224, 224, 224, 253, 227, 227, 227, 62, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 66, 224, 224, 224, 225, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 220, 226, 226, 226, 61, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 237, 237, 237, 14, 224, 224, 224, 130, 224, 224, 224, 206, 224, 224, 224, 244, 224, 224, 224, 244, 224, 224, 224, 205, 225, 225, 225, 124, 230, 230, 230, 10, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0),
+"format": "RGBA8",
+"height": 16,
+"mipmaps": false,
+"width": 16
+}
+
+[sub_resource type="ImageTexture" id="ImageTexture_p6ab8"]
+image = SubResource("Image_dfysb")
+
+[sub_resource type="Image" id="Image_blafy"]
+data = {
+"data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 25, 226, 226, 226, 70, 229, 229, 229, 39, 255, 255, 255, 0, 226, 226, 226, 103, 224, 224, 224, 219, 224, 224, 224, 156, 255, 255, 255, 0, 255, 255, 255, 0, 226, 226, 226, 26, 225, 225, 225, 25, 255, 255, 255, 0, 224, 224, 224, 74, 224, 224, 224, 177, 226, 226, 226, 111, 255, 255, 255, 0, 224, 224, 224, 98, 224, 224, 224, 255, 225, 225, 225, 182, 255, 255, 255, 0, 228, 228, 228, 46, 224, 224, 224, 255, 224, 224, 224, 197, 255, 255, 255, 0, 224, 224, 224, 57, 224, 224, 224, 255, 224, 224, 224, 187, 255, 255, 255, 0, 225, 225, 225, 42, 224, 224, 224, 255, 224, 224, 224, 232, 255, 255, 255, 6, 224, 224, 224, 8, 225, 225, 225, 182, 224, 224, 224, 153, 255, 255, 255, 7, 255, 255, 255, 0, 228, 228, 228, 37, 255, 255, 255, 7, 255, 255, 255, 0, 229, 229, 229, 19, 224, 224, 224, 237, 224, 224, 224, 198, 225, 225, 225, 17, 255, 255, 255, 0, 227, 227, 227, 71, 224, 224, 224, 48, 255, 255, 255, 4, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 228, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 73, 224, 224, 224, 226, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0),
+"format": "RGBA8",
+"height": 16,
+"mipmaps": false,
+"width": 16
+}
+
+[sub_resource type="ImageTexture" id="ImageTexture_bbwjp"]
+image = SubResource("Image_blafy")
+
+[sub_resource type="Image" id="Image_4wc14"]
+data = {
+"data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 33, 224, 224, 224, 255, 224, 224, 224, 255, 231, 231, 231, 31, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 226, 226, 226, 95, 224, 224, 224, 57, 255, 255, 255, 0, 224, 224, 224, 99, 224, 224, 224, 255, 224, 224, 224, 255, 225, 225, 225, 93, 255, 255, 255, 0, 224, 224, 224, 57, 224, 224, 224, 90, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 93, 224, 224, 224, 255, 224, 224, 224, 254, 224, 224, 224, 165, 224, 224, 224, 217, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 214, 225, 225, 225, 167, 224, 224, 224, 254, 224, 224, 224, 254, 224, 224, 224, 88, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 228, 228, 228, 55, 224, 224, 224, 254, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 253, 225, 225, 225, 51, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 166, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 160, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 33, 224, 224, 224, 99, 224, 224, 224, 217, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 186, 224, 224, 224, 32, 224, 224, 224, 33, 224, 224, 224, 187, 224, 224, 224, 255, 224, 224, 224, 255, 225, 225, 225, 215, 224, 224, 224, 98, 224, 224, 224, 32, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 33, 255, 255, 255, 0, 255, 255, 255, 0, 227, 227, 227, 36, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 33, 255, 255, 255, 0, 255, 255, 255, 0, 229, 229, 229, 38, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 231, 231, 231, 31, 226, 226, 226, 95, 224, 224, 224, 216, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 187, 225, 225, 225, 34, 226, 226, 226, 35, 224, 224, 224, 192, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 213, 226, 226, 226, 95, 231, 231, 231, 31, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 166, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 163, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 57, 224, 224, 224, 254, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 254, 227, 227, 227, 54, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 90, 224, 224, 224, 254, 224, 224, 224, 253, 224, 224, 224, 161, 225, 225, 225, 215, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 213, 224, 224, 224, 162, 224, 224, 224, 253, 224, 224, 224, 253, 226, 226, 226, 86, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 88, 225, 225, 225, 51, 255, 255, 255, 0, 224, 224, 224, 98, 224, 224, 224, 255, 224, 224, 224, 255, 226, 226, 226, 95, 255, 255, 255, 0, 227, 227, 227, 53, 226, 226, 226, 86, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 32, 224, 224, 224, 255, 224, 224, 224, 255, 231, 231, 231, 31, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0),
+"format": "RGBA8",
+"height": 16,
+"mipmaps": false,
+"width": 16
+}
+
+[sub_resource type="ImageTexture" id="ImageTexture_ghict"]
+image = SubResource("Image_4wc14")
+
+[sub_resource type="Image" id="Image_7rebo"]
+data = {
+"data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 4, 224, 224, 224, 99, 224, 224, 224, 213, 224, 224, 224, 212, 224, 224, 224, 97, 255, 255, 255, 4, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 4, 224, 224, 224, 99, 224, 224, 224, 222, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 220, 224, 224, 224, 97, 255, 255, 255, 4, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 4, 224, 224, 224, 99, 224, 224, 224, 222, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 213, 226, 226, 226, 87, 224, 224, 224, 88, 224, 224, 224, 214, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 220, 224, 224, 224, 97, 255, 255, 255, 4, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 199, 224, 224, 224, 255, 224, 224, 224, 255, 225, 225, 225, 215, 224, 224, 224, 89, 255, 255, 255, 2, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 2, 224, 224, 224, 90, 224, 224, 224, 216, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 194, 255, 255, 255, 0, 255, 255, 255, 4, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 221, 224, 224, 224, 99, 255, 255, 255, 4, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 5, 225, 225, 225, 101, 225, 225, 225, 223, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 3, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 213, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 222, 225, 225, 225, 100, 225, 225, 225, 100, 225, 225, 225, 223, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 3, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 2, 226, 226, 226, 87, 224, 224, 224, 213, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 2, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 2, 226, 226, 226, 87, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 1, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 225, 225, 225, 100, 255, 255, 255, 5, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 196, 224, 224, 224, 255, 224, 224, 224, 255, 225, 225, 225, 223, 225, 225, 225, 101, 255, 255, 255, 5, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 193, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 3, 225, 225, 225, 93, 224, 224, 224, 218, 224, 224, 224, 255, 224, 224, 224, 255, 225, 225, 225, 223, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 216, 225, 225, 225, 91, 255, 255, 255, 2, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 3, 225, 225, 225, 93, 224, 224, 224, 218, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 216, 225, 225, 225, 91, 255, 255, 255, 2, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 3, 225, 225, 225, 93, 224, 224, 224, 208, 225, 225, 225, 207, 225, 225, 225, 91, 255, 255, 255, 2, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0),
+"format": "RGBA8",
+"height": 16,
+"mipmaps": false,
+"width": 16
+}
+
+[sub_resource type="ImageTexture" id="ImageTexture_grjtr"]
+image = SubResource("Image_7rebo")
+
+[sub_resource type="Image" id="Image_e7nb8"]
+data = {
+"data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 184, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 181, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 226, 226, 226, 77, 225, 225, 225, 76, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 8, 224, 224, 224, 222, 224, 224, 224, 221, 224, 224, 224, 8, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 120, 224, 224, 224, 32, 224, 224, 224, 128, 224, 224, 224, 255, 224, 224, 224, 255, 225, 225, 225, 127, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 226, 226, 226, 35, 224, 224, 224, 248, 224, 224, 224, 195, 224, 224, 224, 247, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 247, 225, 225, 225, 34, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 224, 224, 224, 180, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 178, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 181, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 180, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0),
+"format": "RGBA8",
+"height": 16,
+"mipmaps": false,
+"width": 16
+}
+
+[sub_resource type="ImageTexture" id="ImageTexture_xupch"]
+image = SubResource("Image_e7nb8")
+
+[sub_resource type="Image" id="Image_gfvg1"]
+data = {
+"data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 68, 224, 224, 224, 184, 224, 224, 224, 240, 224, 224, 224, 232, 224, 224, 224, 186, 227, 227, 227, 62, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 129, 224, 224, 224, 254, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 122, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 68, 224, 224, 224, 254, 224, 224, 224, 254, 224, 224, 224, 123, 224, 224, 224, 32, 224, 224, 224, 33, 225, 225, 225, 125, 224, 224, 224, 254, 224, 224, 224, 254, 226, 226, 226, 69, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 184, 224, 224, 224, 255, 224, 224, 224, 123, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 125, 224, 224, 224, 255, 225, 225, 225, 174, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 240, 224, 224, 224, 255, 231, 231, 231, 31, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 226, 226, 226, 35, 224, 224, 224, 255, 224, 224, 224, 233, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 232, 224, 224, 224, 255, 224, 224, 224, 32, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 228, 228, 228, 37, 224, 224, 224, 255, 224, 224, 224, 228, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 186, 224, 224, 224, 255, 224, 224, 224, 123, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 130, 224, 224, 224, 255, 224, 224, 224, 173, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 227, 227, 227, 62, 224, 224, 224, 255, 224, 224, 224, 254, 225, 225, 225, 126, 225, 225, 225, 34, 227, 227, 227, 36, 224, 224, 224, 131, 224, 224, 224, 255, 224, 224, 224, 255, 226, 226, 226, 77, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 122, 224, 224, 224, 254, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 210, 231, 231, 231, 21, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 226, 226, 226, 69, 225, 225, 225, 174, 224, 224, 224, 233, 224, 224, 224, 228, 224, 224, 224, 173, 226, 226, 226, 77, 224, 224, 224, 210, 224, 224, 224, 255, 224, 224, 224, 210, 231, 231, 231, 21, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 231, 231, 231, 21, 224, 224, 224, 210, 224, 224, 224, 255, 224, 224, 224, 210, 231, 231, 231, 21, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 231, 231, 231, 21, 224, 224, 224, 210, 224, 224, 224, 255, 224, 224, 224, 210, 231, 231, 231, 21, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 231, 231, 231, 21, 224, 224, 224, 210, 224, 224, 224, 227, 225, 225, 225, 34, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 231, 231, 231, 21, 225, 225, 225, 34, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0),
+"format": "RGBA8",
+"height": 16,
+"mipmaps": false,
+"width": 16
+}
+
+[sub_resource type="ImageTexture" id="ImageTexture_w6vkw"]
+image = SubResource("Image_gfvg1")
+
+[node name="QuickOpenPanel" type="PopupPanel"]
+size = Vector2i(624, 100)
+visible = true
+script = ExtResource("1_3tl1s")
+
+[node name="PanelContainer" type="PanelContainer" parent="."]
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+offset_left = 4.0
+offset_top = 4.0
+offset_right = -4.0
+offset_bottom = -4.0
+grow_horizontal = 2
+grow_vertical = 2
+size_flags_horizontal = 3
+size_flags_vertical = 3
+
+[node name="MarginContainer" type="MarginContainer" parent="PanelContainer"]
+layout_mode = 2
+theme_override_constants/margin_left = 5
+theme_override_constants/margin_top = 5
+theme_override_constants/margin_right = 5
+theme_override_constants/margin_bottom = 5
+
+[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer/MarginContainer"]
+layout_mode = 2
+theme_override_constants/separation = 5
+
+[node name="HBoxContainer" type="HBoxContainer" parent="PanelContainer/MarginContainer/VBoxContainer"]
+layout_mode = 2
+theme_override_constants/separation = 4
+
+[node name="FilterBar" type="TabBar" parent="PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
+unique_name_in_owner = true
+layout_mode = 2
+current_tab = 0
+clip_tabs = false
+scrolling_enabled = false
+tab_count = 5
+tab_0/title = "All"
+tab_0/icon = SubResource("ImageTexture_p6ab8")
+tab_1/title = "Scene"
+tab_1/icon = SubResource("ImageTexture_bbwjp")
+tab_2/title = "GDscript"
+tab_2/icon = SubResource("ImageTexture_ghict")
+tab_3/title = "Resource"
+tab_3/icon = SubResource("ImageTexture_grjtr")
+tab_4/title = "Other"
+tab_4/icon = SubResource("ImageTexture_xupch")
+
+[node name="SearchOptionBtn" type="OptionButton" parent="PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
+unique_name_in_owner = true
+layout_mode = 2
+selected = 0
+item_count = 2
+popup/item_0/text = "Project"
+popup/item_0/id = 0
+popup/item_1/text = "Project+Addons"
+popup/item_1/id = 1
+
+[node name="FilterTxt" type="LineEdit" parent="PanelContainer/MarginContainer/VBoxContainer"]
+unique_name_in_owner = true
+layout_mode = 2
+placeholder_text = "Filter files"
+right_icon = SubResource("ImageTexture_w6vkw")
+
+[node name="FilesList" type="ItemList" parent="PanelContainer/MarginContainer/VBoxContainer"]
+unique_name_in_owner = true
+layout_mode = 2
+size_flags_vertical = 3
+allow_reselect = true
diff --git a/demo/default_bus_layout.tres b/demo/default_bus_layout.tres
new file mode 100644
index 0000000..4bf01e2
--- /dev/null
+++ b/demo/default_bus_layout.tres
@@ -0,0 +1,15 @@
+[gd_resource type="AudioBusLayout" format=3 uid="uid://6pefe8sf513q"]
+
+[resource]
+bus/1/name = &"Effects"
+bus/1/solo = false
+bus/1/mute = false
+bus/1/bypass_fx = false
+bus/1/volume_db = 0.0
+bus/1/send = &"Master"
+bus/2/name = &"Weather"
+bus/2/solo = false
+bus/2/mute = false
+bus/2/bypass_fx = false
+bus/2/volume_db = 0.0
+bus/2/send = &"Master"