diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..f28239b
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,4 @@
+root = true
+
+[*]
+charset = utf-8
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..8ad74f7
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,2 @@
+# Normalize EOL for all files that Git considers text files.
+* text=auto eol=lf
diff --git a/.gitignore b/.gitignore
index bf83296..f66b6bc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,7 @@
# ---> Godot
# Godot 4+ specific ignores
.godot/
+/android/
# Godot-specific ignores
.import/
@@ -14,4 +15,3 @@ export_presets.cfg
.mono/
data_*/
mono_crash.*.json
-
diff --git a/.gut_editor_shortcuts.cfg b/.gut_editor_shortcuts.cfg
new file mode 100644
index 0000000..48bb2e4
--- /dev/null
+++ b/.gut_editor_shortcuts.cfg
@@ -0,0 +1,17 @@
+[main]
+
+run_all=Object(Shortcut,"resource_local_to_scene":false,"resource_name":"","events":[Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
+],"script":null)
+
+run_current_script=Object(Shortcut,"resource_local_to_scene":false,"resource_name":"","events":[Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
+],"script":null)
+
+run_current_inner=Object(Shortcut,"resource_local_to_scene":false,"resource_name":"","events":[Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
+],"script":null)
+
+run_current_test=Object(Shortcut,"resource_local_to_scene":false,"resource_name":"","events":[Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
+],"script":null)
+
+panel_button=Object(Shortcut,"resource_local_to_scene":false,"resource_name":"","events":[Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":0,"unicode":0,"echo":false,"script":null)
+],"script":null)
+
diff --git a/addons/debug_menu/LICENSE.md b/addons/debug_menu/LICENSE.md
new file mode 100644
index 0000000..54fc020
--- /dev/null
+++ b/addons/debug_menu/LICENSE.md
@@ -0,0 +1,21 @@
+# MIT License
+
+Copyright © 2023-present Hugo Locurcio and 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.
diff --git a/addons/debug_menu/debug_menu.gd b/addons/debug_menu/debug_menu.gd
new file mode 100644
index 0000000..a1ab064
--- /dev/null
+++ b/addons/debug_menu/debug_menu.gd
@@ -0,0 +1,479 @@
+extends CanvasLayer
+
+@export var fps: Label
+@export var frame_time: Label
+@export var frame_number: Label
+@export var frame_history_total_avg: Label
+@export var frame_history_total_min: Label
+@export var frame_history_total_max: Label
+@export var frame_history_total_last: Label
+@export var frame_history_cpu_avg: Label
+@export var frame_history_cpu_min: Label
+@export var frame_history_cpu_max: Label
+@export var frame_history_cpu_last: Label
+@export var frame_history_gpu_avg: Label
+@export var frame_history_gpu_min: Label
+@export var frame_history_gpu_max: Label
+@export var frame_history_gpu_last: Label
+@export var fps_graph: Panel
+@export var total_graph: Panel
+@export var cpu_graph: Panel
+@export var gpu_graph: Panel
+@export var information: Label
+@export var settings: Label
+
+## The number of frames to keep in history for graph drawing and best/worst calculations.
+## Currently, this also affects how FPS is measured.
+const HISTORY_NUM_FRAMES = 150
+
+const GRAPH_SIZE = Vector2(150, 25)
+const GRAPH_MIN_FPS = 10
+const GRAPH_MAX_FPS = 160
+const GRAPH_MIN_FRAMETIME = 1.0 / GRAPH_MIN_FPS
+const GRAPH_MAX_FRAMETIME = 1.0 / GRAPH_MAX_FPS
+
+## Debug menu display style.
+enum Style {
+ HIDDEN, ## Debug menu is hidden.
+ VISIBLE_COMPACT, ## Debug menu is visible, with only the FPS, FPS cap (if any) and time taken to render the last frame.
+ VISIBLE_DETAILED, ## Debug menu is visible with full information, including graphs.
+ MAX, ## Represents the size of the Style enum.
+}
+
+## The style to use when drawing the debug menu.
+var style := Style.HIDDEN:
+ set(value):
+ style = value
+ match style:
+ Style.HIDDEN:
+ visible = false
+ Style.VISIBLE_COMPACT, Style.VISIBLE_DETAILED:
+ visible = true
+ frame_number.visible = style == Style.VISIBLE_DETAILED
+ $DebugMenu/VBoxContainer/FrameTimeHistory.visible = style == Style.VISIBLE_DETAILED
+ $DebugMenu/VBoxContainer/FPSGraph.visible = style == Style.VISIBLE_DETAILED
+ $DebugMenu/VBoxContainer/TotalGraph.visible = style == Style.VISIBLE_DETAILED
+ $DebugMenu/VBoxContainer/CPUGraph.visible = style == Style.VISIBLE_DETAILED
+ $DebugMenu/VBoxContainer/GPUGraph.visible = style == Style.VISIBLE_DETAILED
+ information.visible = style == Style.VISIBLE_DETAILED
+ settings.visible = style == Style.VISIBLE_DETAILED
+
+# Value of `Time.get_ticks_usec()` on the previous frame.
+var last_tick := 0
+
+var thread := Thread.new()
+
+## Returns the sum of all values of an array (use as a parameter to `Array.reduce()`).
+var sum_func := func avg(accum: float, number: float) -> float: return accum + number
+
+# History of the last `HISTORY_NUM_FRAMES` rendered frames.
+var frame_history_total: Array[float] = []
+var frame_history_cpu: Array[float] = []
+var frame_history_gpu: Array[float] = []
+var fps_history: Array[float] = [] # Only used for graphs.
+
+var frametime_avg := GRAPH_MIN_FRAMETIME
+var frametime_cpu_avg := GRAPH_MAX_FRAMETIME
+var frametime_gpu_avg := GRAPH_MIN_FRAMETIME
+var frames_per_second := float(GRAPH_MIN_FPS)
+var frame_time_gradient := Gradient.new()
+
+func _init() -> void:
+ # This must be done here instead of `_ready()` to avoid having `visibility_changed` be emitted immediately.
+ visible = false
+
+ if not InputMap.has_action("cycle_debug_menu"):
+ # Create default input action if no user-defined override exists.
+ # We can't do it in the editor plugin's activation code as it doesn't seem to work there.
+ InputMap.add_action("cycle_debug_menu")
+ var event := InputEventKey.new()
+ event.keycode = KEY_F3
+ InputMap.action_add_event("cycle_debug_menu", event)
+
+
+func _ready() -> void:
+ fps_graph.draw.connect(_fps_graph_draw)
+ total_graph.draw.connect(_total_graph_draw)
+ cpu_graph.draw.connect(_cpu_graph_draw)
+ gpu_graph.draw.connect(_gpu_graph_draw)
+
+ fps_history.resize(HISTORY_NUM_FRAMES)
+ frame_history_total.resize(HISTORY_NUM_FRAMES)
+ frame_history_cpu.resize(HISTORY_NUM_FRAMES)
+ frame_history_gpu.resize(HISTORY_NUM_FRAMES)
+
+ # NOTE: Both FPS and frametimes are colored following FPS logic
+ # (red = 10 FPS, yellow = 60 FPS, green = 110 FPS, cyan = 160 FPS).
+ # This makes the color gradient non-linear.
+ # Colors are taken from .
+ frame_time_gradient.set_color(0, Color8(239, 68, 68)) # red-500
+ frame_time_gradient.set_color(1, Color8(56, 189, 248)) # light-blue-400
+ frame_time_gradient.add_point(0.3333, Color8(250, 204, 21)) # yellow-400
+ frame_time_gradient.add_point(0.6667, Color8(128, 226, 95)) # 50-50 mix of lime-400 and green-400
+
+ get_viewport().size_changed.connect(update_settings_label)
+
+ # Display loading text while information is being queried,
+ # in case the user toggles the full debug menu just after starting the project.
+ information.text = "Loading hardware information...\n\n "
+ settings.text = "Loading project information..."
+ thread.start(
+ func():
+ # Disable thread safety checks as they interfere with this add-on.
+ # This only affects this particular thread, not other thread instances in the project.
+ # See for details.
+ # Use a Callable so that this can be ignored on Godot 4.0 without causing a script error
+ # (thread safety checks were added in Godot 4.1).
+ if Engine.get_version_info()["hex"] >= 0x040100:
+ Callable(Thread, "set_thread_safety_checks_enabled").call(false)
+
+ # Enable required time measurements to display CPU/GPU frame time information.
+ # These lines are time-consuming operations, so run them in a separate thread.
+ RenderingServer.viewport_set_measure_render_time(get_viewport().get_viewport_rid(), true)
+ update_information_label()
+ update_settings_label()
+ )
+
+
+func _input(event: InputEvent) -> void:
+ if event.is_action_pressed("cycle_debug_menu"):
+ style = wrapi(style + 1, 0, Style.MAX) as Style
+
+
+func _exit_tree() -> void:
+ thread.wait_to_finish()
+
+
+## Update hardware information label (this can change at runtime based on window
+## size and graphics settings). This is only called when the window is resized.
+## To update when graphics settings are changed, the function must be called manually
+## using `DebugMenu.update_settings_label()`.
+func update_settings_label() -> void:
+ settings.text = ""
+ if ProjectSettings.has_setting("application/config/version"):
+ settings.text += "Project Version: %s\n" % ProjectSettings.get_setting("application/config/version")
+
+ var rendering_method := str(ProjectSettings.get_setting_with_override("rendering/renderer/rendering_method"))
+ var rendering_method_string := rendering_method
+ match rendering_method:
+ "forward_plus":
+ rendering_method_string = "Forward+"
+ "mobile":
+ rendering_method_string = "Forward Mobile"
+ "gl_compatibility":
+ rendering_method_string = "Compatibility"
+ settings.text += "Rendering Method: %s\n" % rendering_method_string
+
+ var viewport := get_viewport()
+
+ # The size of the viewport rendering, which determines which resolution 3D is rendered at.
+ var viewport_render_size := Vector2i()
+
+ if viewport.content_scale_mode == Window.CONTENT_SCALE_MODE_VIEWPORT:
+ viewport_render_size = viewport.get_visible_rect().size
+ settings.text += "Viewport: %d×%d, Window: %d×%d\n" % [viewport.get_visible_rect().size.x, viewport.get_visible_rect().size.y, viewport.size.x, viewport.size.y]
+ else:
+ # Window size matches viewport size.
+ viewport_render_size = viewport.size
+ settings.text += "Viewport: %d×%d\n" % [viewport.size.x, viewport.size.y]
+
+ # Display 3D settings only if relevant.
+ if viewport.get_camera_3d():
+ var scaling_3d_mode_string := "(unknown)"
+ match viewport.scaling_3d_mode:
+ Viewport.SCALING_3D_MODE_BILINEAR:
+ scaling_3d_mode_string = "Bilinear"
+ Viewport.SCALING_3D_MODE_FSR:
+ scaling_3d_mode_string = "FSR 1.0"
+ Viewport.SCALING_3D_MODE_FSR2:
+ scaling_3d_mode_string = "FSR 2.2"
+
+ var antialiasing_3d_string := ""
+ if viewport.scaling_3d_mode == Viewport.SCALING_3D_MODE_FSR2:
+ # The FSR2 scaling mode includes its own temporal antialiasing implementation.
+ antialiasing_3d_string += (" + " if not antialiasing_3d_string.is_empty() else "") + "FSR 2.2"
+ if viewport.scaling_3d_mode != Viewport.SCALING_3D_MODE_FSR2 and viewport.use_taa:
+ # Godot's own TAA is ignored when using FSR2 scaling mode, as FSR2 provides its own TAA implementation.
+ antialiasing_3d_string += (" + " if not antialiasing_3d_string.is_empty() else "") + "TAA"
+ if viewport.msaa_3d >= Viewport.MSAA_2X:
+ antialiasing_3d_string += (" + " if not antialiasing_3d_string.is_empty() else "") + "%d× MSAA" % pow(2, viewport.msaa_3d)
+ if viewport.screen_space_aa == Viewport.SCREEN_SPACE_AA_FXAA:
+ antialiasing_3d_string += (" + " if not antialiasing_3d_string.is_empty() else "") + "FXAA"
+
+ settings.text += "3D scale (%s): %d%% = %d×%d" % [
+ scaling_3d_mode_string,
+ viewport.scaling_3d_scale * 100,
+ viewport_render_size.x * viewport.scaling_3d_scale,
+ viewport_render_size.y * viewport.scaling_3d_scale,
+ ]
+
+ if not antialiasing_3d_string.is_empty():
+ settings.text += "\n3D Antialiasing: %s" % antialiasing_3d_string
+
+ var environment := viewport.get_camera_3d().get_world_3d().environment
+ if environment:
+ if environment.ssr_enabled:
+ settings.text += "\nSSR: %d Steps" % environment.ssr_max_steps
+
+ if environment.ssao_enabled:
+ settings.text += "\nSSAO: On"
+ if environment.ssil_enabled:
+ settings.text += "\nSSIL: On"
+
+ if environment.sdfgi_enabled:
+ settings.text += "\nSDFGI: %d Cascades" % environment.sdfgi_cascades
+
+ if environment.glow_enabled:
+ settings.text += "\nGlow: On"
+
+ if environment.volumetric_fog_enabled:
+ settings.text += "\nVolumetric Fog: On"
+ var antialiasing_2d_string := ""
+ if viewport.msaa_2d >= Viewport.MSAA_2X:
+ antialiasing_2d_string = "%d× MSAA" % pow(2, viewport.msaa_2d)
+
+ if not antialiasing_2d_string.is_empty():
+ settings.text += "\n2D Antialiasing: %s" % antialiasing_2d_string
+
+
+## Update hardware/software information label (this never changes at runtime).
+func update_information_label() -> void:
+ var adapter_string := ""
+ # Make "NVIDIA Corporation" and "NVIDIA" be considered identical (required when using OpenGL to avoid redundancy).
+ if RenderingServer.get_video_adapter_vendor().trim_suffix(" Corporation") in RenderingServer.get_video_adapter_name():
+ # Avoid repeating vendor name before adapter name.
+ # Trim redundant suffix sometimes reported by NVIDIA graphics cards when using OpenGL.
+ adapter_string = RenderingServer.get_video_adapter_name().trim_suffix("/PCIe/SSE2")
+ else:
+ adapter_string = RenderingServer.get_video_adapter_vendor() + " - " + RenderingServer.get_video_adapter_name().trim_suffix("/PCIe/SSE2")
+
+ # Graphics driver version information isn't always availble.
+ var driver_info := OS.get_video_adapter_driver_info()
+ var driver_info_string := ""
+ if driver_info.size() >= 2:
+ driver_info_string = driver_info[1]
+ else:
+ driver_info_string = "(unknown)"
+
+ var release_string := ""
+ if OS.has_feature("editor"):
+ # Editor build (implies `debug`).
+ release_string = "editor"
+ elif OS.has_feature("debug"):
+ # Debug export template build.
+ release_string = "debug"
+ else:
+ # Release export template build.
+ release_string = "release"
+
+ var rendering_method := str(ProjectSettings.get_setting_with_override("rendering/renderer/rendering_method"))
+ var rendering_driver := str(ProjectSettings.get_setting_with_override("rendering/rendering_device/driver"))
+ var graphics_api_string := rendering_driver
+ if rendering_method != "gl_compatibility":
+ if rendering_driver == "d3d12":
+ graphics_api_string = "Direct3D 12"
+ elif rendering_driver == "metal":
+ graphics_api_string = "Metal"
+ elif rendering_driver == "vulkan":
+ if OS.has_feature("macos") or OS.has_feature("ios"):
+ graphics_api_string = "Vulkan via MoltenVK"
+ else:
+ graphics_api_string = "Vulkan"
+ else:
+ if rendering_driver == "opengl3_angle":
+ graphics_api_string = "OpenGL via ANGLE"
+ elif OS.has_feature("mobile") or rendering_driver == "opengl3_es":
+ graphics_api_string = "OpenGL ES"
+ elif OS.has_feature("web"):
+ graphics_api_string = "WebGL"
+ elif rendering_driver == "opengl3":
+ graphics_api_string = "OpenGL"
+
+ information.text = (
+ "%s, %d threads\n" % [OS.get_processor_name().replace("(R)", "").replace("(TM)", ""), OS.get_processor_count()]
+ + "%s %s (%s %s), %s %s\n" % [OS.get_name(), "64-bit" if OS.has_feature("64") else "32-bit", release_string, "double" if OS.has_feature("double") else "single", graphics_api_string, RenderingServer.get_video_adapter_api_version()]
+ + "%s, %s" % [adapter_string, driver_info_string]
+ )
+
+
+func _fps_graph_draw() -> void:
+ var fps_polyline := PackedVector2Array()
+ fps_polyline.resize(HISTORY_NUM_FRAMES)
+ for fps_index in fps_history.size():
+ fps_polyline[fps_index] = Vector2(
+ remap(fps_index, 0, fps_history.size(), 0, GRAPH_SIZE.x),
+ remap(clampf(fps_history[fps_index], GRAPH_MIN_FPS, GRAPH_MAX_FPS), GRAPH_MIN_FPS, GRAPH_MAX_FPS, GRAPH_SIZE.y, 0.0)
+ )
+ # Don't use antialiasing to speed up line drawing, but use a width that scales with
+ # viewport scale to keep the line easily readable on hiDPI displays.
+ fps_graph.draw_polyline(fps_polyline, frame_time_gradient.sample(remap(frames_per_second, GRAPH_MIN_FPS, GRAPH_MAX_FPS, 0.0, 1.0)), 1.0)
+
+
+func _total_graph_draw() -> void:
+ var total_polyline := PackedVector2Array()
+ total_polyline.resize(HISTORY_NUM_FRAMES)
+ for total_index in frame_history_total.size():
+ total_polyline[total_index] = Vector2(
+ remap(total_index, 0, frame_history_total.size(), 0, GRAPH_SIZE.x),
+ remap(clampf(frame_history_total[total_index], GRAPH_MIN_FPS, GRAPH_MAX_FPS), GRAPH_MIN_FPS, GRAPH_MAX_FPS, GRAPH_SIZE.y, 0.0)
+ )
+ # Don't use antialiasing to speed up line drawing, but use a width that scales with
+ # viewport scale to keep the line easily readable on hiDPI displays.
+ total_graph.draw_polyline(total_polyline, frame_time_gradient.sample(remap(1000.0 / frametime_avg, GRAPH_MIN_FPS, GRAPH_MAX_FPS, 0.0, 1.0)), 1.0)
+
+
+func _cpu_graph_draw() -> void:
+ var cpu_polyline := PackedVector2Array()
+ cpu_polyline.resize(HISTORY_NUM_FRAMES)
+ for cpu_index in frame_history_cpu.size():
+ cpu_polyline[cpu_index] = Vector2(
+ remap(cpu_index, 0, frame_history_cpu.size(), 0, GRAPH_SIZE.x),
+ remap(clampf(frame_history_cpu[cpu_index], GRAPH_MIN_FPS, GRAPH_MAX_FPS), GRAPH_MIN_FPS, GRAPH_MAX_FPS, GRAPH_SIZE.y, 0.0)
+ )
+ # Don't use antialiasing to speed up line drawing, but use a width that scales with
+ # viewport scale to keep the line easily readable on hiDPI displays.
+ cpu_graph.draw_polyline(cpu_polyline, frame_time_gradient.sample(remap(1000.0 / frametime_cpu_avg, GRAPH_MIN_FPS, GRAPH_MAX_FPS, 0.0, 1.0)), 1.0)
+
+
+func _gpu_graph_draw() -> void:
+ var gpu_polyline := PackedVector2Array()
+ gpu_polyline.resize(HISTORY_NUM_FRAMES)
+ for gpu_index in frame_history_gpu.size():
+ gpu_polyline[gpu_index] = Vector2(
+ remap(gpu_index, 0, frame_history_gpu.size(), 0, GRAPH_SIZE.x),
+ remap(clampf(frame_history_gpu[gpu_index], GRAPH_MIN_FPS, GRAPH_MAX_FPS), GRAPH_MIN_FPS, GRAPH_MAX_FPS, GRAPH_SIZE.y, 0.0)
+ )
+ # Don't use antialiasing to speed up line drawing, but use a width that scales with
+ # viewport scale to keep the line easily readable on hiDPI displays.
+ gpu_graph.draw_polyline(gpu_polyline, frame_time_gradient.sample(remap(1000.0 / frametime_gpu_avg, GRAPH_MIN_FPS, GRAPH_MAX_FPS, 0.0, 1.0)), 1.0)
+
+
+func _process(_delta: float) -> void:
+ if visible:
+ fps_graph.queue_redraw()
+ total_graph.queue_redraw()
+ cpu_graph.queue_redraw()
+ gpu_graph.queue_redraw()
+
+ # Difference between the last two rendered frames in milliseconds.
+ var frametime := (Time.get_ticks_usec() - last_tick) * 0.001
+
+ frame_history_total.push_back(frametime)
+ if frame_history_total.size() > HISTORY_NUM_FRAMES:
+ frame_history_total.pop_front()
+
+ # Frametimes are colored following FPS logic (red = 10 FPS, yellow = 60 FPS, green = 110 FPS, cyan = 160 FPS).
+ # This makes the color gradient non-linear.
+ frametime_avg = frame_history_total.reduce(sum_func) / frame_history_total.size()
+ frame_history_total_avg.text = str(frametime_avg).pad_decimals(2)
+ frame_history_total_avg.modulate = frame_time_gradient.sample(remap(1000.0 / frametime_avg, GRAPH_MIN_FPS, GRAPH_MAX_FPS, 0.0, 1.0))
+
+ var frametime_min: float = frame_history_total.min()
+ frame_history_total_min.text = str(frametime_min).pad_decimals(2)
+ frame_history_total_min.modulate = frame_time_gradient.sample(remap(1000.0 / frametime_min, GRAPH_MIN_FPS, GRAPH_MAX_FPS, 0.0, 1.0))
+
+ var frametime_max: float = frame_history_total.max()
+ frame_history_total_max.text = str(frametime_max).pad_decimals(2)
+ frame_history_total_max.modulate = frame_time_gradient.sample(remap(1000.0 / frametime_max, GRAPH_MIN_FPS, GRAPH_MAX_FPS, 0.0, 1.0))
+
+ frame_history_total_last.text = str(frametime).pad_decimals(2)
+ frame_history_total_last.modulate = frame_time_gradient.sample(remap(1000.0 / frametime, GRAPH_MIN_FPS, GRAPH_MAX_FPS, 0.0, 1.0))
+
+ var viewport_rid := get_viewport().get_viewport_rid()
+ var frametime_cpu := RenderingServer.viewport_get_measured_render_time_cpu(viewport_rid) + RenderingServer.get_frame_setup_time_cpu()
+ frame_history_cpu.push_back(frametime_cpu)
+ if frame_history_cpu.size() > HISTORY_NUM_FRAMES:
+ frame_history_cpu.pop_front()
+
+ frametime_cpu_avg = frame_history_cpu.reduce(sum_func) / frame_history_cpu.size()
+ frame_history_cpu_avg.text = str(frametime_cpu_avg).pad_decimals(2)
+ frame_history_cpu_avg.modulate = frame_time_gradient.sample(remap(1000.0 / frametime_cpu_avg, GRAPH_MIN_FPS, GRAPH_MAX_FPS, 0.0, 1.0))
+
+ var frametime_cpu_min: float = frame_history_cpu.min()
+ frame_history_cpu_min.text = str(frametime_cpu_min).pad_decimals(2)
+ frame_history_cpu_min.modulate = frame_time_gradient.sample(remap(1000.0 / frametime_cpu_min, GRAPH_MIN_FPS, GRAPH_MAX_FPS, 0.0, 1.0))
+
+ var frametime_cpu_max: float = frame_history_cpu.max()
+ frame_history_cpu_max.text = str(frametime_cpu_max).pad_decimals(2)
+ frame_history_cpu_max.modulate = frame_time_gradient.sample(remap(1000.0 / frametime_cpu_max, GRAPH_MIN_FPS, GRAPH_MAX_FPS, 0.0, 1.0))
+
+ frame_history_cpu_last.text = str(frametime_cpu).pad_decimals(2)
+ frame_history_cpu_last.modulate = frame_time_gradient.sample(remap(1000.0 / frametime_cpu, GRAPH_MIN_FPS, GRAPH_MAX_FPS, 0.0, 1.0))
+
+ var frametime_gpu := RenderingServer.viewport_get_measured_render_time_gpu(viewport_rid)
+ frame_history_gpu.push_back(frametime_gpu)
+ if frame_history_gpu.size() > HISTORY_NUM_FRAMES:
+ frame_history_gpu.pop_front()
+
+ frametime_gpu_avg = frame_history_gpu.reduce(sum_func) / frame_history_gpu.size()
+ frame_history_gpu_avg.text = str(frametime_gpu_avg).pad_decimals(2)
+ frame_history_gpu_avg.modulate = frame_time_gradient.sample(remap(1000.0 / frametime_gpu_avg, GRAPH_MIN_FPS, GRAPH_MAX_FPS, 0.0, 1.0))
+
+ var frametime_gpu_min: float = frame_history_gpu.min()
+ frame_history_gpu_min.text = str(frametime_gpu_min).pad_decimals(2)
+ frame_history_gpu_min.modulate = frame_time_gradient.sample(remap(1000.0 / frametime_gpu_min, GRAPH_MIN_FPS, GRAPH_MAX_FPS, 0.0, 1.0))
+
+ var frametime_gpu_max: float = frame_history_gpu.max()
+ frame_history_gpu_max.text = str(frametime_gpu_max).pad_decimals(2)
+ frame_history_gpu_max.modulate = frame_time_gradient.sample(remap(1000.0 / frametime_gpu_max, GRAPH_MIN_FPS, GRAPH_MAX_FPS, 0.0, 1.0))
+
+ frame_history_gpu_last.text = str(frametime_gpu).pad_decimals(2)
+ frame_history_gpu_last.modulate = frame_time_gradient.sample(remap(1000.0 / frametime_gpu, GRAPH_MIN_FPS, GRAPH_MAX_FPS, 0.0, 1.0))
+
+ frames_per_second = 1000.0 / frametime_avg
+ fps_history.push_back(frames_per_second)
+ if fps_history.size() > HISTORY_NUM_FRAMES:
+ fps_history.pop_front()
+
+ fps.text = str(floor(frames_per_second)) + " FPS"
+ var frame_time_color := frame_time_gradient.sample(remap(frames_per_second, GRAPH_MIN_FPS, GRAPH_MAX_FPS, 0.0, 1.0))
+ fps.modulate = frame_time_color
+
+ frame_time.text = str(frametime).pad_decimals(2) + " mspf"
+ frame_time.modulate = frame_time_color
+
+ var vsync_string := ""
+ match DisplayServer.window_get_vsync_mode():
+ DisplayServer.VSYNC_ENABLED:
+ vsync_string = "V-Sync"
+ DisplayServer.VSYNC_ADAPTIVE:
+ vsync_string = "Adaptive V-Sync"
+ DisplayServer.VSYNC_MAILBOX:
+ vsync_string = "Mailbox V-Sync"
+
+ if Engine.max_fps > 0 or OS.low_processor_usage_mode:
+ # Display FPS cap determined by `Engine.max_fps` or low-processor usage mode sleep duration
+ # (the lowest FPS cap is used).
+ var low_processor_max_fps := roundi(1000000.0 / OS.low_processor_usage_mode_sleep_usec)
+ var fps_cap := low_processor_max_fps
+ if Engine.max_fps > 0:
+ fps_cap = mini(Engine.max_fps, low_processor_max_fps)
+ frame_time.text += " (cap: " + str(fps_cap) + " FPS"
+
+ if not vsync_string.is_empty():
+ frame_time.text += " + " + vsync_string
+
+ frame_time.text += ")"
+ else:
+ if not vsync_string.is_empty():
+ frame_time.text += " (" + vsync_string + ")"
+
+ frame_number.text = "Frame: " + str(Engine.get_frames_drawn())
+
+ last_tick = Time.get_ticks_usec()
+
+
+func _on_visibility_changed() -> void:
+ if visible:
+ # Reset graphs to prevent them from looking strange before `HISTORY_NUM_FRAMES` frames
+ # have been drawn.
+ var frametime_last := (Time.get_ticks_usec() - last_tick) * 0.001
+ fps_history.resize(HISTORY_NUM_FRAMES)
+ fps_history.fill(1000.0 / frametime_last)
+ frame_history_total.resize(HISTORY_NUM_FRAMES)
+ frame_history_total.fill(frametime_last)
+ frame_history_cpu.resize(HISTORY_NUM_FRAMES)
+ var viewport_rid := get_viewport().get_viewport_rid()
+ frame_history_cpu.fill(RenderingServer.viewport_get_measured_render_time_cpu(viewport_rid) + RenderingServer.get_frame_setup_time_cpu())
+ frame_history_gpu.resize(HISTORY_NUM_FRAMES)
+ frame_history_gpu.fill(RenderingServer.viewport_get_measured_render_time_gpu(viewport_rid))
diff --git a/addons/debug_menu/debug_menu.gd.uid b/addons/debug_menu/debug_menu.gd.uid
new file mode 100644
index 0000000..17a8590
--- /dev/null
+++ b/addons/debug_menu/debug_menu.gd.uid
@@ -0,0 +1 @@
+uid://bxlb1a7twvd7f
diff --git a/addons/debug_menu/debug_menu.tscn b/addons/debug_menu/debug_menu.tscn
new file mode 100644
index 0000000..9bfc9d6
--- /dev/null
+++ b/addons/debug_menu/debug_menu.tscn
@@ -0,0 +1,401 @@
+[gd_scene load_steps=3 format=3 uid="uid://cggqb75a8w8r"]
+
+[ext_resource type="Script" path="res://addons/debug_menu/debug_menu.gd" id="1_p440y"]
+
+[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ki0n8"]
+bg_color = Color(0, 0, 0, 0.25098)
+
+[node name="CanvasLayer" type="CanvasLayer" node_paths=PackedStringArray("fps", "frame_time", "frame_number", "frame_history_total_avg", "frame_history_total_min", "frame_history_total_max", "frame_history_total_last", "frame_history_cpu_avg", "frame_history_cpu_min", "frame_history_cpu_max", "frame_history_cpu_last", "frame_history_gpu_avg", "frame_history_gpu_min", "frame_history_gpu_max", "frame_history_gpu_last", "fps_graph", "total_graph", "cpu_graph", "gpu_graph", "information", "settings")]
+layer = 128
+script = ExtResource("1_p440y")
+fps = NodePath("DebugMenu/VBoxContainer/FPS")
+frame_time = NodePath("DebugMenu/VBoxContainer/FrameTime")
+frame_number = NodePath("DebugMenu/VBoxContainer/FrameNumber")
+frame_history_total_avg = NodePath("DebugMenu/VBoxContainer/FrameTimeHistory/TotalAvg")
+frame_history_total_min = NodePath("DebugMenu/VBoxContainer/FrameTimeHistory/TotalMin")
+frame_history_total_max = NodePath("DebugMenu/VBoxContainer/FrameTimeHistory/TotalMax")
+frame_history_total_last = NodePath("DebugMenu/VBoxContainer/FrameTimeHistory/TotalLast")
+frame_history_cpu_avg = NodePath("DebugMenu/VBoxContainer/FrameTimeHistory/CPUAvg")
+frame_history_cpu_min = NodePath("DebugMenu/VBoxContainer/FrameTimeHistory/CPUMin")
+frame_history_cpu_max = NodePath("DebugMenu/VBoxContainer/FrameTimeHistory/CPUMax")
+frame_history_cpu_last = NodePath("DebugMenu/VBoxContainer/FrameTimeHistory/CPULast")
+frame_history_gpu_avg = NodePath("DebugMenu/VBoxContainer/FrameTimeHistory/GPUAvg")
+frame_history_gpu_min = NodePath("DebugMenu/VBoxContainer/FrameTimeHistory/GPUMin")
+frame_history_gpu_max = NodePath("DebugMenu/VBoxContainer/FrameTimeHistory/GPUMax")
+frame_history_gpu_last = NodePath("DebugMenu/VBoxContainer/FrameTimeHistory/GPULast")
+fps_graph = NodePath("DebugMenu/VBoxContainer/FPSGraph/Graph")
+total_graph = NodePath("DebugMenu/VBoxContainer/TotalGraph/Graph")
+cpu_graph = NodePath("DebugMenu/VBoxContainer/CPUGraph/Graph")
+gpu_graph = NodePath("DebugMenu/VBoxContainer/GPUGraph/Graph")
+information = NodePath("DebugMenu/VBoxContainer/Information")
+settings = NodePath("DebugMenu/VBoxContainer/Settings")
+
+[node name="DebugMenu" type="Control" parent="."]
+custom_minimum_size = Vector2(400, 400)
+layout_mode = 3
+anchors_preset = 1
+anchor_left = 1.0
+anchor_right = 1.0
+offset_left = -416.0
+offset_top = 8.0
+offset_right = -16.0
+offset_bottom = 408.0
+grow_horizontal = 0
+size_flags_horizontal = 8
+size_flags_vertical = 4
+mouse_filter = 2
+
+[node name="VBoxContainer" type="VBoxContainer" parent="DebugMenu"]
+layout_mode = 1
+anchors_preset = 1
+anchor_left = 1.0
+anchor_right = 1.0
+offset_left = -300.0
+offset_bottom = 374.0
+grow_horizontal = 0
+mouse_filter = 2
+theme_override_constants/separation = 0
+
+[node name="FPS" type="Label" parent="DebugMenu/VBoxContainer"]
+modulate = Color(0, 1, 0, 1)
+layout_mode = 2
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
+theme_override_constants/outline_size = 5
+theme_override_constants/line_spacing = 0
+theme_override_font_sizes/font_size = 18
+text = "60 FPS"
+horizontal_alignment = 2
+
+[node name="FrameTime" type="Label" parent="DebugMenu/VBoxContainer"]
+modulate = Color(0, 1, 0, 1)
+layout_mode = 2
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
+theme_override_constants/outline_size = 3
+theme_override_font_sizes/font_size = 12
+text = "16.67 mspf (cap: 123 FPS + Adaptive V-Sync)"
+horizontal_alignment = 2
+
+[node name="FrameNumber" type="Label" parent="DebugMenu/VBoxContainer"]
+layout_mode = 2
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
+theme_override_constants/outline_size = 3
+theme_override_font_sizes/font_size = 12
+text = "Frame: 1234"
+horizontal_alignment = 2
+
+[node name="FrameTimeHistory" type="GridContainer" parent="DebugMenu/VBoxContainer"]
+layout_mode = 2
+size_flags_horizontal = 8
+mouse_filter = 2
+theme_override_constants/h_separation = 0
+theme_override_constants/v_separation = 0
+columns = 5
+
+[node name="Spacer" type="Control" parent="DebugMenu/VBoxContainer/FrameTimeHistory"]
+custom_minimum_size = Vector2(60, 0)
+layout_mode = 2
+mouse_filter = 2
+
+[node name="AvgHeader" type="Label" parent="DebugMenu/VBoxContainer/FrameTimeHistory"]
+custom_minimum_size = Vector2(50, 0)
+layout_mode = 2
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
+theme_override_constants/outline_size = 3
+theme_override_font_sizes/font_size = 12
+text = "Average"
+horizontal_alignment = 2
+
+[node name="MinHeader" type="Label" parent="DebugMenu/VBoxContainer/FrameTimeHistory"]
+custom_minimum_size = Vector2(50, 0)
+layout_mode = 2
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
+theme_override_constants/outline_size = 3
+theme_override_font_sizes/font_size = 12
+text = "Best"
+horizontal_alignment = 2
+
+[node name="MaxHeader" type="Label" parent="DebugMenu/VBoxContainer/FrameTimeHistory"]
+custom_minimum_size = Vector2(50, 0)
+layout_mode = 2
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
+theme_override_constants/outline_size = 3
+theme_override_font_sizes/font_size = 12
+text = "Worst"
+horizontal_alignment = 2
+
+[node name="LastHeader" type="Label" parent="DebugMenu/VBoxContainer/FrameTimeHistory"]
+custom_minimum_size = Vector2(50, 0)
+layout_mode = 2
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
+theme_override_constants/outline_size = 3
+theme_override_font_sizes/font_size = 12
+text = "Last"
+horizontal_alignment = 2
+
+[node name="TotalHeader" type="Label" parent="DebugMenu/VBoxContainer/FrameTimeHistory"]
+custom_minimum_size = Vector2(50, 0)
+layout_mode = 2
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
+theme_override_constants/outline_size = 3
+theme_override_font_sizes/font_size = 12
+text = "Total:"
+horizontal_alignment = 2
+
+[node name="TotalAvg" type="Label" parent="DebugMenu/VBoxContainer/FrameTimeHistory"]
+modulate = Color(0, 1, 0, 1)
+custom_minimum_size = Vector2(50, 0)
+layout_mode = 2
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
+theme_override_constants/outline_size = 3
+theme_override_font_sizes/font_size = 12
+text = "123.45"
+horizontal_alignment = 2
+
+[node name="TotalMin" type="Label" parent="DebugMenu/VBoxContainer/FrameTimeHistory"]
+modulate = Color(0, 1, 0, 1)
+custom_minimum_size = Vector2(50, 0)
+layout_mode = 2
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
+theme_override_constants/outline_size = 3
+theme_override_font_sizes/font_size = 12
+text = "123.45"
+horizontal_alignment = 2
+
+[node name="TotalMax" type="Label" parent="DebugMenu/VBoxContainer/FrameTimeHistory"]
+modulate = Color(0, 1, 0, 1)
+custom_minimum_size = Vector2(50, 0)
+layout_mode = 2
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
+theme_override_constants/outline_size = 3
+theme_override_font_sizes/font_size = 12
+text = "123.45"
+horizontal_alignment = 2
+
+[node name="TotalLast" type="Label" parent="DebugMenu/VBoxContainer/FrameTimeHistory"]
+modulate = Color(0, 1, 0, 1)
+custom_minimum_size = Vector2(50, 0)
+layout_mode = 2
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
+theme_override_constants/outline_size = 3
+theme_override_font_sizes/font_size = 12
+text = "123.45"
+horizontal_alignment = 2
+
+[node name="CPUHeader" type="Label" parent="DebugMenu/VBoxContainer/FrameTimeHistory"]
+custom_minimum_size = Vector2(50, 0)
+layout_mode = 2
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
+theme_override_constants/outline_size = 3
+theme_override_font_sizes/font_size = 12
+text = "CPU:"
+horizontal_alignment = 2
+
+[node name="CPUAvg" type="Label" parent="DebugMenu/VBoxContainer/FrameTimeHistory"]
+modulate = Color(0, 1, 0, 1)
+custom_minimum_size = Vector2(50, 0)
+layout_mode = 2
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
+theme_override_constants/outline_size = 3
+theme_override_font_sizes/font_size = 12
+text = "123.45"
+horizontal_alignment = 2
+
+[node name="CPUMin" type="Label" parent="DebugMenu/VBoxContainer/FrameTimeHistory"]
+modulate = Color(0, 1, 0, 1)
+custom_minimum_size = Vector2(50, 0)
+layout_mode = 2
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
+theme_override_constants/outline_size = 3
+theme_override_font_sizes/font_size = 12
+text = "12.34"
+horizontal_alignment = 2
+
+[node name="CPUMax" type="Label" parent="DebugMenu/VBoxContainer/FrameTimeHistory"]
+modulate = Color(0, 1, 0, 1)
+custom_minimum_size = Vector2(50, 0)
+layout_mode = 2
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
+theme_override_constants/outline_size = 3
+theme_override_font_sizes/font_size = 12
+text = "123.45"
+horizontal_alignment = 2
+
+[node name="CPULast" type="Label" parent="DebugMenu/VBoxContainer/FrameTimeHistory"]
+modulate = Color(0, 1, 0, 1)
+custom_minimum_size = Vector2(50, 0)
+layout_mode = 2
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
+theme_override_constants/outline_size = 3
+theme_override_font_sizes/font_size = 12
+text = "123.45"
+horizontal_alignment = 2
+
+[node name="GPUHeader" type="Label" parent="DebugMenu/VBoxContainer/FrameTimeHistory"]
+custom_minimum_size = Vector2(50, 0)
+layout_mode = 2
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
+theme_override_constants/outline_size = 3
+theme_override_font_sizes/font_size = 12
+text = "GPU:"
+horizontal_alignment = 2
+
+[node name="GPUAvg" type="Label" parent="DebugMenu/VBoxContainer/FrameTimeHistory"]
+modulate = Color(0, 1, 0, 1)
+custom_minimum_size = Vector2(50, 0)
+layout_mode = 2
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
+theme_override_constants/outline_size = 3
+theme_override_font_sizes/font_size = 12
+text = "123.45"
+horizontal_alignment = 2
+
+[node name="GPUMin" type="Label" parent="DebugMenu/VBoxContainer/FrameTimeHistory"]
+modulate = Color(0, 1, 0, 1)
+custom_minimum_size = Vector2(50, 0)
+layout_mode = 2
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
+theme_override_constants/outline_size = 3
+theme_override_font_sizes/font_size = 12
+text = "1.23"
+horizontal_alignment = 2
+
+[node name="GPUMax" type="Label" parent="DebugMenu/VBoxContainer/FrameTimeHistory"]
+modulate = Color(0, 1, 0, 1)
+custom_minimum_size = Vector2(50, 0)
+layout_mode = 2
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
+theme_override_constants/outline_size = 3
+theme_override_font_sizes/font_size = 12
+text = "123.45"
+horizontal_alignment = 2
+
+[node name="GPULast" type="Label" parent="DebugMenu/VBoxContainer/FrameTimeHistory"]
+modulate = Color(0, 1, 0, 1)
+custom_minimum_size = Vector2(50, 0)
+layout_mode = 2
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
+theme_override_constants/outline_size = 3
+theme_override_font_sizes/font_size = 12
+text = "123.45"
+horizontal_alignment = 2
+
+[node name="FPSGraph" type="HBoxContainer" parent="DebugMenu/VBoxContainer"]
+layout_mode = 2
+mouse_filter = 2
+alignment = 2
+
+[node name="Title" type="Label" parent="DebugMenu/VBoxContainer/FPSGraph"]
+custom_minimum_size = Vector2(0, 27)
+layout_mode = 2
+size_flags_horizontal = 8
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
+theme_override_constants/outline_size = 3
+theme_override_font_sizes/font_size = 12
+text = "FPS: ↑"
+vertical_alignment = 1
+
+[node name="Graph" type="Panel" parent="DebugMenu/VBoxContainer/FPSGraph"]
+custom_minimum_size = Vector2(150, 25)
+layout_mode = 2
+size_flags_vertical = 0
+mouse_filter = 2
+theme_override_styles/panel = SubResource("StyleBoxFlat_ki0n8")
+
+[node name="TotalGraph" type="HBoxContainer" parent="DebugMenu/VBoxContainer"]
+layout_mode = 2
+mouse_filter = 2
+alignment = 2
+
+[node name="Title" type="Label" parent="DebugMenu/VBoxContainer/TotalGraph"]
+custom_minimum_size = Vector2(0, 27)
+layout_mode = 2
+size_flags_horizontal = 8
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
+theme_override_constants/outline_size = 3
+theme_override_font_sizes/font_size = 12
+text = "Total: ↓"
+vertical_alignment = 1
+
+[node name="Graph" type="Panel" parent="DebugMenu/VBoxContainer/TotalGraph"]
+custom_minimum_size = Vector2(150, 25)
+layout_mode = 2
+size_flags_vertical = 0
+mouse_filter = 2
+theme_override_styles/panel = SubResource("StyleBoxFlat_ki0n8")
+
+[node name="CPUGraph" type="HBoxContainer" parent="DebugMenu/VBoxContainer"]
+layout_mode = 2
+mouse_filter = 2
+alignment = 2
+
+[node name="Title" type="Label" parent="DebugMenu/VBoxContainer/CPUGraph"]
+custom_minimum_size = Vector2(0, 27)
+layout_mode = 2
+size_flags_horizontal = 8
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
+theme_override_constants/outline_size = 3
+theme_override_font_sizes/font_size = 12
+text = "CPU: ↓"
+vertical_alignment = 1
+
+[node name="Graph" type="Panel" parent="DebugMenu/VBoxContainer/CPUGraph"]
+custom_minimum_size = Vector2(150, 25)
+layout_mode = 2
+size_flags_vertical = 0
+mouse_filter = 2
+theme_override_styles/panel = SubResource("StyleBoxFlat_ki0n8")
+
+[node name="GPUGraph" type="HBoxContainer" parent="DebugMenu/VBoxContainer"]
+layout_mode = 2
+mouse_filter = 2
+alignment = 2
+
+[node name="Title" type="Label" parent="DebugMenu/VBoxContainer/GPUGraph"]
+custom_minimum_size = Vector2(0, 27)
+layout_mode = 2
+size_flags_horizontal = 8
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
+theme_override_constants/outline_size = 3
+theme_override_font_sizes/font_size = 12
+text = "GPU: ↓"
+vertical_alignment = 1
+
+[node name="Graph" type="Panel" parent="DebugMenu/VBoxContainer/GPUGraph"]
+custom_minimum_size = Vector2(150, 25)
+layout_mode = 2
+size_flags_vertical = 0
+mouse_filter = 2
+theme_override_styles/panel = SubResource("StyleBoxFlat_ki0n8")
+
+[node name="Information" type="Label" parent="DebugMenu/VBoxContainer"]
+modulate = Color(1, 1, 1, 0.752941)
+layout_mode = 2
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
+theme_override_constants/outline_size = 3
+theme_override_font_sizes/font_size = 12
+text = "12th Gen Intel(R) Core(TM) i0-1234K
+Windows 12 64-bit (double precision), Vulkan 1.2.34
+NVIDIA GeForce RTX 1234, 123.45.67"
+horizontal_alignment = 2
+
+[node name="Settings" type="Label" parent="DebugMenu/VBoxContainer"]
+modulate = Color(0.8, 0.84, 1, 0.752941)
+layout_mode = 2
+theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
+theme_override_constants/outline_size = 3
+theme_override_font_sizes/font_size = 12
+text = "Project Version: 1.2.3
+Rendering Method: Forward+
+Window: 1234×567, Viewport: 1234×567
+3D Scale (FSR 1.0): 100% = 1234×567
+3D Antialiasing: TAA + 2× MSAA + FXAA
+SSR: 123 Steps
+SSAO: On
+SSIL: On
+SDFGI: 1 Cascades
+Glow: On
+Volumetric Fog: On
+2D Antialiasing: 2× MSAA"
+horizontal_alignment = 2
+
+[connection signal="visibility_changed" from="." to="." method="_on_visibility_changed"]
diff --git a/addons/debug_menu/plugin.cfg b/addons/debug_menu/plugin.cfg
new file mode 100644
index 0000000..54100f7
--- /dev/null
+++ b/addons/debug_menu/plugin.cfg
@@ -0,0 +1,7 @@
+[plugin]
+
+name="Debug Menu"
+description="In-game debug menu displaying performance metrics and hardware information"
+author="Calinou"
+version="1.2.0"
+script="plugin.gd"
diff --git a/addons/debug_menu/plugin.gd b/addons/debug_menu/plugin.gd
new file mode 100644
index 0000000..5ec132e
--- /dev/null
+++ b/addons/debug_menu/plugin.gd
@@ -0,0 +1,29 @@
+@tool
+extends EditorPlugin
+
+func _enter_tree() -> void:
+ add_autoload_singleton("DebugMenu", "res://addons/debug_menu/debug_menu.tscn")
+
+ # FIXME: This appears to do nothing.
+# if not ProjectSettings.has_setting("application/config/version"):
+# ProjectSettings.set_setting("application/config/version", "1.0.0")
+#
+# ProjectSettings.set_initial_value("application/config/version", "1.0.0")
+# ProjectSettings.add_property_info({
+# name = "application/config/version",
+# type = TYPE_STRING,
+# })
+#
+# if not InputMap.has_action("cycle_debug_menu"):
+# InputMap.add_action("cycle_debug_menu")
+# var event := InputEventKey.new()
+# event.keycode = KEY_F3
+# InputMap.action_add_event("cycle_debug_menu", event)
+#
+# ProjectSettings.save()
+
+
+func _exit_tree() -> void:
+ remove_autoload_singleton("DebugMenu")
+ # Don't remove the project setting's value and input map action,
+ # as the plugin may be re-enabled in the future.
diff --git a/addons/debug_menu/plugin.gd.uid b/addons/debug_menu/plugin.gd.uid
new file mode 100644
index 0000000..174e4e3
--- /dev/null
+++ b/addons/debug_menu/plugin.gd.uid
@@ -0,0 +1 @@
+uid://molshbe8g7d8
diff --git a/addons/godot-git-plugin/LICENSE b/addons/godot-git-plugin/LICENSE
new file mode 100644
index 0000000..f153fb8
--- /dev/null
+++ b/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/addons/godot-git-plugin/THIRDPARTY.md b/addons/godot-git-plugin/THIRDPARTY.md
new file mode 100644
index 0000000..837488f
--- /dev/null
+++ b/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/addons/godot-git-plugin/git_plugin.gdextension b/addons/godot-git-plugin/git_plugin.gdextension
new file mode 100644
index 0000000..49fffbf
--- /dev/null
+++ b/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/addons/godot-git-plugin/git_plugin.gdextension.uid b/addons/godot-git-plugin/git_plugin.gdextension.uid
new file mode 100644
index 0000000..c229c3b
--- /dev/null
+++ b/addons/godot-git-plugin/git_plugin.gdextension.uid
@@ -0,0 +1 @@
+uid://cxdgd32bnxopp
diff --git a/addons/godot-git-plugin/linux/libgit_plugin.linux.editor.x86_64.so b/addons/godot-git-plugin/linux/libgit_plugin.linux.editor.x86_64.so
new file mode 100644
index 0000000..8dab6db
Binary files /dev/null and b/addons/godot-git-plugin/linux/libgit_plugin.linux.editor.x86_64.so differ
diff --git a/addons/godot-git-plugin/macos/libgit_plugin.macos.editor.universal.dylib b/addons/godot-git-plugin/macos/libgit_plugin.macos.editor.universal.dylib
new file mode 100644
index 0000000..644aa2a
Binary files /dev/null and b/addons/godot-git-plugin/macos/libgit_plugin.macos.editor.universal.dylib differ
diff --git a/addons/godot-git-plugin/plugin.cfg b/addons/godot-git-plugin/plugin.cfg
new file mode 100644
index 0000000..9c4e36f
--- /dev/null
+++ b/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/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.dll b/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.dll
new file mode 100644
index 0000000..47bbb1d
Binary files /dev/null and b/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.dll differ
diff --git a/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.exp b/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/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.exp differ
diff --git a/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.lib b/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.lib
new file mode 100644
index 0000000..4537929
Binary files /dev/null and b/addons/godot-git-plugin/win64/libgit_plugin.windows.editor.x86_64.lib differ
diff --git a/addons/kenney_prototype_textures/LICENSE.txt b/addons/kenney_prototype_textures/LICENSE.txt
new file mode 100644
index 0000000..839f104
--- /dev/null
+++ b/addons/kenney_prototype_textures/LICENSE.txt
@@ -0,0 +1,23 @@
+
+
+ Prototype Textures 1.0
+
+ Created/distributed by Kenney (www.kenney.nl)
+ Creation date: 08-04-2020
+
+ ------------------------------
+
+ License: (Creative Commons Zero, CC0)
+ http://creativecommons.org/publicdomain/zero/1.0/
+
+ This content is free to use in personal, educational and commercial projects.
+ Support us by crediting Kenney or www.kenney.nl (this is not mandatory)
+
+ ------------------------------
+
+ Donate: http://support.kenney.nl
+ Request: http://request.kenney.nl
+ Patreon: http://patreon.com/kenney/
+
+ Follow on Twitter for updates:
+ http://twitter.com/KenneyNL
diff --git a/addons/kenney_prototype_textures/dark/texture_01.png b/addons/kenney_prototype_textures/dark/texture_01.png
new file mode 100644
index 0000000..14a9811
Binary files /dev/null and b/addons/kenney_prototype_textures/dark/texture_01.png differ
diff --git a/addons/kenney_prototype_textures/dark/texture_01.png.import b/addons/kenney_prototype_textures/dark/texture_01.png.import
new file mode 100644
index 0000000..1982d00
--- /dev/null
+++ b/addons/kenney_prototype_textures/dark/texture_01.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dyeonyfyhc5ix"
+path="res://.godot/imported/texture_01.png-60e3b3d3143b179c069dbcbff77ff160.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/dark/texture_01.png"
+dest_files=["res://.godot/imported/texture_01.png-60e3b3d3143b179c069dbcbff77ff160.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/dark/texture_02.png b/addons/kenney_prototype_textures/dark/texture_02.png
new file mode 100644
index 0000000..d6a2a21
Binary files /dev/null and b/addons/kenney_prototype_textures/dark/texture_02.png differ
diff --git a/addons/kenney_prototype_textures/dark/texture_02.png.import b/addons/kenney_prototype_textures/dark/texture_02.png.import
new file mode 100644
index 0000000..7292554
--- /dev/null
+++ b/addons/kenney_prototype_textures/dark/texture_02.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dca622qihqyyk"
+path="res://.godot/imported/texture_02.png-814d4f515892bb8274d285748f4a73a0.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/dark/texture_02.png"
+dest_files=["res://.godot/imported/texture_02.png-814d4f515892bb8274d285748f4a73a0.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/dark/texture_03.png b/addons/kenney_prototype_textures/dark/texture_03.png
new file mode 100644
index 0000000..4aa482d
Binary files /dev/null and b/addons/kenney_prototype_textures/dark/texture_03.png differ
diff --git a/addons/kenney_prototype_textures/dark/texture_03.png.import b/addons/kenney_prototype_textures/dark/texture_03.png.import
new file mode 100644
index 0000000..bceb8c8
--- /dev/null
+++ b/addons/kenney_prototype_textures/dark/texture_03.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://f4tc54owdm6"
+path="res://.godot/imported/texture_03.png-eef45c22e5a84c5df22e7f80e41112c6.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/dark/texture_03.png"
+dest_files=["res://.godot/imported/texture_03.png-eef45c22e5a84c5df22e7f80e41112c6.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/dark/texture_04.png b/addons/kenney_prototype_textures/dark/texture_04.png
new file mode 100644
index 0000000..1e0a8f9
Binary files /dev/null and b/addons/kenney_prototype_textures/dark/texture_04.png differ
diff --git a/addons/kenney_prototype_textures/dark/texture_04.png.import b/addons/kenney_prototype_textures/dark/texture_04.png.import
new file mode 100644
index 0000000..0bad1fb
--- /dev/null
+++ b/addons/kenney_prototype_textures/dark/texture_04.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://bh5s1vc00cigm"
+path="res://.godot/imported/texture_04.png-af505c12b2a7903458bb29299e718506.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/dark/texture_04.png"
+dest_files=["res://.godot/imported/texture_04.png-af505c12b2a7903458bb29299e718506.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/dark/texture_05.png b/addons/kenney_prototype_textures/dark/texture_05.png
new file mode 100644
index 0000000..cd01f8c
Binary files /dev/null and b/addons/kenney_prototype_textures/dark/texture_05.png differ
diff --git a/addons/kenney_prototype_textures/dark/texture_05.png.import b/addons/kenney_prototype_textures/dark/texture_05.png.import
new file mode 100644
index 0000000..dcabc59
--- /dev/null
+++ b/addons/kenney_prototype_textures/dark/texture_05.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://clim0dv3fkp50"
+path="res://.godot/imported/texture_05.png-ed8122ecdc41ff5aeccab84e8db1e4f0.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/dark/texture_05.png"
+dest_files=["res://.godot/imported/texture_05.png-ed8122ecdc41ff5aeccab84e8db1e4f0.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/dark/texture_06.png b/addons/kenney_prototype_textures/dark/texture_06.png
new file mode 100644
index 0000000..4e8f53c
Binary files /dev/null and b/addons/kenney_prototype_textures/dark/texture_06.png differ
diff --git a/addons/kenney_prototype_textures/dark/texture_06.png.import b/addons/kenney_prototype_textures/dark/texture_06.png.import
new file mode 100644
index 0000000..6a091c0
--- /dev/null
+++ b/addons/kenney_prototype_textures/dark/texture_06.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://bne05pt7fq8t8"
+path="res://.godot/imported/texture_06.png-004ed3d5b88361cdfb83a20714e917e7.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/dark/texture_06.png"
+dest_files=["res://.godot/imported/texture_06.png-004ed3d5b88361cdfb83a20714e917e7.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/dark/texture_07.png b/addons/kenney_prototype_textures/dark/texture_07.png
new file mode 100644
index 0000000..d00973e
Binary files /dev/null and b/addons/kenney_prototype_textures/dark/texture_07.png differ
diff --git a/addons/kenney_prototype_textures/dark/texture_07.png.import b/addons/kenney_prototype_textures/dark/texture_07.png.import
new file mode 100644
index 0000000..83f7ab3
--- /dev/null
+++ b/addons/kenney_prototype_textures/dark/texture_07.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://b876lj654b115"
+path="res://.godot/imported/texture_07.png-7c77ff22e41b4a54319073cb71530d81.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/dark/texture_07.png"
+dest_files=["res://.godot/imported/texture_07.png-7c77ff22e41b4a54319073cb71530d81.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/dark/texture_08.png b/addons/kenney_prototype_textures/dark/texture_08.png
new file mode 100644
index 0000000..72dd6c0
Binary files /dev/null and b/addons/kenney_prototype_textures/dark/texture_08.png differ
diff --git a/addons/kenney_prototype_textures/dark/texture_08.png.import b/addons/kenney_prototype_textures/dark/texture_08.png.import
new file mode 100644
index 0000000..a21298a
--- /dev/null
+++ b/addons/kenney_prototype_textures/dark/texture_08.png.import
@@ -0,0 +1,36 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://cf7qywkcq7q8i"
+path.s3tc="res://.godot/imported/texture_08.png-5883ddd047173c8b118ead887054e6fc.s3tc.ctex"
+path.etc2="res://.godot/imported/texture_08.png-5883ddd047173c8b118ead887054e6fc.etc2.ctex"
+metadata={
+"imported_formats": ["s3tc_bptc", "etc2_astc"],
+"vram_texture": true
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/dark/texture_08.png"
+dest_files=["res://.godot/imported/texture_08.png-5883ddd047173c8b118ead887054e6fc.s3tc.ctex", "res://.godot/imported/texture_08.png-5883ddd047173c8b118ead887054e6fc.etc2.ctex"]
+
+[params]
+
+compress/mode=2
+compress/high_quality=false
+compress/lossy_quality=0.7
+compress/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=true
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/fix_alpha_border=true
+process/premult_alpha=false
+process/normal_map_invert_y=false
+process/hdr_as_srgb=false
+process/hdr_clamp_exposure=false
+process/size_limit=0
+detect_3d/compress_to=0
diff --git a/addons/kenney_prototype_textures/dark/texture_09.png b/addons/kenney_prototype_textures/dark/texture_09.png
new file mode 100644
index 0000000..e81fa1a
Binary files /dev/null and b/addons/kenney_prototype_textures/dark/texture_09.png differ
diff --git a/addons/kenney_prototype_textures/dark/texture_09.png.import b/addons/kenney_prototype_textures/dark/texture_09.png.import
new file mode 100644
index 0000000..06eea3e
--- /dev/null
+++ b/addons/kenney_prototype_textures/dark/texture_09.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://ti7q2ktlsyj5"
+path="res://.godot/imported/texture_09.png-8e25cd5657e2d326068eb27bfa1aacec.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/dark/texture_09.png"
+dest_files=["res://.godot/imported/texture_09.png-8e25cd5657e2d326068eb27bfa1aacec.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/dark/texture_10.png b/addons/kenney_prototype_textures/dark/texture_10.png
new file mode 100644
index 0000000..682088c
Binary files /dev/null and b/addons/kenney_prototype_textures/dark/texture_10.png differ
diff --git a/addons/kenney_prototype_textures/dark/texture_10.png.import b/addons/kenney_prototype_textures/dark/texture_10.png.import
new file mode 100644
index 0000000..279352d
--- /dev/null
+++ b/addons/kenney_prototype_textures/dark/texture_10.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://bndkx6bj47v23"
+path="res://.godot/imported/texture_10.png-1e788999a192eabd201c3b3435475799.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/dark/texture_10.png"
+dest_files=["res://.godot/imported/texture_10.png-1e788999a192eabd201c3b3435475799.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/dark/texture_11.png b/addons/kenney_prototype_textures/dark/texture_11.png
new file mode 100644
index 0000000..f0571a1
Binary files /dev/null and b/addons/kenney_prototype_textures/dark/texture_11.png differ
diff --git a/addons/kenney_prototype_textures/dark/texture_11.png.import b/addons/kenney_prototype_textures/dark/texture_11.png.import
new file mode 100644
index 0000000..1ef8d0f
--- /dev/null
+++ b/addons/kenney_prototype_textures/dark/texture_11.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://cav5vm7o052v6"
+path="res://.godot/imported/texture_11.png-f61ad46caf1a41d85454e490ec43c8ec.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/dark/texture_11.png"
+dest_files=["res://.godot/imported/texture_11.png-f61ad46caf1a41d85454e490ec43c8ec.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/dark/texture_12.png b/addons/kenney_prototype_textures/dark/texture_12.png
new file mode 100644
index 0000000..b797dbe
Binary files /dev/null and b/addons/kenney_prototype_textures/dark/texture_12.png differ
diff --git a/addons/kenney_prototype_textures/dark/texture_12.png.import b/addons/kenney_prototype_textures/dark/texture_12.png.import
new file mode 100644
index 0000000..5b16142
--- /dev/null
+++ b/addons/kenney_prototype_textures/dark/texture_12.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dmwhrgytke8y2"
+path="res://.godot/imported/texture_12.png-aa893b2c5354267551e55ec14bb1999b.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/dark/texture_12.png"
+dest_files=["res://.godot/imported/texture_12.png-aa893b2c5354267551e55ec14bb1999b.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/dark/texture_13.png b/addons/kenney_prototype_textures/dark/texture_13.png
new file mode 100644
index 0000000..6e8aff4
Binary files /dev/null and b/addons/kenney_prototype_textures/dark/texture_13.png differ
diff --git a/addons/kenney_prototype_textures/dark/texture_13.png.import b/addons/kenney_prototype_textures/dark/texture_13.png.import
new file mode 100644
index 0000000..e48a4cd
--- /dev/null
+++ b/addons/kenney_prototype_textures/dark/texture_13.png.import
@@ -0,0 +1,36 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dv575ijvfdu7s"
+path.s3tc="res://.godot/imported/texture_13.png-51cb3f38ea774c85cb3ad561d20c5b53.s3tc.ctex"
+path.etc2="res://.godot/imported/texture_13.png-51cb3f38ea774c85cb3ad561d20c5b53.etc2.ctex"
+metadata={
+"imported_formats": ["s3tc_bptc", "etc2_astc"],
+"vram_texture": true
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/dark/texture_13.png"
+dest_files=["res://.godot/imported/texture_13.png-51cb3f38ea774c85cb3ad561d20c5b53.s3tc.ctex", "res://.godot/imported/texture_13.png-51cb3f38ea774c85cb3ad561d20c5b53.etc2.ctex"]
+
+[params]
+
+compress/mode=2
+compress/high_quality=false
+compress/lossy_quality=0.7
+compress/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=true
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/fix_alpha_border=true
+process/premult_alpha=false
+process/normal_map_invert_y=false
+process/hdr_as_srgb=false
+process/hdr_clamp_exposure=false
+process/size_limit=0
+detect_3d/compress_to=0
diff --git a/addons/kenney_prototype_textures/green/texture_01.png b/addons/kenney_prototype_textures/green/texture_01.png
new file mode 100644
index 0000000..7d53fe7
Binary files /dev/null and b/addons/kenney_prototype_textures/green/texture_01.png differ
diff --git a/addons/kenney_prototype_textures/green/texture_01.png.import b/addons/kenney_prototype_textures/green/texture_01.png.import
new file mode 100644
index 0000000..d8157e1
--- /dev/null
+++ b/addons/kenney_prototype_textures/green/texture_01.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://cy4fqgm7k7xcs"
+path="res://.godot/imported/texture_01.png-94ebd82494c839e91a05b9e1cc2750ca.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/green/texture_01.png"
+dest_files=["res://.godot/imported/texture_01.png-94ebd82494c839e91a05b9e1cc2750ca.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/green/texture_02.png b/addons/kenney_prototype_textures/green/texture_02.png
new file mode 100644
index 0000000..15ceaa8
Binary files /dev/null and b/addons/kenney_prototype_textures/green/texture_02.png differ
diff --git a/addons/kenney_prototype_textures/green/texture_02.png.import b/addons/kenney_prototype_textures/green/texture_02.png.import
new file mode 100644
index 0000000..5adeb99
--- /dev/null
+++ b/addons/kenney_prototype_textures/green/texture_02.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://c8b5ouinnm2si"
+path="res://.godot/imported/texture_02.png-aa1bb055b55bdc7c20e196b7286eebdf.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/green/texture_02.png"
+dest_files=["res://.godot/imported/texture_02.png-aa1bb055b55bdc7c20e196b7286eebdf.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/green/texture_03.png b/addons/kenney_prototype_textures/green/texture_03.png
new file mode 100644
index 0000000..90eedc6
Binary files /dev/null and b/addons/kenney_prototype_textures/green/texture_03.png differ
diff --git a/addons/kenney_prototype_textures/green/texture_03.png.import b/addons/kenney_prototype_textures/green/texture_03.png.import
new file mode 100644
index 0000000..5e4bcab
--- /dev/null
+++ b/addons/kenney_prototype_textures/green/texture_03.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://clo6ellhdh6tr"
+path="res://.godot/imported/texture_03.png-3fec31a20982e9bd2e5e1aa731ea99cf.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/green/texture_03.png"
+dest_files=["res://.godot/imported/texture_03.png-3fec31a20982e9bd2e5e1aa731ea99cf.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/green/texture_04.png b/addons/kenney_prototype_textures/green/texture_04.png
new file mode 100644
index 0000000..aed20f4
Binary files /dev/null and b/addons/kenney_prototype_textures/green/texture_04.png differ
diff --git a/addons/kenney_prototype_textures/green/texture_04.png.import b/addons/kenney_prototype_textures/green/texture_04.png.import
new file mode 100644
index 0000000..178aacd
--- /dev/null
+++ b/addons/kenney_prototype_textures/green/texture_04.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://ihl8r88n0qus"
+path="res://.godot/imported/texture_04.png-4678cc1dfb831f775bdc30cfd7f78769.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/green/texture_04.png"
+dest_files=["res://.godot/imported/texture_04.png-4678cc1dfb831f775bdc30cfd7f78769.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/green/texture_05.png b/addons/kenney_prototype_textures/green/texture_05.png
new file mode 100644
index 0000000..c89df69
Binary files /dev/null and b/addons/kenney_prototype_textures/green/texture_05.png differ
diff --git a/addons/kenney_prototype_textures/green/texture_05.png.import b/addons/kenney_prototype_textures/green/texture_05.png.import
new file mode 100644
index 0000000..000f7d2
--- /dev/null
+++ b/addons/kenney_prototype_textures/green/texture_05.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dhwbsf040ri3h"
+path="res://.godot/imported/texture_05.png-8448519b39c1d98d64cf807b48969765.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/green/texture_05.png"
+dest_files=["res://.godot/imported/texture_05.png-8448519b39c1d98d64cf807b48969765.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/green/texture_06.png b/addons/kenney_prototype_textures/green/texture_06.png
new file mode 100644
index 0000000..59e0df0
Binary files /dev/null and b/addons/kenney_prototype_textures/green/texture_06.png differ
diff --git a/addons/kenney_prototype_textures/green/texture_06.png.import b/addons/kenney_prototype_textures/green/texture_06.png.import
new file mode 100644
index 0000000..7257f7f
--- /dev/null
+++ b/addons/kenney_prototype_textures/green/texture_06.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://o0pnh18kb12k"
+path="res://.godot/imported/texture_06.png-01c48f82ab8bc613ec4efc2c2c669b12.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/green/texture_06.png"
+dest_files=["res://.godot/imported/texture_06.png-01c48f82ab8bc613ec4efc2c2c669b12.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/green/texture_07.png b/addons/kenney_prototype_textures/green/texture_07.png
new file mode 100644
index 0000000..7a4bdaf
Binary files /dev/null and b/addons/kenney_prototype_textures/green/texture_07.png differ
diff --git a/addons/kenney_prototype_textures/green/texture_07.png.import b/addons/kenney_prototype_textures/green/texture_07.png.import
new file mode 100644
index 0000000..a672383
--- /dev/null
+++ b/addons/kenney_prototype_textures/green/texture_07.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://bt8c0h8ugbcdd"
+path="res://.godot/imported/texture_07.png-eec10b758cacbb71a02166a7f8cee6c0.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/green/texture_07.png"
+dest_files=["res://.godot/imported/texture_07.png-eec10b758cacbb71a02166a7f8cee6c0.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/green/texture_08.png b/addons/kenney_prototype_textures/green/texture_08.png
new file mode 100644
index 0000000..8e4f320
Binary files /dev/null and b/addons/kenney_prototype_textures/green/texture_08.png differ
diff --git a/addons/kenney_prototype_textures/green/texture_08.png.import b/addons/kenney_prototype_textures/green/texture_08.png.import
new file mode 100644
index 0000000..7c705bb
--- /dev/null
+++ b/addons/kenney_prototype_textures/green/texture_08.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://cqdsh8ydg68u5"
+path="res://.godot/imported/texture_08.png-d1888869b0d1d3a0ab2d517cbac7820a.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/green/texture_08.png"
+dest_files=["res://.godot/imported/texture_08.png-d1888869b0d1d3a0ab2d517cbac7820a.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/green/texture_09.png b/addons/kenney_prototype_textures/green/texture_09.png
new file mode 100644
index 0000000..0a7eddb
Binary files /dev/null and b/addons/kenney_prototype_textures/green/texture_09.png differ
diff --git a/addons/kenney_prototype_textures/green/texture_09.png.import b/addons/kenney_prototype_textures/green/texture_09.png.import
new file mode 100644
index 0000000..1e2feb6
--- /dev/null
+++ b/addons/kenney_prototype_textures/green/texture_09.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://74cp7lj7ks12"
+path="res://.godot/imported/texture_09.png-a21adfe1a090b0dd8f0d376d9ee5f68e.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/green/texture_09.png"
+dest_files=["res://.godot/imported/texture_09.png-a21adfe1a090b0dd8f0d376d9ee5f68e.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/green/texture_10.png b/addons/kenney_prototype_textures/green/texture_10.png
new file mode 100644
index 0000000..559a7c1
Binary files /dev/null and b/addons/kenney_prototype_textures/green/texture_10.png differ
diff --git a/addons/kenney_prototype_textures/green/texture_10.png.import b/addons/kenney_prototype_textures/green/texture_10.png.import
new file mode 100644
index 0000000..73f80cb
--- /dev/null
+++ b/addons/kenney_prototype_textures/green/texture_10.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://b3jk04b8c05rd"
+path="res://.godot/imported/texture_10.png-3f72abba172432380bd86a508e997833.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/green/texture_10.png"
+dest_files=["res://.godot/imported/texture_10.png-3f72abba172432380bd86a508e997833.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/green/texture_11.png b/addons/kenney_prototype_textures/green/texture_11.png
new file mode 100644
index 0000000..119294d
Binary files /dev/null and b/addons/kenney_prototype_textures/green/texture_11.png differ
diff --git a/addons/kenney_prototype_textures/green/texture_11.png.import b/addons/kenney_prototype_textures/green/texture_11.png.import
new file mode 100644
index 0000000..a641c7d
--- /dev/null
+++ b/addons/kenney_prototype_textures/green/texture_11.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://2irw730dsxmo"
+path="res://.godot/imported/texture_11.png-ad76ef70f9eb459fb1e8d9ba9cc092c4.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/green/texture_11.png"
+dest_files=["res://.godot/imported/texture_11.png-ad76ef70f9eb459fb1e8d9ba9cc092c4.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/green/texture_12.png b/addons/kenney_prototype_textures/green/texture_12.png
new file mode 100644
index 0000000..5991228
Binary files /dev/null and b/addons/kenney_prototype_textures/green/texture_12.png differ
diff --git a/addons/kenney_prototype_textures/green/texture_12.png.import b/addons/kenney_prototype_textures/green/texture_12.png.import
new file mode 100644
index 0000000..d61ceb3
--- /dev/null
+++ b/addons/kenney_prototype_textures/green/texture_12.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dgii5oac2q0w0"
+path="res://.godot/imported/texture_12.png-d4577347200436d9060aa21fce76cd93.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/green/texture_12.png"
+dest_files=["res://.godot/imported/texture_12.png-d4577347200436d9060aa21fce76cd93.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/green/texture_13.png b/addons/kenney_prototype_textures/green/texture_13.png
new file mode 100644
index 0000000..9c57c6e
Binary files /dev/null and b/addons/kenney_prototype_textures/green/texture_13.png differ
diff --git a/addons/kenney_prototype_textures/green/texture_13.png.import b/addons/kenney_prototype_textures/green/texture_13.png.import
new file mode 100644
index 0000000..bc18e9e
--- /dev/null
+++ b/addons/kenney_prototype_textures/green/texture_13.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://cwmmuupjppb4u"
+path="res://.godot/imported/texture_13.png-f5b9867fd39cd83793f3a92217d9eac6.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/green/texture_13.png"
+dest_files=["res://.godot/imported/texture_13.png-f5b9867fd39cd83793f3a92217d9eac6.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/light/texture_01.png b/addons/kenney_prototype_textures/light/texture_01.png
new file mode 100644
index 0000000..9e93d3e
Binary files /dev/null and b/addons/kenney_prototype_textures/light/texture_01.png differ
diff --git a/addons/kenney_prototype_textures/light/texture_01.png.import b/addons/kenney_prototype_textures/light/texture_01.png.import
new file mode 100644
index 0000000..d071a88
--- /dev/null
+++ b/addons/kenney_prototype_textures/light/texture_01.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://b2srnsuwkg854"
+path="res://.godot/imported/texture_01.png-e10423e44834e1b4a90c3134e446b32d.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/light/texture_01.png"
+dest_files=["res://.godot/imported/texture_01.png-e10423e44834e1b4a90c3134e446b32d.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/light/texture_02.png b/addons/kenney_prototype_textures/light/texture_02.png
new file mode 100644
index 0000000..c52d0d2
Binary files /dev/null and b/addons/kenney_prototype_textures/light/texture_02.png differ
diff --git a/addons/kenney_prototype_textures/light/texture_02.png.import b/addons/kenney_prototype_textures/light/texture_02.png.import
new file mode 100644
index 0000000..09e5639
--- /dev/null
+++ b/addons/kenney_prototype_textures/light/texture_02.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://drd3sd0i3gto8"
+path="res://.godot/imported/texture_02.png-ffde4d38b35463525c3815b255790206.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/light/texture_02.png"
+dest_files=["res://.godot/imported/texture_02.png-ffde4d38b35463525c3815b255790206.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/light/texture_03.png b/addons/kenney_prototype_textures/light/texture_03.png
new file mode 100644
index 0000000..5960eca
Binary files /dev/null and b/addons/kenney_prototype_textures/light/texture_03.png differ
diff --git a/addons/kenney_prototype_textures/light/texture_03.png.import b/addons/kenney_prototype_textures/light/texture_03.png.import
new file mode 100644
index 0000000..a31b2f1
--- /dev/null
+++ b/addons/kenney_prototype_textures/light/texture_03.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://obbarcy5xtv2"
+path="res://.godot/imported/texture_03.png-6e55012c4e1c3f4d809747f3852d75ad.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/light/texture_03.png"
+dest_files=["res://.godot/imported/texture_03.png-6e55012c4e1c3f4d809747f3852d75ad.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/light/texture_04.png b/addons/kenney_prototype_textures/light/texture_04.png
new file mode 100644
index 0000000..0b9a1d5
Binary files /dev/null and b/addons/kenney_prototype_textures/light/texture_04.png differ
diff --git a/addons/kenney_prototype_textures/light/texture_04.png.import b/addons/kenney_prototype_textures/light/texture_04.png.import
new file mode 100644
index 0000000..0eb4046
--- /dev/null
+++ b/addons/kenney_prototype_textures/light/texture_04.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://3aeresllsbyt"
+path="res://.godot/imported/texture_04.png-201edfe05d5c4f7f54049864048cfaf1.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/light/texture_04.png"
+dest_files=["res://.godot/imported/texture_04.png-201edfe05d5c4f7f54049864048cfaf1.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/light/texture_05.png b/addons/kenney_prototype_textures/light/texture_05.png
new file mode 100644
index 0000000..88f2e5c
Binary files /dev/null and b/addons/kenney_prototype_textures/light/texture_05.png differ
diff --git a/addons/kenney_prototype_textures/light/texture_05.png.import b/addons/kenney_prototype_textures/light/texture_05.png.import
new file mode 100644
index 0000000..5b1c679
--- /dev/null
+++ b/addons/kenney_prototype_textures/light/texture_05.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dstv4epwtdu7y"
+path="res://.godot/imported/texture_05.png-07ce2eafef84a176bcf77bc59cb1f6ec.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/light/texture_05.png"
+dest_files=["res://.godot/imported/texture_05.png-07ce2eafef84a176bcf77bc59cb1f6ec.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/light/texture_06.png b/addons/kenney_prototype_textures/light/texture_06.png
new file mode 100644
index 0000000..374a5d0
Binary files /dev/null and b/addons/kenney_prototype_textures/light/texture_06.png differ
diff --git a/addons/kenney_prototype_textures/light/texture_06.png.import b/addons/kenney_prototype_textures/light/texture_06.png.import
new file mode 100644
index 0000000..121021c
--- /dev/null
+++ b/addons/kenney_prototype_textures/light/texture_06.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dbef3pankrxh1"
+path="res://.godot/imported/texture_06.png-88331a9f246e47943dc01d0128a4ca4e.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/light/texture_06.png"
+dest_files=["res://.godot/imported/texture_06.png-88331a9f246e47943dc01d0128a4ca4e.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/light/texture_07.png b/addons/kenney_prototype_textures/light/texture_07.png
new file mode 100644
index 0000000..34400e3
Binary files /dev/null and b/addons/kenney_prototype_textures/light/texture_07.png differ
diff --git a/addons/kenney_prototype_textures/light/texture_07.png.import b/addons/kenney_prototype_textures/light/texture_07.png.import
new file mode 100644
index 0000000..b18e664
--- /dev/null
+++ b/addons/kenney_prototype_textures/light/texture_07.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://cpr1w1wlhtbkh"
+path="res://.godot/imported/texture_07.png-ab5f4a6ad655d06104ea7939a06ec496.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/light/texture_07.png"
+dest_files=["res://.godot/imported/texture_07.png-ab5f4a6ad655d06104ea7939a06ec496.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/light/texture_08.png b/addons/kenney_prototype_textures/light/texture_08.png
new file mode 100644
index 0000000..c5bbc74
Binary files /dev/null and b/addons/kenney_prototype_textures/light/texture_08.png differ
diff --git a/addons/kenney_prototype_textures/light/texture_08.png.import b/addons/kenney_prototype_textures/light/texture_08.png.import
new file mode 100644
index 0000000..6552454
--- /dev/null
+++ b/addons/kenney_prototype_textures/light/texture_08.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://bwxwoq77mf0xk"
+path="res://.godot/imported/texture_08.png-7b5c5c16cd076d2bbc9eeb33a454861b.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/light/texture_08.png"
+dest_files=["res://.godot/imported/texture_08.png-7b5c5c16cd076d2bbc9eeb33a454861b.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/light/texture_09.png b/addons/kenney_prototype_textures/light/texture_09.png
new file mode 100644
index 0000000..435e19e
Binary files /dev/null and b/addons/kenney_prototype_textures/light/texture_09.png differ
diff --git a/addons/kenney_prototype_textures/light/texture_09.png.import b/addons/kenney_prototype_textures/light/texture_09.png.import
new file mode 100644
index 0000000..36536e3
--- /dev/null
+++ b/addons/kenney_prototype_textures/light/texture_09.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://bjfcepikgom15"
+path="res://.godot/imported/texture_09.png-53f655f3d7e1722128f99e8aff9071f9.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/light/texture_09.png"
+dest_files=["res://.godot/imported/texture_09.png-53f655f3d7e1722128f99e8aff9071f9.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/light/texture_10.png b/addons/kenney_prototype_textures/light/texture_10.png
new file mode 100644
index 0000000..25ac8ae
Binary files /dev/null and b/addons/kenney_prototype_textures/light/texture_10.png differ
diff --git a/addons/kenney_prototype_textures/light/texture_10.png.import b/addons/kenney_prototype_textures/light/texture_10.png.import
new file mode 100644
index 0000000..375c620
--- /dev/null
+++ b/addons/kenney_prototype_textures/light/texture_10.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://d0wvyfiw7vmn7"
+path="res://.godot/imported/texture_10.png-499479b9aaf089d55adf67874bc0ff66.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/light/texture_10.png"
+dest_files=["res://.godot/imported/texture_10.png-499479b9aaf089d55adf67874bc0ff66.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/light/texture_11.png b/addons/kenney_prototype_textures/light/texture_11.png
new file mode 100644
index 0000000..7d4aebb
Binary files /dev/null and b/addons/kenney_prototype_textures/light/texture_11.png differ
diff --git a/addons/kenney_prototype_textures/light/texture_11.png.import b/addons/kenney_prototype_textures/light/texture_11.png.import
new file mode 100644
index 0000000..1e434e1
--- /dev/null
+++ b/addons/kenney_prototype_textures/light/texture_11.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://c7sq0xph2ltk4"
+path="res://.godot/imported/texture_11.png-4e4ade9ab136614b6cf0b0e879f1d510.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/light/texture_11.png"
+dest_files=["res://.godot/imported/texture_11.png-4e4ade9ab136614b6cf0b0e879f1d510.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/light/texture_12.png b/addons/kenney_prototype_textures/light/texture_12.png
new file mode 100644
index 0000000..6bd3926
Binary files /dev/null and b/addons/kenney_prototype_textures/light/texture_12.png differ
diff --git a/addons/kenney_prototype_textures/light/texture_12.png.import b/addons/kenney_prototype_textures/light/texture_12.png.import
new file mode 100644
index 0000000..cba98da
--- /dev/null
+++ b/addons/kenney_prototype_textures/light/texture_12.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://ch0sda2yp42rf"
+path="res://.godot/imported/texture_12.png-8fe800bbb69d01cae0c0d84c062244bf.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/light/texture_12.png"
+dest_files=["res://.godot/imported/texture_12.png-8fe800bbb69d01cae0c0d84c062244bf.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/light/texture_13.png b/addons/kenney_prototype_textures/light/texture_13.png
new file mode 100644
index 0000000..74515a7
Binary files /dev/null and b/addons/kenney_prototype_textures/light/texture_13.png differ
diff --git a/addons/kenney_prototype_textures/light/texture_13.png.import b/addons/kenney_prototype_textures/light/texture_13.png.import
new file mode 100644
index 0000000..a64cb4f
--- /dev/null
+++ b/addons/kenney_prototype_textures/light/texture_13.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://xq5avjkbw8q5"
+path="res://.godot/imported/texture_13.png-a43b6ac63b0fe1c4a3f66335474e59b6.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/light/texture_13.png"
+dest_files=["res://.godot/imported/texture_13.png-a43b6ac63b0fe1c4a3f66335474e59b6.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/orange/texture_01.png b/addons/kenney_prototype_textures/orange/texture_01.png
new file mode 100644
index 0000000..3eda5cd
Binary files /dev/null and b/addons/kenney_prototype_textures/orange/texture_01.png differ
diff --git a/addons/kenney_prototype_textures/orange/texture_01.png.import b/addons/kenney_prototype_textures/orange/texture_01.png.import
new file mode 100644
index 0000000..69ab1eb
--- /dev/null
+++ b/addons/kenney_prototype_textures/orange/texture_01.png.import
@@ -0,0 +1,36 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dtkppjofklkfh"
+path.s3tc="res://.godot/imported/texture_01.png-2bf7db98e09b5b5073e8e8ca66419718.s3tc.ctex"
+path.etc2="res://.godot/imported/texture_01.png-2bf7db98e09b5b5073e8e8ca66419718.etc2.ctex"
+metadata={
+"imported_formats": ["s3tc_bptc", "etc2_astc"],
+"vram_texture": true
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/orange/texture_01.png"
+dest_files=["res://.godot/imported/texture_01.png-2bf7db98e09b5b5073e8e8ca66419718.s3tc.ctex", "res://.godot/imported/texture_01.png-2bf7db98e09b5b5073e8e8ca66419718.etc2.ctex"]
+
+[params]
+
+compress/mode=2
+compress/high_quality=false
+compress/lossy_quality=0.7
+compress/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=true
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/fix_alpha_border=true
+process/premult_alpha=false
+process/normal_map_invert_y=false
+process/hdr_as_srgb=false
+process/hdr_clamp_exposure=false
+process/size_limit=0
+detect_3d/compress_to=0
diff --git a/addons/kenney_prototype_textures/orange/texture_02.png b/addons/kenney_prototype_textures/orange/texture_02.png
new file mode 100644
index 0000000..1460f2b
Binary files /dev/null and b/addons/kenney_prototype_textures/orange/texture_02.png differ
diff --git a/addons/kenney_prototype_textures/orange/texture_02.png.import b/addons/kenney_prototype_textures/orange/texture_02.png.import
new file mode 100644
index 0000000..ccfc571
--- /dev/null
+++ b/addons/kenney_prototype_textures/orange/texture_02.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://nvlitxvw7v3o"
+path="res://.godot/imported/texture_02.png-4eab4e19c2171e5b0668b65373b74c6d.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/orange/texture_02.png"
+dest_files=["res://.godot/imported/texture_02.png-4eab4e19c2171e5b0668b65373b74c6d.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/orange/texture_03.png b/addons/kenney_prototype_textures/orange/texture_03.png
new file mode 100644
index 0000000..09975cc
Binary files /dev/null and b/addons/kenney_prototype_textures/orange/texture_03.png differ
diff --git a/addons/kenney_prototype_textures/orange/texture_03.png.import b/addons/kenney_prototype_textures/orange/texture_03.png.import
new file mode 100644
index 0000000..257c390
--- /dev/null
+++ b/addons/kenney_prototype_textures/orange/texture_03.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://cu4gjq4s1vqb"
+path="res://.godot/imported/texture_03.png-129b8387293b325752961580c78873e2.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/orange/texture_03.png"
+dest_files=["res://.godot/imported/texture_03.png-129b8387293b325752961580c78873e2.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/orange/texture_04.png b/addons/kenney_prototype_textures/orange/texture_04.png
new file mode 100644
index 0000000..8ac9527
Binary files /dev/null and b/addons/kenney_prototype_textures/orange/texture_04.png differ
diff --git a/addons/kenney_prototype_textures/orange/texture_04.png.import b/addons/kenney_prototype_textures/orange/texture_04.png.import
new file mode 100644
index 0000000..c7706ce
--- /dev/null
+++ b/addons/kenney_prototype_textures/orange/texture_04.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://cnobqum6c3wmw"
+path="res://.godot/imported/texture_04.png-e978f0e00463b6cfc60da06ec0abdb7a.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/orange/texture_04.png"
+dest_files=["res://.godot/imported/texture_04.png-e978f0e00463b6cfc60da06ec0abdb7a.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/orange/texture_05.png b/addons/kenney_prototype_textures/orange/texture_05.png
new file mode 100644
index 0000000..e7bb6d9
Binary files /dev/null and b/addons/kenney_prototype_textures/orange/texture_05.png differ
diff --git a/addons/kenney_prototype_textures/orange/texture_05.png.import b/addons/kenney_prototype_textures/orange/texture_05.png.import
new file mode 100644
index 0000000..71b5620
--- /dev/null
+++ b/addons/kenney_prototype_textures/orange/texture_05.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://b4x077hi7qrkf"
+path="res://.godot/imported/texture_05.png-57f4196ea276097368d03084372aa101.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/orange/texture_05.png"
+dest_files=["res://.godot/imported/texture_05.png-57f4196ea276097368d03084372aa101.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/orange/texture_06.png b/addons/kenney_prototype_textures/orange/texture_06.png
new file mode 100644
index 0000000..2a18cf7
Binary files /dev/null and b/addons/kenney_prototype_textures/orange/texture_06.png differ
diff --git a/addons/kenney_prototype_textures/orange/texture_06.png.import b/addons/kenney_prototype_textures/orange/texture_06.png.import
new file mode 100644
index 0000000..bc7cbaa
--- /dev/null
+++ b/addons/kenney_prototype_textures/orange/texture_06.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dh17v4pp4i1b0"
+path="res://.godot/imported/texture_06.png-96fbf63c84855b5763ca7a9239b4162f.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/orange/texture_06.png"
+dest_files=["res://.godot/imported/texture_06.png-96fbf63c84855b5763ca7a9239b4162f.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/orange/texture_07.png b/addons/kenney_prototype_textures/orange/texture_07.png
new file mode 100644
index 0000000..0d1f229
Binary files /dev/null and b/addons/kenney_prototype_textures/orange/texture_07.png differ
diff --git a/addons/kenney_prototype_textures/orange/texture_07.png.import b/addons/kenney_prototype_textures/orange/texture_07.png.import
new file mode 100644
index 0000000..0ec8c59
--- /dev/null
+++ b/addons/kenney_prototype_textures/orange/texture_07.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dvbo0ar7dnrk5"
+path="res://.godot/imported/texture_07.png-3fa938673385861e205adbc05b5cb69f.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/orange/texture_07.png"
+dest_files=["res://.godot/imported/texture_07.png-3fa938673385861e205adbc05b5cb69f.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/orange/texture_08.png b/addons/kenney_prototype_textures/orange/texture_08.png
new file mode 100644
index 0000000..b53b56d
Binary files /dev/null and b/addons/kenney_prototype_textures/orange/texture_08.png differ
diff --git a/addons/kenney_prototype_textures/orange/texture_08.png.import b/addons/kenney_prototype_textures/orange/texture_08.png.import
new file mode 100644
index 0000000..4b7353a
--- /dev/null
+++ b/addons/kenney_prototype_textures/orange/texture_08.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://b67drsy3omo3y"
+path="res://.godot/imported/texture_08.png-9f039f47cba295ef5881d7b94c369b5d.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/orange/texture_08.png"
+dest_files=["res://.godot/imported/texture_08.png-9f039f47cba295ef5881d7b94c369b5d.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/orange/texture_09.png b/addons/kenney_prototype_textures/orange/texture_09.png
new file mode 100644
index 0000000..a7f8b0b
Binary files /dev/null and b/addons/kenney_prototype_textures/orange/texture_09.png differ
diff --git a/addons/kenney_prototype_textures/orange/texture_09.png.import b/addons/kenney_prototype_textures/orange/texture_09.png.import
new file mode 100644
index 0000000..eca61fb
--- /dev/null
+++ b/addons/kenney_prototype_textures/orange/texture_09.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://cyedwkmb1r51u"
+path="res://.godot/imported/texture_09.png-d3e0d0da868b68102c983480f9cde71d.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/orange/texture_09.png"
+dest_files=["res://.godot/imported/texture_09.png-d3e0d0da868b68102c983480f9cde71d.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/orange/texture_10.png b/addons/kenney_prototype_textures/orange/texture_10.png
new file mode 100644
index 0000000..979733a
Binary files /dev/null and b/addons/kenney_prototype_textures/orange/texture_10.png differ
diff --git a/addons/kenney_prototype_textures/orange/texture_10.png.import b/addons/kenney_prototype_textures/orange/texture_10.png.import
new file mode 100644
index 0000000..8fc5f0e
--- /dev/null
+++ b/addons/kenney_prototype_textures/orange/texture_10.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://bh3qnk0buf1b7"
+path="res://.godot/imported/texture_10.png-6f0f09db66c0562f01b2d2954722e3af.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/orange/texture_10.png"
+dest_files=["res://.godot/imported/texture_10.png-6f0f09db66c0562f01b2d2954722e3af.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/orange/texture_11.png b/addons/kenney_prototype_textures/orange/texture_11.png
new file mode 100644
index 0000000..d52081b
Binary files /dev/null and b/addons/kenney_prototype_textures/orange/texture_11.png differ
diff --git a/addons/kenney_prototype_textures/orange/texture_11.png.import b/addons/kenney_prototype_textures/orange/texture_11.png.import
new file mode 100644
index 0000000..6328773
--- /dev/null
+++ b/addons/kenney_prototype_textures/orange/texture_11.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://duj5xqt6ru1x2"
+path="res://.godot/imported/texture_11.png-ebf2797e5f22648b239ddd9dce347372.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/orange/texture_11.png"
+dest_files=["res://.godot/imported/texture_11.png-ebf2797e5f22648b239ddd9dce347372.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/orange/texture_12.png b/addons/kenney_prototype_textures/orange/texture_12.png
new file mode 100644
index 0000000..b7e5781
Binary files /dev/null and b/addons/kenney_prototype_textures/orange/texture_12.png differ
diff --git a/addons/kenney_prototype_textures/orange/texture_12.png.import b/addons/kenney_prototype_textures/orange/texture_12.png.import
new file mode 100644
index 0000000..cdc0245
--- /dev/null
+++ b/addons/kenney_prototype_textures/orange/texture_12.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dimr450en06x5"
+path="res://.godot/imported/texture_12.png-079a27ce3f0ee0e1854090577bd0ba2a.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/orange/texture_12.png"
+dest_files=["res://.godot/imported/texture_12.png-079a27ce3f0ee0e1854090577bd0ba2a.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/orange/texture_13.png b/addons/kenney_prototype_textures/orange/texture_13.png
new file mode 100644
index 0000000..57dba8c
Binary files /dev/null and b/addons/kenney_prototype_textures/orange/texture_13.png differ
diff --git a/addons/kenney_prototype_textures/orange/texture_13.png.import b/addons/kenney_prototype_textures/orange/texture_13.png.import
new file mode 100644
index 0000000..545aea7
--- /dev/null
+++ b/addons/kenney_prototype_textures/orange/texture_13.png.import
@@ -0,0 +1,36 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://hp5bjguxu4u"
+path.s3tc="res://.godot/imported/texture_13.png-a11a0cfe132bc07bf4c480fd4334a284.s3tc.ctex"
+path.etc2="res://.godot/imported/texture_13.png-a11a0cfe132bc07bf4c480fd4334a284.etc2.ctex"
+metadata={
+"imported_formats": ["s3tc_bptc", "etc2_astc"],
+"vram_texture": true
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/orange/texture_13.png"
+dest_files=["res://.godot/imported/texture_13.png-a11a0cfe132bc07bf4c480fd4334a284.s3tc.ctex", "res://.godot/imported/texture_13.png-a11a0cfe132bc07bf4c480fd4334a284.etc2.ctex"]
+
+[params]
+
+compress/mode=2
+compress/high_quality=false
+compress/lossy_quality=0.7
+compress/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=true
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/fix_alpha_border=true
+process/premult_alpha=false
+process/normal_map_invert_y=false
+process/hdr_as_srgb=false
+process/hdr_clamp_exposure=false
+process/size_limit=0
+detect_3d/compress_to=0
diff --git a/addons/kenney_prototype_textures/purple/texture_01.png b/addons/kenney_prototype_textures/purple/texture_01.png
new file mode 100644
index 0000000..7c56da6
Binary files /dev/null and b/addons/kenney_prototype_textures/purple/texture_01.png differ
diff --git a/addons/kenney_prototype_textures/purple/texture_01.png.import b/addons/kenney_prototype_textures/purple/texture_01.png.import
new file mode 100644
index 0000000..a24e7f5
--- /dev/null
+++ b/addons/kenney_prototype_textures/purple/texture_01.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://e1rdmss6to"
+path="res://.godot/imported/texture_01.png-38f28acdb9a95ea2efd835531b47e519.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/purple/texture_01.png"
+dest_files=["res://.godot/imported/texture_01.png-38f28acdb9a95ea2efd835531b47e519.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/purple/texture_02.png b/addons/kenney_prototype_textures/purple/texture_02.png
new file mode 100644
index 0000000..e6e092e
Binary files /dev/null and b/addons/kenney_prototype_textures/purple/texture_02.png differ
diff --git a/addons/kenney_prototype_textures/purple/texture_02.png.import b/addons/kenney_prototype_textures/purple/texture_02.png.import
new file mode 100644
index 0000000..6180834
--- /dev/null
+++ b/addons/kenney_prototype_textures/purple/texture_02.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dlk7elmfnstdg"
+path="res://.godot/imported/texture_02.png-fcb52d424cd62d43221e4153fa3176f8.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/purple/texture_02.png"
+dest_files=["res://.godot/imported/texture_02.png-fcb52d424cd62d43221e4153fa3176f8.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/purple/texture_03.png b/addons/kenney_prototype_textures/purple/texture_03.png
new file mode 100644
index 0000000..3874868
Binary files /dev/null and b/addons/kenney_prototype_textures/purple/texture_03.png differ
diff --git a/addons/kenney_prototype_textures/purple/texture_03.png.import b/addons/kenney_prototype_textures/purple/texture_03.png.import
new file mode 100644
index 0000000..4fcac0e
--- /dev/null
+++ b/addons/kenney_prototype_textures/purple/texture_03.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://cjv6q4viu32yj"
+path="res://.godot/imported/texture_03.png-10a2d13d96fe9dba00c822080243f048.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/purple/texture_03.png"
+dest_files=["res://.godot/imported/texture_03.png-10a2d13d96fe9dba00c822080243f048.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/purple/texture_04.png b/addons/kenney_prototype_textures/purple/texture_04.png
new file mode 100644
index 0000000..6177824
Binary files /dev/null and b/addons/kenney_prototype_textures/purple/texture_04.png differ
diff --git a/addons/kenney_prototype_textures/purple/texture_04.png.import b/addons/kenney_prototype_textures/purple/texture_04.png.import
new file mode 100644
index 0000000..9304255
--- /dev/null
+++ b/addons/kenney_prototype_textures/purple/texture_04.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://butcajoyol4qb"
+path="res://.godot/imported/texture_04.png-6783bd4aa338a51e03fa71a2a0ba6c73.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/purple/texture_04.png"
+dest_files=["res://.godot/imported/texture_04.png-6783bd4aa338a51e03fa71a2a0ba6c73.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/purple/texture_05.png b/addons/kenney_prototype_textures/purple/texture_05.png
new file mode 100644
index 0000000..5b82830
Binary files /dev/null and b/addons/kenney_prototype_textures/purple/texture_05.png differ
diff --git a/addons/kenney_prototype_textures/purple/texture_05.png.import b/addons/kenney_prototype_textures/purple/texture_05.png.import
new file mode 100644
index 0000000..26b5f59
--- /dev/null
+++ b/addons/kenney_prototype_textures/purple/texture_05.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://bawlq3b420qw5"
+path="res://.godot/imported/texture_05.png-888b467a21712cbc594106138f9173b8.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/purple/texture_05.png"
+dest_files=["res://.godot/imported/texture_05.png-888b467a21712cbc594106138f9173b8.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/purple/texture_06.png b/addons/kenney_prototype_textures/purple/texture_06.png
new file mode 100644
index 0000000..befbe88
Binary files /dev/null and b/addons/kenney_prototype_textures/purple/texture_06.png differ
diff --git a/addons/kenney_prototype_textures/purple/texture_06.png.import b/addons/kenney_prototype_textures/purple/texture_06.png.import
new file mode 100644
index 0000000..d62ae67
--- /dev/null
+++ b/addons/kenney_prototype_textures/purple/texture_06.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://cji13dxgskw7t"
+path="res://.godot/imported/texture_06.png-352782bc60b4b3fe4a632b0a6af5553d.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/purple/texture_06.png"
+dest_files=["res://.godot/imported/texture_06.png-352782bc60b4b3fe4a632b0a6af5553d.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/purple/texture_07.png b/addons/kenney_prototype_textures/purple/texture_07.png
new file mode 100644
index 0000000..a0c9df1
Binary files /dev/null and b/addons/kenney_prototype_textures/purple/texture_07.png differ
diff --git a/addons/kenney_prototype_textures/purple/texture_07.png.import b/addons/kenney_prototype_textures/purple/texture_07.png.import
new file mode 100644
index 0000000..0768ace
--- /dev/null
+++ b/addons/kenney_prototype_textures/purple/texture_07.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://diynssextr5yv"
+path="res://.godot/imported/texture_07.png-042b529a59b56931d5b854290aa24a7f.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/purple/texture_07.png"
+dest_files=["res://.godot/imported/texture_07.png-042b529a59b56931d5b854290aa24a7f.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/purple/texture_08.png b/addons/kenney_prototype_textures/purple/texture_08.png
new file mode 100644
index 0000000..eb556d6
Binary files /dev/null and b/addons/kenney_prototype_textures/purple/texture_08.png differ
diff --git a/addons/kenney_prototype_textures/purple/texture_08.png.import b/addons/kenney_prototype_textures/purple/texture_08.png.import
new file mode 100644
index 0000000..e091fd9
--- /dev/null
+++ b/addons/kenney_prototype_textures/purple/texture_08.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://df6v3munplc2d"
+path="res://.godot/imported/texture_08.png-ae3e54cc23ad438ea83a8932fe526f9f.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/purple/texture_08.png"
+dest_files=["res://.godot/imported/texture_08.png-ae3e54cc23ad438ea83a8932fe526f9f.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/purple/texture_09.png b/addons/kenney_prototype_textures/purple/texture_09.png
new file mode 100644
index 0000000..c831a43
Binary files /dev/null and b/addons/kenney_prototype_textures/purple/texture_09.png differ
diff --git a/addons/kenney_prototype_textures/purple/texture_09.png.import b/addons/kenney_prototype_textures/purple/texture_09.png.import
new file mode 100644
index 0000000..d46d55f
--- /dev/null
+++ b/addons/kenney_prototype_textures/purple/texture_09.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://ci6nbfp8kdbbu"
+path="res://.godot/imported/texture_09.png-bfc57ad7b0bd0aecb6d4584eb0197660.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/purple/texture_09.png"
+dest_files=["res://.godot/imported/texture_09.png-bfc57ad7b0bd0aecb6d4584eb0197660.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/purple/texture_10.png b/addons/kenney_prototype_textures/purple/texture_10.png
new file mode 100644
index 0000000..95be188
Binary files /dev/null and b/addons/kenney_prototype_textures/purple/texture_10.png differ
diff --git a/addons/kenney_prototype_textures/purple/texture_10.png.import b/addons/kenney_prototype_textures/purple/texture_10.png.import
new file mode 100644
index 0000000..dc9aa47
--- /dev/null
+++ b/addons/kenney_prototype_textures/purple/texture_10.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://beai7k70fpmpa"
+path="res://.godot/imported/texture_10.png-6ebba9cac53386550299b9fc7ba436fd.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/purple/texture_10.png"
+dest_files=["res://.godot/imported/texture_10.png-6ebba9cac53386550299b9fc7ba436fd.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/purple/texture_11.png b/addons/kenney_prototype_textures/purple/texture_11.png
new file mode 100644
index 0000000..b1c3704
Binary files /dev/null and b/addons/kenney_prototype_textures/purple/texture_11.png differ
diff --git a/addons/kenney_prototype_textures/purple/texture_11.png.import b/addons/kenney_prototype_textures/purple/texture_11.png.import
new file mode 100644
index 0000000..09a4ae5
--- /dev/null
+++ b/addons/kenney_prototype_textures/purple/texture_11.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://bd6d8jffh6f81"
+path="res://.godot/imported/texture_11.png-0fd2ee750e7568773caf6d873885f437.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/purple/texture_11.png"
+dest_files=["res://.godot/imported/texture_11.png-0fd2ee750e7568773caf6d873885f437.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/purple/texture_12.png b/addons/kenney_prototype_textures/purple/texture_12.png
new file mode 100644
index 0000000..0269e59
Binary files /dev/null and b/addons/kenney_prototype_textures/purple/texture_12.png differ
diff --git a/addons/kenney_prototype_textures/purple/texture_12.png.import b/addons/kenney_prototype_textures/purple/texture_12.png.import
new file mode 100644
index 0000000..a13d3a0
--- /dev/null
+++ b/addons/kenney_prototype_textures/purple/texture_12.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://cepub5imnrbjn"
+path="res://.godot/imported/texture_12.png-8a7cfbfe5b83f5813249f6314841357c.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/purple/texture_12.png"
+dest_files=["res://.godot/imported/texture_12.png-8a7cfbfe5b83f5813249f6314841357c.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/purple/texture_13.png b/addons/kenney_prototype_textures/purple/texture_13.png
new file mode 100644
index 0000000..3b944cb
Binary files /dev/null and b/addons/kenney_prototype_textures/purple/texture_13.png differ
diff --git a/addons/kenney_prototype_textures/purple/texture_13.png.import b/addons/kenney_prototype_textures/purple/texture_13.png.import
new file mode 100644
index 0000000..adc4a54
--- /dev/null
+++ b/addons/kenney_prototype_textures/purple/texture_13.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dk5u0gl3sm3xj"
+path="res://.godot/imported/texture_13.png-ae54826bbb20288cf5ae03de2f2de21d.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/purple/texture_13.png"
+dest_files=["res://.godot/imported/texture_13.png-ae54826bbb20288cf5ae03de2f2de21d.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/red/texture_01.png b/addons/kenney_prototype_textures/red/texture_01.png
new file mode 100644
index 0000000..1f9c506
Binary files /dev/null and b/addons/kenney_prototype_textures/red/texture_01.png differ
diff --git a/addons/kenney_prototype_textures/red/texture_01.png.import b/addons/kenney_prototype_textures/red/texture_01.png.import
new file mode 100644
index 0000000..8598f10
--- /dev/null
+++ b/addons/kenney_prototype_textures/red/texture_01.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://bd1duq506j3hg"
+path="res://.godot/imported/texture_01.png-44f9331a67ce6f062549bc436289d3c9.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/red/texture_01.png"
+dest_files=["res://.godot/imported/texture_01.png-44f9331a67ce6f062549bc436289d3c9.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/red/texture_02.png b/addons/kenney_prototype_textures/red/texture_02.png
new file mode 100644
index 0000000..12e67bc
Binary files /dev/null and b/addons/kenney_prototype_textures/red/texture_02.png differ
diff --git a/addons/kenney_prototype_textures/red/texture_02.png.import b/addons/kenney_prototype_textures/red/texture_02.png.import
new file mode 100644
index 0000000..cb2aae3
--- /dev/null
+++ b/addons/kenney_prototype_textures/red/texture_02.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://c824wogkipdqx"
+path="res://.godot/imported/texture_02.png-bb6eefc15212ba5b8098e9e672c21f12.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/red/texture_02.png"
+dest_files=["res://.godot/imported/texture_02.png-bb6eefc15212ba5b8098e9e672c21f12.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/red/texture_03.png b/addons/kenney_prototype_textures/red/texture_03.png
new file mode 100644
index 0000000..11a9f85
Binary files /dev/null and b/addons/kenney_prototype_textures/red/texture_03.png differ
diff --git a/addons/kenney_prototype_textures/red/texture_03.png.import b/addons/kenney_prototype_textures/red/texture_03.png.import
new file mode 100644
index 0000000..53cc5da
--- /dev/null
+++ b/addons/kenney_prototype_textures/red/texture_03.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dsbieaec6uxe7"
+path="res://.godot/imported/texture_03.png-dcaf463e914c7896b38a95f49416e75a.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/red/texture_03.png"
+dest_files=["res://.godot/imported/texture_03.png-dcaf463e914c7896b38a95f49416e75a.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/red/texture_04.png b/addons/kenney_prototype_textures/red/texture_04.png
new file mode 100644
index 0000000..0ebe2fb
Binary files /dev/null and b/addons/kenney_prototype_textures/red/texture_04.png differ
diff --git a/addons/kenney_prototype_textures/red/texture_04.png.import b/addons/kenney_prototype_textures/red/texture_04.png.import
new file mode 100644
index 0000000..e0356fd
--- /dev/null
+++ b/addons/kenney_prototype_textures/red/texture_04.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://gmunjatka5w"
+path="res://.godot/imported/texture_04.png-1d63b32ccdbf1561b92a917dfb5f84ea.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/red/texture_04.png"
+dest_files=["res://.godot/imported/texture_04.png-1d63b32ccdbf1561b92a917dfb5f84ea.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/red/texture_05.png b/addons/kenney_prototype_textures/red/texture_05.png
new file mode 100644
index 0000000..038af13
Binary files /dev/null and b/addons/kenney_prototype_textures/red/texture_05.png differ
diff --git a/addons/kenney_prototype_textures/red/texture_05.png.import b/addons/kenney_prototype_textures/red/texture_05.png.import
new file mode 100644
index 0000000..701d702
--- /dev/null
+++ b/addons/kenney_prototype_textures/red/texture_05.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://brttttkks14qv"
+path="res://.godot/imported/texture_05.png-a44b3d75bc02c9b33606b6fe46e8c886.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/red/texture_05.png"
+dest_files=["res://.godot/imported/texture_05.png-a44b3d75bc02c9b33606b6fe46e8c886.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/red/texture_06.png b/addons/kenney_prototype_textures/red/texture_06.png
new file mode 100644
index 0000000..4239985
Binary files /dev/null and b/addons/kenney_prototype_textures/red/texture_06.png differ
diff --git a/addons/kenney_prototype_textures/red/texture_06.png.import b/addons/kenney_prototype_textures/red/texture_06.png.import
new file mode 100644
index 0000000..8942cef
--- /dev/null
+++ b/addons/kenney_prototype_textures/red/texture_06.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://6kc2xxn7c2ye"
+path="res://.godot/imported/texture_06.png-566b521660a0c01cabf8778c12eb1f51.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/red/texture_06.png"
+dest_files=["res://.godot/imported/texture_06.png-566b521660a0c01cabf8778c12eb1f51.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/red/texture_07.png b/addons/kenney_prototype_textures/red/texture_07.png
new file mode 100644
index 0000000..99dcffd
Binary files /dev/null and b/addons/kenney_prototype_textures/red/texture_07.png differ
diff --git a/addons/kenney_prototype_textures/red/texture_07.png.import b/addons/kenney_prototype_textures/red/texture_07.png.import
new file mode 100644
index 0000000..25724cc
--- /dev/null
+++ b/addons/kenney_prototype_textures/red/texture_07.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://caj5nkuckxwm8"
+path="res://.godot/imported/texture_07.png-ba1d32ad61ab49ac0edaf4930e4d081f.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/red/texture_07.png"
+dest_files=["res://.godot/imported/texture_07.png-ba1d32ad61ab49ac0edaf4930e4d081f.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/red/texture_08.png b/addons/kenney_prototype_textures/red/texture_08.png
new file mode 100644
index 0000000..45ebb31
Binary files /dev/null and b/addons/kenney_prototype_textures/red/texture_08.png differ
diff --git a/addons/kenney_prototype_textures/red/texture_08.png.import b/addons/kenney_prototype_textures/red/texture_08.png.import
new file mode 100644
index 0000000..57ba49f
--- /dev/null
+++ b/addons/kenney_prototype_textures/red/texture_08.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://cyxvxygd5f3ws"
+path="res://.godot/imported/texture_08.png-add0c08e78cde6ad4eaac64e7b9a9204.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/red/texture_08.png"
+dest_files=["res://.godot/imported/texture_08.png-add0c08e78cde6ad4eaac64e7b9a9204.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/red/texture_09.png b/addons/kenney_prototype_textures/red/texture_09.png
new file mode 100644
index 0000000..347aad7
Binary files /dev/null and b/addons/kenney_prototype_textures/red/texture_09.png differ
diff --git a/addons/kenney_prototype_textures/red/texture_09.png.import b/addons/kenney_prototype_textures/red/texture_09.png.import
new file mode 100644
index 0000000..b416a57
--- /dev/null
+++ b/addons/kenney_prototype_textures/red/texture_09.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://ca8btvge6aubj"
+path="res://.godot/imported/texture_09.png-4fe3f0e3bd94fb29789b41c9100c3ac9.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/red/texture_09.png"
+dest_files=["res://.godot/imported/texture_09.png-4fe3f0e3bd94fb29789b41c9100c3ac9.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/red/texture_10.png b/addons/kenney_prototype_textures/red/texture_10.png
new file mode 100644
index 0000000..3448667
Binary files /dev/null and b/addons/kenney_prototype_textures/red/texture_10.png differ
diff --git a/addons/kenney_prototype_textures/red/texture_10.png.import b/addons/kenney_prototype_textures/red/texture_10.png.import
new file mode 100644
index 0000000..dcc9059
--- /dev/null
+++ b/addons/kenney_prototype_textures/red/texture_10.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://ct4gdl7rjj15n"
+path="res://.godot/imported/texture_10.png-6fd251723c4fc19b26785b571c62b6ac.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/red/texture_10.png"
+dest_files=["res://.godot/imported/texture_10.png-6fd251723c4fc19b26785b571c62b6ac.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/red/texture_11.png b/addons/kenney_prototype_textures/red/texture_11.png
new file mode 100644
index 0000000..3cfb7f6
Binary files /dev/null and b/addons/kenney_prototype_textures/red/texture_11.png differ
diff --git a/addons/kenney_prototype_textures/red/texture_11.png.import b/addons/kenney_prototype_textures/red/texture_11.png.import
new file mode 100644
index 0000000..7c57a46
--- /dev/null
+++ b/addons/kenney_prototype_textures/red/texture_11.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://wrw10j0wmony"
+path="res://.godot/imported/texture_11.png-44ab559d4c1ab996ce064426a9e01b38.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/red/texture_11.png"
+dest_files=["res://.godot/imported/texture_11.png-44ab559d4c1ab996ce064426a9e01b38.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/red/texture_12.png b/addons/kenney_prototype_textures/red/texture_12.png
new file mode 100644
index 0000000..d247946
Binary files /dev/null and b/addons/kenney_prototype_textures/red/texture_12.png differ
diff --git a/addons/kenney_prototype_textures/red/texture_12.png.import b/addons/kenney_prototype_textures/red/texture_12.png.import
new file mode 100644
index 0000000..a278204
--- /dev/null
+++ b/addons/kenney_prototype_textures/red/texture_12.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://gbigp6gck7uq"
+path="res://.godot/imported/texture_12.png-6af19821abb02cb29bb6ed24ee4670e0.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/red/texture_12.png"
+dest_files=["res://.godot/imported/texture_12.png-6af19821abb02cb29bb6ed24ee4670e0.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/kenney_prototype_textures/red/texture_13.png b/addons/kenney_prototype_textures/red/texture_13.png
new file mode 100644
index 0000000..9154c3b
Binary files /dev/null and b/addons/kenney_prototype_textures/red/texture_13.png differ
diff --git a/addons/kenney_prototype_textures/red/texture_13.png.import b/addons/kenney_prototype_textures/red/texture_13.png.import
new file mode 100644
index 0000000..460cffd
--- /dev/null
+++ b/addons/kenney_prototype_textures/red/texture_13.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://ca36jo8eiwaic"
+path="res://.godot/imported/texture_13.png-891332ffbf32d9b94212aaf3a11a15a9.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/kenney_prototype_textures/red/texture_13.png"
+dest_files=["res://.godot/imported/texture_13.png-891332ffbf32d9b94212aaf3a11a15a9.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/localization_editor/LocalizationEditor.gd b/addons/localization_editor/LocalizationEditor.gd
new file mode 100644
index 0000000..375acb4
--- /dev/null
+++ b/addons/localization_editor/LocalizationEditor.gd
@@ -0,0 +1,97 @@
+# LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends Control
+
+var _editor: EditorPlugin
+var _data:= LocalizationData.new()
+
+@onready var _save_ui = $VBox/Margin/HBox/Save
+@onready var _open_ui = $VBox/Margin/HBox/Open
+@onready var _file_ui = $VBox/Margin/HBox/File
+@onready var _tabs_ui = $VBox/Tabs as TabContainer
+@onready var _locales_ui = $VBox/Tabs/Locales
+@onready var _remaps_ui = $VBox/Tabs/Remaps
+@onready var _placeholders_ui = $VBox/Tabs/Placeholders
+@onready var _translations_ui = $VBox/Tabs/Translations
+@onready var _auto_translate_ui = $VBox/Tabs/AutoTranslate
+
+const IconResourceTranslations = preload("res://addons/localization_editor/icons/Localization.svg")
+const IconResourceRemaps = preload("res://addons/localization_editor/icons/Remaps.svg")
+const IconResourceLocales = preload("res://addons/localization_editor/icons/Locales.svg")
+const IconResourcePlaceholders = preload("res://addons/localization_editor/icons/Placeholders.svg")
+const IconResourcePseudolocalization = preload("res://addons/localization_editor/icons/Pseudolocalization.svg")
+const IconResourceTranslation = preload("res://addons/localization_editor/icons/Translation.svg")
+
+const LocalizationEditorDialogFile = preload("res://addons/localization_editor/LocalizationEditorDialogFile.tscn")
+
+var thread
+
+func _ready() -> void:
+ _tabs_ui.set_tab_icon(0, IconResourceTranslations)
+ _tabs_ui.set_tab_icon(1, IconResourceRemaps)
+ _tabs_ui.set_tab_icon(2, IconResourceLocales)
+ _tabs_ui.set_tab_icon(3, IconResourcePlaceholders)
+ _tabs_ui.set_tab_icon(4, IconResourcePseudolocalization)
+ _tabs_ui.set_tab_icon(5, IconResourceTranslation)
+ _tabs_ui.connect("tab_changed", _on_tab_changed)
+
+func _on_tab_changed(idx: int) -> void:
+ if idx == 3:
+ _data.init_data_placeholders()
+ _data.emit_signal_data_changed()
+
+func set_editor(editor: EditorPlugin) -> void:
+ _editor = editor
+ _init_connections()
+ _load_data()
+ _data.set_editor(editor)
+ _data_to_childs()
+ _update_view()
+
+func _init_connections() -> void:
+ if not _data.is_connected("settings_changed", _update_view):
+ assert(_data.connect("settings_changed", _update_view) == OK)
+ if not _save_ui.is_connected("pressed", _on_save_data):
+ assert(_save_ui.connect("pressed", _on_save_data) == OK)
+ if not _open_ui.is_connected("pressed", _open_file):
+ assert(_open_ui.connect("pressed", _open_file) == OK)
+
+func get_data() -> LocalizationData:
+ return _data
+
+func _load_data() -> void:
+ _data.init_data_translations()
+ _data.init_data_remaps()
+ _data.init_data_placeholders()
+
+func _data_to_childs() -> void:
+ _translations_ui.set_data(_data)
+ _remaps_ui.set_data(_data)
+ _locales_ui.set_data(_data)
+ _placeholders_ui.set_data(_data)
+ _auto_translate_ui.set_data(_data)
+
+func _update_view() -> void:
+ _file_ui.text = _data.setting_path_to_file()
+
+func _on_save_data() -> void:
+ save_data(true)
+
+func save_data(update_script_classes = false) -> void:
+ _data.save_data_translations(update_script_classes)
+ _data.save_data_remaps()
+
+func _open_file() -> void:
+ var file_dialog: FileDialog = LocalizationEditorDialogFile.instantiate()
+ var root = get_tree().get_root()
+ root.add_child(file_dialog)
+ assert(file_dialog.file_selected.connect(_path_to_file_changed) == OK)
+ file_dialog.popup_centered()
+
+func _path_to_file_changed(new_path) -> void:
+ _data.setting_path_to_file_put(new_path)
+ if FileAccess.file_exists(new_path):
+ _load_data()
+ _data_to_childs()
+ _update_view()
diff --git a/addons/localization_editor/LocalizationEditor.gd.uid b/addons/localization_editor/LocalizationEditor.gd.uid
new file mode 100644
index 0000000..3baea49
--- /dev/null
+++ b/addons/localization_editor/LocalizationEditor.gd.uid
@@ -0,0 +1 @@
+uid://by486bsbrrtsx
diff --git a/addons/localization_editor/LocalizationEditor.tscn b/addons/localization_editor/LocalizationEditor.tscn
new file mode 100644
index 0000000..d932bac
--- /dev/null
+++ b/addons/localization_editor/LocalizationEditor.tscn
@@ -0,0 +1,81 @@
+[gd_scene load_steps=10 format=3 uid="uid://doq4l8bl41mfl"]
+
+[ext_resource type="Script" path="res://addons/localization_editor/LocalizationEditor.gd" id="1_8fvc6"]
+[ext_resource type="Texture2D" uid="uid://drjyfbi5n382s" path="res://addons/localization_editor/icons/Save.svg" id="1_c7hr8"]
+[ext_resource type="Texture2D" uid="uid://crjkaavcu17ry" path="res://addons/localization_editor/icons/File.svg" id="2_4pkbj"]
+[ext_resource type="PackedScene" uid="uid://bchlj4dnjh8j5" path="res://addons/localization_editor/scenes/translations/LocalizationTranslationsEditorView.tscn" id="4_kmfo1"]
+[ext_resource type="PackedScene" uid="uid://bikmkc3ntiugr" path="res://addons/localization_editor/scenes/locales/LocalizationLocalesEditorView.tscn" id="4_mauhd"]
+[ext_resource type="PackedScene" path="res://addons/localization_editor/scenes/remaps/LocalizationRemapsEditorView.tscn" id="8_orcd3"]
+[ext_resource type="PackedScene" uid="uid://2e10hsy4f7ak" path="res://addons/localization_editor/scenes/auto_translate/LocalizationAutoTranslateEditorView.tscn" id="10_3m4id"]
+[ext_resource type="PackedScene" path="res://addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersEditorView.tscn" id="12_tkjln"]
+[ext_resource type="PackedScene" uid="uid://bt0r11jd8rtq6" path="res://addons/localization_editor/scenes/pseudolocalization/LocalizationPseudolocalizationEditorView.tscn" id="12_w0ry5"]
+
+[node name="Control" type="Control"]
+layout_mode = 3
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+grow_horizontal = 2
+grow_vertical = 2
+size_flags_horizontal = 3
+size_flags_vertical = 3
+script = ExtResource("1_8fvc6")
+
+[node name="VBox" type="VBoxContainer" parent="."]
+layout_mode = 1
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+grow_horizontal = 2
+grow_vertical = 2
+size_flags_horizontal = 3
+size_flags_vertical = 3
+
+[node name="Margin" type="MarginContainer" parent="VBox"]
+layout_mode = 2
+size_flags_horizontal = 3
+
+[node name="HBox" type="HBoxContainer" parent="VBox/Margin"]
+layout_mode = 2
+size_flags_horizontal = 3
+size_flags_vertical = 3
+
+[node name="Save" type="Button" parent="VBox/Margin/HBox"]
+layout_mode = 2
+icon = ExtResource("1_c7hr8")
+
+[node name="Open" type="Button" parent="VBox/Margin/HBox"]
+layout_mode = 2
+icon = ExtResource("2_4pkbj")
+
+[node name="File" type="Label" parent="VBox/Margin/HBox"]
+layout_mode = 2
+text = "Path:"
+
+[node name="Tabs" type="TabContainer" parent="VBox"]
+layout_mode = 2
+size_flags_horizontal = 3
+size_flags_vertical = 3
+
+[node name="Translations" parent="VBox/Tabs" instance=ExtResource("4_kmfo1")]
+layout_mode = 2
+
+[node name="Remaps" parent="VBox/Tabs" instance=ExtResource("8_orcd3")]
+visible = false
+layout_mode = 2
+
+[node name="Locales" parent="VBox/Tabs" instance=ExtResource("4_mauhd")]
+visible = false
+layout_mode = 2
+
+[node name="Placeholders" parent="VBox/Tabs" instance=ExtResource("12_tkjln")]
+visible = false
+layout_mode = 2
+
+[node name="Pseudolocalization" parent="VBox/Tabs" instance=ExtResource("12_w0ry5")]
+visible = false
+layout_mode = 2
+
+[node name="AutoTranslate" parent="VBox/Tabs" instance=ExtResource("10_3m4id")]
+visible = false
+layout_mode = 2
diff --git a/addons/localization_editor/LocalizationEditorDialogFile.tscn b/addons/localization_editor/LocalizationEditorDialogFile.tscn
new file mode 100644
index 0000000..6b7227f
--- /dev/null
+++ b/addons/localization_editor/LocalizationEditorDialogFile.tscn
@@ -0,0 +1,10 @@
+[gd_scene format=2]
+
+[node name="LocalizationEditorDialogFile" type="FileDialog"]
+margin_right = 600.0
+margin_bottom = 300.0
+rect_min_size = Vector2( 600, 300 )
+window_title = "Open a File"
+resizable = true
+mode = 0
+filters = PoolStringArray( "*.csv" )
diff --git a/addons/localization_editor/LocalizationManager.gd b/addons/localization_editor/LocalizationManager.gd
new file mode 100644
index 0000000..744fc0d
--- /dev/null
+++ b/addons/localization_editor/LocalizationManager.gd
@@ -0,0 +1,122 @@
+# LocalizationManager for usege with placeholders: MIT License
+# @author Vladimir Petrenko
+extends Node
+
+signal translation_changed
+
+const _pseudolocalization_control: String = "internationalization/pseudolocalization/use_pseudolocalization_control"
+const _pseudolocalization_ui = preload("res://addons/localization_editor/scenes/pseudolocalization/ui/LocalizationPseudolocalizationForUI.tscn")
+
+var _path_to_save = "user://localization.tres"
+var _keys_with_placeholder: Dictionary = {}
+var _placeholders_default: Dictionary = {}
+var _placeholders: Dictionary = {}
+var _data_remaps: Dictionary = {}
+
+func _ready() -> void:
+ _load_pseudolocalization_control()
+ _load_localization()
+ _load_placeholders_default()
+ _load_localization_keys()
+ _load_data_remaps()
+
+func _load_pseudolocalization_control() -> void:
+ if ProjectSettings.has_setting(_pseudolocalization_control) and ProjectSettings.get_setting(_pseudolocalization_control) == true:
+ var root_node = get_tree().get_root()
+ root_node.call_deferred("add_child", _pseudolocalization_ui.instantiate())
+
+func _load_placeholders_default() -> void:
+ if FileAccess.file_exists(LocalizationData.default_path_to_placeholders):
+ var resource = ResourceLoader.load(LocalizationData.default_path_to_placeholders)
+ if resource and resource.placeholders and not resource.placeholders.size() <= 0:
+ _placeholders_default = resource.placeholders
+
+func _load_localization_keys() -> void:
+ var regex = RegEx.new()
+ regex.compile("{{(.+?)}}")
+ for _localization_key in LocalizationKeys.KEYS:
+ var results = regex.search_all(tr(_localization_key))
+ for result in results:
+ var name = result.get_string()
+ var clean_name = name.replace("{{", "");
+ clean_name = clean_name.replace("}}", "");
+ _add_placeholder(_localization_key, clean_name)
+
+func _add_placeholder(key: String, placeholder_key: String) -> void:
+ if not _keys_with_placeholder.has(key):
+ _keys_with_placeholder[key] = []
+ var placeholder_keys = _keys_with_placeholder[key] as Array
+ if not placeholder_keys.has(placeholder_key):
+ placeholder_keys.append(placeholder_key)
+
+func set_placeholder(name: String, value: String, locale: String = "", profile: String = "DEFAULT") -> void:
+ var loc = locale
+ if loc.length() <= 0:
+ loc = TranslationServer.get_locale()
+ if not _placeholders.has(profile):
+ _placeholders[profile] = {}
+ if not _placeholders[profile].has(name):
+ _placeholders[profile][name] = {}
+ _placeholders[profile][name][loc] = value
+ emit_signal("translation_changed")
+
+func _load_data_remaps() -> void:
+ var internationalization_path = "internationalization/locale/translation_remaps"
+ _data_remaps.remapkeys = []
+ if ProjectSettings.has_setting(internationalization_path):
+ var settings_remaps = ProjectSettings.get_setting(internationalization_path)
+ if settings_remaps.size():
+ var keys = settings_remaps.keys();
+ for key in keys:
+ var remaps = []
+ for remap in settings_remaps[key]:
+ var index = remap.rfind(":")
+ var locale = remap.substr(index + 1)
+ var value = remap.substr(0, index)
+ var remap_new = {"locale": locale, "value": value }
+ remaps.append(remap_new)
+ var filename = key.get_file()
+ _data_remaps[filename.replace(".", "_").to_upper()] = remaps
+
+func tr_remap(key: String) -> String:
+ for remap in _data_remaps[key]:
+ if remap["locale"] == TranslationServer.get_locale():
+ return remap["value"]
+ return ""
+
+func tr(name: StringName, context: StringName = StringName("")) -> String:
+ var tr_text = super.tr(name, context)
+ if _keys_with_placeholder.has(name):
+ for placeholder in _keys_with_placeholder[name]:
+ tr_text = tr_text.replace("{{" + placeholder + "}}", _placeholder_by_key(placeholder))
+ return tr_text
+
+func _placeholder_by_key(key: String, profile: String = "DEFAULT") -> String:
+ var value = ""
+ if value.length() <= 0 and _placeholders.has(profile) and _placeholders[profile].has(key) and _placeholders[profile][key].has(TranslationServer.get_locale()):
+ value = _placeholders[profile][key][TranslationServer.get_locale()]
+ if value.length() <= 0 and _placeholders_default.has(key) and _placeholders_default[key].has(TranslationServer.get_locale()):
+ value = _placeholders_default[key][TranslationServer.get_locale()]
+ return value
+
+func _notification(what):
+ match what:
+ MainLoop.NOTIFICATION_TRANSLATION_CHANGED:
+ _save_localization()
+ emit_signal("translation_changed")
+
+func _load_localization():
+ if FileAccess.file_exists(_path_to_save):
+ var loaded_data = load(_path_to_save) as LocalizationSave
+ if loaded_data:
+ if loaded_data.placeholders and not loaded_data.placeholders.is_empty():
+ for key in loaded_data.placeholders.keys():
+ _placeholders[key] = loaded_data.placeholders[key]
+ if loaded_data.locale and not loaded_data.locale.is_empty():
+ TranslationServer.set_locale(loaded_data.locale)
+
+func _save_localization() -> void:
+ var save_data = LocalizationSave.new()
+ save_data.locale = TranslationServer.get_locale()
+ save_data.placeholders = _placeholders
+ assert(ResourceSaver.save(save_data, _path_to_save) == OK)
diff --git a/addons/localization_editor/LocalizationManager.gd.uid b/addons/localization_editor/LocalizationManager.gd.uid
new file mode 100644
index 0000000..215972a
--- /dev/null
+++ b/addons/localization_editor/LocalizationManager.gd.uid
@@ -0,0 +1 @@
+uid://dvetkrd55c44g
diff --git a/addons/localization_editor/icons/Add.png~ b/addons/localization_editor/icons/Add.png~
new file mode 100644
index 0000000..521ea08
Binary files /dev/null and b/addons/localization_editor/icons/Add.png~ differ
diff --git a/addons/localization_editor/icons/Add.svg b/addons/localization_editor/icons/Add.svg
new file mode 100644
index 0000000..37883a3
--- /dev/null
+++ b/addons/localization_editor/icons/Add.svg
@@ -0,0 +1,76 @@
+
+
+
+
diff --git a/addons/localization_editor/icons/Add.svg.import b/addons/localization_editor/icons/Add.svg.import
new file mode 100644
index 0000000..22abb45
--- /dev/null
+++ b/addons/localization_editor/icons/Add.svg.import
@@ -0,0 +1,37 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dgb1opv4dr50n"
+path="res://.godot/imported/Add.svg-9e8a81d71e7735c07f3c11939fefef80.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/localization_editor/icons/Add.svg"
+dest_files=["res://.godot/imported/Add.svg-9e8a81d71e7735c07f3c11939fefef80.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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=false
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/localization_editor/icons/Amazon.png b/addons/localization_editor/icons/Amazon.png
new file mode 100644
index 0000000..a06d23a
Binary files /dev/null and b/addons/localization_editor/icons/Amazon.png differ
diff --git a/addons/localization_editor/icons/Amazon.png.import b/addons/localization_editor/icons/Amazon.png.import
new file mode 100644
index 0000000..98cf43a
--- /dev/null
+++ b/addons/localization_editor/icons/Amazon.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://cfu2uuf8hh0c"
+path="res://.godot/imported/Amazon.png-eab5b224273d7dcbce68a6400fcb16e2.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/localization_editor/icons/Amazon.png"
+dest_files=["res://.godot/imported/Amazon.png-eab5b224273d7dcbce68a6400fcb16e2.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/localization_editor/icons/Audio.svg b/addons/localization_editor/icons/Audio.svg
new file mode 100644
index 0000000..e52c237
--- /dev/null
+++ b/addons/localization_editor/icons/Audio.svg
@@ -0,0 +1,64 @@
+
+
+
+
diff --git a/addons/localization_editor/icons/Audio.svg.import b/addons/localization_editor/icons/Audio.svg.import
new file mode 100644
index 0000000..5a6a5ab
--- /dev/null
+++ b/addons/localization_editor/icons/Audio.svg.import
@@ -0,0 +1,37 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://bkeugb6vucegl"
+path="res://.godot/imported/Audio.svg-2ca038934a743054d471feac0628292e.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/localization_editor/icons/Audio.svg"
+dest_files=["res://.godot/imported/Audio.svg-2ca038934a743054d471feac0628292e.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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=false
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/localization_editor/icons/Cancel.png~ b/addons/localization_editor/icons/Cancel.png~
new file mode 100644
index 0000000..c663010
Binary files /dev/null and b/addons/localization_editor/icons/Cancel.png~ differ
diff --git a/addons/localization_editor/icons/Cancel.svg b/addons/localization_editor/icons/Cancel.svg
new file mode 100644
index 0000000..c8bd85a
--- /dev/null
+++ b/addons/localization_editor/icons/Cancel.svg
@@ -0,0 +1,63 @@
+
+
+
+
diff --git a/addons/localization_editor/icons/Cancel.svg.import b/addons/localization_editor/icons/Cancel.svg.import
new file mode 100644
index 0000000..e4ceca7
--- /dev/null
+++ b/addons/localization_editor/icons/Cancel.svg.import
@@ -0,0 +1,37 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://n1yxscibler4"
+path="res://.godot/imported/Cancel.svg-b829fd8e410a44ae828f70365531397d.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/localization_editor/icons/Cancel.svg"
+dest_files=["res://.godot/imported/Cancel.svg-b829fd8e410a44ae828f70365531397d.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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=false
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/localization_editor/icons/Close.png~ b/addons/localization_editor/icons/Close.png~
new file mode 100644
index 0000000..a524860
Binary files /dev/null and b/addons/localization_editor/icons/Close.png~ differ
diff --git a/addons/localization_editor/icons/Close.svg b/addons/localization_editor/icons/Close.svg
new file mode 100644
index 0000000..e97e4bb
--- /dev/null
+++ b/addons/localization_editor/icons/Close.svg
@@ -0,0 +1,68 @@
+
+
+
+
diff --git a/addons/localization_editor/icons/Close.svg.import b/addons/localization_editor/icons/Close.svg.import
new file mode 100644
index 0000000..38dc79f
--- /dev/null
+++ b/addons/localization_editor/icons/Close.svg.import
@@ -0,0 +1,37 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://bfdnrjesbrqed"
+path="res://.godot/imported/Close.svg-f351e4fd560004c1853e63f0f5d5e701.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/localization_editor/icons/Close.svg"
+dest_files=["res://.godot/imported/Close.svg-f351e4fd560004c1853e63f0f5d5e701.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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=false
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/localization_editor/icons/DeepL.png b/addons/localization_editor/icons/DeepL.png
new file mode 100644
index 0000000..030abc6
Binary files /dev/null and b/addons/localization_editor/icons/DeepL.png differ
diff --git a/addons/localization_editor/icons/DeepL.png.import b/addons/localization_editor/icons/DeepL.png.import
new file mode 100644
index 0000000..5c2fdd1
--- /dev/null
+++ b/addons/localization_editor/icons/DeepL.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://c24qna6n2q27l"
+path="res://.godot/imported/DeepL.png-2041fb99b2785d0daa5bdc817b4c7693.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/localization_editor/icons/DeepL.png"
+dest_files=["res://.godot/imported/DeepL.png-2041fb99b2785d0daa5bdc817b4c7693.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/localization_editor/icons/Del.png~ b/addons/localization_editor/icons/Del.png~
new file mode 100644
index 0000000..88f36d3
Binary files /dev/null and b/addons/localization_editor/icons/Del.png~ differ
diff --git a/addons/localization_editor/icons/Del.svg b/addons/localization_editor/icons/Del.svg
new file mode 100644
index 0000000..1666ac5
--- /dev/null
+++ b/addons/localization_editor/icons/Del.svg
@@ -0,0 +1,71 @@
+
+
+
+
diff --git a/addons/localization_editor/icons/Del.svg.import b/addons/localization_editor/icons/Del.svg.import
new file mode 100644
index 0000000..787ed48
--- /dev/null
+++ b/addons/localization_editor/icons/Del.svg.import
@@ -0,0 +1,37 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://cnb7fnm4kvekf"
+path="res://.godot/imported/Del.svg-c73ff4a44bc97a401436752f4616d6d2.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/localization_editor/icons/Del.svg"
+dest_files=["res://.godot/imported/Del.svg-c73ff4a44bc97a401436752f4616d6d2.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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=false
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/localization_editor/icons/Down.png~ b/addons/localization_editor/icons/Down.png~
new file mode 100644
index 0000000..e26116a
Binary files /dev/null and b/addons/localization_editor/icons/Down.png~ differ
diff --git a/addons/localization_editor/icons/Export.png~ b/addons/localization_editor/icons/Export.png~
new file mode 100644
index 0000000..503799b
Binary files /dev/null and b/addons/localization_editor/icons/Export.png~ differ
diff --git a/addons/localization_editor/icons/Export.svg b/addons/localization_editor/icons/Export.svg
new file mode 100644
index 0000000..cca6f72
--- /dev/null
+++ b/addons/localization_editor/icons/Export.svg
@@ -0,0 +1,71 @@
+
+
+
+
diff --git a/addons/localization_editor/icons/Export.svg.import b/addons/localization_editor/icons/Export.svg.import
new file mode 100644
index 0000000..b96affc
--- /dev/null
+++ b/addons/localization_editor/icons/Export.svg.import
@@ -0,0 +1,37 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dhx3806wkl557"
+path="res://.godot/imported/Export.svg-595ebdcd149e74e06552b42e5abf0d25.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/localization_editor/icons/Export.svg"
+dest_files=["res://.godot/imported/Export.svg-595ebdcd149e74e06552b42e5abf0d25.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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=false
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/localization_editor/icons/File.png~ b/addons/localization_editor/icons/File.png~
new file mode 100644
index 0000000..d5ffd19
Binary files /dev/null and b/addons/localization_editor/icons/File.png~ differ
diff --git a/addons/localization_editor/icons/File.svg b/addons/localization_editor/icons/File.svg
new file mode 100644
index 0000000..343eccb
--- /dev/null
+++ b/addons/localization_editor/icons/File.svg
@@ -0,0 +1,63 @@
+
+
+
+
diff --git a/addons/localization_editor/icons/File.svg.import b/addons/localization_editor/icons/File.svg.import
new file mode 100644
index 0000000..6ca39f3
--- /dev/null
+++ b/addons/localization_editor/icons/File.svg.import
@@ -0,0 +1,37 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://crjkaavcu17ry"
+path="res://.godot/imported/File.svg-a217cdf7a73106ed9395c6e9c00dd946.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/localization_editor/icons/File.svg"
+dest_files=["res://.godot/imported/File.svg-a217cdf7a73106ed9395c6e9c00dd946.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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=false
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/localization_editor/icons/Google.png b/addons/localization_editor/icons/Google.png
new file mode 100644
index 0000000..c2e11ee
Binary files /dev/null and b/addons/localization_editor/icons/Google.png differ
diff --git a/addons/localization_editor/icons/Google.png.import b/addons/localization_editor/icons/Google.png.import
new file mode 100644
index 0000000..9b770d9
--- /dev/null
+++ b/addons/localization_editor/icons/Google.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://byv22srd37niw"
+path="res://.godot/imported/Google.png-4a13485f7f5c818bffe254e6bc18a986.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/localization_editor/icons/Google.png"
+dest_files=["res://.godot/imported/Google.png-4a13485f7f5c818bffe254e6bc18a986.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/localization_editor/icons/Image.png~ b/addons/localization_editor/icons/Image.png~
new file mode 100644
index 0000000..03fdb4f
Binary files /dev/null and b/addons/localization_editor/icons/Image.png~ differ
diff --git a/addons/localization_editor/icons/Image.svg b/addons/localization_editor/icons/Image.svg
new file mode 100644
index 0000000..3b3dcb2
--- /dev/null
+++ b/addons/localization_editor/icons/Image.svg
@@ -0,0 +1,73 @@
+
+
+
+
diff --git a/addons/localization_editor/icons/Image.svg.import b/addons/localization_editor/icons/Image.svg.import
new file mode 100644
index 0000000..1b4d30f
--- /dev/null
+++ b/addons/localization_editor/icons/Image.svg.import
@@ -0,0 +1,37 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dl6cg75c815d8"
+path="res://.godot/imported/Image.svg-be940a3cbeae1918264bdb8c20e813d1.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/localization_editor/icons/Image.svg"
+dest_files=["res://.godot/imported/Image.svg-be940a3cbeae1918264bdb8c20e813d1.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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=false
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/localization_editor/icons/Key.png~ b/addons/localization_editor/icons/Key.png~
new file mode 100644
index 0000000..5fef537
Binary files /dev/null and b/addons/localization_editor/icons/Key.png~ differ
diff --git a/addons/localization_editor/icons/Locales.png~ b/addons/localization_editor/icons/Locales.png~
new file mode 100644
index 0000000..9990416
Binary files /dev/null and b/addons/localization_editor/icons/Locales.png~ differ
diff --git a/addons/localization_editor/icons/Locales.svg b/addons/localization_editor/icons/Locales.svg
new file mode 100644
index 0000000..067a109
--- /dev/null
+++ b/addons/localization_editor/icons/Locales.svg
@@ -0,0 +1,72 @@
+
+
+
+
diff --git a/addons/localization_editor/icons/Locales.svg.import b/addons/localization_editor/icons/Locales.svg.import
new file mode 100644
index 0000000..38cb958
--- /dev/null
+++ b/addons/localization_editor/icons/Locales.svg.import
@@ -0,0 +1,37 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://qd4ukmjjrqhm"
+path="res://.godot/imported/Locales.svg-c42ca34b34b5efb78d3c4d7520a73237.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/localization_editor/icons/Locales.svg"
+dest_files=["res://.godot/imported/Locales.svg-c42ca34b34b5efb78d3c4d7520a73237.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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=false
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/localization_editor/icons/Localization.png~ b/addons/localization_editor/icons/Localization.png~
new file mode 100644
index 0000000..4c0c31e
Binary files /dev/null and b/addons/localization_editor/icons/Localization.png~ differ
diff --git a/addons/localization_editor/icons/Localization.svg b/addons/localization_editor/icons/Localization.svg
new file mode 100644
index 0000000..5cd6c8f
--- /dev/null
+++ b/addons/localization_editor/icons/Localization.svg
@@ -0,0 +1,71 @@
+
+
+
+
diff --git a/addons/localization_editor/icons/Localization.svg.import b/addons/localization_editor/icons/Localization.svg.import
new file mode 100644
index 0000000..ffd73c8
--- /dev/null
+++ b/addons/localization_editor/icons/Localization.svg.import
@@ -0,0 +1,37 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://clg02fkdtojbl"
+path="res://.godot/imported/Localization.svg-09927188701e584c73c7d36976561499.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/localization_editor/icons/Localization.svg"
+dest_files=["res://.godot/imported/Localization.svg-09927188701e584c73c7d36976561499.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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=false
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/localization_editor/icons/Microsoft.png b/addons/localization_editor/icons/Microsoft.png
new file mode 100644
index 0000000..3b77a04
Binary files /dev/null and b/addons/localization_editor/icons/Microsoft.png differ
diff --git a/addons/localization_editor/icons/Microsoft.png.import b/addons/localization_editor/icons/Microsoft.png.import
new file mode 100644
index 0000000..6d9031b
--- /dev/null
+++ b/addons/localization_editor/icons/Microsoft.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dekewvpr4ic2c"
+path="res://.godot/imported/Microsoft.png-019b5f5d5880dc619456a7451b962568.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/localization_editor/icons/Microsoft.png"
+dest_files=["res://.godot/imported/Microsoft.png-019b5f5d5880dc619456a7451b962568.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/localization_editor/icons/Open.png~ b/addons/localization_editor/icons/Open.png~
new file mode 100644
index 0000000..2c8a630
Binary files /dev/null and b/addons/localization_editor/icons/Open.png~ differ
diff --git a/addons/localization_editor/icons/Open.svg b/addons/localization_editor/icons/Open.svg
new file mode 100644
index 0000000..39c3490
--- /dev/null
+++ b/addons/localization_editor/icons/Open.svg
@@ -0,0 +1,68 @@
+
+
+
+
diff --git a/addons/localization_editor/icons/Open.svg.import b/addons/localization_editor/icons/Open.svg.import
new file mode 100644
index 0000000..feab63b
--- /dev/null
+++ b/addons/localization_editor/icons/Open.svg.import
@@ -0,0 +1,37 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://cjfgah3watau4"
+path="res://.godot/imported/Open.svg-f6776ec38e2e97e0e3cfda36e50b55b4.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/localization_editor/icons/Open.svg"
+dest_files=["res://.godot/imported/Open.svg-f6776ec38e2e97e0e3cfda36e50b55b4.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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=false
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/localization_editor/icons/Placeholders.png~ b/addons/localization_editor/icons/Placeholders.png~
new file mode 100644
index 0000000..f6ed542
Binary files /dev/null and b/addons/localization_editor/icons/Placeholders.png~ differ
diff --git a/addons/localization_editor/icons/Placeholders.svg b/addons/localization_editor/icons/Placeholders.svg
new file mode 100644
index 0000000..155ede1
--- /dev/null
+++ b/addons/localization_editor/icons/Placeholders.svg
@@ -0,0 +1,71 @@
+
+
+
+
diff --git a/addons/localization_editor/icons/Placeholders.svg.import b/addons/localization_editor/icons/Placeholders.svg.import
new file mode 100644
index 0000000..7ca5269
--- /dev/null
+++ b/addons/localization_editor/icons/Placeholders.svg.import
@@ -0,0 +1,37 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://buvf2n266m3jc"
+path="res://.godot/imported/Placeholders.svg-6ad403fcc17e13a0813169b055c598b7.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/localization_editor/icons/Placeholders.svg"
+dest_files=["res://.godot/imported/Placeholders.svg-6ad403fcc17e13a0813169b055c598b7.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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=false
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/localization_editor/icons/Play.png~ b/addons/localization_editor/icons/Play.png~
new file mode 100644
index 0000000..9230daf
Binary files /dev/null and b/addons/localization_editor/icons/Play.png~ differ
diff --git a/addons/localization_editor/icons/Pseudolocalization.svg b/addons/localization_editor/icons/Pseudolocalization.svg
new file mode 100644
index 0000000..f9ee1a1
--- /dev/null
+++ b/addons/localization_editor/icons/Pseudolocalization.svg
@@ -0,0 +1,76 @@
+
+
+
+
diff --git a/addons/localization_editor/icons/Pseudolocalization.svg.import b/addons/localization_editor/icons/Pseudolocalization.svg.import
new file mode 100644
index 0000000..4912b5a
--- /dev/null
+++ b/addons/localization_editor/icons/Pseudolocalization.svg.import
@@ -0,0 +1,37 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://b6trurx65v5k8"
+path="res://.godot/imported/Pseudolocalization.svg-2e6bb74d60c4d5a7d7fcd47b4487afaf.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/localization_editor/icons/Pseudolocalization.svg"
+dest_files=["res://.godot/imported/Pseudolocalization.svg-2e6bb74d60c4d5a7d7fcd47b4487afaf.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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=false
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/localization_editor/icons/Put.png~ b/addons/localization_editor/icons/Put.png~
new file mode 100644
index 0000000..ba1f104
Binary files /dev/null and b/addons/localization_editor/icons/Put.png~ differ
diff --git a/addons/localization_editor/icons/Put.svg b/addons/localization_editor/icons/Put.svg
new file mode 100644
index 0000000..22e52ff
--- /dev/null
+++ b/addons/localization_editor/icons/Put.svg
@@ -0,0 +1,71 @@
+
+
+
+
diff --git a/addons/localization_editor/icons/Put.svg.import b/addons/localization_editor/icons/Put.svg.import
new file mode 100644
index 0000000..1ec9f76
--- /dev/null
+++ b/addons/localization_editor/icons/Put.svg.import
@@ -0,0 +1,37 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://w65ag0ox36ji"
+path="res://.godot/imported/Put.svg-7dd4cc3529f701294192866bf058aa82.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/localization_editor/icons/Put.svg"
+dest_files=["res://.godot/imported/Put.svg-7dd4cc3529f701294192866bf058aa82.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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=false
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/localization_editor/icons/Remaps.png~ b/addons/localization_editor/icons/Remaps.png~
new file mode 100644
index 0000000..2be7805
Binary files /dev/null and b/addons/localization_editor/icons/Remaps.png~ differ
diff --git a/addons/localization_editor/icons/Remaps.svg b/addons/localization_editor/icons/Remaps.svg
new file mode 100644
index 0000000..05de0e6
--- /dev/null
+++ b/addons/localization_editor/icons/Remaps.svg
@@ -0,0 +1,73 @@
+
+
+
+
diff --git a/addons/localization_editor/icons/Remaps.svg.import b/addons/localization_editor/icons/Remaps.svg.import
new file mode 100644
index 0000000..214320e
--- /dev/null
+++ b/addons/localization_editor/icons/Remaps.svg.import
@@ -0,0 +1,37 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://c7yf5nsn3kcsk"
+path="res://.godot/imported/Remaps.svg-e587b65fce326a6c6f24b4f174e8e8ed.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/localization_editor/icons/Remaps.svg"
+dest_files=["res://.godot/imported/Remaps.svg-e587b65fce326a6c6f24b4f174e8e8ed.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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=false
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/localization_editor/icons/Save.png~ b/addons/localization_editor/icons/Save.png~
new file mode 100644
index 0000000..37e7e8c
Binary files /dev/null and b/addons/localization_editor/icons/Save.png~ differ
diff --git a/addons/localization_editor/icons/Save.svg b/addons/localization_editor/icons/Save.svg
new file mode 100644
index 0000000..47adbc3
--- /dev/null
+++ b/addons/localization_editor/icons/Save.svg
@@ -0,0 +1,63 @@
+
+
+
+
diff --git a/addons/localization_editor/icons/Save.svg.import b/addons/localization_editor/icons/Save.svg.import
new file mode 100644
index 0000000..4b3806d
--- /dev/null
+++ b/addons/localization_editor/icons/Save.svg.import
@@ -0,0 +1,37 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://drjyfbi5n382s"
+path="res://.godot/imported/Save.svg-2fa13384d35ab37a9884d3cef8173037.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/localization_editor/icons/Save.svg"
+dest_files=["res://.godot/imported/Save.svg-2fa13384d35ab37a9884d3cef8173037.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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=false
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/localization_editor/icons/Text.png~ b/addons/localization_editor/icons/Text.png~
new file mode 100644
index 0000000..3f95887
Binary files /dev/null and b/addons/localization_editor/icons/Text.png~ differ
diff --git a/addons/localization_editor/icons/Translate.png~ b/addons/localization_editor/icons/Translate.png~
new file mode 100644
index 0000000..ebe02a7
Binary files /dev/null and b/addons/localization_editor/icons/Translate.png~ differ
diff --git a/addons/localization_editor/icons/Translation.png~ b/addons/localization_editor/icons/Translation.png~
new file mode 100644
index 0000000..ca8e311
Binary files /dev/null and b/addons/localization_editor/icons/Translation.png~ differ
diff --git a/addons/localization_editor/icons/Translation.svg b/addons/localization_editor/icons/Translation.svg
new file mode 100644
index 0000000..961f70c
--- /dev/null
+++ b/addons/localization_editor/icons/Translation.svg
@@ -0,0 +1,71 @@
+
+
+
+
diff --git a/addons/localization_editor/icons/Translation.svg.import b/addons/localization_editor/icons/Translation.svg.import
new file mode 100644
index 0000000..aeffda9
--- /dev/null
+++ b/addons/localization_editor/icons/Translation.svg.import
@@ -0,0 +1,37 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://cvuknftmrxe5d"
+path="res://.godot/imported/Translation.svg-9f5ec28f107710bd150b4822f6a76196.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/localization_editor/icons/Translation.svg"
+dest_files=["res://.godot/imported/Translation.svg-9f5ec28f107710bd150b4822f6a76196.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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=false
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/localization_editor/icons/Trash.png~ b/addons/localization_editor/icons/Trash.png~
new file mode 100644
index 0000000..5c53aee
Binary files /dev/null and b/addons/localization_editor/icons/Trash.png~ differ
diff --git a/addons/localization_editor/icons/Up.png~ b/addons/localization_editor/icons/Up.png~
new file mode 100644
index 0000000..5d3848a
Binary files /dev/null and b/addons/localization_editor/icons/Up.png~ differ
diff --git a/addons/localization_editor/icons/Video.svg b/addons/localization_editor/icons/Video.svg
new file mode 100644
index 0000000..11d8c8d
--- /dev/null
+++ b/addons/localization_editor/icons/Video.svg
@@ -0,0 +1,71 @@
+
+
+
+
diff --git a/addons/localization_editor/icons/Video.svg.import b/addons/localization_editor/icons/Video.svg.import
new file mode 100644
index 0000000..d22cfb4
--- /dev/null
+++ b/addons/localization_editor/icons/Video.svg.import
@@ -0,0 +1,37 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://oxmydroedm6f"
+path="res://.godot/imported/Video.svg-189a93107ba78c30682280af0f6afe60.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/localization_editor/icons/Video.svg"
+dest_files=["res://.godot/imported/Video.svg-189a93107ba78c30682280af0f6afe60.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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=false
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/localization_editor/icons/Yandex.png b/addons/localization_editor/icons/Yandex.png
new file mode 100644
index 0000000..137f5c6
Binary files /dev/null and b/addons/localization_editor/icons/Yandex.png differ
diff --git a/addons/localization_editor/icons/Yandex.png.import b/addons/localization_editor/icons/Yandex.png.import
new file mode 100644
index 0000000..523e7da
--- /dev/null
+++ b/addons/localization_editor/icons/Yandex.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://chlw8bdg84q1m"
+path="res://.godot/imported/Yandex.png-1d69d5125cb5731efa2a1f87a01017ad.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/localization_editor/icons/Yandex.png"
+dest_files=["res://.godot/imported/Yandex.png-1d69d5125cb5731efa2a1f87a01017ad.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/localization_editor/icons/yandex.png~ b/addons/localization_editor/icons/yandex.png~
new file mode 100644
index 0000000..5021982
Binary files /dev/null and b/addons/localization_editor/icons/yandex.png~ differ
diff --git a/addons/localization_editor/model/LocalizationData.gd b/addons/localization_editor/model/LocalizationData.gd
new file mode 100644
index 0000000..6ea3f9b
--- /dev/null
+++ b/addons/localization_editor/model/LocalizationData.gd
@@ -0,0 +1,844 @@
+# Localization data for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+extends Resource
+class_name LocalizationData
+
+signal data_changed
+
+var _editor
+var _undo_redo
+
+@export var data: Dictionary = {"locales": [], "keys": []}
+var data_filter: Dictionary = {}
+
+var _locales_filter: String
+
+func locales_filter() -> String:
+ return _locales_filter
+
+func set_locales_filter(text):
+ _locales_filter = text
+ emit_signal("data_changed")
+
+var _locales_selected: bool
+
+func locales_selected() -> bool:
+ return _locales_selected
+
+func set_locales_selected(value):
+ _locales_selected = value
+ emit_signal("data_changed")
+
+var data_remaps: Dictionary = {"remapkeys": []}
+var data_filter_remaps: Dictionary = {}
+
+var data_placeholders: Dictionary = {}
+var data_filter_placeholders: Dictionary = {}
+
+const uuid_gen = preload("res://addons/localization_editor/uuid/uuid.gd")
+
+const default_path = "res://localization/"
+const default_path_to_file = default_path + "localizations.csv"
+const default_path_to_placeholders = default_path + "Placeholders.tres"
+const AUTHOR = "# @author Vladimir Petrenko\n"
+const SETTINGS_PATH_TO_FILE = "localization_editor/locales_path_to_file"
+const SETTINGS_LOCALES_VISIBILITY = "localization_editor/locales_visibility"
+const SETTINGS_TRANSLATIONS_SPLIT_OFFSET = "localization_editor/translations_split_offset"
+const SETTINGS_PLACEHOLDERS_SPLIT_OFFSET = "localization_editor/placeholders_split_offset"
+
+func set_editor(editor) -> void:
+ _editor = editor
+ if _editor:
+ _undo_redo = _editor.get_undo_redo()
+
+func editor():
+ return _editor
+
+func undo_redo():
+ return _undo_redo
+
+func emit_signal_data_changed() -> void:
+ emit_signal("data_changed")
+
+func init_data_translations() -> void:
+ _init_data_translations_csv()
+
+func _init_data_translations_csv() -> void:
+ var path = setting_path_to_file()
+ if FileAccess.file_exists(path):
+ var file = FileAccess.open(path, FileAccess.READ)
+ var locales_line = file.get_csv_line()
+ var size = locales_line.size()
+ if size > 1:
+ for index in range(1, size):
+ add_locale(locales_line[index])
+ data.keys.clear()
+ while !file.eof_reached():
+ var values_line = file.get_csv_line()
+ if values_line.size() > 1:
+ var key = {"uuid": uuid(), "value": values_line[0], "translations": []}
+ for index in range(1, values_line.size()):
+ var translation = {"locale": locales_line[index], "value": values_line[index]}
+ key.translations.append(translation)
+ data.keys.append(key)
+
+func save_data_translations(update_script_classes = false) -> void:
+ _save_data_translations_csv()
+ _save_data_translations_keys()
+ _save_data_translations_placeholders()
+ _save_data_placeholders()
+ _save_data_translations_to_project_settings()
+ _save_data_remaps_keys()
+ ProjectSettings.save()
+ if update_script_classes:
+ _editor.get_editor_interface().get_resource_filesystem().scan()
+
+func _save_data_translations_csv() -> void:
+ var path = setting_path_to_file()
+ var path_directory = file_path(path)
+ var directory:= DirAccess.open(path_directory)
+ if not directory:
+ directory.make_dir(path_directory)
+ var file = FileAccess.open(setting_path_to_file(), FileAccess.WRITE)
+ var locales_line: Array = ["keys"]
+ var locales = data.locales
+ if locales.size() <= 0:
+ add_locale(OS.get_locale())
+ data.keys[0].value = "KEY"
+ locales_line.append_array(data.locales)
+ file.store_csv_line(locales_line)
+ for key in data.keys:
+ var values_line: Array[String] = [key.value]
+ for translation in key.translations:
+ values_line.append(translation.value)
+ file.store_csv_line(values_line)
+
+func _save_data_translations_keys() -> void:
+ var file = FileAccess.open(default_path + "LocalizationKeys.gd", FileAccess.WRITE)
+ var source_code = "# Keys for LocalizationManger to use in source code: MIT License\n"
+ source_code += AUTHOR
+ source_code += "@tool\n"
+ source_code += "class_name LocalizationKeys\n\n"
+ for key in data.keys:
+ source_code += "const " + key.value.replace(" ", "_") + " = \"" + key.value +"\"\n"
+ source_code += "\nconst KEYS = [\n"
+ for index in range(data.keys.size()):
+ source_code += " \"" + data.keys[index].value + "\",\n"
+ source_code = source_code.substr(0, source_code.rfind(",\n"))
+ source_code += "\n]"
+ file.store_string(source_code)
+
+func _save_data_translations_placeholders() -> void:
+ var placeholders = {}
+ var regex = RegEx.new()
+ regex.compile("{{(.+?)}}")
+ for key in data.keys:
+ var results = regex.search_all(key.translations[0].value)
+ for result in results:
+ var name = result.get_string()
+ var clean_name = name.replace("{{", "");
+ clean_name = clean_name.replace("}}", "");
+ if not placeholders.has(clean_name):
+ placeholders[clean_name] = name
+ var file = FileAccess.open(default_path + "LocalizationPlaceholders.gd", FileAccess.WRITE)
+ var source_code = "# Placeholders for LocalizationManger to use in source code: MIT License\n"
+ source_code += AUTHOR
+ source_code += "@tool\n"
+ source_code += "class_name LocalizationPlaceholders\n\n"
+ for placeholder_key in placeholders.keys():
+ source_code += "const " + placeholder_key + " = \"" + placeholders[placeholder_key] +"\"\n"
+ source_code += "\nconst PLACEHOLDERS = [\n"
+ var count = 0
+ for placeholder_key in placeholders.keys():
+ source_code += " \"" + placeholder_key + "\""
+ if count != placeholders.size() - 1:
+ source_code += ",\n"
+ count += 1
+ source_code += "\n]"
+ file.store_string(source_code)
+
+func _save_data_placeholders() -> void:
+ var placeholders_data = LocalizationPlaceholdersData.new()
+ placeholders_data.placeholders = data_placeholders
+ ResourceSaver.save(placeholders_data, default_path_to_placeholders)
+
+func _save_data_translations_to_project_settings() -> void:
+ var file = setting_path_to_file()
+ file = file_path_without_extension(file)
+ var translations: PackedStringArray = []
+ for locale in data.locales:
+ var entry = file + "." + locale + ".translation"
+ translations.append(entry)
+ ProjectSettings.set_setting("internationalization/locale/translations", translations)
+
+func _save_data_remaps_keys() -> void:
+ var internationalization_path = "internationalization/locale/translation_remaps"
+ var file = FileAccess.open(default_path + "LocalizationRemaps.gd", FileAccess.WRITE)
+ var source_code = "# Remapkeys for LocalizationManger to use in source code: MIT License\n"
+ source_code += AUTHOR
+ source_code += "@tool\n"
+ source_code += "class_name LocalizationRemaps\n\n"
+ if ProjectSettings.has_setting(internationalization_path):
+ var settings_remaps = ProjectSettings.get_setting(internationalization_path)
+ if settings_remaps.size():
+ var keys = settings_remaps.keys();
+ for key in keys:
+ var filename = key.get_file()
+ source_code += "const " + filename.replace(".", "_").to_upper() + " = \"" + filename.replace(".", "_").to_upper() +"\"\n"
+ file.store_string(source_code)
+
+# ***** UUID ****
+static func uuid() -> String:
+ return uuid_gen.v4()
+
+# ***** LOCALES *****
+func locales() -> Array:
+ return data.locales
+
+func check_locale(locale: String) -> void:
+ if find_locale(locale) != null:
+ add_locale(locale)
+
+func find_locale(code: String) -> Variant:
+ if data.has("locales"):
+ for locale in data.locales:
+ if locale == code:
+ return locale
+ return null
+
+func add_locale(locale: String, sendSignal = true) -> void:
+ if not data.locales.has(locale):
+ if _undo_redo != null:
+ _undo_redo.create_action("Add locale " + locale)
+ _undo_redo.add_do_method(self, "_add_locale", locale, sendSignal)
+ _undo_redo.add_undo_method(self, "_del_locale", locale)
+ _undo_redo.commit_action()
+ else:
+ _add_locale(locale, sendSignal)
+
+func _add_locale(locale, sendSignal: bool) -> void:
+ data.locales.append(locale)
+ if data.keys.size() <= 0:
+ _add_key(uuid())
+ for key in data.keys:
+ if not key_has_locale(key, locale):
+ key.translations.append({"locale": locale, "value": ""})
+ if data_remaps.remapkeys.size() <= 0:
+ _add_remapkey(uuid())
+ for remapkey in data_remaps.remapkeys:
+ if not remapkey_has_locale(remapkey, locale):
+ remapkey.remaps.append({"locale": locale, "value": ""})
+ if sendSignal:
+ emit_signal("data_changed")
+
+func del_locale(locale: String) -> void:
+ if data.locales.has(locale):
+ if _undo_redo != null:
+ _undo_redo.create_action("Del locale " + locale)
+ _undo_redo.add_do_method(self, "_del_locale", locale)
+ _undo_redo.add_undo_method(self, "_add_locale", locale)
+ _undo_redo.commit_action()
+ else:
+ _del_locale(locale)
+
+func _del_locale(locale: String) -> void:
+ data.locales.erase(locale)
+ setting_locales_visibility_del(locale)
+ for key in data.keys:
+ for translation in key.translations:
+ if translation.locale == locale:
+ var t = key.translations.find(translation)
+ key.translations.remove_at(t)
+ break
+ for remapkey in data_remaps.remapkeys:
+ for remap in remapkey.remaps:
+ if remap.locale == locale:
+ var r = remapkey.remaps.find(remap)
+ remapkey.remaps.remove_at(r)
+ break
+ emit_signal("data_changed")
+
+# ***** KEYS *****
+signal data_key_value_changed
+
+func emit_data_key_value_changed() -> void:
+ emit_signal("data_key_value_changed")
+
+func keys() -> Array:
+ return data.keys
+
+func keys_filtered() -> Array:
+ var keys = _filter_by_keys()
+ for filter_key in data_filter.keys():
+ if filter_key != "keys":
+ keys = _key_filter_by_translations(keys, filter_key)
+ return keys
+
+func _filter_by_keys() -> Array:
+ var keys = []
+ for key in data.keys:
+ if not data_filter.has("keys") or data_filter["keys"] == "" or key.value == null or key.value == "" or data_filter["keys"] in key.value:
+ keys.append(key)
+ return keys
+
+func _key_filter_by_translations(keys, locale) -> Array:
+ var new_keys = []
+ for key in keys:
+ var value = translation_value_by_locale(key, locale)
+ if data_filter[locale] == "" or value == null or value == "" or data_filter[locale] in value:
+ new_keys.append(key)
+ return new_keys
+
+func translation_value_by_locale(key, locale) -> String:
+ var translation = translation_by_locale(key, locale)
+ if translation != null and translation.value != null:
+ return translation.value
+ return ""
+
+func translation_by_locale(key, locale):
+ for translation in key.translations:
+ if translation.locale == locale:
+ return translation
+ return null
+
+func add_key_object(key) -> void:
+ data.keys.append(key)
+
+func _add_key(uuid: String, emitSignal = true) -> void:
+ data.keys.append(_create_key(uuid))
+ if emitSignal:
+ emit_signal("data_changed")
+
+func add_key_new_after_uuid(after_uuid: String, uuid = uuid()) -> void:
+ if _undo_redo != null:
+ _undo_redo.create_action("Add new key " + uuid + " after " + after_uuid)
+ _undo_redo.add_do_method(self, "_add_key_new_after_uuid", after_uuid, uuid)
+ _undo_redo.add_undo_method(self, "_del_key", uuid)
+ _undo_redo.commit_action()
+ else:
+ _add_key_new_after_uuid(after_uuid, uuid)
+
+func _add_key_after_uuid(after_uuid: String, key) -> void:
+ var position = _key_position(after_uuid)
+ if position != -1 and position < data.keys.size():
+ data.keys.insert(position + 1, key)
+ emit_signal("data_changed")
+ else:
+ data.keys.append(key)
+
+func _add_key_new_after_uuid(after_uuid: String, uuid = uuid()) -> void:
+ var position = _key_position(after_uuid)
+ if position != -1 and position < data.keys.size():
+ var key = _create_key(uuid)
+ data.keys.insert(position + 1, key)
+ emit_signal("data_changed")
+ else:
+ _add_key(uuid)
+
+func _create_key(uuid: String):
+ var key = {"uuid": uuid, "value": "", "translations": []}
+ for locale in data.locales:
+ var translation = {"locale": locale, "value": ""}
+ key.translations.append(translation)
+ return key
+
+func del_key(uuid: String, emitSignal = true) -> void:
+ if _undo_redo != null:
+ var before_uuid = before_uuid(uuid)
+ var key = key(uuid)
+ _undo_redo.create_action("Del key " + uuid)
+ _undo_redo.add_do_method(self, "_del_key", uuid)
+ _undo_redo.add_undo_method(self, "_add_key_after_uuid", before_uuid, key)
+ _undo_redo.commit_action()
+ else:
+ _del_key(uuid)
+
+func _del_key(uuid: String, emitSignal = true) -> void:
+ data.keys.remove_at(_key_position(uuid))
+ if emitSignal:
+ emit_signal("data_changed")
+
+func after_uuid(uuid: String):
+ var position = _key_position(uuid)
+ if position != -1 and position < data.keys.size():
+ return data.keys[position + 1].uuid
+ else:
+ return null
+
+func before_uuid(uuid: String):
+ var position = _key_position(uuid)
+ if position > 0:
+ return data.keys[position - 1].uuid
+ else:
+ return null
+
+func _key_position(uuid: String) -> int:
+ for index in range(data.keys.size()):
+ if data.keys[index].uuid == uuid:
+ return index
+ return -1
+
+func key_has_locale(key, locale: String) -> bool:
+ for translation in key.translations:
+ if translation.locale == locale:
+ return true
+ return false
+
+func key_value(uuid: String):
+ var key = key(uuid)
+ if key != FAILED:
+ return key.value
+ else:
+ return ""
+
+func key_value_change(key, key_value: String):
+ if _undo_redo != null:
+ _undo_redo.create_action("Change key value ")
+ _undo_redo.add_do_method(self, "_key_value_change", key, key_value)
+ _undo_redo.add_undo_method(self, "_key_value_change", key, "" + key.value)
+ _undo_redo.commit_action()
+ else:
+ _key_value_change(key, key_value)
+
+func _key_value_change(key, key_value: String):
+ key.value = key_value
+ emit_data_key_value_changed()
+
+func key(uuid: String):
+ for key in data.keys:
+ if key.uuid == uuid:
+ return key
+ return FAILED
+
+func is_key_value_double(value: String) -> bool:
+ var count = 0
+ for key in data.keys:
+ if key.value != null and !key.value.length() <= 0 and key.value == value:
+ count = count + 1
+ if count > 1:
+ return true
+ return false
+
+# ***** TRANSLATIONS *****
+func get_translations_by_locale(locale: String) -> Array:
+ var translations = []
+ for key in data.keys:
+ for translation in key.translations:
+ if translation.locale == locale:
+ translations.append(translation)
+ break
+ return translations
+
+func key_by_translation(translation):
+ for key in data.keys:
+ for translation_obj in key.translations:
+ if translation == translation_obj:
+ return key
+ return null
+
+func get_translations() -> Array:
+ var translations = {}
+ for locale in data.locales:
+ var translation_for_server = Translation.new()
+ translation_for_server.set_locale(locale)
+ translations[locale] = translation_for_server
+ for key in data.keys:
+ for translation in key.translations:
+ translations[translation.locale].add_message(key.value, str(translation.value))
+ return translations.values()
+
+# ***** VALUE *****
+func value_by_locale_key(locale_value: String, key_value: String) -> String:
+ for key in data.keys:
+ if key.value == key_value:
+ for translation in key.translations:
+ if translation.locale == locale_value:
+ return translation.value
+ return key_value
+
+# ***** FILTER *****
+func data_filter_by_type(type: String) -> String:
+ return data_filter[type] if data_filter.has(type) else ""
+
+func data_filter_put(type: String, filter: String) -> void:
+ data_filter[type] = filter
+ emit_signal("data_changed")
+
+func data_filter_remaps_by_type(type: String) -> String:
+ return data_filter_remaps[type] if data_filter_remaps.has(type) else ""
+
+func data_filter_remaps_put(type: String, filter: String) -> void:
+ data_filter_remaps[type] = filter
+ emit_signal("data_changed")
+
+func data_filter_placeholders_by_type(type: String) -> String:
+ return data_filter_placeholders[type] if data_filter_remaps.has(type) else ""
+
+func data_filter_placeholders_put(type: String, filter: String) -> void:
+ data_filter_placeholders[type] = filter
+ emit_signal("data_changed")
+
+# ***** REMAPS *****
+func remaps() -> Array:
+ return data_remaps.remapkeys
+
+func init_data_remaps() -> void:
+ var internationalization_path = "internationalization/locale/translation_remaps"
+ data_remaps.remapkeys = []
+ if ProjectSettings.has_setting(internationalization_path):
+ var settings_remaps = ProjectSettings.get_setting(internationalization_path)
+ if settings_remaps.size():
+ var keys = settings_remaps.keys();
+ for key in keys:
+ var remaps = []
+ for remap in settings_remaps[key]:
+ var index = remap.rfind(":")
+ var locale = remap.substr(index + 1)
+ check_locale(locale)
+ var value = remap.substr(0, index)
+ var remap_new = {"locale": locale, "value": value }
+ remaps.append(remap_new)
+ data_remaps.remapkeys.append({"uuid": uuid(), "remaps": remaps})
+ _check_remapkeys()
+ return
+ var remap = _create_remapkey(uuid())
+ data_remaps.remapkeys.append(remap)
+
+func _check_remapkeys() -> void:
+ for locale in locales():
+ for remapkey in data_remaps.remapkeys:
+ if not remapkey_has_locale(remapkey, locale):
+ remapkey.remaps.append({"locale": locale, "value": ""})
+
+func save_data_remaps() -> void:
+ var remapkeys = data_remaps.remapkeys.size() > 1 or data_remaps.remapkeys.size() == 1
+ if remapkeys:
+ if data_remaps.remapkeys[0].remaps.size() > 1 and data_remaps.remapkeys[0].remaps[0].value.length() > 0:
+ _save_data_remaps()
+
+func _save_data_remaps() -> void:
+ var remaps = {}
+ for remapkey in data_remaps.remapkeys:
+ if remapkey.remaps.size() > 0:
+ var key = remapkey.remaps[0].value
+ remaps[key] = []
+ for index in range(0, remapkey.remaps.size()):
+ var remap = remapkey.remaps[index]
+ var value = remap.value + ":" + remap.locale
+ remaps[key].append(value)
+ ProjectSettings.set_setting("internationalization/locale/translation_remaps", remaps)
+
+signal data_remapkey_value_changed
+
+func emit_data_remapkey_value_changed() -> void:
+ emit_signal("data_remapkey_value_changed")
+
+func remapkeys_filtered() -> Array:
+ var remapkeys = _filter_by_remapkeys()
+ for filter_remapkey in data_filter_remaps.keys():
+ if filter_remapkey != "remapkeys":
+ remapkeys = _remapkey_filter_by_remaps(remapkeys, filter_remapkey)
+ return remapkeys
+
+func _filter_by_remapkeys() -> Array:
+ var remapkeys = []
+ for remapkey in data_remaps.remapkeys:
+ if _remapkey_allow_by_filter(remapkey):
+ remapkeys.append(remapkey)
+ return remapkeys
+
+func _remapkey_allow_by_filter(remapkey) -> bool:
+ if data_filter_remaps.has("remapkeys"):
+ if data_filter_remaps.remapkeys.length() <= 0:
+ return true
+ else:
+ for remap in remapkey.remaps:
+ if remap_type(remap) in data_filter_remaps.remapkeys:
+ return true
+ return false
+ else:
+ return true
+
+func _remapkey_filter_by_remaps(remapkeys, locale) -> Array:
+ var new_remapkeys = []
+ for remapkey in remapkeys:
+ var value = _remap_value_by_locale(remapkey, locale)
+ if data_filter_remaps[locale] == "" or value == null or value == "" or data_filter_remaps[locale] in value:
+ new_remapkeys.append(remapkey)
+ return new_remapkeys
+
+func _remap_value_by_locale(remapkey, locale):
+ for remap in remapkey.remaps:
+ if remap.locale == locale:
+ if remap.value != null:
+ return remap.value
+ return ""
+
+func add_remapkey_object(remapkey) -> void:
+ data_remaps.remapkeys.append(remapkey)
+
+func _add_remapkey(uuid: String, emitSignal = true) -> void:
+ data_remaps.remapkeys.append(_create_remapkey(uuid))
+ if emitSignal:
+ emit_signal("data_changed")
+
+func add_remapkey_new_after_uuid_remap(after_uuid_remap: String, uuid = uuid()) -> void:
+ if _undo_redo != null:
+ _undo_redo.create_action("Add new remapkey " + uuid + " after " + after_uuid_remap)
+ _undo_redo.add_do_method(self, "_add_remapkey_new_after_uuid_remap", after_uuid_remap, uuid)
+ _undo_redo.add_undo_method(self, "_del_remapkey", uuid)
+ _undo_redo.commit_action()
+ else:
+ _add_remapkey_new_after_uuid_remap(after_uuid_remap, uuid)
+
+func _add_remapkey_after_uuid_remap(after_uuid_remap: String, remapkey) -> void:
+ var position = _remapkey_position(after_uuid_remap)
+ if position != -1 and position < data_remaps.remapkeys.size():
+ data_remaps.remapkeys.insert(position + 1, remapkey)
+ emit_signal("data_changed")
+ else:
+ data_remaps.remapkeys.append(remapkey)
+
+func _add_remapkey_new_after_uuid_remap(after_uuid_remap: String, uuid = uuid()) -> void:
+ var position = _remapkey_position(after_uuid_remap)
+ if position != -1 and position < data_remaps.remapkeys.size():
+ var remapkey = _create_remapkey(uuid)
+ data_remaps.remapkeys.insert(position + 1, remapkey)
+ emit_signal("data_changed")
+ else:
+ _add_remapkey(uuid)
+
+func _create_remapkey(uuid: String):
+ var remapkey = {"uuid": uuid, "remaps": []}
+ for locale in data.locales:
+ var remap = {"locale": locale, "value": ""}
+ remapkey.remaps.append(remap)
+ return remapkey
+
+func del_remapkey(uuid: String, emitSignal = true) -> void:
+ if _undo_redo != null:
+ var before_uuid_remap = before_uuid_remap(uuid)
+ var remapkey = remapkey(uuid)
+ _undo_redo.create_action("Del remapkey " + uuid)
+ _undo_redo.add_do_method(self, "_del_remapkey", uuid)
+ _undo_redo.add_undo_method(self, "_add_remapkey_after_uuid_remap", before_uuid_remap, remapkey)
+ _undo_redo.commit_action()
+ else:
+ _del_remapkey(uuid)
+
+func _del_remapkey(uuid: String, emitSignal = true) -> void:
+ data_remaps.remapkeys.remove_at(_remapkey_position(uuid))
+ if emitSignal:
+ emit_signal("data_changed")
+
+func after_uuid_remap(uuid: String):
+ var position = _remapkey_position(uuid)
+ if position != -1 and position < data_remaps.remapkeys.size():
+ return data_remaps.remapkeys[position + 1].uuid
+ else:
+ return null
+
+func before_uuid_remap(uuid: String):
+ var position = _remapkey_position(uuid)
+ if position > 0:
+ return data_remaps.remapkeys[position - 1].uuid
+ else:
+ return null
+
+func _remapkey_position(uuid: String) -> int:
+ for index in range(data_remaps.remapkeys.size()):
+ if data_remaps.remapkeys[index].uuid == uuid:
+ return index
+ return -1
+
+func remapkey_has_locale(remapkey, locale: String) -> bool:
+ for remap in remapkey.remaps:
+ if remap.locale == locale:
+ return true
+ return false
+
+func remapkey_value(uuid: String):
+ var remapkey = remapkey(uuid)
+ if remapkey != FAILED:
+ return remapkey.value
+ else:
+ return ""
+
+func remapkey_value_change(remapkey, remapkey_value: String):
+ if _undo_redo != null:
+ _undo_redo.create_action("Change remapkey value ")
+ _undo_redo.add_do_method(self, "_remapkey_value_change", remapkey, remapkey_value)
+ _undo_redo.add_undo_method(self, "_remapkey_value_change", remapkey, "" + remapkey.value)
+ _undo_redo.commit_action()
+ else:
+ _remapkey_value_change(remapkey, remapkey_value)
+
+func _remapkey_value_change(remapkey, remapkey_value: String):
+ remapkey.value = remapkey_value
+ emit_data_remapkey_value_changed()
+
+func remapkey(uuid: String):
+ for remapkey in data_remaps.remapkeys:
+ if remapkey.uuid == uuid:
+ return remapkey
+ return FAILED
+
+func remap_type(remap) -> String:
+ match file_extension(remap.value):
+ "ogg", "wav", "mp3":
+ return "audio"
+ "bmp", "dds", "exr", "hdr", "jpg", "jpeg", "png", "tga", "svg", "svgz", "webp":
+ return "image"
+ "webm", "o", "ogv":
+ return "video"
+ _:
+ return "undefined"
+
+func supported_file_extensions() -> Array:
+ return ["ogg", "ogv", "wav", "mp3", "bmp", "dds", "exr", "hdr", "jpg", "jpeg", "png", "tga", "svg", "svgz", "webp", "webm", "o"]
+
+# ***** PLACEHOLDERS *****
+func init_data_placeholders() -> void:
+ var placeholders = calc_placeholders()
+ for key in placeholders.keys():
+ if not data_placeholders.has(key):
+ data_placeholders[key] = placeholders[key]
+ if FileAccess.file_exists(default_path_to_placeholders):
+ var resource = ResourceLoader.load(default_path_to_placeholders)
+ if resource and resource.placeholders and not resource.placeholders.size() <= 0:
+ for key in resource.placeholders.keys():
+ data_placeholders[key] = resource.placeholders[key]
+
+func calc_placeholders() -> Dictionary:
+ var placeholders = {}
+ var regex = RegEx.new()
+ regex.compile("{{(.+?)}}")
+ for key in data.keys:
+ for index in range(key.translations.size()):
+ var results = regex.search_all(key.translations[index].value)
+ for result in results:
+ var name = result.get_string()
+ var clean_name = name.replace("{{", "");
+ clean_name = clean_name.replace("}}", "");
+ if not placeholders.has(name):
+ var placeholder = {}
+ for locale in data.locales:
+ placeholder[locale] = ""
+ placeholders[clean_name] = placeholder
+ return placeholders
+
+func placeholders_filtered() -> Dictionary:
+ var placeholders = _filter_by_placeholderkeys()
+ for filter_placeholderkey in data_filter_placeholders.keys():
+ if filter_placeholderkey != "placeholderkeys":
+ placeholders = _key_filter_by_placeholders(placeholders, filter_placeholderkey)
+ return placeholders
+
+func _key_filter_by_placeholders(placeholders, locale) -> Dictionary:
+ var new_placeholders = {}
+ for placeholderkey in placeholders.keys():
+ var value = placeholders[placeholderkey][locale]
+ if data_filter_placeholders[locale] == "" or data_filter_placeholders[locale] in value:
+ new_placeholders[placeholderkey] = placeholders[placeholderkey]
+ return new_placeholders
+
+func _filter_by_placeholderkeys() -> Dictionary:
+ var placeholders = {}
+ for placeholderkey in data_placeholders.keys():
+ if not data_filter_placeholders.has("placeholderkeys") or data_filter_placeholders["placeholderkeys"] == "" or placeholderkey == null or placeholderkey == "" or data_filter_placeholders["placeholderkeys"] in placeholderkey:
+ placeholders[placeholderkey] = data_placeholders[placeholderkey]
+ return placeholders
+
+func del_placeholder(key: String, emitSignal = true) -> void:
+ if _undo_redo != null:
+ var placeholder = data_placeholders[key]
+ _undo_redo.create_action("Del _del_placeholder " + key)
+ _undo_redo.add_do_method(self, "_del_placeholder", key)
+ _undo_redo.add_undo_method(self, "_add_placeholder", key, placeholder)
+ _undo_redo.commit_action()
+ else:
+ _del_placeholder(key)
+
+func _del_placeholder(key: String, emitSignal = true) -> void:
+ data_placeholders.erase(key)
+ if emitSignal:
+ emit_signal("data_changed")
+
+func _add_placeholder(key: String, placeholder, emitSignal = true):
+ data_placeholders[key] = placeholder
+ if emitSignal:
+ emit_signal("data_changed")
+
+# ***** EDITOR SETTINGS *****
+signal settings_changed
+
+func setting_path_to_file() -> String:
+ var path = default_path_to_file
+ if ProjectSettings.has_setting(SETTINGS_PATH_TO_FILE):
+ path = ProjectSettings.get_setting(SETTINGS_PATH_TO_FILE)
+ return path
+
+func setting_path_to_file_put(path: String) -> void:
+ ProjectSettings.set_setting(SETTINGS_PATH_TO_FILE, path)
+ emit_signal("settings_changed")
+
+func is_locale_visible(locale: String) -> bool:
+ if not ProjectSettings.has_setting(SETTINGS_LOCALES_VISIBILITY):
+ return true
+ var locales = ProjectSettings.get_setting(SETTINGS_LOCALES_VISIBILITY)
+ return not locales.has(locale)
+
+func setting_locales_visibility_put(locale: String) -> void:
+ var locales = []
+ if ProjectSettings.has_setting(SETTINGS_LOCALES_VISIBILITY):
+ locales = ProjectSettings.get_setting(SETTINGS_LOCALES_VISIBILITY)
+ if not locales.has(locale):
+ locales.append(locale)
+ ProjectSettings.set_setting(SETTINGS_LOCALES_VISIBILITY, locales)
+ emit_signal("data_changed")
+
+func setting_locales_visibility_del(locale: String, emitSignal = true) -> void:
+ if ProjectSettings.has_setting(SETTINGS_LOCALES_VISIBILITY):
+ var locales = ProjectSettings.get_setting(SETTINGS_LOCALES_VISIBILITY)
+ if locales.has(locale):
+ locales.erase(locale)
+ ProjectSettings.set_setting(SETTINGS_LOCALES_VISIBILITY, locales)
+ if emitSignal:
+ emit_signal("data_changed")
+
+func setting_translations_split_offset() -> int:
+ var offset = 350
+ if ProjectSettings.has_setting(SETTINGS_TRANSLATIONS_SPLIT_OFFSET):
+ offset = ProjectSettings.get_setting(SETTINGS_TRANSLATIONS_SPLIT_OFFSET)
+ return offset
+
+func setting_translations_split_offset_put(offset: int) -> void:
+ ProjectSettings.set_setting(SETTINGS_TRANSLATIONS_SPLIT_OFFSET, offset)
+
+func setting_placeholders_split_offset() -> int:
+ var offset = 350
+ if ProjectSettings.has_setting(SETTINGS_PLACEHOLDERS_SPLIT_OFFSET):
+ offset = ProjectSettings.get_setting(SETTINGS_PLACEHOLDERS_SPLIT_OFFSET)
+ return offset
+
+func setting_placeholders_split_offset_put(offset: int) -> void:
+ ProjectSettings.set_setting(SETTINGS_PLACEHOLDERS_SPLIT_OFFSET, offset)
+
+# ***** UTILS *****
+func filename(value: String) -> String:
+ var index = value.rfind("/")
+ return value.substr(index + 1)
+
+func file_path_without_extension(value: String) -> String:
+ var index = value.rfind(".")
+ return value.substr(0, index)
+
+func file_path(value: String) -> String:
+ var index = value.rfind("/")
+ return value.substr(0, index)
+
+func file_extension(value: String):
+ var index = value.rfind(".")
+ if index == -1:
+ return null
+ return value.substr(index + 1)
diff --git a/addons/localization_editor/model/LocalizationData.gd.uid b/addons/localization_editor/model/LocalizationData.gd.uid
new file mode 100644
index 0000000..68e860c
--- /dev/null
+++ b/addons/localization_editor/model/LocalizationData.gd.uid
@@ -0,0 +1 @@
+uid://c03rmaflcsi65
diff --git a/addons/localization_editor/model/LocalizationLocaleSingle.gd b/addons/localization_editor/model/LocalizationLocaleSingle.gd
new file mode 100644
index 0000000..d38b9b7
--- /dev/null
+++ b/addons/localization_editor/model/LocalizationLocaleSingle.gd
@@ -0,0 +1,11 @@
+# Single locale for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+extends Object
+class_name LocalizationLocaleSingle
+
+var code: String
+var name: String
+
+func _init(pcode: String, pname: String):
+ code = pcode
+ name = pname
diff --git a/addons/localization_editor/model/LocalizationLocaleSingle.gd.uid b/addons/localization_editor/model/LocalizationLocaleSingle.gd.uid
new file mode 100644
index 0000000..57ebb98
--- /dev/null
+++ b/addons/localization_editor/model/LocalizationLocaleSingle.gd.uid
@@ -0,0 +1 @@
+uid://r4m5ptsa4hpa
diff --git a/addons/localization_editor/model/LocalizationLocalesList.gd b/addons/localization_editor/model/LocalizationLocalesList.gd
new file mode 100644
index 0000000..9191f58
--- /dev/null
+++ b/addons/localization_editor/model/LocalizationLocalesList.gd
@@ -0,0 +1,383 @@
+# List of locales for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+class_name LocalizationLocalesList
+
+const LOCALES = {
+ "aa": "Afar",
+ "aa_DJ": "Afar (Djibouti)",
+ "aa_ER": "Afar (Eritrea)",
+ "aa_ET": "Afar (Ethiopia)",
+ "af": "Afrikaans",
+ "af_ZA": "Afrikaans (South Africa)",
+ "agr_PE": "Aguaruna (Peru)",
+ "ak_GH": "Akan (Ghana)",
+ "am_ET": "Amharic (Ethiopia)",
+ "an_ES": "Aragonese (Spain)",
+ "anp_IN": "Angika (India)",
+ "ar": "Arabic",
+ "ar_AE": "Arabic (United Arab Emirates)",
+ "ar_BH": "Arabic (Bahrain)",
+ "ar_DZ": "Arabic (Algeria)",
+ "ar_EG": "Arabic (Egypt)",
+ "ar_IN": "Arabic (India)",
+ "ar_IQ": "Arabic (Iraq)",
+ "ar_JO": "Arabic (Jordan)",
+ "ar_KW": "Arabic (Kuwait)",
+ "ar_LB": "Arabic (Lebanon)",
+ "ar_LY": "Arabic (Libya)",
+ "ar_MA": "Arabic (Morocco)",
+ "ar_OM": "Arabic (Oman)",
+ "ar_QA": "Arabic (Qatar)",
+ "ar_SA": "Arabic (Saudi Arabia)",
+ "ar_SD": "Arabic (Sudan)",
+ "ar_SS": "Arabic (South Soudan)",
+ "ar_SY": "Arabic (Syria)",
+ "ar_TN": "Arabic (Tunisia)",
+ "ar_YE": "Arabic (Yemen)",
+ "as_IN": "Assamese (India)",
+ "ast_ES": "Asturian (Spain)",
+ "ayc_PE": "Southern Aymara (Peru)",
+ "ay_PE": "Aymara (Peru)",
+ "az_AZ": "Azerbaijani (Azerbaijan)",
+ "be": "Belarusian",
+ "be_BY": "Belarusian (Belarus)",
+ "bem_ZM": "Bemba (Zambia)",
+ "ber_DZ": "Berber languages (Algeria)",
+ "ber_MA": "Berber languages (Morocco)",
+ "bg": "Bulgarian",
+ "bg_BG": "Bulgarian (Bulgaria)",
+ "bhb_IN": "Bhili (India)",
+ "bho_IN": "Bhojpuri (India)",
+ "bi_TV": "Bislama (Tuvalu)",
+ "bn": "Bengali",
+ "bn_BD": "Bengali (Bangladesh)",
+ "bn_IN": "Bengali (India)",
+ "bo": "Tibetan",
+ "bo_CN": "Tibetan (China)",
+ "bo_IN": "Tibetan (India)",
+ "br_FR": "Breton (France)",
+ "brx_IN": "Bodo (India)",
+ "bs_BA": "Bosnian (Bosnia and Herzegovina)",
+ "byn_ER": "Bilin (Eritrea)",
+ "ca": "Catalan",
+ "ca_AD": "Catalan (Andorra)",
+ "ca_ES": "Catalan (Spain)",
+ "ca_FR": "Catalan (France)",
+ "ca_IT": "Catalan (Italy)",
+ "ce_RU": "Chechen (Russia)",
+ "chr_US": "Cherokee (United States)",
+ "cmn_TW": "Mandarin Chinese (Taiwan)",
+ "crh_UA": "Crimean Tatar (Ukraine)",
+ "csb_PL": "Kashubian (Poland)",
+ "cs": "Czech",
+ "cs_CZ": "Czech (Czech Republic)",
+ "cv_RU": "Chuvash (Russia)",
+ "cy_GB": "Welsh (United Kingdom)",
+ "da": "Danish",
+ "da_DK": "Danish (Denmark)",
+ "de": "German",
+ "de_AT": "German (Austria)",
+ "de_BE": "German (Belgium)",
+ "de_CH": "German (Switzerland)",
+ "de_DE": "German (Germany)",
+ "de_IT": "German (Italy)",
+ "de_LU": "German (Luxembourg)",
+ "doi_IN": "Dogri (India)",
+ "dv_MV": "Dhivehi (Maldives)",
+ "dz_BT": "Dzongkha (Bhutan)",
+ "el": "Greek",
+ "el_CY": "Greek (Cyprus)",
+ "el_GR": "Greek (Greece)",
+ "en": "English",
+ "en_AG": "English (Antigua and Barbuda)",
+ "en_AU": "English (Australia)",
+ "en_BW": "English (Botswana)",
+ "en_CA": "English (Canada)",
+ "en_DK": "English (Denmark)",
+ "en_GB": "English (United Kingdom)",
+ "en_HK": "English (Hong Kong)",
+ "en_IE": "English (Ireland)",
+ "en_IL": "English (Israel)",
+ "en_IN": "English (India)",
+ "en_NG": "English (Nigeria)",
+ "en_NZ": "English (New Zealand)",
+ "en_PH": "English (Philippines)",
+ "en_SG": "English (Singapore)",
+ "en_US": "English (United States)",
+ "en_ZA": "English (South Africa)",
+ "en_ZM": "English (Zambia)",
+ "en_ZW": "English (Zimbabwe)",
+ "eo": "Esperanto",
+ "es": "Spanish",
+ "es_AR": "Spanish (Argentina)",
+ "es_BO": "Spanish (Bolivia)",
+ "es_CL": "Spanish (Chile)",
+ "es_CO": "Spanish (Colombia)",
+ "es_CR": "Spanish (Costa Rica)",
+ "es_CU": "Spanish (Cuba)",
+ "es_DO": "Spanish (Dominican Republic)",
+ "es_EC": "Spanish (Ecuador)",
+ "es_ES": "Spanish (Spain)",
+ "es_GT": "Spanish (Guatemala)",
+ "es_HN": "Spanish (Honduras)",
+ "es_MX": "Spanish (Mexico)",
+ "es_NI": "Spanish (Nicaragua)",
+ "es_PA": "Spanish (Panama)",
+ "es_PE": "Spanish (Peru)",
+ "es_PR": "Spanish (Puerto Rico)",
+ "es_PY": "Spanish (Paraguay)",
+ "es_SV": "Spanish (El Salvador)",
+ "es_US": "Spanish (United States)",
+ "es_UY": "Spanish (Uruguay)",
+ "es_VE": "Spanish (Venezuela)",
+ "et": "Estonian",
+ "et_EE": "Estonian (Estonia)",
+ "eu": "Basque",
+ "eu_ES": "Basque (Spain)",
+ "fa": "Persian",
+ "fa_IR": "Persian (Iran)",
+ "ff_SN": "Fulah (Senegal)",
+ "fi": "Finnish",
+ "fi_FI": "Finnish (Finland)",
+ "fil": "Filipino",
+ "fil_PH": "Filipino (Philippines)",
+ "fo_FO": "Faroese (Faroe Islands)",
+ "fr": "French",
+ "fr_BE": "French (Belgium)",
+ "fr_CA": "French (Canada)",
+ "fr_CH": "French (Switzerland)",
+ "fr_FR": "French (France)",
+ "fr_LU": "French (Luxembourg)",
+ "fur_IT": "Friulian (Italy)",
+ "fy_DE": "Western Frisian (Germany)",
+ "fy_NL": "Western Frisian (Netherlands)",
+ "ga": "Irish",
+ "ga_IE": "Irish (Ireland)",
+ "gd_GB": "Scottish Gaelic (United Kingdom)",
+ "gez_ER": "Geez (Eritrea)",
+ "gez_ET": "Geez (Ethiopia)",
+ "gl_ES": "Galician (Spain)",
+ "gu_IN": "Gujarati (India)",
+ "gv_GB": "Manx (United Kingdom)",
+ "hak_TW": "Hakka Chinese (Taiwan)",
+ "ha_NG": "Hausa (Nigeria)",
+ "he": "Hebrew",
+ "he_IL": "Hebrew (Israel)",
+ "hi": "Hindi",
+ "hi_IN": "Hindi (India)",
+ "hne_IN": "Chhattisgarhi (India)",
+ "hr": "Croatian",
+ "hr_HR": "Croatian (Croatia)",
+ "hsb_DE": "Upper Sorbian (Germany)",
+ "ht_HT": "Haitian (Haiti)",
+ "hu": "Hungarian",
+ "hu_HU": "Hungarian (Hungary)",
+ "hus_MX": "Huastec (Mexico)",
+ "hy_AM": "Armenian (Armenia)",
+ "ia_FR": "Interlingua (France)",
+ "id": "Indonesian",
+ "id_ID": "Indonesian (Indonesia)",
+ "ig_NG": "Igbo (Nigeria)",
+ "ik_CA": "Inupiaq (Canada)",
+ "is": "Icelandic",
+ "is_IS": "Icelandic (Iceland)",
+ "it": "Italian",
+ "it_CH": "Italian (Switzerland)",
+ "it_IT": "Italian (Italy)",
+ "iu_CA": "Inuktitut (Canada)",
+ "ja": "Japanese",
+ "ja_JP": "Japanese (Japan)",
+ "kab_DZ": "Kabyle (Algeria)",
+ "ka": "Georgian",
+ "ka_GE": "Georgian (Georgia)",
+ "kk_KZ": "Kazakh (Kazakhstan)",
+ "kl_GL": "Kalaallisut (Greenland)",
+ "km_KH": "Central Khmer (Cambodia)",
+ "kn_IN": "Kannada (India)",
+ "kok_IN": "Konkani (India)",
+ "ko": "Korean",
+ "ko_KR": "Korean (South Korea)",
+ "ks_IN": "Kashmiri (India)",
+ "ku": "Kurdish",
+ "ku_TR": "Kurdish (Turkey)",
+ "kw_GB": "Cornish (United Kingdom)",
+ "ky_KG": "Kirghiz (Kyrgyzstan)",
+ "lb_LU": "Luxembourgish (Luxembourg)",
+ "lg_UG": "Ganda (Uganda)",
+ "li_BE": "Limburgan (Belgium)",
+ "li_NL": "Limburgan (Netherlands)",
+ "lij_IT": "Ligurian (Italy)",
+ "ln_CD": "Lingala (Congo)",
+ "lo_LA": "Lao (Laos)",
+ "lt": "Lithuanian",
+ "lt_LT": "Lithuanian (Lithuania)",
+ "lv": "Latvian",
+ "lv_LV": "Latvian (Latvia)",
+ "lzh_TW": "Literary Chinese (Taiwan)",
+ "mag_IN": "Magahi (India)",
+ "mai_IN": "Maithili (India)",
+ "mg_MG": "Malagasy (Madagascar)",
+ "mh_MH": "Marshallese (Marshall Islands)",
+ "mhr_RU": "Eastern Mari (Russia)",
+ "mi": "Māori",
+ "mi_NZ": "Māori (New Zealand)",
+ "miq_NI": "Mískito (Nicaragua)",
+ "mk": "Macedonian",
+ "mk_MK": "Macedonian (Macedonia)",
+ "ml": "Malayalam",
+ "ml_IN": "Malayalam (India)",
+ "mni_IN": "Manipuri (India)",
+ "mn_MN": "Mongolian (Mongolia)",
+ "mr_IN": "Marathi (India)",
+ "ms": "Malay",
+ "ms_MY": "Malay (Malaysia)",
+ "mt": "Maltese",
+ "mt_MT": "Maltese (Malta)",
+ "my_MM": "Burmese (Myanmar)",
+ "myv_RU": "Erzya (Russia)",
+ "nah_MX": "Nahuatl languages (Mexico)",
+ "nan_TW": "Min Nan Chinese (Taiwan)",
+ "nb": "Norwegian Bokmål",
+ "nb_NO": "Norwegian Bokmål (Norway)",
+ "nds_DE": "Low German (Germany)",
+ "nds_NL": "Low German (Netherlands)",
+ "ne_NP": "Nepali (Nepal)",
+ "nhn_MX": "Central Nahuatl (Mexico)",
+ "niu_NU": "Niuean (Niue)",
+ "niu_NZ": "Niuean (New Zealand)",
+ "nl": "Dutch",
+ "nl_AW": "Dutch (Aruba)",
+ "nl_BE": "Dutch (Belgium)",
+ "nl_NL": "Dutch (Netherlands)",
+ "nn": "Norwegian Nynorsk",
+ "nn_NO": "Norwegian Nynorsk (Norway)",
+ "nr_ZA": "South Ndebele (South Africa)",
+ "nso_ZA": "Pedi (South Africa)",
+ "oc_FR": "Occitan (France)",
+ "om": "Oromo",
+ "om_ET": "Oromo (Ethiopia)",
+ "om_KE": "Oromo (Kenya)",
+ "or_IN": "Oriya (India)",
+ "os_RU": "Ossetian (Russia)",
+ "pa_IN": "Panjabi (India)",
+ "pap": "Papiamento",
+ "pap_AN": "Papiamento (Netherlands Antilles)",
+ "pap_AW": "Papiamento (Aruba)",
+ "pap_CW": "Papiamento (Curaçao)",
+ "pa_PK": "Panjabi (Pakistan)",
+ "pl": "Polish",
+ "pl_PL": "Polish (Poland)",
+ "pr": "Pirate",
+ "ps_AF": "Pushto (Afghanistan)",
+ "pt": "Portuguese",
+ "pt_BR": "Portuguese (Brazil)",
+ "pt_PT": "Portuguese (Portugal)",
+ "quy_PE": "Ayacucho Quechua (Peru)",
+ "quz_PE": "Cusco Quechua (Peru)",
+ "raj_IN": "Rajasthani (India)",
+ "ro": "Romanian",
+ "ro_RO": "Romanian (Romania)",
+ "ru": "Russian",
+ "ru_RU": "Russian (Russia)",
+ "ru_UA": "Russian (Ukraine)",
+ "rw_RW": "Kinyarwanda (Rwanda)",
+ "sa_IN": "Sanskrit (India)",
+ "sat_IN": "Santali (India)",
+ "sc_IT": "Sardinian (Italy)",
+ "sco": "Scots",
+ "sd_IN": "Sindhi (India)",
+ "se_NO": "Northern Sami (Norway)",
+ "sgs_LT": "Samogitian (Lithuania)",
+ "shs_CA": "Shuswap (Canada)",
+ "sid_ET": "Sidamo (Ethiopia)",
+ "si": "Sinhala",
+ "si_LK": "Sinhala (Sri Lanka)",
+ "sk": "Slovak",
+ "sk_SK": "Slovak (Slovakia)",
+ "sl": "Slovenian",
+ "sl_SI": "Slovenian (Slovenia)",
+ "so": "Somali",
+ "so_DJ": "Somali (Djibouti)",
+ "so_ET": "Somali (Ethiopia)",
+ "so_KE": "Somali (Kenya)",
+ "so_SO": "Somali (Somalia)",
+ "son_ML": "Songhai languages (Mali)",
+ "sq": "Albanian",
+ "sq_AL": "Albanian (Albania)",
+ "sq_KV": "Albanian (Kosovo)",
+ "sq_MK": "Albanian (Macedonia)",
+ "sr": "Serbian",
+ "sr_Cyrl": "Serbian (Cyrillic)",
+ "sr_Latn": "Serbian (Latin)",
+ "sr_ME": "Serbian (Montenegro)",
+ "sr_RS": "Serbian (Serbia)",
+ "ss_ZA": "Swati (South Africa)",
+ "st_ZA": "Southern Sotho (South Africa)",
+ "sv": "Swedish",
+ "sv_FI": "Swedish (Finland)",
+ "sv_SE": "Swedish (Sweden)",
+ "sw_KE": "Swahili (Kenya)",
+ "sw_TZ": "Swahili (Tanzania)",
+ "szl_PL": "Silesian (Poland)",
+ "ta": "Tamil",
+ "ta_IN": "Tamil (India)",
+ "ta_LK": "Tamil (Sri Lanka)",
+ "tcy_IN": "Tulu (India)",
+ "te": "Telugu",
+ "te_IN": "Telugu (India)",
+ "tg_TJ": "Tajik (Tajikistan)",
+ "the_NP": "Chitwania Tharu (Nepal)",
+ "th": "Thai",
+ "th_TH": "Thai (Thailand)",
+ "ti": "Tigrinya",
+ "ti_ER": "Tigrinya (Eritrea)",
+ "ti_ET": "Tigrinya (Ethiopia)",
+ "tig_ER": "Tigre (Eritrea)",
+ "tk_TM": "Turkmen (Turkmenistan)",
+ "tl_PH": "Tagalog (Philippines)",
+ "tn_ZA": "Tswana (South Africa)",
+ "tr": "Turkish",
+ "tr_CY": "Turkish (Cyprus)",
+ "tr_TR": "Turkish (Turkey)",
+ "ts_ZA": "Tsonga (South Africa)",
+ "tt_RU": "Tatar (Russia)",
+ "ug_CN": "Uighur (China)",
+ "uk": "Ukrainian",
+ "uk_UA": "Ukrainian (Ukraine)",
+ "unm_US": "Unami (United States)",
+ "ur": "Urdu",
+ "ur_IN": "Urdu (India)",
+ "ur_PK": "Urdu (Pakistan)",
+ "uz": "Uzbek",
+ "uz_UZ": "Uzbek (Uzbekistan)",
+ "ve_ZA": "Venda (South Africa)",
+ "vi": "Vietnamese",
+ "vi_VN": "Vietnamese (Vietnam)",
+ "wa_BE": "Walloon (Belgium)",
+ "wae_CH": "Walser (Switzerland)",
+ "wal_ET": "Wolaytta (Ethiopia)",
+ "wo_SN": "Wolof (Senegal)",
+ "xh_ZA": "Xhosa (South Africa)",
+ "yi_US": "Yiddish (United States)",
+ "yo_NG": "Yoruba (Nigeria)",
+ "yue_HK": "Yue Chinese (Hong Kong)",
+ "zh": "Chinese",
+ "zh_CN": "Chinese (China)",
+ "zh_HK": "Chinese (Hong Kong)",
+ "zh_SG": "Chinese (Singapore)",
+ "zh_TW": "Chinese (Taiwan)",
+ "zu_ZA": "Zulu (South Africa)"
+}
+
+static func label_by_code(code: String) -> String:
+ if LOCALES.has(code.to_lower()):
+ return code + " " + LOCALES[code.to_lower()]
+ return ""
+
+static func has_code(code: String) -> bool:
+ for locale in LOCALES:
+ var locale_code_lower = locale.to_lower()
+ var code_lower = code.to_lower()
+ if locale_code_lower.contains(code_lower):
+ return true
+ return false
diff --git a/addons/localization_editor/model/LocalizationLocalesList.gd.uid b/addons/localization_editor/model/LocalizationLocalesList.gd.uid
new file mode 100644
index 0000000..58b4ce4
--- /dev/null
+++ b/addons/localization_editor/model/LocalizationLocalesList.gd.uid
@@ -0,0 +1 @@
+uid://db3ot745vputd
diff --git a/addons/localization_editor/model/LocalizationPlaceholdersData.gd b/addons/localization_editor/model/LocalizationPlaceholdersData.gd
new file mode 100644
index 0000000..8414591
--- /dev/null
+++ b/addons/localization_editor/model/LocalizationPlaceholdersData.gd
@@ -0,0 +1,6 @@
+# Localization placeholders data for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+extends Resource
+class_name LocalizationPlaceholdersData
+
+@export var placeholders: Dictionary = {}
diff --git a/addons/localization_editor/model/LocalizationPlaceholdersData.gd.uid b/addons/localization_editor/model/LocalizationPlaceholdersData.gd.uid
new file mode 100644
index 0000000..f43b50f
--- /dev/null
+++ b/addons/localization_editor/model/LocalizationPlaceholdersData.gd.uid
@@ -0,0 +1 @@
+uid://c56hv2a0fyjv7
diff --git a/addons/localization_editor/model/LocalizationSave.gd b/addons/localization_editor/model/LocalizationSave.gd
new file mode 100644
index 0000000..baeef83
--- /dev/null
+++ b/addons/localization_editor/model/LocalizationSave.gd
@@ -0,0 +1,7 @@
+# Localization save data for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+extends Resource
+class_name LocalizationSave
+
+@export var locale: String
+@export var placeholders: Dictionary = {}
diff --git a/addons/localization_editor/model/LocalizationSave.gd.uid b/addons/localization_editor/model/LocalizationSave.gd.uid
new file mode 100644
index 0000000..6b41d6b
--- /dev/null
+++ b/addons/localization_editor/model/LocalizationSave.gd.uid
@@ -0,0 +1 @@
+uid://bsc04m4s2dlc8
diff --git a/addons/localization_editor/plugin.cfg b/addons/localization_editor/plugin.cfg
new file mode 100644
index 0000000..f3a056f
--- /dev/null
+++ b/addons/localization_editor/plugin.cfg
@@ -0,0 +1,7 @@
+[plugin]
+
+name="LocalizationEditor"
+description="Simple editor to localize application"
+author="Vladimir Petrenko"
+version="0.4.0"
+script="plugin.gd"
diff --git a/addons/localization_editor/plugin.gd b/addons/localization_editor/plugin.gd
new file mode 100644
index 0000000..f25a979
--- /dev/null
+++ b/addons/localization_editor/plugin.gd
@@ -0,0 +1,33 @@
+@tool
+extends EditorPlugin
+
+const IconResource = preload("res://addons/localization_editor/icons/Localization.svg")
+const LocalizationMain = preload("res://addons/localization_editor/LocalizationEditor.tscn")
+
+var _localization_main: Control = null
+
+func _enter_tree():
+ add_autoload_singleton("LocalizationManager", "res://addons/localization_editor/LocalizationManager.gd")
+ _localization_main = LocalizationMain.instantiate()
+ _localization_main.name = "LocalizationEditor"
+ get_editor_interface().get_editor_main_screen().add_child(_localization_main)
+ _localization_main.set_editor(self)
+ _make_visible(false)
+
+func _make_visible(visible):
+ if _localization_main:
+ _localization_main.visible = visible
+
+func _exit_tree():
+ remove_autoload_singleton("LocalizationManager")
+ if _localization_main:
+ _localization_main.queue_free()
+
+func _has_main_screen() -> bool:
+ return true
+
+func _get_plugin_name():
+ return "Localization"
+
+func _get_plugin_icon() -> Texture2D:
+ return IconResource
diff --git a/addons/localization_editor/plugin.gd.uid b/addons/localization_editor/plugin.gd.uid
new file mode 100644
index 0000000..dea8474
--- /dev/null
+++ b/addons/localization_editor/plugin.gd.uid
@@ -0,0 +1 @@
+uid://cciu3vk12os2p
diff --git a/addons/localization_editor/scenes/auto_translate/LocalizationAutoTranslateEditorView.gd b/addons/localization_editor/scenes/auto_translate/LocalizationAutoTranslateEditorView.gd
new file mode 100644
index 0000000..0f93d48
--- /dev/null
+++ b/addons/localization_editor/scenes/auto_translate/LocalizationAutoTranslateEditorView.gd
@@ -0,0 +1,9 @@
+# Auto Translate view for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends VBoxContainer
+
+@onready var _translators_ui = $Translators
+
+func set_data(data: LocalizationData) -> void:
+ _translators_ui.set_data(data)
diff --git a/addons/localization_editor/scenes/auto_translate/LocalizationAutoTranslateEditorView.gd.uid b/addons/localization_editor/scenes/auto_translate/LocalizationAutoTranslateEditorView.gd.uid
new file mode 100644
index 0000000..aec390b
--- /dev/null
+++ b/addons/localization_editor/scenes/auto_translate/LocalizationAutoTranslateEditorView.gd.uid
@@ -0,0 +1 @@
+uid://cn4h4rfailmx
diff --git a/addons/localization_editor/scenes/auto_translate/LocalizationAutoTranslateEditorView.tscn b/addons/localization_editor/scenes/auto_translate/LocalizationAutoTranslateEditorView.tscn
new file mode 100644
index 0000000..5afaa29
--- /dev/null
+++ b/addons/localization_editor/scenes/auto_translate/LocalizationAutoTranslateEditorView.tscn
@@ -0,0 +1,23 @@
+[gd_scene load_steps=3 format=3 uid="uid://2e10hsy4f7ak"]
+
+[ext_resource type="Script" path="res://addons/localization_editor/scenes/auto_translate/LocalizationAutoTranslateEditorView.gd" id="1"]
+[ext_resource type="PackedScene" uid="uid://d15n48edirewf" path="res://addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslate.tscn" id="2"]
+
+[node name="LocalizationAutotranslateEditorView" type="VBoxContainer"]
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+grow_horizontal = 2
+grow_vertical = 2
+script = ExtResource("1")
+
+[node name="Translators" parent="." instance=ExtResource("2")]
+layout_mode = 2
+anchors_preset = 0
+anchor_right = 0.0
+anchor_bottom = 0.0
+offset_right = 1152.0
+offset_bottom = 648.0
+grow_horizontal = 1
+grow_vertical = 1
+size_flags_vertical = 3
diff --git a/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslate.gd b/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslate.gd
new file mode 100644
index 0000000..3327cd4
--- /dev/null
+++ b/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslate.gd
@@ -0,0 +1,482 @@
+# Autotranslate Yandex (https://translate.yandex.com/) for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends MarginContainer
+
+var ctx = HMACContext.new()
+
+const uuid_gen = preload("res://addons/localization_editor/uuid/uuid.gd")
+
+const SETTINGS_SAVE_TRANSLATOR_SELECTION = "localization_editor/translations_translator_selection"
+const SETTINGS_SAVE_AUTH = "localization_editor/translations_save_auth"
+const SETTINGS_SAVE_AUTH_DEEPL_KEY = "localization_editor/translations_save_auth_deepl_key"
+const SETTINGS_SAVE_AUTH_MICROSOFT_URL = "localization_editor/translations_save_auth_microsoft_url"
+const SETTINGS_SAVE_AUTH_MICROSOFT_LOCATION = "localization_editor/translations_save_auth_deepl_location"
+const SETTINGS_SAVE_AUTH_MICROSOFT_KEY = "localization_editor/translations_save_auth_deepl_key"
+const SETTINGS_SAVE_AUTH_AMAZON_REGION = "localization_editor/translations_save_auth_amazon_region"
+const SETTINGS_SAVE_AUTH_AMAZON_ACCESS_KEY = "localization_editor/translations_save_auth_access_key"
+const SETTINGS_SAVE_AUTH_AMAZON_SECRET_KEY = "localization_editor/translations_save_auth_secret_key"
+
+var _data: LocalizationData
+var _data_keys: Array = []
+var _queries_count: int = 0
+var _from_code: String
+var _to_code: String
+
+@onready var _translator: OptionButton = $Panel/VBox/HBoxTranslator/Translator
+@onready var _link: LinkButton = $Panel/VBox/HBoxTranslator/LinkButton
+@onready var _save_auth: CheckBox = $Panel/VBox/HBoxTranslator/SaveAuth
+@onready var _from_language_ui = $Panel/VBox/HBox/FromLanguage
+@onready var _to_language_ui = $Panel/VBox/HBox/ToLanguage
+@onready var _translate_ui: Button = $Panel/VBox/HBox/Translate
+@onready var _progress_ui: ProgressBar = $Panel/VBox/Progress
+
+# *** DEEPL ***
+@onready var _deepl_container: HBoxContainer = $Panel/VBox/HBoxDeepL
+@onready var _deepl_key: LineEdit = $Panel/VBox/HBoxDeepL/DeepLKey
+
+# *** MICROSOFT AZURE ***
+@onready var _microsoft_container: HBoxContainer = $Panel/VBox/HBoxMicrosoft
+@onready var _microsoft_url: OptionButton = $Panel/VBox/HBoxMicrosoft/URL
+@onready var _microsoft_location: LineEdit = $Panel/VBox/HBoxMicrosoft/Location
+@onready var _microsoft_key: LineEdit = $Panel/VBox/HBoxMicrosoft/Key
+
+# *** AMAZON AWS ***
+@onready var _amazon_container: VBoxContainer = $Panel/VBox/VBoxAWS
+@onready var _amazon_region: OptionButton = $Panel/VBox/VBoxAWS/HBoxRegion/Region
+@onready var _amazon_access_key: LineEdit = $Panel/VBox/VBoxAWS/HBoxAccessKey/AccessKey
+@onready var _amazon_secret_key: LineEdit = $Panel/VBox/VBoxAWS/HBoxSecretKey/SecretKey
+
+const Locales = preload("res://addons/localization_editor/model/LocalizationLocalesList.gd")
+
+func set_data(data: LocalizationData) -> void:
+ _data = data
+ var has_save_auth = ProjectSettings.get_setting(SETTINGS_SAVE_AUTH) == true
+ _save_auth.set_pressed(has_save_auth)
+ if has_save_auth:
+ _translator.selected = ProjectSettings.get_setting(SETTINGS_SAVE_TRANSLATOR_SELECTION)
+ _deepl_key.text = ProjectSettings.get_setting(SETTINGS_SAVE_AUTH_DEEPL_KEY)
+ _microsoft_url.selected = ProjectSettings.get_setting(SETTINGS_SAVE_AUTH_MICROSOFT_URL)
+ _microsoft_location.text = ProjectSettings.get_setting(SETTINGS_SAVE_AUTH_MICROSOFT_LOCATION)
+ _microsoft_key.text = ProjectSettings.get_setting(SETTINGS_SAVE_AUTH_MICROSOFT_KEY)
+ _amazon_region.selected = ProjectSettings.get_setting(SETTINGS_SAVE_AUTH_AMAZON_REGION)
+ _amazon_access_key.text = ProjectSettings.get_setting(SETTINGS_SAVE_AUTH_AMAZON_ACCESS_KEY)
+ _amazon_secret_key.text = ProjectSettings.get_setting(SETTINGS_SAVE_AUTH_AMAZON_SECRET_KEY)
+ _init_connections()
+ _update_view()
+
+func _init_connections() -> void:
+ if not _data.is_connected("data_changed", _update_view):
+ assert(_data.data_changed.connect(_update_view) == OK)
+ if not _translator.is_connected("item_selected", _on_translator_selection_changed):
+ _translator.item_selected.connect(_on_translator_selection_changed)
+ if not _link.is_connected("pressed", _on_link_pressed):
+ _link.pressed.connect(_on_link_pressed)
+ if not _save_auth.toggled.is_connected(_on_save_auth_toggled):
+ _save_auth.toggled.connect(_on_save_auth_toggled)
+ if not _translate_ui.is_connected("pressed", _on_translate_pressed):
+ assert(_translate_ui.connect("pressed", _on_translate_pressed) == OK)
+
+ if not _deepl_key.text_changed.is_connected(_deepl_key_text_changed):
+ _deepl_key.text_changed.connect(_deepl_key_text_changed)
+
+ if not _amazon_region.item_selected.is_connected(_on_amazon_region_selection_changed):
+ _amazon_region.item_selected.connect(_on_amazon_region_selection_changed)
+ if not _amazon_access_key.text_changed.is_connected(_amazon_access_key_text_changed):
+ _amazon_access_key.text_changed.connect(_amazon_access_key_text_changed)
+ if not _amazon_secret_key.text_changed.is_connected(_amazon_secret_key_text_changed):
+ _amazon_secret_key.text_changed.connect(_amazon_secret_key_text_changed)
+
+ if not _microsoft_url.is_connected("item_selected", _on_microsoft_url_selection_changed):
+ _microsoft_url.item_selected.connect(_on_microsoft_url_selection_changed)
+ if not _microsoft_location.text_changed.is_connected(_microsoft_location_text_changed):
+ _microsoft_location.text_changed.connect(_microsoft_location_text_changed)
+ if not _microsoft_key.text_changed.is_connected(_microsoft_key_text_changed):
+ _microsoft_key.text_changed.connect(_microsoft_key_text_changed)
+
+func _on_save_auth_toggled(button_pressed: bool) -> void:
+ _update_auth_settings()
+
+func _deepl_key_text_changed(_new_text: String) -> void:
+ _update_auth_settings()
+
+func _microsoft_location_text_changed(_new_text: String) -> void:
+ _update_auth_settings()
+
+func _amazon_access_key_text_changed(_new_text: String) -> void:
+ _update_auth_settings()
+
+func _amazon_secret_key_text_changed(_new_text: String) -> void:
+ _update_auth_settings()
+
+func _on_amazon_region_selection_changed(index: int):
+ _update_auth_settings()
+
+func _on_microsoft_url_selection_changed(index: int):
+ _update_auth_settings()
+
+func _microsoft_key_text_changed(_new_text: String) -> void:
+ _update_auth_settings()
+
+func _update_auth_settings() -> void:
+ ProjectSettings.set_setting(SETTINGS_SAVE_AUTH, _save_auth.button_pressed)
+ if _save_auth.button_pressed:
+ ProjectSettings.set_setting(SETTINGS_SAVE_TRANSLATOR_SELECTION, _translator.selected)
+ ProjectSettings.set_setting(SETTINGS_SAVE_AUTH_DEEPL_KEY, _deepl_key.text)
+ ProjectSettings.set_setting(SETTINGS_SAVE_AUTH_MICROSOFT_URL, _microsoft_url.selected)
+ ProjectSettings.set_setting(SETTINGS_SAVE_AUTH_MICROSOFT_LOCATION, _microsoft_location.text)
+ ProjectSettings.set_setting(SETTINGS_SAVE_AUTH_MICROSOFT_KEY, _microsoft_key.text)
+ ProjectSettings.set_setting(SETTINGS_SAVE_AUTH_AMAZON_REGION, _translator.selected)
+ ProjectSettings.set_setting(SETTINGS_SAVE_AUTH_AMAZON_ACCESS_KEY, _amazon_access_key.text)
+ ProjectSettings.set_setting(SETTINGS_SAVE_AUTH_AMAZON_SECRET_KEY, _amazon_secret_key.text)
+ else:
+ ProjectSettings.set_setting(SETTINGS_SAVE_TRANSLATOR_SELECTION, null)
+ ProjectSettings.set_setting(SETTINGS_SAVE_AUTH_DEEPL_KEY, null)
+ ProjectSettings.set_setting(SETTINGS_SAVE_AUTH_MICROSOFT_URL, null)
+ ProjectSettings.set_setting(SETTINGS_SAVE_AUTH_MICROSOFT_LOCATION, null)
+ ProjectSettings.set_setting(SETTINGS_SAVE_AUTH_MICROSOFT_KEY, null)
+ ProjectSettings.set_setting(SETTINGS_SAVE_AUTH_AMAZON_REGION, null)
+ ProjectSettings.set_setting(SETTINGS_SAVE_AUTH_AMAZON_ACCESS_KEY, null)
+ ProjectSettings.set_setting(SETTINGS_SAVE_AUTH_AMAZON_SECRET_KEY, null)
+ ProjectSettings.save()
+
+func _update_view() -> void:
+ _init_from_language_ui()
+ _check_translate_ui_selected()
+
+func _init_from_language_ui() -> void:
+ _from_language_ui.clear()
+ if not _from_language_ui.is_connected("selection_changed", _check_translate_ui):
+ assert(_from_language_ui.connect("selection_changed", _check_translate_ui) == OK)
+ for loc in _data.locales():
+ var label = Locales.label_by_code(loc)
+ if label != null and not label.is_empty():
+ _from_language_ui.add_item(DropdownItem.new(loc, label))
+
+func _init_to_language_ui(locales: Dictionary) -> void:
+ _to_language_ui.clear()
+ if not _to_language_ui.is_connected("selection_changed", _check_translate_ui):
+ assert(_to_language_ui.connect("selection_changed", _check_translate_ui) == OK)
+ for locale in locales:
+ if Locales.has_code(locale):
+ _to_language_ui.add_item(DropdownItem.new(locale, Locales.label_by_code(locale)))
+
+func _check_translate_ui(_item: DropdownItem) -> void:
+ _check_translate_ui_selected()
+
+func _check_translate_ui_selected() -> void:
+ if _translator.selected != -1:
+ _on_translator_selected(_translator.selected)
+ _check_translate_ui_disabled()
+
+func _check_translate_ui_disabled() -> void:
+ _translate_ui.set_disabled(_from_language_ui.get_selected_index() == -1 or _to_language_ui.get_selected_index() == -1)
+
+func _on_translator_selection_changed(index: int) -> void:
+ _to_language_ui.clear_selection()
+ _on_translator_selected(index)
+ _update_auth_settings()
+
+func _on_translator_selected(index: int) -> void:
+ _deepl_container.hide()
+ _amazon_container.hide()
+ _microsoft_container.hide()
+ _check_translate_ui_disabled()
+ match index:
+ 0:
+ _link.text = "https://translate.google.com/"
+ _init_to_language_ui(LocalizationAutoTranslateGoogle.LOCALES)
+ 1:
+ _link.text = "https://yandex.com/dev/translate/"
+ _init_to_language_ui(LocalizationAutoTranslateYandex.LOCALES)
+ 2:
+ _link.text = "https://www.deepl.com/translator"
+ _init_to_language_ui(LocalizationAutoTranslateDeepL.LOCALES)
+ _deepl_container.show()
+ 3:
+ _link.text = "https://aws.amazon.com/translate/"
+ _init_to_language_ui(LocalizationAutoTranslateAmazon.LOCALES)
+ _amazon_container.show()
+ 4:
+ _link.text = "https://translator.microsoft.com/"
+ _init_to_language_ui(LocalizationAutoTranslateMicrosoft.LOCALES)
+ _microsoft_container.show()
+
+func _on_link_pressed() -> void:
+ OS.shell_open(_link.text)
+
+func _on_translate_pressed() -> void:
+ _from_code = _from_language_ui.get_selected_value()
+ _from_code = _from_code.to_lower()
+ _to_code = _to_language_ui.get_selected_value()
+ _to_code = _to_code.to_lower()
+ _translate()
+
+func _translate() -> void:
+ _data_keys = _data.keys().duplicate()
+ var from_translation = _data.translation_by_locale(_data_keys[0], _from_code)
+ var to_translation = _data.translation_by_locale(_data_keys[0], _to_code)
+ _translate_ui.disabled = true
+ _progress_ui.max_value = _data.keys().size()
+ if not _data.locales().has(_to_code):
+ _data.add_locale(_to_code, false)
+ _create_requests()
+
+func _create_requests() -> void:
+ var space = IP.RESOLVER_MAX_QUERIES - _queries_count
+ for index in range(space):
+ if _data_keys.size() <= 0:
+ return
+ var from_translation = _data.translation_by_locale(_data_keys[0], _from_code)
+ var to_translation = _data.translation_by_locale(_data_keys[0], _to_code)
+ if from_translation != null and not from_translation.value.is_empty() and (to_translation.value == null or to_translation.value.is_empty()):
+ match _translator.selected:
+ 0:
+ _create_request_google(from_translation, to_translation)
+ 1:
+ _create_request_yandex(from_translation, to_translation)
+ 2:
+ _create_request_deepl(from_translation, to_translation)
+ 3:
+ _create_request_amazon(from_translation, to_translation)
+ 4:
+ _create_request_microsoft(from_translation, to_translation)
+ else:
+ _add_progress()
+ _data_keys.remove_at(0)
+ _queries_count += 1
+
+# *** GOOGLE IMPLEMENTATION START ***
+func _create_request_google(from_translation, to_translation) -> void:
+ var url = _create_url_google(from_translation, to_translation)
+ var http_request = HTTPRequest.new()
+ http_request.timeout = 5
+ add_child(http_request)
+ assert(http_request.request_completed.connect(_http_request_completed_google.bind(http_request, to_translation)) == OK)
+ http_request.request(url, [], HTTPClient.Method.METHOD_GET)
+
+func _create_url_google(from_translation, to_translation) -> String:
+ var url = "https://translate.googleapis.com/translate_a/single?client=gtx"
+ url += "&sl=" + from_translation.locale
+ url += "&tl=" + to_translation.locale
+ url += "&dt=t"
+ url += "&q=" + from_translation.value.uri_encode()
+ return url
+
+func _http_request_completed_google(result, response_code, headers, body, http_request, to_translation):
+ var json = JSON.new()
+ var result_body := json.parse(body.get_string_from_utf8())
+ if json.get_data() != null:
+ var value = ""
+ for index in range(json.get_data()[0].size()):
+ if index == 0:
+ value = json.get_data()[0][index][0]
+ else:
+ value += " " + json.get_data()[0][index][0]
+ to_translation.value = value
+ _add_progress()
+ remove_child(http_request)
+ _queries_count -= 1
+ _create_requests()
+# *** GOOGLE IMPLEMENTATION END ***
+
+# *** YANDEX IMPLEMENTATION START ***
+func _create_request_yandex(from_translation, to_translation) -> void:
+ push_error("YANDEX IMPLEMENTATION NOT SUPPORTED YET")
+ return
+# *** YANDEX IMPLEMENTATION END ***
+
+# *** DEEPL IMPLEMENTATION START ***
+func _create_request_deepl(from_translation, to_translation) -> void:
+ var key = _deepl_key.text
+ var text = "text=" + from_translation.value.uri_encode() + "&target_lang=" + to_translation.locale
+ var url = "https://api-free.deepl.com/v2/translate"
+ var http_request = HTTPRequest.new()
+ http_request.timeout = 5
+ add_child(http_request)
+ assert(http_request.request_completed.connect(_http_request_completed_deepl.bind(http_request, from_translation, to_translation)) == OK)
+ var custom_headers = [
+ "Host: api-free.deepl.com",
+ "Authorization: DeepL-Auth-Key " + key,
+ "User-Agent: YourApp/1.2.3",
+ "Content-Length: " + str(text.length()),
+ "Content-Type: application/x-www-form-urlencoded"
+ ]
+ http_request.request(url, custom_headers, HTTPClient.Method.METHOD_POST, text)
+
+func _http_request_completed_deepl(result, response_code, headers, body: PackedByteArray, http_request, from_translation, to_translation):
+ var json = JSON.new()
+ var result_body := json.parse(body.get_string_from_utf8())
+ if json.get_data() != null:
+ if not json.get_data().has("translations"):
+ push_error("FROM: ", from_translation.value, " => ", body.get_string_from_utf8())
+ to_translation.value = json.get_data().translations[0].text
+ _add_progress()
+ remove_child(http_request)
+ _queries_count -= 1
+ _create_requests()
+# *** DEEPL IMPLEMENTATION END ***
+
+# *** AMAZON IMPLEMENTATION START ***
+func _create_request_amazon(from_translation, to_translation) -> void:
+ var method = "POST"
+ var service = "translate"
+ var region = "us-east-2"
+ match _amazon_region.selected:
+ 1:
+ region = "us-east-1"
+ 2:
+ region = "us-west-1"
+ 3:
+ region = "us-west-2"
+ 4:
+ region = "ap-east-1"
+ 5:
+ region = "ap-south-1"
+ 6:
+ region = "ap-northeast-2"
+ 7:
+ region = "ap-southeast-1"
+ 8:
+ region = "ap-southeast-2"
+ 9:
+ region = "ap-northeast-1"
+ 10:
+ region = "ca-central-1"
+ 11:
+ region = "eu-central-1"
+ 12:
+ region = "eu-west-1"
+ 13:
+ region = "eu-west-2"
+ 14:
+ region = "eu-west-3"
+ 15:
+ region = "eu-north-1"
+ 16:
+ region = "us-gov-west-1"
+ var host = service + "." + region + ".amazonaws.com"
+ var endpoint = "https://" + host + "/"
+ var content_type = "application/x-amz-json-1.1"
+ var amz_target = "AWSShineFrontendService_20170701.TranslateText"
+
+ var request_parameters = '{'
+ request_parameters += '"Text": "' + from_translation.value + '",'
+ request_parameters += '"SourceLanguageCode": "' + from_translation.locale + '",'
+ request_parameters += '"TargetLanguageCode": "' + to_translation.locale + '"'
+ request_parameters += '}'
+
+ # https://us-east-1.console.aws.amazon.com/iam/
+ var access_key = _amazon_access_key.text
+ var secret_key = _amazon_secret_key.text
+
+ var amz_date = Time.get_datetime_string_from_system(true).replace("-", "").replace(":", "") + "Z"
+ var date_stamp = Time.get_date_string_from_system(true).replace("-", "")
+ var canonical_uri = "/"
+ var canonical_querystring = ""
+ var canonical_headers = "content-type:" + content_type + "\n" + "host:" + host + "\n" + "x-amz-date:" + amz_date + "\n" + "x-amz-target:" + amz_target + "\n"
+ var signed_headers = "content-type;host;x-amz-date;x-amz-target"
+
+ var payload_hash = request_parameters.sha256_text()
+ var canonical_request = method + "\n" + canonical_uri + "\n" + canonical_querystring + "\n" + canonical_headers + "\n" + signed_headers + "\n" + payload_hash
+ var algorithm = "AWS4-HMAC-SHA256"
+ var credential_scope = date_stamp + "/" + region + "/" + service + "/" + "aws4_request"
+ var string_to_sign = algorithm + "\n" + amz_date + "\n" + credential_scope + "\n" + canonical_request.sha256_text()
+
+ var signing_key = getSignatureKey(secret_key, date_stamp, region, service)
+ var signature = signing_hex(signing_key, string_to_sign)
+ var authorization_header = algorithm + " " + "Credential=" + access_key + "/" + credential_scope + ", " + "SignedHeaders=" + signed_headers + ", " + "Signature=" + signature
+
+ var http_request = HTTPRequest.new()
+ http_request.timeout = 5
+ add_child(http_request)
+ assert(http_request.request_completed.connect(_http_request_completed_amazon.bind(http_request, from_translation, to_translation)) == OK)
+ var headers = [
+ "Content-type: application/x-amz-json-1.1",
+ "X-Amz-Date: " + amz_date,
+ "X-Amz-Target: " + amz_target,
+ "Authorization: " + authorization_header
+ ]
+ var error = http_request.request(endpoint, headers, HTTPClient.Method.METHOD_POST, request_parameters)
+
+func getSignatureKey(key, dateStamp, regionName, serviceName):
+ var kDate = signing(("AWS4" + key).to_utf8_buffer(), dateStamp)
+ var kRegion = signing(kDate, regionName)
+ var kService = signing(kRegion, serviceName)
+ return signing(kService, "aws4_request")
+
+func signing(key: PackedByteArray, msg: String):
+ assert(ctx.start(HashingContext.HASH_SHA256, key) == OK)
+ assert(ctx.update(msg.to_utf8_buffer()) == OK)
+ var hmac = ctx.finish()
+ return hmac
+
+func signing_hex(key: PackedByteArray, msg: String) -> String:
+ assert(ctx.start(HashingContext.HASH_SHA256, key) == OK)
+ assert(ctx.update(msg.to_utf8_buffer()) == OK)
+ var hmac = ctx.finish()
+ return hmac.hex_encode()
+
+func _http_request_completed_amazon(result, response_code, headers, body: PackedByteArray, http_request, from_translation, to_translation):
+ var json = JSON.new()
+ var result_body := json.parse(body.get_string_from_utf8())
+ if json.get_data() != null:
+ if not json.get_data().has("TranslatedText"):
+ push_error("FROM: ", from_translation.value, " => ", body.get_string_from_utf8())
+ to_translation.value = json.get_data().TranslatedText
+ _add_progress()
+ remove_child(http_request)
+ _queries_count -= 1
+ _create_requests()
+
+# *** AMAZON IMPLEMENTATION END ***
+
+# *** MICROSOFT IMPLEMENTATION START ***
+func _create_request_microsoft(from_translation, to_translation) -> void:
+ var key = _microsoft_key.text
+ var location = _microsoft_location.text
+ var endpoint = "https://api.cognitive.microsofttranslator.com"
+ match _microsoft_url.selected:
+ 1:
+ endpoint = "https://api-apc.congnitive.microsofttranslator.com"
+ 2:
+ endpoint = "https://api-eur.congnitive.microsofttranslator.com"
+ 3:
+ endpoint = "https://api-nam.congnitive.microsofttranslator.com"
+ var route = "/translate?api-version=3.0&from=en&to=ru"
+ var http_request = HTTPRequest.new()
+ http_request.timeout = 5
+ add_child(http_request)
+ assert(http_request.request_completed.connect(_http_request_completed_microsoft.bind(http_request, from_translation, to_translation)) == OK)
+ var custom_headers = [
+ "Ocp-Apim-Subscription-Key: " + key,
+ "Ocp-Apim-Subscription-Region: " + location,
+ "Content-type: application/json",
+ "X-ClientTraceId: " + uuid_gen.v4()
+ ]
+ var url = endpoint + route
+ var body = JSON.stringify([{"Text": from_translation.value}])
+ var error = http_request.request(url, custom_headers, HTTPClient.Method.METHOD_POST, body)
+
+func _http_request_completed_microsoft(result, response_code, headers, body: PackedByteArray, http_request, from_translation, to_translation):
+ var json = JSON.new()
+ var result_body := json.parse(body.get_string_from_utf8())
+ if json.get_data() != null:
+ if not json.get_data()[0].has("translations"):
+ push_error("FROM: ", from_translation.value, " => ", body.get_string_from_utf8())
+ to_translation.value = json.get_data()[0].translations[0].text
+ _add_progress()
+ remove_child(http_request)
+ _queries_count -= 1
+ _create_requests()
+# *** MICROSOFT IMPLEMENTATION END ***
+
+func _add_progress() -> void:
+ _progress_ui.value = _progress_ui.value + 1
+ _check_progress()
+
+func _check_progress() -> void:
+ if _progress_ui.value == _data.keys().size():
+ _data.emit_signal_data_changed()
+ _translate_ui.disabled = false
+ _progress_ui.value = 0
diff --git a/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslate.gd.uid b/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslate.gd.uid
new file mode 100644
index 0000000..167cfde
--- /dev/null
+++ b/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslate.gd.uid
@@ -0,0 +1 @@
+uid://drvspmt3mjcbe
diff --git a/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslate.tscn b/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslate.tscn
new file mode 100644
index 0000000..94e0768
--- /dev/null
+++ b/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslate.tscn
@@ -0,0 +1,236 @@
+[gd_scene load_steps=8 format=3 uid="uid://bssdhtctthadv"]
+
+[ext_resource type="Script" path="res://addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslate.gd" id="1_cuqef"]
+[ext_resource type="Texture2D" uid="uid://byv22srd37niw" path="res://addons/localization_editor/icons/Google.png" id="2_l1peq"]
+[ext_resource type="Texture2D" uid="uid://chlw8bdg84q1m" path="res://addons/localization_editor/icons/Yandex.png" id="3_ul6cn"]
+[ext_resource type="Texture2D" uid="uid://c24qna6n2q27l" path="res://addons/localization_editor/icons/DeepL.png" id="4_142cw"]
+[ext_resource type="Texture2D" uid="uid://cfu2uuf8hh0c" path="res://addons/localization_editor/icons/Amazon.png" id="5_0oig7"]
+[ext_resource type="Texture2D" uid="uid://dekewvpr4ic2c" path="res://addons/localization_editor/icons/Microsoft.png" id="6_tal6j"]
+[ext_resource type="PackedScene" path="res://addons/ui_extensions/dropdown/Dropdown.tscn" id="7_jsbqb"]
+
+[node name="LocalizationAutotranslateGoogle" type="MarginContainer"]
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+grow_horizontal = 2
+grow_vertical = 2
+size_flags_horizontal = 3
+script = ExtResource("1_cuqef")
+
+[node name="Panel" type="Panel" parent="."]
+layout_mode = 2
+size_flags_horizontal = 3
+size_flags_vertical = 3
+
+[node name="VBox" type="VBoxContainer" parent="Panel"]
+layout_mode = 1
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+grow_horizontal = 2
+grow_vertical = 2
+
+[node name="HBoxTranslator" type="HBoxContainer" parent="Panel/VBox"]
+layout_mode = 2
+
+[node name="Label" type="Label" parent="Panel/VBox/HBoxTranslator"]
+custom_minimum_size = Vector2(100, 0)
+layout_mode = 2
+text = "Translator"
+
+[node name="Translator" type="OptionButton" parent="Panel/VBox/HBoxTranslator"]
+layout_mode = 2
+tooltip_text = "Select translation engine"
+item_count = 5
+selected = 0
+popup/item_0/text = ""
+popup/item_0/icon = ExtResource("2_l1peq")
+popup/item_0/id = 0
+popup/item_1/text = ""
+popup/item_1/icon = ExtResource("3_ul6cn")
+popup/item_1/id = 1
+popup/item_1/disabled = true
+popup/item_2/text = ""
+popup/item_2/icon = ExtResource("4_142cw")
+popup/item_2/id = 2
+popup/item_3/text = ""
+popup/item_3/icon = ExtResource("5_0oig7")
+popup/item_3/id = 3
+popup/item_4/text = ""
+popup/item_4/icon = ExtResource("6_tal6j")
+popup/item_4/id = 4
+
+[node name="LinkButton" type="LinkButton" parent="Panel/VBox/HBoxTranslator"]
+layout_mode = 2
+text = "https://translate.google.com/"
+
+[node name="SaveAuth" type="CheckBox" parent="Panel/VBox/HBoxTranslator"]
+layout_mode = 2
+text = "Save Authentication Data"
+
+[node name="HBoxMicrosoft" type="HBoxContainer" parent="Panel/VBox"]
+visible = false
+layout_mode = 2
+
+[node name="LabelURL" type="Label" parent="Panel/VBox/HBoxMicrosoft"]
+custom_minimum_size = Vector2(100, 0)
+layout_mode = 2
+text = "Base URL:
+"
+
+[node name="URL" type="OptionButton" parent="Panel/VBox/HBoxMicrosoft"]
+layout_mode = 2
+tooltip_text = "Select BAse-URL for translation service"
+item_count = 4
+selected = 0
+popup/item_0/text = "GLOBAL | api.cognitive.microsofttranslator.com"
+popup/item_0/id = 0
+popup/item_1/text = "ASIA PACIFIC | api-apc.congnitive.microsofttranslator.com"
+popup/item_1/id = 1
+popup/item_2/text = "EUROPE | api-eur.congnitive.microsofttranslator.com"
+popup/item_2/id = 2
+popup/item_3/text = "UNITED STATES | api-nam.congnitive.microsofttranslator.com"
+popup/item_3/id = 3
+
+[node name="LabelLocation" type="Label" parent="Panel/VBox/HBoxMicrosoft"]
+custom_minimum_size = Vector2(100, 0)
+layout_mode = 2
+text = "Location:"
+
+[node name="Location" type="LineEdit" parent="Panel/VBox/HBoxMicrosoft"]
+custom_minimum_size = Vector2(160, 0)
+layout_mode = 2
+tooltip_text = "Location/Region for translation service"
+
+[node name="LabelKey" type="Label" parent="Panel/VBox/HBoxMicrosoft"]
+custom_minimum_size = Vector2(50, 0)
+layout_mode = 2
+text = "Key:"
+
+[node name="Key" type="LineEdit" parent="Panel/VBox/HBoxMicrosoft"]
+layout_mode = 2
+size_flags_horizontal = 3
+tooltip_text = "Insert Ocp-Apim-Subscription-Key for authorisation"
+secret = true
+
+[node name="VBoxAWS" type="VBoxContainer" parent="Panel/VBox"]
+layout_mode = 2
+
+[node name="HBoxRegion" type="HBoxContainer" parent="Panel/VBox/VBoxAWS"]
+layout_mode = 2
+
+[node name="LabelRegion" type="Label" parent="Panel/VBox/VBoxAWS/HBoxRegion"]
+custom_minimum_size = Vector2(100, 0)
+layout_mode = 2
+text = "Region:"
+
+[node name="Region" type="OptionButton" parent="Panel/VBox/VBoxAWS/HBoxRegion"]
+layout_mode = 2
+size_flags_horizontal = 3
+tooltip_text = "Select BAse-URL for translation service"
+item_count = 17
+popup/item_0/text = "US East (Ohio) | translate.us-east-2.amazonaws.com"
+popup/item_0/id = 0
+popup/item_1/text = "US East (N. Virginia) | translate.us-east-1.amazonaws.com"
+popup/item_1/id = 1
+popup/item_2/text = "US West (N. California) | translate.us-west-1.amazonaws.com"
+popup/item_2/id = 2
+popup/item_3/text = "US West (Oregon) | translate.us-west-2.amazonaws.com"
+popup/item_3/id = 3
+popup/item_4/text = "Asia Pacific (Hong Kong) | translate.ap-east-1.amazonaws.com"
+popup/item_4/id = 4
+popup/item_5/text = "Asia Pacific (Mumbai) | translate.ap-south-1.amazonaws.com"
+popup/item_5/id = 5
+popup/item_6/text = "Asia Pacific (Seoul) | translate.ap-northeast-2.amazonaws.com"
+popup/item_6/id = 6
+popup/item_7/text = "Asia Pacific (Singapore) | translate.ap-southeast-1.amazonaws.com"
+popup/item_7/id = 7
+popup/item_8/text = "Asia Pacific (Sydney) | translate.ap-southeast-2.amazonaws.com"
+popup/item_8/id = 8
+popup/item_9/text = "Asia Pacific (Tokyo) | translate.ap-northeast-1.amazonaws.com"
+popup/item_9/id = 9
+popup/item_10/text = "Canada (Central) | translate.ca-central-1.amazonaws.com"
+popup/item_10/id = 10
+popup/item_11/text = "Europe (Frankfurt) | translate.eu-central-1.amazonaws.com"
+popup/item_11/id = 11
+popup/item_12/text = "Europe (Ireland) | translate.eu-west-1.amazonaws.com"
+popup/item_12/id = 12
+popup/item_13/text = "Europe (London) | translate.eu-west-2.amazonaws.com"
+popup/item_13/id = 13
+popup/item_14/text = "Europe (Paris) | translate.eu-west-3.amazonaws.com"
+popup/item_14/id = 14
+popup/item_15/text = "Europe (Stockholm) | translate.eu-north-1.amazonaws.com"
+popup/item_15/id = 15
+popup/item_16/text = "AWS GovCloud (US-West) | translate.us-gov-west-1.amazonaws.com"
+popup/item_16/id = 16
+
+[node name="HBoxAccessKey" type="HBoxContainer" parent="Panel/VBox/VBoxAWS"]
+layout_mode = 2
+
+[node name="LabelAccessKey" type="Label" parent="Panel/VBox/VBoxAWS/HBoxAccessKey"]
+custom_minimum_size = Vector2(100, 0)
+layout_mode = 2
+text = "AccessKey:"
+
+[node name="AccessKey" type="LineEdit" parent="Panel/VBox/VBoxAWS/HBoxAccessKey"]
+custom_minimum_size = Vector2(160, 0)
+layout_mode = 2
+size_flags_horizontal = 3
+tooltip_text = "Location/Region for translation service"
+secret = true
+
+[node name="HBoxSecretKey" type="HBoxContainer" parent="Panel/VBox/VBoxAWS"]
+layout_mode = 2
+
+[node name="LabelSecretKey" type="Label" parent="Panel/VBox/VBoxAWS/HBoxSecretKey"]
+custom_minimum_size = Vector2(100, 0)
+layout_mode = 2
+text = "SecretKey:"
+
+[node name="SecretKey" type="LineEdit" parent="Panel/VBox/VBoxAWS/HBoxSecretKey"]
+layout_mode = 2
+size_flags_horizontal = 3
+tooltip_text = "Insert Ocp-Apim-Subscription-Key for authorisation"
+secret = true
+
+[node name="HBoxDeepL" type="HBoxContainer" parent="Panel/VBox"]
+visible = false
+layout_mode = 2
+
+[node name="Label" type="Label" parent="Panel/VBox/HBoxDeepL"]
+custom_minimum_size = Vector2(100, 0)
+layout_mode = 2
+text = "Key:"
+
+[node name="DeepLKey" type="LineEdit" parent="Panel/VBox/HBoxDeepL"]
+layout_mode = 2
+size_flags_horizontal = 3
+tooltip_text = "Insert DeepL-Auth-Key for authorisation"
+secret = true
+
+[node name="HBox" type="HBoxContainer" parent="Panel/VBox"]
+layout_mode = 2
+
+[node name="From" type="Label" parent="Panel/VBox/HBox"]
+custom_minimum_size = Vector2(100, 0)
+layout_mode = 2
+text = "From:"
+
+[node name="FromLanguage" parent="Panel/VBox/HBox" instance=ExtResource("7_jsbqb")]
+layout_mode = 2
+
+[node name="To" type="Label" parent="Panel/VBox/HBox"]
+custom_minimum_size = Vector2(100, 0)
+layout_mode = 2
+text = "To:"
+
+[node name="ToLanguage" parent="Panel/VBox/HBox" instance=ExtResource("7_jsbqb")]
+layout_mode = 2
+
+[node name="Translate" type="Button" parent="Panel/VBox/HBox"]
+layout_mode = 2
+disabled = true
+text = "Translate"
+
+[node name="Progress" type="ProgressBar" parent="Panel/VBox"]
+layout_mode = 2
diff --git a/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateAmazon.gd b/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateAmazon.gd
new file mode 100644
index 0000000..c0ef254
--- /dev/null
+++ b/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateAmazon.gd
@@ -0,0 +1,87 @@
+# List of locales supported by Amazon translator for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+# @see https://aws.amazon.com/translate/
+class_name LocalizationAutoTranslateAmazon
+
+const LOCALES = {
+ "af": "Afrikaans",
+ "sq": "Albanian",
+ "am": "Amharic",
+ "ar": "Arabic",
+ "hy": "Armenian",
+ "az": "Azerbaijani",
+ "bn": "Bengali",
+ "bs": "Bosnian",
+ "bg": "Bulgarian",
+ "ca": "Catalan",
+ "zh": "Chinese (Simplified)",
+ "zh-TW": "Chinese (Traditional)",
+ "hr": "Croatian",
+ "cs": "Czech",
+ "da": "Danish",
+ "fa-AF": "Dari",
+ "nl": "Dutch",
+ "en": "English",
+ "et": "Estonian",
+ "fa": "Farsi (Persian)",
+ "tl": "Filipino, Tagalog",
+ "fi": "Finnish",
+ "fr": "French",
+ "fr-CA": "French (Canada)",
+ "ka": "Georgian",
+ "de": "German",
+ "el": "Greek",
+ "gu": "Gujarati",
+ "ht": "Haitian Creole",
+ "ha": "Hausa",
+ "he": "Hebrew",
+ "hi": "Hindi",
+ "hu": "Hungarian",
+ "is": "Icelandic",
+ "id": "Indonesian",
+ "ga": "Irish",
+ "it": "Italian",
+ "ja": "Japanese",
+ "kn": "Kannada",
+ "kk": "Kazakh",
+ "ko": "Korean",
+ "lv": "Latvian",
+ "lt": "Lithuanian",
+ "mk": "Macedonian",
+ "ms": "Malay",
+ "ml": "Malayalam",
+ "mt": "Maltese",
+ "mr": "Marathi",
+ "mn": "Mongolian",
+ "no": "Norwegian (Bokmål)",
+ "ps": "Pashto",
+ "pl": "Polish",
+ "pt": "Portuguese (Brazil)",
+ "pt-PT": "Portuguese (Portugal)",
+ "pa": "Punjabi",
+ "ro": "Romanian",
+ "ru": "Russian",
+ "sr": "Serbian",
+ "si": "Sinhala",
+ "sk": "Slovak",
+ "sl": "Slovenian",
+ "so": "Somali",
+ "es": "Spanish",
+ "es-MX": "Spanish (Mexico)",
+ "sw": "Swahili",
+ "sv": "Swedish",
+ "ta": "Tamil",
+ "te": "Telugu",
+ "th": "Thai",
+ "tr": "Turkish",
+ "uk": "Ukrainian",
+ "ur": "Urdu",
+ "uz": "Uzbek",
+ "vi": "Vietnamese",
+ "cy": "Welsh"
+}
+
+static func label_by_code(code: String) -> String:
+ if LOCALES.has(code.to_lower()):
+ return code + " " + LOCALES[code.to_lower()]
+ return ""
diff --git a/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateAmazon.gd.uid b/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateAmazon.gd.uid
new file mode 100644
index 0000000..9c83e4e
--- /dev/null
+++ b/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateAmazon.gd.uid
@@ -0,0 +1 @@
+uid://dwj6srgm447ko
diff --git a/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateDeepL.gd b/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateDeepL.gd
new file mode 100644
index 0000000..17be0e4
--- /dev/null
+++ b/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateDeepL.gd
@@ -0,0 +1,41 @@
+# List of locales supported by DeepL translator for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+# @see https://www.deepl.com/docs-api/translate-text/translate-text/
+class_name LocalizationAutoTranslateDeepL
+
+const LOCALES = {
+ "BG": "Bulgarian",
+ "CS": "Czech",
+ "DA": "Danish",
+ "DE": "German",
+ "EL": "Greek",
+ "EN-GB": "English (British)",
+ "EN-US": "English (American)",
+ "ES": "Spanish",
+ "ET": "Estonian",
+ "FI": "Finnish",
+ "FR": "French",
+ "HU": "Hungarian",
+ "ID": "Indonesian",
+ "IT": "Italian",
+ "JA": "Japanese",
+ "LT": "Lithuanian",
+ "LV": "Latvian",
+ "NL": "Dutch",
+ "PL": "Polish",
+ "PT-BR": "Portuguese (Brazilian)",
+ "PT-PT": "Portuguese (all Portuguese varieties excluding Brazilian Portuguese)",
+ "RO": "Romanian",
+ "RU": "Russian",
+ "SK": "Slovak",
+ "SL": "Slovenian",
+ "SV": "Swedish",
+ "TR": "Turkish",
+ "UK": "Ukrainian",
+ "ZH": "Chinese (simplified)"
+}
+
+static func label_by_code(code: String) -> String:
+ if LOCALES.has(code.to_lower()):
+ return code + " " + LOCALES[code.to_lower()]
+ return ""
diff --git a/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateDeepL.gd.uid b/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateDeepL.gd.uid
new file mode 100644
index 0000000..a5dc6b7
--- /dev/null
+++ b/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateDeepL.gd.uid
@@ -0,0 +1 @@
+uid://btouwcoi8yik5
diff --git a/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateGoogle.gd b/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateGoogle.gd
new file mode 100644
index 0000000..2e43056
--- /dev/null
+++ b/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateGoogle.gd
@@ -0,0 +1,122 @@
+# List of locales supported by Google translator for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+# @see https://cloud.google.com/translate/docs/languages
+class_name LocalizationAutoTranslateGoogle
+
+const LOCALES = {
+ "af": "Afrikaans",
+ "sq": "Albanian",
+ "am": "Amharic",
+ "ar": "Arabic",
+ "hy": "Armenian",
+ "az": "Azerbaijani",
+ "eu": "Basque",
+ "be": "Belarusian",
+ "bn": "Bengali",
+ "bs": "Bosnian",
+ "bg": "Bulgarian",
+ "ca": "Catalan",
+ "ceb": "Cebuano",
+ "zh": "Chinese (Simplified)",
+ "zh-TW": "Chinese (Traditional)",
+ "co": "Corsican",
+ "hr": "Croatian",
+ "cs": "Czech",
+ "da": "Danish",
+ "nl": "Dutch",
+ "en": "English",
+ "eo": "Esperanto",
+ "et": "Estonian",
+ "fi": "Finnish",
+ "fr": "French",
+ "fy": "Frisian",
+ "gl": "Galician",
+ "ka": "Georgian",
+ "de": "German",
+ "el": "Greek",
+ "gu": "Gujarati",
+ "ht": "Haitian Creole",
+ "ha": "Hausa",
+ "haw": "Hawaiian",
+ "he": "Hebrew",
+ "iw": "Hebrew",
+ "hi": "Hindi",
+ "hmn": "Hmong",
+ "hu": "Hungarian",
+ "is": "Icelandic",
+ "ig": "Igbo",
+ "id": "Indonesian",
+ "ga": "Irish",
+ "it": "Italian",
+ "ja": "Japanese",
+ "jv": "Javanese",
+ "kn": "Kannada",
+ "kk": "Kazakh",
+ "km": "Khmer",
+ "rw": "Kinyarwanda",
+ "ko": "Korean",
+ "ku": "Kurdish",
+ "ky": "Kyrgyz",
+ "lo": "Lao",
+ "la": "Latin",
+ "lv": "Latvian",
+ "lt": "Lithuanian",
+ "lb": "Luxembourgish",
+ "mk": "Macedonian",
+ "mg": "Malagasy",
+ "ms": "Malay",
+ "ml": "Malayalam",
+ "mt": "Maltese",
+ "mi": "Maori",
+ "mr": "Marathi",
+ "mn": "Mongolian",
+ "my": "Myanmar (Burmese)",
+ "ne": "Nepali",
+ "no": "Norwegian",
+ "ny": "Nyanja (Chichewa)",
+ "or": "Odia (Oriya)",
+ "ps": "Pashto",
+ "fa": "Persian",
+ "pl": "Polish",
+ "pt": "Portuguese (Portugal, Brazil)",
+ "pa": "Punjabi",
+ "ro": "Romanian",
+ "ru": "Russian",
+ "sm": "Samoan",
+ "gd": "Scots Gaelic",
+ "sr": "Serbian",
+ "st": "Sesotho",
+ "sn": "Shona",
+ "sd": "Sindhi",
+ "si": "Sinhala (Sinhalese)",
+ "sk": "Slovak",
+ "sl": "Slovenian",
+ "so": "Somali",
+ "es": "Spanish",
+ "su": "Sundanese",
+ "sw": "Swahili",
+ "sv": "Swedish",
+ "tl": "Tagalog (Filipino)",
+ "tg": "Tajik",
+ "ta": "Tamil",
+ "tt": "Tatar",
+ "te": "Telugu",
+ "th": "Thai",
+ "tr": "Turkish",
+ "tk": "Turkmen",
+ "uk": "Ukrainian",
+ "ur": "Urdu",
+ "ug": "Uyghur",
+ "uz": "Uzbek",
+ "vi": "Vietnamese",
+ "cy": "Welsh",
+ "xh": "Xhosa",
+ "yi": "Yiddish",
+ "yo": "Yoruba",
+ "zu": "Zulu"
+}
+
+static func label_by_code(code: String) -> String:
+ if LOCALES.has(code.to_lower()):
+ return code + " " + LOCALES[code.to_lower()]
+ return ""
diff --git a/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateGoogle.gd.uid b/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateGoogle.gd.uid
new file mode 100644
index 0000000..603968a
--- /dev/null
+++ b/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateGoogle.gd.uid
@@ -0,0 +1 @@
+uid://cmruim7wjelew
diff --git a/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateMicrosoft.gd b/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateMicrosoft.gd
new file mode 100644
index 0000000..8ee23ad
--- /dev/null
+++ b/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateMicrosoft.gd
@@ -0,0 +1,123 @@
+# List of locales supported by Microsoft translator for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+# @see https://translator.microsoft.com/
+class_name LocalizationAutoTranslateMicrosoft
+
+const LOCALES = {
+ "af": "Afrikaans",
+ "sq": "Albanian",
+ "am": "Amharic",
+ "ar": "Arabic",
+ "hy": "Armenian",
+ "as": "Assamese",
+ "az": "Azerbaijani (Latin)",
+ "bn": "Bangla",
+ "ba": "Bashkir",
+ "eu": "Basque",
+ "bs": "Bosnian (Latin)",
+ "bg": "Bulgarian",
+ "yue": "Cantonese (Traditional)",
+ "ca": "Catalan",
+ "lzh": "Chinese (Literary)",
+ "zh-Hans": "Chinese Simplified",
+ "zh-Hant": "Chinese Traditional",
+ "hr": "Croatian",
+ "cs": "Czech",
+ "da": "Danish",
+ "prs": "Dari",
+ "dv": "Divehi",
+ "nl": "Dutch",
+ "en": "English",
+ "et": "Estonian",
+ "fo": "Faroese",
+ "fj": "Fijian",
+ "fil": "Filipino",
+ "fi": "Finnish",
+ "fr": "French",
+ "fr-ca": "French (Canada)",
+ "gl": "Galician",
+ "ka": "Georgian",
+ "de": "German",
+ "el": "Greek",
+ "gu": "Gujarati",
+ "ht": "Haitian Creole",
+ "he": "Hebrew",
+ "hi": "Hindi",
+ "mww": "Hmong Daw (Latin)",
+ "hu": "Hungarian",
+ "is": "Icelandic",
+ "id": "Indonesian",
+ "ikt": "Inuinnaqtun",
+ "iu": "Inuktitut",
+ "iu-Latn": "Inuktitut (Latin)",
+ "ga": "Irish",
+ "it": "Italian",
+ "ja": "Japanese",
+ "kn": "Kannada",
+ "kk": "Kazakh",
+ "km": "Khmer",
+ "tlh-Latn": "Klingon",
+ "tlh-Piqd": "Klingon (plqaD)",
+ "ko": "Korean",
+ "ku": "Kurdish (Central)",
+ "kmr": "Kurdish (Northern)",
+ "ky": "Kyrgyz (Cyrillic)",
+ "lo": "Lao",
+ "lv": "Latvian",
+ "lt": "Lithuanian",
+ "mk": "Macedonian",
+ "mg": "Malagasy",
+ "ms": "Malay (Latin)",
+ "ml": "Malayalam",
+ "mt": "Maltese",
+ "mi": "Maori",
+ "mr": "Marathi",
+ "mn-Cyrl": "Mongolian (Cyrillic)",
+ "mn-Mong": "Mongolian (Traditional)",
+ "my": "Myanmar",
+ "ne": "Nepali",
+ "nb": "Norwegian",
+ "or": "Odia",
+ "ps": "Pashto",
+ "fa": "Persian",
+ "pl": "Polish",
+ "pt": "Portuguese (Brazil)",
+ "pt-pt": "Portuguese (Portugal)",
+ "pa": "Punjabi",
+ "otq": "Queretaro Otomi",
+ "ro": "Romanian",
+ "ru": "Russian",
+ "sm": "Samoan (Latin)",
+ "sr-Cyrl": "Serbian (Cyrillic)",
+ "sr-Latn": "Serbian (Latin)",
+ "sk": "Slovak",
+ "sl": "Slovenian",
+ "so": "Somali (Arabic)",
+ "es": "Spanish",
+ "sw": "Swahili (Latin)",
+ "sv": "Swedish",
+ "ty": "Tahitian",
+ "ta": "Tamil",
+ "tt": "Tatar (Latin)",
+ "te": "Telugu",
+ "th": "Thai",
+ "bo": "Tibetan",
+ "ti": "Tigrinya",
+ "to": "Tongan",
+ "tr": "Turkish",
+ "tk": "Turkmen (Latin)",
+ "uk": "Ukrainian",
+ "hsb": "Upper Sorbian",
+ "ur": "Urdu",
+ "ug": "Uyghur (Arabic)",
+ "uz": "Uzbek (Latin)",
+ "vi": "Vietnamese",
+ "cy": "Welsh",
+ "yua": "Yucatec Maya",
+ "zu": "Zulu"
+}
+
+static func label_by_code(code: String) -> String:
+ if LOCALES.has(code.to_lower()):
+ return code + " " + LOCALES[code.to_lower()]
+ return ""
diff --git a/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateMicrosoft.gd.uid b/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateMicrosoft.gd.uid
new file mode 100644
index 0000000..51fd695
--- /dev/null
+++ b/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateMicrosoft.gd.uid
@@ -0,0 +1 @@
+uid://bnj6s02g52voy
diff --git a/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateYandex.gd b/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateYandex.gd
new file mode 100644
index 0000000..bb64175
--- /dev/null
+++ b/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateYandex.gd
@@ -0,0 +1,105 @@
+# List of locales supported by Yandex translator for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+# @see https://www.deepl.com/docs-api/translate-text/translate-text/
+class_name LocalizationAutoTranslateYandex
+
+const LOCALES = {
+ "az": "Azerbaijani",
+ "sq": "Albanian",
+ "am": "Amharic",
+ "en": "English",
+ "ar": "Arabic",
+ "hy": "Armenian",
+ "af": "Afrikaans",
+ "eu": "Basque",
+ "ba": "Bashkir",
+ "be": "Belarusian",
+ "bn": "Bengal",
+ "my": "Burmese",
+ "bg": "Bulgarian",
+ "bs": "Bosnian",
+ "cy": "Welsh",
+ "hu": "Hungarian",
+ "vi": "Vietnamese",
+ "ht": "Haitian (Creole)",
+ "gl": "Galician",
+ "nl": "Dutch",
+ "mrj": "Hill Mari",
+ "el": "Greek",
+ "ka": "Georgian",
+ "gu": "Gujarati",
+ "da": "Danish",
+ "he": "Hebrew",
+ "yi": "Yiddish",
+ "id": "Indonesian",
+ "ga": "Irish",
+ "it": "Italian",
+ "is": "Icelandic",
+ "es": "Spanish",
+ "kk": "Kazakh",
+ "kn": "Kannada",
+ "ca": "Catalan",
+ "ky": "Kirghiz",
+ "zh": "Chinese",
+ "ko": "Korean",
+ "xh": "Xhosa",
+ "km": "Khmer",
+ "lo": "Laotian",
+ "la": "Latin",
+ "lv": "Latvian",
+ "lt": "Lithuanian",
+ "lb": "Luxembourg",
+ "mg": "Malagasy",
+ "ms": "Malay",
+ "ml": "Malayalam",
+ "mt": "Maltese",
+ "mk": "Macedonian",
+ "mi": "Maori",
+ "mr": "Marathi",
+ "mhr": "Mari",
+ "mn": "Mongolian",
+ "de": "German",
+ "ne": "Nepalese",
+ "no": "Norwegian",
+ "pa": "Punjabi",
+ "pap": "Papiamento",
+ "fa": "Persian",
+ "pl": "Polish",
+ "pt": "Portuguese",
+ "ro": "Romanian",
+ "ru": "Russian",
+ "ceb": "Cebuano",
+ "sr": "Serbian",
+ "si": "Sinhalese",
+ "sk": "Slovak",
+ "sl": "Slovenian",
+ "sw": "Swahili",
+ "su": "Sundanese",
+ "tg": "Tajik",
+ "th": "Thai",
+ "tl": "Tagalog",
+ "ta": "Tamil",
+ "tt": "Tartar",
+ "te": "Telugu",
+ "tr": "Turkish",
+ "udm": "Udmurt",
+ "uz": "Uzbek",
+ "uk": "Ukrainian",
+ "ur": "Urdu",
+ "fi": "Finnish",
+ "fr": "French",
+ "hi": "Hindi",
+ "hr": "Croatian",
+ "cs": "Czech",
+ "sv": "Swedish",
+ "gd": "Scottish",
+ "et": "Estonian",
+ "eo": "Esperanto",
+ "jv": "Javanese",
+ "ja": "Japanese"
+}
+
+static func label_by_code(code: String) -> String:
+ if LOCALES.has(code.to_lower()):
+ return code + " " + LOCALES[code.to_lower()]
+ return ""
diff --git a/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateYandex.gd.uid b/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateYandex.gd.uid
new file mode 100644
index 0000000..2e8628d
--- /dev/null
+++ b/addons/localization_editor/scenes/auto_translate/translator/LocalizationAutoTranslateYandex.gd.uid
@@ -0,0 +1 @@
+uid://bh3c1fjwk1euw
diff --git a/addons/localization_editor/scenes/locales/LocalizationLocale.gd b/addons/localization_editor/scenes/locales/LocalizationLocale.gd
new file mode 100644
index 0000000..9bd260e
--- /dev/null
+++ b/addons/localization_editor/scenes/locales/LocalizationLocale.gd
@@ -0,0 +1,92 @@
+# Locale UI for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends MarginContainer
+
+var _locale
+var _data: LocalizationData
+
+@onready var _selection_ui = $HBox/Selection as CheckBox
+@onready var _locale_ui = $HBox/Locale as Label
+@onready var _eye_ui = $HBox/Eye as TextureButton
+
+const IconOpen = preload("res://addons/localization_editor/icons/Open.svg")
+const IconClose = preload("res://addons/localization_editor/icons/Close.svg")
+
+func locale():
+ return _locale
+
+func set_data(locale, data: LocalizationData) -> void:
+ _locale = locale
+ _data = data
+ _draw_view()
+ _init_connections()
+
+func _draw_view() -> void:
+ _selection_ui.text = _locale
+ _locale_ui.text = LocalizationLocalesList.label_by_code(_locale)
+ _selection_ui_state()
+ _eye_ui_state()
+
+func _selection_ui_state() -> void:
+ _selection_ui.set_pressed(_data.find_locale(_locale) != null)
+
+func _eye_ui_state() -> void:
+ _eye_ui.set_pressed(not _data.is_locale_visible(_locale))
+ _update_view_eye(_selection_ui.is_pressed())
+
+func _init_connections() -> void:
+ if not _selection_ui.is_connected("toggled", _on_selection_changed):
+ assert(_selection_ui.toggled.connect(_on_selection_changed) == OK)
+ if not _eye_ui.is_connected("toggled", _on_eye_changed):
+ assert(_eye_ui.toggled.connect(_on_eye_changed) == OK)
+
+func _on_selection_changed(value) -> void:
+ if value == true:
+ _data.add_locale(_locale)
+ _update_view_eye(value)
+ else:
+ _show_confirm_dialog()
+
+func _show_confirm_dialog() -> void:
+ var root = get_tree().get_root()
+ var confirm_dialog = ConfirmationDialog.new()
+ confirm_dialog.title = "Confirm"
+ confirm_dialog.dialog_text = "Are you sure to delete locale with all translations and remaps?"
+ confirm_dialog.confirmed.connect(_on_confirm_dialog_ok.bind(root, confirm_dialog))
+ confirm_dialog.cancelled.connect(_on_confirm_dialog_cancelled.bind(root, confirm_dialog))
+ root.add_child(confirm_dialog)
+ confirm_dialog.popup_centered()
+
+func _on_confirm_dialog_ok(root, confirm_dialog) -> void:
+ _data.del_locale(_locale)
+ _update_view_eye(false)
+ _confirm_dialog_remove(root, confirm_dialog)
+
+func _on_confirm_dialog_cancelled(root, confirm_dialog) -> void:
+ _selection_ui.set_pressed(true)
+ _confirm_dialog_remove(root, confirm_dialog)
+
+func _confirm_dialog_remove(root, confirm_dialog) -> void:
+ root.remove_child(confirm_dialog)
+ confirm_dialog.queue_free()
+
+func _update_view_eye(value: bool) -> void:
+ if value:
+ _eye_ui.show()
+ _update_visible_icon_from_data()
+ else:
+ _eye_ui.hide()
+
+func _update_visible_icon_from_data() -> void:
+ _update_visible_icon(_data.is_locale_visible(_locale))
+
+func _on_eye_changed(value) -> void:
+ if value:
+ _data.setting_locales_visibility_put(_locale)
+ else:
+ _data.setting_locales_visibility_del(_locale)
+ _update_visible_icon(!value)
+
+func _update_visible_icon(value: bool) -> void:
+ _eye_ui.texture_normal = IconOpen if value else IconClose
diff --git a/addons/localization_editor/scenes/locales/LocalizationLocale.gd.uid b/addons/localization_editor/scenes/locales/LocalizationLocale.gd.uid
new file mode 100644
index 0000000..e385c7c
--- /dev/null
+++ b/addons/localization_editor/scenes/locales/LocalizationLocale.gd.uid
@@ -0,0 +1 @@
+uid://crfl2nduqv6fy
diff --git a/addons/localization_editor/scenes/locales/LocalizationLocale.tscn b/addons/localization_editor/scenes/locales/LocalizationLocale.tscn
new file mode 100644
index 0000000..a4dc9fe
--- /dev/null
+++ b/addons/localization_editor/scenes/locales/LocalizationLocale.tscn
@@ -0,0 +1,47 @@
+[gd_scene load_steps=2 format=3 uid="uid://c8jdbet30gbuk"]
+
+[ext_resource type="Script" path="res://addons/localization_editor/scenes/locales/LocalizationLocale.gd" id="2"]
+
+[node name="Locale" type="MarginContainer"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+size_flags_horizontal = 3
+theme_override_constants/margin_right = 3
+theme_override_constants/margin_top = 3
+theme_override_constants/margin_left = 3
+script = ExtResource( "2" )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="HBox" type="HBoxContainer" parent="."]
+offset_left = 3.0
+offset_top = 3.0
+offset_right = 1021.0
+offset_bottom = 600.0
+size_flags_horizontal = 3
+
+[node name="Selection" type="CheckBox" parent="HBox"]
+offset_right = 80.0
+offset_bottom = 31.0
+rect_min_size = Vector2(80, 0)
+hint_tooltip = "Select language for translation"
+size_flags_vertical = 0
+text = "en"
+
+[node name="Locale" type="Label" parent="HBox"]
+offset_left = 84.0
+offset_right = 994.0
+offset_bottom = 26.0
+rect_min_size = Vector2(0, 24)
+size_flags_horizontal = 3
+size_flags_vertical = 0
+text = "English"
+
+[node name="Eye" type="TextureButton" parent="HBox"]
+offset_left = 998.0
+offset_right = 1018.0
+offset_bottom = 20.0
+rect_min_size = Vector2(20, 20)
+size_flags_vertical = 0
+toggle_mode = true
diff --git a/addons/localization_editor/scenes/locales/LocalizationLocales.gd b/addons/localization_editor/scenes/locales/LocalizationLocales.gd
new file mode 100644
index 0000000..bf20ff8
--- /dev/null
+++ b/addons/localization_editor/scenes/locales/LocalizationLocales.gd
@@ -0,0 +1,47 @@
+# Locales UI for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends MarginContainer
+
+var _data: LocalizationData
+
+@onready var _locales_ui = $Panel/Scroll/VBox as VBoxContainer
+
+const LocalizationLocale = preload("res://addons/localization_editor/scenes/locales/LocalizationLocale.tscn")
+
+func set_data(data: LocalizationData) -> void:
+ _data = data
+ _init_connections()
+ _update_view()
+
+func _init_connections() -> void:
+ if not _data.is_connected("data_changed", _update_view):
+ assert(_data.data_changed.connect(_update_view) == OK)
+
+func _update_view() -> void:
+ _clear_view()
+ _draw_view()
+
+func _clear_view() -> void:
+ for child in _locales_ui.get_children():
+ _locales_ui.remove_child(child)
+ child.queue_free()
+
+func _draw_view() -> void:
+ for locale in LocalizationLocalesList.LOCALES:
+ if _is_locale_to_show(locale):
+ var locale_ui = LocalizationLocale.instantiate()
+ _locales_ui.add_child(locale_ui)
+ locale_ui.set_data(locale, _data)
+
+func _is_locale_to_show(locale) -> bool:
+ if not _is_locale_to_show_by_selection(locale):
+ return false
+ return _is_locale_to_show_by_filter(locale)
+
+func _is_locale_to_show_by_selection(locale) -> bool:
+ return !_data.locales_selected() or _data.find_locale(locale) != null
+
+func _is_locale_to_show_by_filter(locale) -> bool:
+ var filter = _data.locales_filter()
+ return filter == "" or filter in locale or filter in LocalizationLocalesList.label_by_code(locale)
diff --git a/addons/localization_editor/scenes/locales/LocalizationLocales.gd.uid b/addons/localization_editor/scenes/locales/LocalizationLocales.gd.uid
new file mode 100644
index 0000000..0407b11
--- /dev/null
+++ b/addons/localization_editor/scenes/locales/LocalizationLocales.gd.uid
@@ -0,0 +1 @@
+uid://b6clr41xvv4yr
diff --git a/addons/localization_editor/scenes/locales/LocalizationLocales.tscn b/addons/localization_editor/scenes/locales/LocalizationLocales.tscn
new file mode 100644
index 0000000..9bfca06
--- /dev/null
+++ b/addons/localization_editor/scenes/locales/LocalizationLocales.tscn
@@ -0,0 +1,37 @@
+[gd_scene load_steps=2 format=3 uid="uid://6ma47o0u2v2l"]
+
+[ext_resource type="Script" path="res://addons/localization_editor/scenes/locales/LocalizationLocales.gd" id="1"]
+
+[node name="LocalizationLocales" type="MarginContainer"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+script = ExtResource( "1" )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="Panel" type="Panel" parent="."]
+offset_right = 1024.0
+offset_bottom = 600.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+
+[node name="Scroll" type="ScrollContainer" parent="Panel"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="VBox" type="VBoxContainer" parent="Panel/Scroll"]
+offset_right = 1024.0
+offset_bottom = 600.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+__meta__ = {
+"_edit_use_anchors_": false
+}
diff --git a/addons/localization_editor/scenes/locales/LocalizationLocalesEditorView.gd b/addons/localization_editor/scenes/locales/LocalizationLocalesEditorView.gd
new file mode 100644
index 0000000..743f4ff
--- /dev/null
+++ b/addons/localization_editor/scenes/locales/LocalizationLocalesEditorView.gd
@@ -0,0 +1,11 @@
+# Locales view for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends VBoxContainer
+
+@onready var _filter_ui = $Filter
+@onready var _locales_ui = $Locales
+
+func set_data(data: LocalizationData) -> void:
+ _filter_ui.set_data(data)
+ _locales_ui.set_data(data)
diff --git a/addons/localization_editor/scenes/locales/LocalizationLocalesEditorView.gd.uid b/addons/localization_editor/scenes/locales/LocalizationLocalesEditorView.gd.uid
new file mode 100644
index 0000000..0dcc14e
--- /dev/null
+++ b/addons/localization_editor/scenes/locales/LocalizationLocalesEditorView.gd.uid
@@ -0,0 +1 @@
+uid://df2ql0j1qx2ag
diff --git a/addons/localization_editor/scenes/locales/LocalizationLocalesEditorView.tscn b/addons/localization_editor/scenes/locales/LocalizationLocalesEditorView.tscn
new file mode 100644
index 0000000..2504fa1
--- /dev/null
+++ b/addons/localization_editor/scenes/locales/LocalizationLocalesEditorView.tscn
@@ -0,0 +1,26 @@
+[gd_scene load_steps=4 format=3 uid="uid://bikmkc3ntiugr"]
+
+[ext_resource type="Script" path="res://addons/localization_editor/scenes/locales/LocalizationLocalesEditorView.gd" id="1"]
+[ext_resource type="PackedScene" path="res://addons/localization_editor/scenes/locales/LocalizationLocalesFilter.tscn" id="2"]
+[ext_resource type="PackedScene" uid="uid://6ma47o0u2v2l" path="res://addons/localization_editor/scenes/locales/LocalizationLocales.tscn" id="3"]
+
+[node name="LocalizationLocalesEditorView" type="VBoxContainer"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+script = ExtResource( "1" )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="Filter" parent="." instance=ExtResource( "2" )]
+offset_right = 1024.0
+offset_bottom = 33.0
+
+[node name="Locales" parent="." instance=ExtResource( "3" )]
+anchor_right = 0.0
+anchor_bottom = 0.0
+offset_top = 37.0
+offset_right = 1024.0
+offset_bottom = 600.0
diff --git a/addons/localization_editor/scenes/locales/LocalizationLocalesFilter.gd b/addons/localization_editor/scenes/locales/LocalizationLocalesFilter.gd
new file mode 100644
index 0000000..62272a7
--- /dev/null
+++ b/addons/localization_editor/scenes/locales/LocalizationLocalesFilter.gd
@@ -0,0 +1,25 @@
+# Locales filter for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends MarginContainer
+
+var _data: LocalizationData
+
+@onready var _filter_ui = $HBox/Filter as LineEdit
+@onready var _selected_ui = $HBox/Selected as CheckBox
+
+func set_data(data: LocalizationData) -> void:
+ _data = data
+ _init_connections()
+
+func _init_connections() -> void:
+ if not _filter_ui.is_connected("text_changed", _on_filter_changed):
+ assert(_filter_ui.text_changed.connect(_on_filter_changed) == OK)
+ if not _selected_ui.is_connected("toggled", _on_selected_changed):
+ assert(_selected_ui.toggled.connect(_on_selected_changed) == OK)
+
+func _on_filter_changed(text: String) -> void:
+ _data.set_locales_filter(text)
+
+func _on_selected_changed(value) -> void:
+ _data.set_locales_selected(value)
diff --git a/addons/localization_editor/scenes/locales/LocalizationLocalesFilter.gd.uid b/addons/localization_editor/scenes/locales/LocalizationLocalesFilter.gd.uid
new file mode 100644
index 0000000..4311cc3
--- /dev/null
+++ b/addons/localization_editor/scenes/locales/LocalizationLocalesFilter.gd.uid
@@ -0,0 +1 @@
+uid://d2wo8kjq5u2t
diff --git a/addons/localization_editor/scenes/locales/LocalizationLocalesFilter.tscn b/addons/localization_editor/scenes/locales/LocalizationLocalesFilter.tscn
new file mode 100644
index 0000000..25e9e3c
--- /dev/null
+++ b/addons/localization_editor/scenes/locales/LocalizationLocalesFilter.tscn
@@ -0,0 +1,30 @@
+[gd_scene load_steps=2 format=2]
+
+[ext_resource path="res://addons/localization_editor/scenes/locales/LocalizationLocalesFilter.gd" type="Script" id=1]
+
+[node name="LocalizationLocalesFilter" type="MarginContainer"]
+margin_right = 1024.0
+margin_bottom = 38.0
+size_flags_horizontal = 3
+script = ExtResource( 1 )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="HBox" type="HBoxContainer" parent="."]
+margin_right = 1024.0
+margin_bottom = 38.0
+
+[node name="Filter" type="LineEdit" parent="HBox"]
+margin_right = 937.0
+margin_bottom = 38.0
+hint_tooltip = "Enter text to filter locales"
+size_flags_horizontal = 3
+placeholder_text = "Filter"
+
+[node name="Selected" type="CheckBox" parent="HBox"]
+margin_left = 941.0
+margin_right = 1024.0
+margin_bottom = 38.0
+hint_tooltip = "Check to view only selected locales"
+text = "Selected"
diff --git a/addons/localization_editor/scenes/placeholders/LocalizationPlaceholder.gd b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholder.gd
new file mode 100644
index 0000000..01068ee
--- /dev/null
+++ b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholder.gd
@@ -0,0 +1,31 @@
+# Placeholder UI for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends MarginContainer
+
+var _key
+var _locale
+var _data: LocalizationData
+
+@onready var _placeholder_ui = $HBox/Placeholder
+
+const Locales = preload("res://addons/localization_editor/model/LocalizationLocalesList.gd")
+
+func set_data(key, locale, data: LocalizationData) -> void:
+ _key = key
+ _locale = locale
+ _data = data
+ _draw_view()
+
+func _ready() -> void:
+ _init_connections()
+
+func _init_connections() -> void:
+ if not _placeholder_ui.is_connected("text_changed", _on_text_changed):
+ assert(_placeholder_ui.text_changed.connect(_on_text_changed) == OK)
+
+func _draw_view() -> void:
+ _placeholder_ui.text = _data.data_placeholders[_key][_locale]
+
+func _on_text_changed(new_text) -> void:
+ _data.data_placeholders[_key][_locale] = new_text
diff --git a/addons/localization_editor/scenes/placeholders/LocalizationPlaceholder.gd.uid b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholder.gd.uid
new file mode 100644
index 0000000..9042e40
--- /dev/null
+++ b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholder.gd.uid
@@ -0,0 +1 @@
+uid://cnxexngce4bck
diff --git a/addons/localization_editor/scenes/placeholders/LocalizationPlaceholder.tscn b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholder.tscn
new file mode 100644
index 0000000..acdf6fc
--- /dev/null
+++ b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholder.tscn
@@ -0,0 +1,29 @@
+[gd_scene load_steps=2 format=2]
+
+[ext_resource path="res://addons/localization_editor/scenes/placeholders/LocalizationPlaceholder.gd" type="Script" id=1]
+
+[node name="LocalizationPlaceholder" type="MarginContainer"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+rect_min_size = Vector2( 0, 27 )
+custom_constants/margin_right = 3
+custom_constants/margin_left = 3
+custom_constants/margin_bottom = 3
+script = ExtResource( 1 )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="HBox" type="HBoxContainer" parent="."]
+margin_left = 3.0
+margin_right = 1021.0
+margin_bottom = 24.0
+rect_min_size = Vector2( 0, 24 )
+size_flags_horizontal = 3
+size_flags_vertical = 0
+
+[node name="Placeholder" type="LineEdit" parent="HBox"]
+margin_right = 1018.0
+margin_bottom = 24.0
+rect_min_size = Vector2( 0, 24 )
+size_flags_horizontal = 3
diff --git a/addons/localization_editor/scenes/placeholders/LocalizationPlaceholders.gd b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholders.gd
new file mode 100644
index 0000000..0813cdc
--- /dev/null
+++ b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholders.gd
@@ -0,0 +1,78 @@
+# Placeholders UI for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends Panel
+
+var _data: LocalizationData
+
+@onready var _placeholders_ui = $Scroll/Placeholders
+
+const LocalizationTranslationsList = preload("res://addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersList.tscn")
+
+func set_data(data: LocalizationData) -> void:
+ _data = data
+ _init_connections()
+ _update_view()
+
+func _init_connections() -> void:
+ if not _data.is_connected("data_changed", _update_view):
+ assert(_data.data_changed.connect(_update_view) == OK)
+
+func _update_view() -> void:
+ _clear_ui_placeholders()
+ _add_ui_placeholders()
+ _view_ui_placeholders()
+ _update_ui_placeholders()
+
+func _clear_ui_placeholders() -> void:
+ var placeholders_ui = _placeholders_ui.get_children()
+ for placeholder_ui in placeholders_ui:
+ if placeholder_ui.has_method("get_locale"):
+ var locale = placeholder_ui.get_locale()
+ if _data.find_locale(locale) == null:
+ placeholders_ui.erase(placeholder_ui)
+ placeholder_ui.queue_free()
+
+func _add_ui_placeholders() -> void:
+ var locales = _data.locales()
+ for locale in locales:
+ if not _ui_placeholder_exists(locale):
+ _add_ui_placeholder(locale)
+
+func _ui_placeholder_exists(locale) -> bool:
+ for placeholder_ui in _placeholders_ui.get_children():
+ if placeholder_ui.has_method("get_locale"):
+ if placeholder_ui.get_locale() == locale:
+ return true
+ return false
+
+func _add_ui_placeholder(locale: String) -> void:
+ var ui_placeholder = LocalizationTranslationsList.instantiate()
+ _placeholders_ui.add_child(ui_placeholder)
+ ui_placeholder.set_data(locale, _data)
+
+func _view_ui_placeholders() -> void:
+ for placeholder_ui in _placeholders_ui.get_children():
+ if placeholder_ui.has_method("get_locale"):
+ var locale = placeholder_ui.get_locale()
+ var serarator_ui = _separator_after_placeholder_ui(placeholder_ui)
+ if _data.is_locale_visible(locale):
+ placeholder_ui.show()
+ if serarator_ui != null:
+ serarator_ui.show()
+ else:
+ placeholder_ui.hide()
+ if serarator_ui != null:
+ serarator_ui.hide()
+
+func _separator_after_placeholder_ui(placeholder_ui: Node) -> Node:
+ var index = placeholder_ui.get_index()
+ var count = _placeholders_ui.get_child_count()
+ if index + 1 < count:
+ return _placeholders_ui.get_child(index + 1)
+ return null
+
+func _update_ui_placeholders() -> void:
+ for placeholder_ui in _placeholders_ui.get_children():
+ if placeholder_ui.has_method("update_view"):
+ placeholder_ui.update_view()
diff --git a/addons/localization_editor/scenes/placeholders/LocalizationPlaceholders.gd.uid b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholders.gd.uid
new file mode 100644
index 0000000..0e02e4d
--- /dev/null
+++ b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholders.gd.uid
@@ -0,0 +1 @@
+uid://b50tncrjb6x5j
diff --git a/addons/localization_editor/scenes/placeholders/LocalizationPlaceholders.tscn b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholders.tscn
new file mode 100644
index 0000000..e2597a5
--- /dev/null
+++ b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholders.tscn
@@ -0,0 +1,26 @@
+[gd_scene load_steps=2 format=2]
+
+[ext_resource path="res://addons/localization_editor/scenes/placeholders/LocalizationPlaceholders.gd" type="Script" id=1]
+
+[node name="LocalizationPlaceholders" type="Panel"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+script = ExtResource( 1 )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="Scroll" type="ScrollContainer" parent="."]
+anchor_right = 1.0
+anchor_bottom = 1.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="Placeholders" type="HBoxContainer" parent="Scroll"]
+margin_right = 1024.0
+margin_bottom = 600.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
diff --git a/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersEditorView.gd b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersEditorView.gd
new file mode 100644
index 0000000..d122861
--- /dev/null
+++ b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersEditorView.gd
@@ -0,0 +1,68 @@
+# Placeholders view for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends VBoxContainer
+
+var _data: LocalizationData
+var _split_viewport_size = 0
+var _scroll_position = 0
+
+@onready var _split_ui = $Split
+@onready var _keys_ui = $Split/Keys
+@onready var _placeholders_ui = $Split/Placeholders
+@onready var _placeholders_list_ui = $Split/Placeholders/Scroll/Placeholders
+
+func set_data(data: LocalizationData) -> void:
+ _data = data
+ _keys_ui.set_data(data)
+ _placeholders_ui.set_data(data)
+ _init_connections()
+
+func _init_connections() -> void:
+ if not _split_ui.is_connected("dragged", _on_split_dragged):
+ assert(_split_ui.dragged.connect(_on_split_dragged) == OK)
+
+func _process(delta):
+ if _split_viewport_size != size.x:
+ _split_viewport_size = size.x
+ _init_split_offset()
+ _update_scrolls()
+
+func _init_split_offset() -> void:
+ var offset = 350
+ if _data:
+ offset = _data.setting_placeholders_split_offset()
+ _split_ui.set_split_offset(-size.x / 2 + offset)
+
+func _on_split_dragged(offset: int) -> void:
+ if _data != null:
+ var value = -(-size.x / 2 - offset)
+ _data.setting_placeholders_split_offset_put(value)
+
+# Workaround for https://github.com/godotengine/godot/issues/22936
+func _update_scrolls() -> void:
+ var sc = _new_scrolls_position()
+ if _scroll_position != sc:
+ _scroll_position = sc
+ _keys_ui.set_v_scroll(_scroll_position)
+ for child in _placeholders_list_ui.get_children():
+ if child.has_method("set_v_scroll"):
+ child.set_v_scroll(_scroll_position)
+
+func _new_scrolls_position() -> int:
+ if _keys_ui == null:
+ return 0
+ var v_1 = [_keys_ui.get_v_scroll()]
+ var v_2 = []
+ for child in _placeholders_list_ui.get_children():
+ if child.has_method("get_v_scroll"):
+ var v_child = child.get_v_scroll()
+ if v_1[0] == v_child:
+ v_1.append(v_child)
+ else:
+ v_2.append(v_child)
+ if v_2.size() == 0:
+ return v_1[0]
+ if v_1.size() == 1:
+ return v_1[0]
+ return v_2[0]
diff --git a/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersEditorView.gd.uid b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersEditorView.gd.uid
new file mode 100644
index 0000000..6725223
--- /dev/null
+++ b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersEditorView.gd.uid
@@ -0,0 +1 @@
+uid://diwy25h5ek0ur
diff --git a/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersEditorView.tscn b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersEditorView.tscn
new file mode 100644
index 0000000..f5f7c18
--- /dev/null
+++ b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersEditorView.tscn
@@ -0,0 +1,36 @@
+[gd_scene load_steps=4 format=2]
+
+[ext_resource path="res://addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersEditorView.gd" type="Script" id=1]
+[ext_resource path="res://addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersKeys.tscn" type="PackedScene" id=2]
+[ext_resource path="res://addons/localization_editor/scenes/placeholders/LocalizationPlaceholders.tscn" type="PackedScene" id=3]
+
+[node name="LocalizationPlaceholdersEditorView" type="VBoxContainer"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+script = ExtResource( 1 )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="Split" type="HSplitContainer" parent="."]
+margin_right = 1024.0
+margin_bottom = 600.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+split_offset = -162
+
+[node name="Keys" parent="Split" instance=ExtResource( 2 )]
+anchor_right = 0.0
+anchor_bottom = 0.0
+margin_right = 344.0
+margin_bottom = 600.0
+rect_clip_content = true
+
+[node name="Placeholders" parent="Split" instance=ExtResource( 3 )]
+anchor_right = 0.0
+anchor_bottom = 0.0
+margin_left = 356.0
+margin_right = 1024.0
+margin_bottom = 600.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
diff --git a/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersHead.gd b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersHead.gd
new file mode 100644
index 0000000..9529ae6
--- /dev/null
+++ b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersHead.gd
@@ -0,0 +1,33 @@
+# Placeholders head UI for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends VBoxContainer
+
+var _type: String
+var _data: LocalizationData
+
+var _filter = ""
+
+@onready var _title_ui = $TitleMargin/HBox/Title
+@onready var _filter_ui = $FilterMargin/HBox/Filter
+
+func set_data(type: String, data: LocalizationData):
+ _type = type
+ _data = data
+ _filter = _data.data_filter_placeholders_by_type(_type)
+ _init_connections()
+ _draw_view()
+
+func _init_connections() -> void:
+ if not _filter_ui.is_connected("text_changed", _filter_changed_action):
+ assert(_filter_ui.text_changed.connect(_filter_changed_action) == OK)
+
+func _draw_view() -> void:
+ _filter_ui.text = _filter
+
+func _filter_changed_action(filter) -> void:
+ _filter = filter
+ _data.data_filter_placeholders_put(_type, _filter)
+
+func set_title(text: String) -> void:
+ _title_ui.text = text
diff --git a/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersHead.gd.uid b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersHead.gd.uid
new file mode 100644
index 0000000..239d04e
--- /dev/null
+++ b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersHead.gd.uid
@@ -0,0 +1 @@
+uid://c7clt1325spkx
diff --git a/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersHead.tscn b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersHead.tscn
new file mode 100644
index 0000000..0d2ad66
--- /dev/null
+++ b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersHead.tscn
@@ -0,0 +1,61 @@
+[gd_scene load_steps=2 format=2]
+
+[ext_resource path="res://addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersHead.gd" type="Script" id=1]
+
+[node name="LocalizationHead" type="VBoxContainer"]
+margin_right = 344.0
+margin_bottom = 57.0
+size_flags_horizontal = 3
+script = ExtResource( 1 )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="TitleMargin" type="MarginContainer" parent="."]
+margin_right = 344.0
+margin_bottom = 26.0
+rect_min_size = Vector2( 0, 26 )
+size_flags_horizontal = 3
+size_flags_vertical = 0
+custom_constants/margin_right = 3
+custom_constants/margin_top = 3
+custom_constants/margin_left = 3
+custom_constants/margin_bottom = 0
+
+[node name="HBox" type="HBoxContainer" parent="TitleMargin"]
+margin_left = 3.0
+margin_top = 3.0
+margin_right = 341.0
+margin_bottom = 26.0
+
+[node name="Title" type="Label" parent="TitleMargin/HBox"]
+margin_top = 4.0
+margin_right = 338.0
+margin_bottom = 18.0
+size_flags_horizontal = 3
+text = "KEYS"
+align = 1
+
+[node name="FilterMargin" type="MarginContainer" parent="."]
+margin_top = 30.0
+margin_right = 344.0
+margin_bottom = 57.0
+rect_min_size = Vector2( 0, 26 )
+size_flags_horizontal = 3
+size_flags_vertical = 0
+custom_constants/margin_right = 3
+custom_constants/margin_top = 3
+custom_constants/margin_left = 3
+custom_constants/margin_bottom = 0
+
+[node name="HBox" type="HBoxContainer" parent="FilterMargin"]
+margin_left = 3.0
+margin_top = 3.0
+margin_right = 341.0
+margin_bottom = 27.0
+
+[node name="Filter" type="LineEdit" parent="FilterMargin/HBox"]
+margin_right = 338.0
+margin_bottom = 24.0
+size_flags_horizontal = 3
+placeholder_text = "Filter"
diff --git a/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersKey.gd b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersKey.gd
new file mode 100644
index 0000000..09c7c5a
--- /dev/null
+++ b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersKey.gd
@@ -0,0 +1,27 @@
+# Translations key UI for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends MarginContainer
+
+var _key
+var _data: LocalizationData
+
+@onready var _del_ui = $HBoxContainer/Del as Button
+@onready var _key_ui = $HBoxContainer/Key as LineEdit
+
+func _ready() -> void:
+ _del_ui.connect("pressed", _on_del_pressed)
+
+func _on_del_pressed() -> void:
+ _data.del_placeholder(_key)
+
+func key():
+ return _key
+
+func set_data(key, data: LocalizationData):
+ _key = key
+ _data = data
+ _draw_view()
+
+func _draw_view() -> void:
+ _key_ui.text = _key
diff --git a/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersKey.gd.uid b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersKey.gd.uid
new file mode 100644
index 0000000..144ad40
--- /dev/null
+++ b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersKey.gd.uid
@@ -0,0 +1 @@
+uid://d6vayujgyix1
diff --git a/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersKey.tscn b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersKey.tscn
new file mode 100644
index 0000000..28dbaf2
--- /dev/null
+++ b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersKey.tscn
@@ -0,0 +1,37 @@
+[gd_scene load_steps=3 format=3 uid="uid://c0m0p02wuleun"]
+
+[ext_resource type="Script" path="res://addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersKey.gd" id="1"]
+[ext_resource type="Texture2D" uid="uid://caiapkr8oaqe6" path="res://addons/localization_editor/icons/Del.svg" id="2_gnca8"]
+
+[node name="MarginContainer" type="MarginContainer"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+size_flags_horizontal = 3
+size_flags_vertical = 0
+theme_override_constants/margin_right = 3
+theme_override_constants/margin_left = 3
+theme_override_constants/margin_bottom = 3
+script = ExtResource( "1" )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="HBoxContainer" type="HBoxContainer" parent="."]
+offset_left = 3.0
+offset_right = 1021.0
+offset_bottom = 597.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+
+[node name="Del" type="Button" parent="HBoxContainer"]
+offset_right = 28.0
+offset_bottom = 597.0
+rect_min_size = Vector2(20, 20)
+icon = ExtResource( "2_gnca8" )
+
+[node name="Key" type="LineEdit" parent="HBoxContainer"]
+offset_left = 32.0
+offset_right = 1018.0
+offset_bottom = 597.0
+size_flags_horizontal = 3
+editable = false
diff --git a/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersKeys.gd b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersKeys.gd
new file mode 100644
index 0000000..42edfa5
--- /dev/null
+++ b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersKeys.gd
@@ -0,0 +1,46 @@
+# Placeholders keys UI for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends Panel
+
+var _data: LocalizationData
+
+@onready var _head_ui = $VBox/Head
+@onready var _scroll_ui = $VBox/Scroll
+@onready var _keys_ui = $VBox/Scroll/Keys
+
+const LocalizationKey = preload("res://addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersKey.tscn")
+
+func get_v_scroll() -> int:
+ return _scroll_ui.get_v_scroll()
+
+func set_v_scroll(value: int) -> void:
+ _scroll_ui.set_v_scroll(value)
+
+func set_data(data: LocalizationData) -> void:
+ _data = data
+ _head_ui.set_data("placeholderkeys", _data)
+ _init_connections()
+ _update_view()
+
+func _init_connections() -> void:
+ if not _data.is_connected("data_changed", _update_view):
+ assert(_data.data_changed.connect(_update_view) == OK)
+
+func _update_view() -> void:
+ _clear_view()
+ _draw_view()
+
+func _clear_view() -> void:
+ for key_ui in _keys_ui.get_children():
+ _keys_ui.remove_child(key_ui)
+ key_ui.queue_free()
+
+func _draw_view() -> void:
+ for key in _data.placeholders_filtered().keys():
+ _draw_key(key)
+
+func _draw_key(key) -> void:
+ var key_ui = LocalizationKey.instantiate()
+ _keys_ui.add_child(key_ui)
+ key_ui.set_data(key, _data)
diff --git a/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersKeys.gd.uid b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersKeys.gd.uid
new file mode 100644
index 0000000..da62f43
--- /dev/null
+++ b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersKeys.gd.uid
@@ -0,0 +1 @@
+uid://dogexarhaq31l
diff --git a/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersKeys.tscn b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersKeys.tscn
new file mode 100644
index 0000000..4f24407
--- /dev/null
+++ b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersKeys.tscn
@@ -0,0 +1,37 @@
+[gd_scene load_steps=3 format=2]
+
+[ext_resource path="res://addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersKeys.gd" type="Script" id=1]
+[ext_resource path="res://addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersHead.tscn" type="PackedScene" id=2]
+
+[node name="LocalizationPlaceholdersKeys" type="Panel"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+script = ExtResource( 1 )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="VBox" type="VBoxContainer" parent="."]
+anchor_right = 1.0
+anchor_bottom = 1.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="Head" parent="VBox" instance=ExtResource( 2 )]
+margin_right = 1024.0
+
+[node name="Scroll" type="ScrollContainer" parent="VBox"]
+margin_top = 61.0
+margin_right = 1024.0
+margin_bottom = 600.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+
+[node name="Keys" type="VBoxContainer" parent="VBox/Scroll"]
+margin_right = 1024.0
+size_flags_horizontal = 3
diff --git a/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersList.gd b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersList.gd
new file mode 100644
index 0000000..e891a06
--- /dev/null
+++ b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersList.gd
@@ -0,0 +1,58 @@
+# Placeholders list UI for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends HBoxContainer
+
+var _locale: String
+var _data: LocalizationData
+
+@onready var _separator_ui = $Separator
+@onready var _head_ui = $VBox/Head
+@onready var _scroll_ui = $VBox/Scroll
+@onready var _placeholders_ui = $VBox/Scroll/PlaceholdersList
+
+const Locales = preload("res://addons/localization_editor/model/LocalizationLocalesList.gd")
+const LocalizationPlaceholder = preload("res://addons/localization_editor/scenes/placeholders/LocalizationPlaceholder.tscn")
+
+func set_data(locale: String, data: LocalizationData) -> void:
+ _locale = locale
+ _data = data
+ _head_ui.set_data(_locale, _data)
+ update_view()
+
+func get_locale() -> String:
+ return _locale
+
+func get_v_scroll() -> int:
+ if _scroll_ui == null:
+ return 0
+ return _scroll_ui.get_v_scroll()
+
+func set_v_scroll(value: int) -> void:
+ _scroll_ui.set_v_scroll(value)
+
+func update_view() -> void:
+ if get_index() == 0:
+ _separator_ui.hide()
+ _head_ui.set_title(Locales.label_by_code(_locale))
+ _add_placeholders()
+
+func _add_placeholders() -> void:
+ _clear_placeholders()
+ var placeholders_filtered = _data.placeholders_filtered()
+ for key in placeholders_filtered.keys():
+ var placeholder = placeholders_filtered[key]
+ if placeholder.has(_locale):
+ _add_placeholder(key)
+
+func _clear_placeholders() -> void:
+ for placeholder_ui in _placeholders_ui.get_children():
+ _placeholders_ui.remove_child(placeholder_ui)
+ placeholder_ui.queue_free()
+
+func _add_placeholder(key) -> void:
+ var placeholder_ui = LocalizationPlaceholder.instantiate()
+ _placeholders_ui.add_child(placeholder_ui)
+ placeholder_ui.set_data(key, _locale, _data)
+
+
diff --git a/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersList.gd.uid b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersList.gd.uid
new file mode 100644
index 0000000..a0ed40c
--- /dev/null
+++ b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersList.gd.uid
@@ -0,0 +1 @@
+uid://bwbmioxxhe7w1
diff --git a/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersList.tscn b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersList.tscn
new file mode 100644
index 0000000..f0daa24
--- /dev/null
+++ b/addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersList.tscn
@@ -0,0 +1,41 @@
+[gd_scene load_steps=3 format=2]
+
+[ext_resource path="res://addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersHead.tscn" type="PackedScene" id=1]
+[ext_resource path="res://addons/localization_editor/scenes/placeholders/LocalizationPlaceholdersList.gd" type="Script" id=2]
+
+[node name="LocalizationPlaceholdersList" type="HBoxContainer"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+rect_pivot_offset = Vector2( -585.391, 206.877 )
+size_flags_horizontal = 3
+script = ExtResource( 2 )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="Separator" type="VSeparator" parent="."]
+margin_right = 4.0
+margin_bottom = 600.0
+
+[node name="VBox" type="VBoxContainer" parent="."]
+margin_left = 8.0
+margin_right = 1024.0
+margin_bottom = 600.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+
+[node name="Head" parent="VBox" instance=ExtResource( 1 )]
+margin_right = 1016.0
+
+[node name="Scroll" type="ScrollContainer" parent="VBox"]
+margin_top = 61.0
+margin_right = 1016.0
+margin_bottom = 600.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+
+[node name="PlaceholdersList" type="VBoxContainer" parent="VBox/Scroll"]
+margin_right = 1016.0
+margin_bottom = 539.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
diff --git a/addons/localization_editor/scenes/pseudolocalization/LocalizationPseudolocalizationEditorView.gd b/addons/localization_editor/scenes/pseudolocalization/LocalizationPseudolocalizationEditorView.gd
new file mode 100644
index 0000000..02fc341
--- /dev/null
+++ b/addons/localization_editor/scenes/pseudolocalization/LocalizationPseudolocalizationEditorView.gd
@@ -0,0 +1,4 @@
+# LocalizationEditor Pseudolocalization: MIT License
+# @author Vladimir Petrenko
+@tool
+extends VBoxContainer
diff --git a/addons/localization_editor/scenes/pseudolocalization/LocalizationPseudolocalizationEditorView.gd.uid b/addons/localization_editor/scenes/pseudolocalization/LocalizationPseudolocalizationEditorView.gd.uid
new file mode 100644
index 0000000..00f9d66
--- /dev/null
+++ b/addons/localization_editor/scenes/pseudolocalization/LocalizationPseudolocalizationEditorView.gd.uid
@@ -0,0 +1 @@
+uid://2lspoobji4u0
diff --git a/addons/localization_editor/scenes/pseudolocalization/LocalizationPseudolocalizationEditorView.tscn b/addons/localization_editor/scenes/pseudolocalization/LocalizationPseudolocalizationEditorView.tscn
new file mode 100644
index 0000000..f0f9a7b
--- /dev/null
+++ b/addons/localization_editor/scenes/pseudolocalization/LocalizationPseudolocalizationEditorView.tscn
@@ -0,0 +1,20 @@
+[gd_scene load_steps=3 format=3 uid="uid://bt0r11jd8rtq6"]
+
+[ext_resource type="Script" path="res://addons/localization_editor/scenes/pseudolocalization/LocalizationPseudolocalizationEditorView.gd" id="1_lb46l"]
+[ext_resource type="PackedScene" uid="uid://b3jy757hoeaso" path="res://addons/localization_editor/scenes/pseudolocalization/control/LocalizationPseudolocalizationControl.tscn" id="2_s2t82"]
+
+[node name="PseudolocalizationEditorView" type="VBoxContainer"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+script = ExtResource( "1_lb46l" )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="LocalizationPseudolocalizationControl" parent="." instance=ExtResource( "2_s2t82" )]
+anchor_right = 0.0
+anchor_bottom = 0.0
+offset_right = 1024.0
+offset_bottom = 354.0
diff --git a/addons/localization_editor/scenes/pseudolocalization/control/LocalizationPseudolocalizationControl.gd b/addons/localization_editor/scenes/pseudolocalization/control/LocalizationPseudolocalizationControl.gd
new file mode 100644
index 0000000..662082c
--- /dev/null
+++ b/addons/localization_editor/scenes/pseudolocalization/control/LocalizationPseudolocalizationControl.gd
@@ -0,0 +1,17 @@
+# LocalizationEditor PseudolocalizationControl: MIT License
+# @author Vladimir Petrenko
+@tool
+extends VBoxContainer
+
+const _pseudolocalization_control: String = "internationalization/pseudolocalization/use_pseudolocalization_control"
+
+@onready var _pseudolocalization_ui: CheckBox = $HBox/Panel/PseudolocalizationControl
+
+func _ready():
+ if ProjectSettings.has_setting(_pseudolocalization_control):
+ _pseudolocalization_ui.button_pressed = ProjectSettings.get_setting(_pseudolocalization_control)
+ _pseudolocalization_ui.toggled.connect(_on_pseudolocalization_toggled)
+
+func _on_pseudolocalization_toggled(button_pressed: bool) -> void:
+ ProjectSettings.set_setting(_pseudolocalization_control, button_pressed)
+ ProjectSettings.save()
diff --git a/addons/localization_editor/scenes/pseudolocalization/control/LocalizationPseudolocalizationControl.gd.uid b/addons/localization_editor/scenes/pseudolocalization/control/LocalizationPseudolocalizationControl.gd.uid
new file mode 100644
index 0000000..97d9a8e
--- /dev/null
+++ b/addons/localization_editor/scenes/pseudolocalization/control/LocalizationPseudolocalizationControl.gd.uid
@@ -0,0 +1 @@
+uid://buetkc0boro05
diff --git a/addons/localization_editor/scenes/pseudolocalization/control/LocalizationPseudolocalizationControl.tscn b/addons/localization_editor/scenes/pseudolocalization/control/LocalizationPseudolocalizationControl.tscn
new file mode 100644
index 0000000..80a1df7
--- /dev/null
+++ b/addons/localization_editor/scenes/pseudolocalization/control/LocalizationPseudolocalizationControl.tscn
@@ -0,0 +1,54 @@
+[gd_scene load_steps=3 format=3 uid="uid://b3jy757hoeaso"]
+
+[ext_resource type="Script" path="res://addons/localization_editor/scenes/pseudolocalization/control/LocalizationPseudolocalizationControl.gd" id="1_an27a"]
+[ext_resource type="PackedScene" uid="uid://dvfcmuubc6npi" path="res://addons/localization_editor/scenes/pseudolocalization/control/LocalizationPseudolocalizationUI.tscn" id="2_jxw8w"]
+
+[node name="LocalizationPseudolocalizationControl" type="VBoxContainer"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+script = ExtResource( "1_an27a" )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="HBox" type="HBoxContainer" parent="."]
+offset_right = 1024.0
+offset_bottom = 31.0
+
+[node name="Label" type="Label" parent="HBox"]
+offset_right = 510.0
+offset_bottom = 31.0
+auto_translate = false
+size_flags_horizontal = 3
+size_flags_vertical = 3
+text = "Use Pseudolocalization Control in UI"
+vertical_alignment = 1
+
+[node name="Panel" type="Panel" parent="HBox"]
+offset_left = 514.0
+offset_right = 1024.0
+offset_bottom = 31.0
+rect_min_size = Vector2(0, 31)
+size_flags_horizontal = 3
+
+[node name="PseudolocalizationControl" type="CheckBox" parent="HBox/Panel"]
+offset_right = 44.0
+offset_bottom = 31.0
+auto_translate = false
+button_pressed = true
+text = "On"
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="HSeparator" type="HSeparator" parent="."]
+offset_top = 35.0
+offset_right = 1024.0
+offset_bottom = 39.0
+
+[node name="PseudolocalizationEditorView" parent="." instance=ExtResource( "2_jxw8w" )]
+anchor_right = 0.0
+anchor_bottom = 0.0
+offset_top = 43.0
+offset_right = 1024.0
+offset_bottom = 600.0
diff --git a/addons/localization_editor/scenes/pseudolocalization/control/LocalizationPseudolocalizationUI.gd b/addons/localization_editor/scenes/pseudolocalization/control/LocalizationPseudolocalizationUI.gd
new file mode 100644
index 0000000..4446f22
--- /dev/null
+++ b/addons/localization_editor/scenes/pseudolocalization/control/LocalizationPseudolocalizationUI.gd
@@ -0,0 +1,93 @@
+# LocalizationEditor PseudolocalizationUI: MIT License
+# @author Vladimir Petrenko
+@tool
+extends VBoxContainer
+
+const _pseudolocalization: String = "internationalization/pseudolocalization/use_pseudolocalization"
+const _accents: String = "internationalization/pseudolocalization/replace_with_accents"
+const _double_vowels: String = "internationalization/pseudolocalization/double_vowels"
+const _fake_bidi: String = "internationalization/pseudolocalization/fake_bidi"
+const _override: String = "internationalization/pseudolocalization/override"
+const _expansion_ratio: String = "internationalization/pseudolocalization/expansion_ratio"
+const _prefix: String = "internationalization/pseudolocalization/prefix"
+const _suffix: String = "internationalization/pseudolocalization/suffix"
+const _skip_placeholders: String = "internationalization/pseudolocalization/skip_placeholders"
+
+@onready var _pseudolocalization_ui: CheckBox = $HBoxPseudolocalization/Panel/Pseudolocalization
+@onready var _accents_ui: CheckBox = $HBoxAccents/Panel/Accents
+@onready var _double_vowels_ui: CheckBox = $HBoxDoubleVowels/Panel/DoubleVowels
+@onready var _fake_bidi_ui: CheckBox = $HBoxFakeBidi/Panel/FakeBidi
+@onready var _override_ui: CheckBox = $HBoxOverride/Panel/Override
+@onready var _expansion_ratio_ui: LineEdit = $HBoxExpansionRatio/ExpansionRatio
+@onready var _prefix_ui: LineEdit = $HBoxPrefix/ExpansionPrefix
+@onready var _suffix_ui: LineEdit = $HBoxSuffix/ExpansionSuffix
+@onready var _skip_placeholders_ui: CheckBox = $HBoxSkipPlaceholders/Panel/SkipPlaceholders
+
+func _ready() -> void:
+ _init_vars()
+ _init_connections()
+
+func _init_vars() -> void:
+ _pseudolocalization_ui.button_pressed = TranslationServer.is_pseudolocalization_enabled()
+ _accents_ui.button_pressed = ProjectSettings.get(_accents)
+ _double_vowels_ui.button_pressed = ProjectSettings.get(_double_vowels)
+ _fake_bidi_ui.button_pressed = ProjectSettings.get(_fake_bidi)
+ _override_ui.button_pressed = ProjectSettings.get(_override)
+ _expansion_ratio_ui.text = str(ProjectSettings.get(_expansion_ratio))
+ _prefix_ui.text = ProjectSettings.get(_prefix)
+ _suffix_ui.text = ProjectSettings.get(_suffix)
+ _skip_placeholders_ui.button_pressed = ProjectSettings.get(_skip_placeholders)
+
+func _init_connections() -> void:
+ _pseudolocalization_ui.toggled.connect(_on_pseudolocalization_toggled)
+ _accents_ui.toggled.connect(_on_accents_toggled)
+ _double_vowels_ui.toggled.connect(_on_double_vowels_toggled)
+ _fake_bidi_ui.toggled.connect(_on_fake_bidi_toggled)
+ _override_ui.toggled.connect(_on_override_toggled)
+ _expansion_ratio_ui.text_changed.connect(_on_expansion_ratio_text_changed)
+ _prefix_ui.text_changed.connect(_on_prefix_text_changed)
+ _suffix_ui.text_changed.connect(_on_suffix_text_changed)
+ _skip_placeholders_ui.toggled.connect(_on_skip_placeholders_toggled)
+
+func _on_pseudolocalization_toggled(button_pressed: bool) -> void:
+ _change_project_setting(_pseudolocalization, button_pressed)
+ TranslationServer.set_pseudolocalization_enabled(button_pressed)
+
+func _on_accents_toggled(button_pressed: bool) -> void:
+ _change_project_setting(_accents, button_pressed)
+
+func _on_double_vowels_toggled(button_pressed: bool) -> void:
+ _change_project_setting(_double_vowels, button_pressed)
+
+func _on_fake_bidi_toggled(button_pressed: bool) -> void:
+ _change_project_setting(_fake_bidi, button_pressed)
+
+func _on_override_toggled(button_pressed: bool) -> void:
+ _change_project_setting(_override, button_pressed)
+
+func _on_expansion_ratio_text_changed() -> void:
+ float()
+ var ratio = (_expansion_ratio_ui.text).to_float()
+ if ratio > 1:
+ ratio = 1
+ _expansion_ratio_ui.text = str(ratio)
+ if ratio < 0:
+ ratio = 0
+ _expansion_ratio_ui.text = str(ratio)
+ _change_project_setting(_expansion_ratio, ratio)
+
+func _on_prefix_text_changed() -> void:
+ _change_project_setting(_prefix, _prefix_ui.text)
+
+func _on_suffix_text_changed() -> void:
+ _change_project_setting(_suffix, _suffix_ui.text)
+
+func _on_skip_placeholders_toggled(button_pressed: bool) -> void:
+ _change_project_setting(_skip_placeholders, button_pressed)
+
+func _change_project_setting(property: String, value: Variant, reload: bool = true, save: bool = true) -> void:
+ ProjectSettings.set(property, value)
+ if reload:
+ TranslationServer.reload_pseudolocalization()
+ if save and Engine.is_editor_hint():
+ ProjectSettings.save()
diff --git a/addons/localization_editor/scenes/pseudolocalization/control/LocalizationPseudolocalizationUI.gd.uid b/addons/localization_editor/scenes/pseudolocalization/control/LocalizationPseudolocalizationUI.gd.uid
new file mode 100644
index 0000000..84084df
--- /dev/null
+++ b/addons/localization_editor/scenes/pseudolocalization/control/LocalizationPseudolocalizationUI.gd.uid
@@ -0,0 +1 @@
+uid://cn1qqdf7vel45
diff --git a/addons/localization_editor/scenes/pseudolocalization/control/LocalizationPseudolocalizationUI.tscn b/addons/localization_editor/scenes/pseudolocalization/control/LocalizationPseudolocalizationUI.tscn
new file mode 100644
index 0000000..d4f8bb4
--- /dev/null
+++ b/addons/localization_editor/scenes/pseudolocalization/control/LocalizationPseudolocalizationUI.tscn
@@ -0,0 +1,259 @@
+[gd_scene load_steps=2 format=3 uid="uid://dvfcmuubc6npi"]
+
+[ext_resource type="Script" path="res://addons/localization_editor/scenes/pseudolocalization/control/LocalizationPseudolocalizationUI.gd" id="1_uf0s3"]
+
+[node name="PseudolocalizationEditorView" type="VBoxContainer"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+script = ExtResource( "1_uf0s3" )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="HBoxPseudolocalization" type="HBoxContainer" parent="."]
+offset_right = 1024.0
+offset_bottom = 31.0
+
+[node name="Label" type="Label" parent="HBoxPseudolocalization"]
+offset_right = 510.0
+offset_bottom = 31.0
+auto_translate = false
+size_flags_horizontal = 3
+size_flags_vertical = 3
+text = "Use Pseudolocalization"
+vertical_alignment = 1
+
+[node name="Panel" type="Panel" parent="HBoxPseudolocalization"]
+offset_left = 514.0
+offset_right = 1024.0
+offset_bottom = 31.0
+auto_translate = false
+rect_min_size = Vector2(0, 31)
+size_flags_horizontal = 3
+
+[node name="Pseudolocalization" type="CheckBox" parent="HBoxPseudolocalization/Panel"]
+offset_right = 44.0
+offset_bottom = 31.0
+auto_translate = false
+text = "On"
+
+[node name="HBoxAccents" type="HBoxContainer" parent="."]
+offset_top = 35.0
+offset_right = 1024.0
+offset_bottom = 66.0
+
+[node name="Label" type="Label" parent="HBoxAccents"]
+offset_right = 510.0
+offset_bottom = 31.0
+auto_translate = false
+size_flags_horizontal = 3
+size_flags_vertical = 3
+text = "Replace With Accents
+"
+vertical_alignment = 1
+
+[node name="Panel" type="Panel" parent="HBoxAccents"]
+offset_left = 514.0
+offset_right = 1024.0
+offset_bottom = 31.0
+auto_translate = false
+rect_min_size = Vector2(0, 31)
+size_flags_horizontal = 3
+
+[node name="Accents" type="CheckBox" parent="HBoxAccents/Panel"]
+offset_right = 44.0
+offset_bottom = 31.0
+auto_translate = false
+button_pressed = true
+text = "On"
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="HBoxDoubleVowels" type="HBoxContainer" parent="."]
+offset_top = 70.0
+offset_right = 1024.0
+offset_bottom = 101.0
+
+[node name="Label" type="Label" parent="HBoxDoubleVowels"]
+offset_right = 510.0
+offset_bottom = 31.0
+auto_translate = false
+size_flags_horizontal = 3
+size_flags_vertical = 3
+text = "Double Vowels"
+vertical_alignment = 1
+
+[node name="Panel" type="Panel" parent="HBoxDoubleVowels"]
+offset_left = 514.0
+offset_right = 1024.0
+offset_bottom = 31.0
+rect_min_size = Vector2(0, 31)
+size_flags_horizontal = 3
+
+[node name="DoubleVowels" type="CheckBox" parent="HBoxDoubleVowels/Panel"]
+offset_right = 44.0
+offset_bottom = 31.0
+auto_translate = false
+text = "On"
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="HBoxFakeBidi" type="HBoxContainer" parent="."]
+offset_top = 105.0
+offset_right = 1024.0
+offset_bottom = 136.0
+
+[node name="Label" type="Label" parent="HBoxFakeBidi"]
+offset_right = 510.0
+offset_bottom = 31.0
+auto_translate = false
+size_flags_horizontal = 3
+size_flags_vertical = 3
+text = "Fake Bidi"
+vertical_alignment = 1
+
+[node name="Panel" type="Panel" parent="HBoxFakeBidi"]
+offset_left = 514.0
+offset_right = 1024.0
+offset_bottom = 31.0
+rect_min_size = Vector2(0, 31)
+size_flags_horizontal = 3
+
+[node name="FakeBidi" type="CheckBox" parent="HBoxFakeBidi/Panel"]
+offset_right = 44.0
+offset_bottom = 31.0
+auto_translate = false
+text = "On"
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="HBoxOverride" type="HBoxContainer" parent="."]
+offset_top = 140.0
+offset_right = 1024.0
+offset_bottom = 171.0
+
+[node name="Label" type="Label" parent="HBoxOverride"]
+offset_right = 510.0
+offset_bottom = 31.0
+auto_translate = false
+size_flags_horizontal = 3
+size_flags_vertical = 3
+text = "Override"
+vertical_alignment = 1
+
+[node name="Panel" type="Panel" parent="HBoxOverride"]
+offset_left = 514.0
+offset_right = 1024.0
+offset_bottom = 31.0
+rect_min_size = Vector2(0, 31)
+size_flags_horizontal = 3
+
+[node name="Override" type="CheckBox" parent="HBoxOverride/Panel"]
+offset_right = 44.0
+offset_bottom = 31.0
+auto_translate = false
+text = "On"
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="HBoxExpansionRatio" type="HBoxContainer" parent="."]
+offset_top = 175.0
+offset_right = 1024.0
+offset_bottom = 206.0
+
+[node name="Label" type="Label" parent="HBoxExpansionRatio"]
+offset_right = 510.0
+offset_bottom = 31.0
+auto_translate = false
+size_flags_horizontal = 3
+size_flags_vertical = 3
+text = "Expansion Ratio"
+vertical_alignment = 1
+
+[node name="ExpansionRatio" type="LineEdit" parent="HBoxExpansionRatio"]
+offset_left = 514.0
+offset_right = 1024.0
+offset_bottom = 31.0
+auto_translate = false
+size_flags_horizontal = 3
+text = "0"
+
+[node name="HBoxPrefix" type="HBoxContainer" parent="."]
+offset_top = 210.0
+offset_right = 1024.0
+offset_bottom = 241.0
+
+[node name="Label" type="Label" parent="HBoxPrefix"]
+offset_right = 510.0
+offset_bottom = 31.0
+auto_translate = false
+size_flags_horizontal = 3
+size_flags_vertical = 3
+text = "Prefix"
+vertical_alignment = 1
+
+[node name="ExpansionPrefix" type="LineEdit" parent="HBoxPrefix"]
+offset_left = 514.0
+offset_right = 1024.0
+offset_bottom = 31.0
+auto_translate = false
+size_flags_horizontal = 3
+text = "["
+
+[node name="HBoxSuffix" type="HBoxContainer" parent="."]
+offset_top = 245.0
+offset_right = 1024.0
+offset_bottom = 276.0
+
+[node name="Label" type="Label" parent="HBoxSuffix"]
+offset_right = 510.0
+offset_bottom = 31.0
+auto_translate = false
+size_flags_horizontal = 3
+size_flags_vertical = 3
+text = "Suffix"
+vertical_alignment = 1
+
+[node name="ExpansionSuffix" type="LineEdit" parent="HBoxSuffix"]
+offset_left = 514.0
+offset_right = 1024.0
+offset_bottom = 31.0
+auto_translate = false
+size_flags_horizontal = 3
+text = "]"
+
+[node name="HBoxSkipPlaceholders" type="HBoxContainer" parent="."]
+offset_top = 280.0
+offset_right = 1024.0
+offset_bottom = 311.0
+
+[node name="Label" type="Label" parent="HBoxSkipPlaceholders"]
+offset_right = 510.0
+offset_bottom = 31.0
+auto_translate = false
+size_flags_horizontal = 3
+size_flags_vertical = 3
+text = "Skip Placeholders"
+vertical_alignment = 1
+
+[node name="Panel" type="Panel" parent="HBoxSkipPlaceholders"]
+offset_left = 514.0
+offset_right = 1024.0
+offset_bottom = 31.0
+rect_min_size = Vector2(0, 31)
+size_flags_horizontal = 3
+
+[node name="SkipPlaceholders" type="CheckBox" parent="HBoxSkipPlaceholders/Panel"]
+offset_right = 44.0
+offset_bottom = 31.0
+auto_translate = false
+text = "On"
+__meta__ = {
+"_edit_use_anchors_": false
+}
diff --git a/addons/localization_editor/scenes/pseudolocalization/ui/LocalizationPseudolocalizationForUI.gd b/addons/localization_editor/scenes/pseudolocalization/ui/LocalizationPseudolocalizationForUI.gd
new file mode 100644
index 0000000..e6597a9
--- /dev/null
+++ b/addons/localization_editor/scenes/pseudolocalization/ui/LocalizationPseudolocalizationForUI.gd
@@ -0,0 +1,31 @@
+extends CanvasLayer
+
+const LocalizationPseudolocalizationWindow = preload("res://addons/localization_editor/scenes/pseudolocalization/ui/LocalizationPseudolocalizationWindow.tscn")
+
+@onready var _view_ui: Button = $VBox/HBox/View
+
+var _root
+var _window = null
+
+func _ready():
+ _root = get_tree().get_root()
+ _view_ui.pressed.connect(_on_view_ui_pressed)
+
+func _on_view_ui_pressed() -> void:
+ if _window == null:
+ _create_dialogue()
+ else:
+ _window.move_to_foreground()
+
+func _create_dialogue() -> void:
+ var pseudolocalization_window: Window = LocalizationPseudolocalizationWindow.instantiate()
+ _root.add_child(pseudolocalization_window)
+ _window = pseudolocalization_window
+ pseudolocalization_window.title = "Pseudolocalization"
+ pseudolocalization_window.connect("close_requested", _on_window_hide)
+ pseudolocalization_window.popup_centered(Vector2i(500, 315))
+
+func _on_window_hide() -> void:
+ _root.remove_child(_window)
+ _window.queue_free()
+ _window = null
diff --git a/addons/localization_editor/scenes/pseudolocalization/ui/LocalizationPseudolocalizationForUI.gd.uid b/addons/localization_editor/scenes/pseudolocalization/ui/LocalizationPseudolocalizationForUI.gd.uid
new file mode 100644
index 0000000..9c884c8
--- /dev/null
+++ b/addons/localization_editor/scenes/pseudolocalization/ui/LocalizationPseudolocalizationForUI.gd.uid
@@ -0,0 +1 @@
+uid://bpk6015voisn6
diff --git a/addons/localization_editor/scenes/pseudolocalization/ui/LocalizationPseudolocalizationForUI.tscn b/addons/localization_editor/scenes/pseudolocalization/ui/LocalizationPseudolocalizationForUI.tscn
new file mode 100644
index 0000000..92e95a0
--- /dev/null
+++ b/addons/localization_editor/scenes/pseudolocalization/ui/LocalizationPseudolocalizationForUI.tscn
@@ -0,0 +1,25 @@
+[gd_scene load_steps=2 format=3 uid="uid://bikihsdqsi1sm"]
+
+[ext_resource type="Script" path="res://addons/localization_editor/scenes/pseudolocalization/ui/LocalizationPseudolocalizationForUI.gd" id="1_knfsp"]
+
+[node name="Control" type="CanvasLayer"]
+script = ExtResource( "1_knfsp" )
+
+[node name="VBox" type="VBoxContainer" parent="."]
+anchor_left = 1.0
+anchor_right = 1.0
+offset_left = -212.0
+offset_bottom = 31.0
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="HBox" type="HBoxContainer" parent="VBox"]
+offset_right = 212.0
+offset_bottom = 31.0
+alignment = 2
+
+[node name="View" type="Button" parent="VBox/HBox"]
+offset_right = 212.0
+offset_bottom = 31.0
+text = "Pseudolocalization Control"
diff --git a/addons/localization_editor/scenes/pseudolocalization/ui/LocalizationPseudolocalizationWindow.tscn b/addons/localization_editor/scenes/pseudolocalization/ui/LocalizationPseudolocalizationWindow.tscn
new file mode 100644
index 0000000..b7958b4
--- /dev/null
+++ b/addons/localization_editor/scenes/pseudolocalization/ui/LocalizationPseudolocalizationWindow.tscn
@@ -0,0 +1,20 @@
+[gd_scene load_steps=2 format=3 uid="uid://sl1jt1bmc4aj"]
+
+[ext_resource type="PackedScene" uid="uid://dvfcmuubc6npi" path="res://addons/localization_editor/scenes/pseudolocalization/control/LocalizationPseudolocalizationUI.tscn" id="1_0aul8"]
+
+[node name="Window" type="Window"]
+disable_3d = true
+title = "Pseudolocalization"
+size = Vector2i(500, 850)
+
+[node name="ScrollContainer" type="ScrollContainer" parent="."]
+anchor_right = 1.0
+anchor_bottom = 1.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+
+[node name="PseudolocalizationEditorView" parent="ScrollContainer" instance=ExtResource( "1_0aul8" )]
+anchor_right = 0.0
+anchor_bottom = 0.0
+offset_right = 1024.0
+offset_bottom = 600.0
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemap.gd b/addons/localization_editor/scenes/remaps/LocalizationRemap.gd
new file mode 100644
index 0000000..eef844b
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemap.gd
@@ -0,0 +1,95 @@
+# Remap UI for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends MarginContainer
+
+var _key
+var _remap
+var _data: LocalizationData
+
+@onready var _remap_ui = $HBox/Remap
+@onready var _audio_ui = $HBox/Audio
+@onready var _video_ui = $HBox/Video
+@onready var _image_ui = $HBox/Image
+
+const LocalizationRemapDialogVideo = preload("res://addons/localization_editor/scenes/remaps/LocalizationRemapDialogVideo.tscn")
+const LocalizationRemapDialogImage = preload("res://addons/localization_editor/scenes/remaps/LocalizationRemapDialogImage.tscn")
+
+func set_data(key, remap, data: LocalizationData) -> void:
+ _key = key
+ _remap = remap
+ _data = data
+ _remap_ui.set_data(key, remap, data)
+ _init_connections()
+ _draw_view()
+
+func _init_connections() -> void:
+ if not _data.is_connected("data_remapkey_value_changed", _draw_view):
+ assert(_data.data_remapkey_value_changed.connect(_draw_view) == OK)
+ if not _audio_ui.is_connected("pressed", _on_audio_pressed):
+ assert(_audio_ui.connect("pressed", _on_audio_pressed) == OK)
+ if not _video_ui.is_connected("pressed", _on_video_pressed):
+ assert(_video_ui.connect("pressed", _on_video_pressed) == OK)
+ if not _image_ui.is_connected("pressed", _on_image_pressed):
+ assert(_image_ui.connect("pressed", _on_image_pressed) == OK)
+
+func _draw_view() -> void:
+ _check_buttons()
+
+func _check_buttons() -> void:
+ _hide_buttons()
+ var type = _data.remap_type(_remap)
+ match type:
+ "audio":
+ _audio_ui.show()
+ "image":
+ _image_ui.show()
+ "video":
+ _video_ui.show()
+
+func _hide_buttons() -> void:
+ _audio_ui.hide()
+ _video_ui.hide()
+ _image_ui.hide()
+
+func _on_audio_pressed() -> void:
+ var audio_player
+ if get_tree().get_root().has_node("AudioPlayer"):
+ audio_player = get_tree().get_root().get_node("AudioPlayer") as AudioStreamPlayer
+ else:
+ audio_player = AudioStreamPlayer.new()
+ get_tree().get_root().add_child(audio_player)
+ var audio = load(_remap.value)
+ audio.set_loop(false)
+ audio_player.stream = audio
+ audio_player.play()
+
+func _on_video_pressed() -> void:
+ var video_dialog: Window = LocalizationRemapDialogVideo.instantiate()
+ var root = get_tree().get_root()
+ root.add_child(video_dialog)
+ video_dialog.title = _data.filename(_remap.value)
+ var video_player = video_dialog.get_node("VideoPlayer") as VideoStreamPlayer
+ video_player.expand = true
+ var video: VideoStream = load(_remap.value)
+ video_player.stream = video
+ video_dialog.close_requested.connect(_video_dialog_close.bind(video_dialog))
+ video_dialog.popup_centered(Vector2i(500, 300))
+ video_player.play()
+
+func _video_dialog_close(video_dialog: Window) -> void:
+ video_dialog.hide()
+
+func _on_image_pressed() -> void:
+ var image_dialog: Window = LocalizationRemapDialogImage.instantiate()
+ var root = get_tree().get_root()
+ root.add_child(image_dialog)
+ image_dialog.title = _data.filename(_remap.value)
+ var texture = image_dialog.get_node("Texture") as TextureRect
+ var image = load(_remap.value)
+ texture.texture = image
+ image_dialog.close_requested.connect(_image_dialog_close.bind(image_dialog))
+ image_dialog.popup_centered(Vector2i(500, 300))
+
+func _image_dialog_close(image_dialog: Window) -> void:
+ image_dialog.hide()
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemap.gd.uid b/addons/localization_editor/scenes/remaps/LocalizationRemap.gd.uid
new file mode 100644
index 0000000..6220734
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemap.gd.uid
@@ -0,0 +1 @@
+uid://cpx7wk0diu1h3
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemap.tscn b/addons/localization_editor/scenes/remaps/LocalizationRemap.tscn
new file mode 100644
index 0000000..ed7ee9c
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemap.tscn
@@ -0,0 +1,39 @@
+[gd_scene load_steps=6 format=3 uid="uid://dqtiybaaxohvp"]
+
+[ext_resource type="Script" path="res://addons/localization_editor/scenes/remaps/LocalizationRemap.gd" id="4"]
+[ext_resource type="PackedScene" uid="uid://cconuf5kyyt8x" path="res://addons/localization_editor/scenes/remaps/LocalizationRemapPath.tscn" id="5"]
+[ext_resource type="Texture2D" uid="uid://bkeugb6vucegl" path="res://addons/localization_editor/icons/Audio.svg" id="5_84ecs"]
+[ext_resource type="Texture2D" uid="uid://oxmydroedm6f" path="res://addons/localization_editor/icons/Video.svg" id="6_uxbjg"]
+[ext_resource type="Texture2D" uid="uid://dl6cg75c815d8" path="res://addons/localization_editor/icons/Image.svg" id="7_is72i"]
+
+[node name="Remap" type="MarginContainer"]
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+grow_horizontal = 2
+grow_vertical = 2
+size_flags_horizontal = 3
+theme_override_constants/margin_left = 3
+theme_override_constants/margin_right = 3
+theme_override_constants/margin_bottom = 3
+script = ExtResource("4")
+
+[node name="HBox" type="HBoxContainer" parent="."]
+layout_mode = 2
+size_flags_horizontal = 3
+size_flags_vertical = 0
+
+[node name="Remap" parent="HBox" instance=ExtResource("5")]
+layout_mode = 2
+
+[node name="Audio" type="Button" parent="HBox"]
+layout_mode = 2
+icon = ExtResource("5_84ecs")
+
+[node name="Video" type="Button" parent="HBox"]
+layout_mode = 2
+icon = ExtResource("6_uxbjg")
+
+[node name="Image" type="Button" parent="HBox"]
+layout_mode = 2
+icon = ExtResource("7_is72i")
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemapDialogFile.tscn b/addons/localization_editor/scenes/remaps/LocalizationRemapDialogFile.tscn
new file mode 100644
index 0000000..989ef6a
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemapDialogFile.tscn
@@ -0,0 +1,4 @@
+[gd_scene format=3 uid="uid://bh0d4n3rlnltu"]
+
+[node name="LocalizationRemapDialogFile" type="FileDialog"]
+size = Vector2i(800, 600)
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemapDialogImage.tscn b/addons/localization_editor/scenes/remaps/LocalizationRemapDialogImage.tscn
new file mode 100644
index 0000000..db6f508
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemapDialogImage.tscn
@@ -0,0 +1,10 @@
+[gd_scene format=3 uid="uid://cig7xmo5hp6hv"]
+
+[node name="LocalizationRemapVideoDialog" type="Window"]
+visible = false
+
+[node name="Texture" type="TextureRect" parent="."]
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+stretch_mode = 6
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemapDialogVideo.tscn b/addons/localization_editor/scenes/remaps/LocalizationRemapDialogVideo.tscn
new file mode 100644
index 0000000..b7cdf8f
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemapDialogVideo.tscn
@@ -0,0 +1,8 @@
+[gd_scene format=3 uid="uid://b3vp2dngpmd0f"]
+
+[node name="LocalizationRemapVideoDialog" type="Window"]
+
+[node name="VideoPlayer" type="VideoStreamPlayer" parent="."]
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemapPath.gd b/addons/localization_editor/scenes/remaps/LocalizationRemapPath.gd
new file mode 100644
index 0000000..3c2624a
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemapPath.gd
@@ -0,0 +1,136 @@
+# Remap UI LineEdit for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+# Drag and drop not work just now, see Workaround -> LocalizationRemapPut
+# https://github.com/godotengine/godot/issues/30480
+@tool
+extends LineEdit
+
+var _key
+var _remap
+var _data: LocalizationData
+
+var _remap_ui_style_empty: StyleBoxFlat
+var _remap_ui_style_resource: StyleBoxFlat
+var _remap_ui_style_resource_diff: StyleBoxFlat
+var _remap_ui_style_resource_double: StyleBoxFlat
+
+const LocalizationRemapDialogFile = preload("res://addons/localization_editor/scenes/remaps/LocalizationRemapDialogFile.tscn")
+
+func set_data(key, remap, data: LocalizationData) -> void:
+ _key = key
+ _remap = remap
+ _data = data
+ _init_styles()
+ _init_connections()
+ _draw_view()
+
+func _init_styles() -> void:
+ var style_box = get_theme_stylebox("normal", "LineEdit")
+ _remap_ui_style_empty = style_box.duplicate()
+ _remap_ui_style_empty.set_bg_color(Color("#661c1c"))
+ _remap_ui_style_resource = style_box.duplicate()
+ _remap_ui_style_resource.set_bg_color(Color("#192e59"))
+ _remap_ui_style_resource_diff = style_box.duplicate()
+ _remap_ui_style_resource_diff.set_bg_color(Color("#514200"))
+ _remap_ui_style_resource_double = style_box.duplicate()
+ _remap_ui_style_resource_double.set_bg_color(Color("#174044"))
+
+func _init_connections() -> void:
+ if not _data.is_connected("data_remapkey_value_changed", _draw_view):
+ assert(_data.data_remapkey_value_changed.connect(_draw_view) == OK)
+ if not is_connected("focus_entered", _on_focus_entered):
+ assert(focus_entered.connect(_on_focus_entered) == OK)
+ if not is_connected("focus_exited", _on_focus_exited):
+ assert(focus_exited.connect(_on_focus_exited) == OK)
+ if not is_connected("text_changed", _remap_value_changed):
+ assert(text_changed.connect(_remap_value_changed) == OK)
+ if not is_connected("gui_input", _on_gui_input):
+ assert(gui_input.connect(_on_gui_input) == OK)
+
+func _draw_view() -> void:
+ if has_focus():
+ text = _remap.value
+ else:
+ text = _data.filename(_remap.value)
+ _check_remap_ui()
+
+func _input(event) -> void:
+ if (event is InputEventMouseButton) and event.pressed:
+ if not get_global_rect().has_point(event.position):
+ release_focus()
+
+func _on_focus_entered() -> void:
+ text = _remap.value
+
+func _on_focus_exited() -> void:
+ text = _data.filename(_remap.value)
+
+func _remap_value_changed(remap_value) -> void:
+ _data.remapkey_value_change(_remap, remap_value)
+
+func _on_gui_input(event: InputEvent) -> void:
+ if event is InputEventMouseButton:
+ if event.button_index == MOUSE_BUTTON_MIDDLE:
+ if event.pressed:
+ grab_focus()
+ var file_dialog = LocalizationRemapDialogFile.instantiate()
+ if _resource_exists():
+ file_dialog.current_dir = _data.file_path(_remap.value)
+ file_dialog.current_file = _data.filename(_remap.value)
+ for extension in _data.supported_file_extensions():
+ file_dialog.add_filter("*." + extension)
+ var root = get_tree().get_root()
+ root.add_child(file_dialog)
+ file_dialog.connect("file_selected", _remap_value_changed)
+ file_dialog.popup_centered()
+
+func _can_drop_data(position, data) -> bool:
+ var remap_value = data["files"][0]
+ var remap_extension = _data.file_extension(remap_value)
+ for extension in _data.supported_file_extensions():
+ if remap_extension == extension:
+ return true
+ return false
+
+func _drop_data(position, data) -> void:
+ var remap_value = data["files"][0]
+ _remap_value_changed(remap_value)
+
+func _check_remap_ui() -> void:
+ if text.length() <= 0:
+ set("custom_styles/normal", _remap_ui_style_empty)
+ tooltip_text = "Please set remap resource"
+ elif not _resource_exists():
+ set("custom_styles/normal", _remap_ui_style_resource)
+ tooltip_text = "Your resource path: \"" + _remap.value + "\" does not exists"
+ elif _resource_different_type():
+ set("custom_styles/normal", _remap_ui_style_resource_diff)
+ tooltip_text = "Your remaps have different types"
+ elif _resource_double():
+ set("custom_styles/normal", _remap_ui_style_resource_double)
+ tooltip_text = "Your have double resources in your remaps"
+ else:
+ set("custom_styles/normal", null)
+ tooltip_text = ""
+
+func _resource_exists() -> bool:
+ if _data.remap_type(_remap) == "undefined":
+ return false
+ return FileAccess.file_exists(_remap.value)
+
+func _resource_different_type() -> bool:
+ var type = _data.remap_type(_remap)
+ for remap in _key.remaps:
+ if remap.value.length() > 0 and type != _data.remap_type(remap):
+ return true
+ return false
+
+func _resource_double() -> bool:
+ var first
+ for remap in _key.remaps:
+ if first == null:
+ first = remap
+ continue
+ if remap.value.length() > 0 and first.value == remap.value:
+ return true
+ return false
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemapPath.gd.uid b/addons/localization_editor/scenes/remaps/LocalizationRemapPath.gd.uid
new file mode 100644
index 0000000..26d455c
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemapPath.gd.uid
@@ -0,0 +1 @@
+uid://caetu5nx0gjo4
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemapPath.tscn b/addons/localization_editor/scenes/remaps/LocalizationRemapPath.tscn
new file mode 100644
index 0000000..98a35b2
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemapPath.tscn
@@ -0,0 +1,11 @@
+[gd_scene load_steps=2 format=3 uid="uid://cconuf5kyyt8x"]
+
+[ext_resource type="Script" path="res://addons/localization_editor/scenes/remaps/LocalizationRemapPath.gd" id="1"]
+
+[node name="LocalizationRemapPath" type="LineEdit"]
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+script = ExtResource("1")
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemaps.gd b/addons/localization_editor/scenes/remaps/LocalizationRemaps.gd
new file mode 100644
index 0000000..da7fd6c
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemaps.gd
@@ -0,0 +1,78 @@
+# Remaps UI for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends Panel
+
+var _data: LocalizationData
+
+@onready var _remaps_ui = $Scroll/Remaps
+
+const LocalizationRemapsList = preload("res://addons/localization_editor/scenes/remaps/LocalizationRemapsList.tscn")
+
+func set_data(data: LocalizationData) -> void:
+ _data = data
+ _init_connections()
+ _update_view()
+
+func _init_connections() -> void:
+ if not _data.is_connected("data_changed", _update_view):
+ assert(_data.data_changed.connect(_update_view) == OK)
+
+func _update_view() -> void:
+ _clear_ui_remaps()
+ _add_ui_remaps()
+ _view_ui_remaps()
+ _update_ui_remaps()
+
+func _clear_ui_remaps() -> void:
+ var remaps_ui = _remaps_ui.get_children()
+ for remap_ui in remaps_ui:
+ if remap_ui.has_method("get_locale"):
+ var locale = remap_ui.get_locale()
+ if _data.find_locale(locale) == null:
+ remaps_ui.erase(remap_ui)
+ remap_ui.queue_free()
+
+func _add_ui_remaps() -> void:
+ var locales = _data.locales()
+ for locale in locales:
+ if not _ui_remap_exists(locale):
+ _add_ui_remap(locale)
+
+func _ui_remap_exists(locale) -> bool:
+ for remap_ui in _remaps_ui.get_children():
+ if remap_ui.has_method("get_locale"):
+ if remap_ui.get_locale() == locale:
+ return true
+ return false
+
+func _add_ui_remap(locale: String) -> void:
+ var ui_remap = LocalizationRemapsList.instantiate()
+ _remaps_ui.add_child(ui_remap)
+ ui_remap.set_data(locale, _data)
+
+func _view_ui_remaps() -> void:
+ for remap_ui in _remaps_ui.get_children():
+ if remap_ui.has_method("get_locale"):
+ var locale = remap_ui.get_locale()
+ var serarator_ui = _separator_after_remap_ui(remap_ui)
+ if _data.is_locale_visible(locale):
+ remap_ui.show()
+ if serarator_ui != null:
+ serarator_ui.show()
+ else:
+ remap_ui.hide()
+ if serarator_ui != null:
+ serarator_ui.hide()
+
+func _separator_after_remap_ui(remap_ui: Node) -> Node:
+ var index = remap_ui.get_index()
+ var count = _remaps_ui.get_child_count()
+ if index + 1 < count:
+ return _remaps_ui.get_child(index + 1)
+ return null
+
+func _update_ui_remaps() -> void:
+ for remap_ui in _remaps_ui.get_children():
+ if remap_ui.has_method("update_view"):
+ remap_ui.update_view()
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemaps.gd.uid b/addons/localization_editor/scenes/remaps/LocalizationRemaps.gd.uid
new file mode 100644
index 0000000..2088241
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemaps.gd.uid
@@ -0,0 +1 @@
+uid://bygtup048vkg4
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemaps.tscn b/addons/localization_editor/scenes/remaps/LocalizationRemaps.tscn
new file mode 100644
index 0000000..e283ed9
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemaps.tscn
@@ -0,0 +1,29 @@
+[gd_scene load_steps=2 format=2]
+
+[ext_resource path="res://addons/localization_editor/scenes/remaps/LocalizationRemaps.gd" type="Script" id=2]
+
+[node name="LocalizationRemaps" type="Panel"]
+margin_left = 518.0
+margin_right = 1024.0
+margin_bottom = 600.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+script = ExtResource( 2 )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="Scroll" type="ScrollContainer" parent="."]
+anchor_right = 1.0
+anchor_bottom = 1.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="Remaps" type="HBoxContainer" parent="Scroll"]
+margin_right = 506.0
+margin_bottom = 600.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemapsEditorView.gd b/addons/localization_editor/scenes/remaps/LocalizationRemapsEditorView.gd
new file mode 100644
index 0000000..54108c7
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemapsEditorView.gd
@@ -0,0 +1,27 @@
+# Remaps view for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends HBoxContainer
+
+var _data: LocalizationData
+var _split_viewport_size = 0
+
+@onready var _split_ui = $Split
+@onready var _keys_ui = $Split/Keys
+@onready var _remaps_ui = $Split/Remaps
+
+const LocalizationRemaps = preload("res://addons/localization_editor/scenes/remaps/LocalizationRemaps.tscn")
+
+func set_data(data: LocalizationData):
+ _data = data
+ _keys_ui.set_data(data)
+ _remaps_ui.set_data(data)
+
+func _process(delta):
+ if _split_viewport_size != size.x:
+ _split_viewport_size = size.x
+ _init_split_offset()
+
+func _init_split_offset() -> void:
+ var offset = 70
+ _split_ui.set_split_offset(-size.x / 2 + offset)
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemapsEditorView.gd.uid b/addons/localization_editor/scenes/remaps/LocalizationRemapsEditorView.gd.uid
new file mode 100644
index 0000000..3943ec1
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemapsEditorView.gd.uid
@@ -0,0 +1 @@
+uid://bn300pfj06p2u
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemapsEditorView.tscn b/addons/localization_editor/scenes/remaps/LocalizationRemapsEditorView.tscn
new file mode 100644
index 0000000..6c3e864
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemapsEditorView.tscn
@@ -0,0 +1,31 @@
+[gd_scene load_steps=4 format=2]
+
+[ext_resource path="res://addons/localization_editor/scenes/remaps/LocalizationRemapsEditorView.gd" type="Script" id=1]
+[ext_resource path="res://addons/localization_editor/scenes/remaps/LocalizationRemapsKeys.tscn" type="PackedScene" id=2]
+[ext_resource path="res://addons/localization_editor/scenes/remaps/LocalizationRemaps.tscn" type="PackedScene" id=3]
+
+[node name="Remaps" type="HBoxContainer"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+size_flags_vertical = 3
+script = ExtResource( 1 )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="Split" type="HSplitContainer" parent="."]
+margin_right = 1024.0
+margin_bottom = 600.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+split_offset = -442
+dragger_visibility = 1
+
+[node name="Keys" parent="Split" instance=ExtResource( 2 )]
+anchor_right = 0.0
+anchor_bottom = 0.0
+margin_right = 64.0
+margin_bottom = 600.0
+
+[node name="Remaps" parent="Split" instance=ExtResource( 3 )]
+margin_left = 76.0
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemapsHead.gd b/addons/localization_editor/scenes/remaps/LocalizationRemapsHead.gd
new file mode 100644
index 0000000..647ea19
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemapsHead.gd
@@ -0,0 +1,32 @@
+# Head UI for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends VBoxContainer
+
+var _type: String
+var _filter: String = ""
+var _data: LocalizationData
+
+@onready var _title_ui = $TitleMargin/HBox/Title
+@onready var _filter_ui = $FilterMargin/HBox/Filter
+
+func set_data(type: String, data: LocalizationData):
+ _type = type
+ _data = data
+ _filter = _data.data_filter_remaps_by_type(_type)
+ _init_connections()
+ _draw_view()
+
+func _init_connections() -> void:
+ if not _filter_ui.is_connected("text_changed", _filter_changed_action):
+ assert(_filter_ui.text_changed.connect(_filter_changed_action) == OK)
+
+func _draw_view() -> void:
+ _filter_ui.text = _filter
+
+func _filter_changed_action(filter) -> void:
+ _filter = filter
+ _data.data_filter_remaps_put(_type, _filter)
+
+func set_title(text: String) -> void:
+ _title_ui.text = text
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemapsHead.gd.uid b/addons/localization_editor/scenes/remaps/LocalizationRemapsHead.gd.uid
new file mode 100644
index 0000000..c0fdf96
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemapsHead.gd.uid
@@ -0,0 +1 @@
+uid://djked7geg1wks
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemapsHead.tscn b/addons/localization_editor/scenes/remaps/LocalizationRemapsHead.tscn
new file mode 100644
index 0000000..19886ec
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemapsHead.tscn
@@ -0,0 +1,61 @@
+[gd_scene load_steps=2 format=2]
+
+[ext_resource path="res://addons/localization_editor/scenes/remaps/LocalizationRemapsHead.gd" type="Script" id=1]
+
+[node name="RemapsHead" type="VBoxContainer"]
+margin_right = 344.0
+margin_bottom = 57.0
+size_flags_horizontal = 3
+script = ExtResource( 1 )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="TitleMargin" type="MarginContainer" parent="."]
+margin_right = 344.0
+margin_bottom = 26.0
+rect_min_size = Vector2( 0, 26 )
+size_flags_horizontal = 3
+size_flags_vertical = 0
+custom_constants/margin_right = 3
+custom_constants/margin_top = 3
+custom_constants/margin_left = 3
+custom_constants/margin_bottom = 0
+
+[node name="HBox" type="HBoxContainer" parent="TitleMargin"]
+margin_left = 3.0
+margin_top = 3.0
+margin_right = 341.0
+margin_bottom = 26.0
+
+[node name="Title" type="Label" parent="TitleMargin/HBox"]
+margin_top = 4.0
+margin_right = 338.0
+margin_bottom = 18.0
+size_flags_horizontal = 3
+text = "REMAP"
+align = 1
+
+[node name="FilterMargin" type="MarginContainer" parent="."]
+margin_top = 30.0
+margin_right = 344.0
+margin_bottom = 57.0
+rect_min_size = Vector2( 0, 26 )
+size_flags_horizontal = 3
+size_flags_vertical = 0
+custom_constants/margin_right = 3
+custom_constants/margin_top = 3
+custom_constants/margin_left = 3
+custom_constants/margin_bottom = 0
+
+[node name="HBox" type="HBoxContainer" parent="FilterMargin"]
+margin_left = 3.0
+margin_top = 3.0
+margin_right = 341.0
+margin_bottom = 27.0
+
+[node name="Filter" type="LineEdit" parent="FilterMargin/HBox"]
+margin_right = 338.0
+margin_bottom = 24.0
+size_flags_horizontal = 3
+placeholder_text = "Filter"
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemapsKey.gd b/addons/localization_editor/scenes/remaps/LocalizationRemapsKey.gd
new file mode 100644
index 0000000..c1c4f06
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemapsKey.gd
@@ -0,0 +1,33 @@
+# Remaps key UI for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends MarginContainer
+
+var _key
+var _data: LocalizationData
+
+@onready var _add_ui = $HBoxContainer/Add
+@onready var _del_ui = $HBoxContainer/Del
+
+func set_data(key, data: LocalizationData):
+ _key = key
+ _data = data
+ _draw_view()
+
+func _ready() -> void:
+ _init_connections()
+
+func _init_connections() -> void:
+ if not _add_ui.is_connected("pressed", _on_add_pressed):
+ assert(_add_ui.connect("pressed", _on_add_pressed) == OK)
+ if not _del_ui.is_connected("pressed", _on_del_pressed):
+ assert(_del_ui.connect("pressed", _on_del_pressed) == OK)
+
+func _draw_view() -> void:
+ _del_ui.disabled = _data.remaps().size() == 1
+
+func _on_add_pressed() -> void:
+ _data._add_remapkey_new_after_uuid_remap(_key.uuid)
+
+func _on_del_pressed() -> void:
+ _data.del_remapkey(_key.uuid)
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemapsKey.gd.uid b/addons/localization_editor/scenes/remaps/LocalizationRemapsKey.gd.uid
new file mode 100644
index 0000000..dcfc9bf
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemapsKey.gd.uid
@@ -0,0 +1 @@
+uid://b5te2xo0ppciy
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemapsKey.tscn b/addons/localization_editor/scenes/remaps/LocalizationRemapsKey.tscn
new file mode 100644
index 0000000..322a431
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemapsKey.tscn
@@ -0,0 +1,38 @@
+[gd_scene load_steps=4 format=3 uid="uid://1qs1y7jo8jb5"]
+
+[ext_resource type="Texture2D" uid="uid://cbf54t7aak7dy" path="res://addons/localization_editor/icons/Add.svg" id="2_kn4tc"]
+[ext_resource type="Script" path="res://addons/localization_editor/scenes/remaps/LocalizationRemapsKey.gd" id="3"]
+[ext_resource type="Texture2D" uid="uid://caiapkr8oaqe6" path="res://addons/localization_editor/icons/Del.svg" id="3_rqcqd"]
+
+[node name="MarginContainer" type="MarginContainer"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+size_flags_horizontal = 3
+size_flags_vertical = 0
+theme_override_constants/margin_right = 3
+theme_override_constants/margin_left = 3
+theme_override_constants/margin_bottom = 3
+script = ExtResource( "3" )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="HBoxContainer" type="HBoxContainer" parent="."]
+offset_left = 3.0
+offset_right = 1021.0
+offset_bottom = 29.0
+size_flags_horizontal = 3
+size_flags_vertical = 0
+
+[node name="Add" type="Button" parent="HBoxContainer"]
+offset_right = 28.0
+offset_bottom = 29.0
+hint_tooltip = "Add remap"
+icon = ExtResource( "2_kn4tc" )
+
+[node name="Del" type="Button" parent="HBoxContainer"]
+offset_left = 32.0
+offset_right = 60.0
+offset_bottom = 29.0
+hint_tooltip = "Del remap"
+icon = ExtResource( "3_rqcqd" )
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemapsKeys.gd b/addons/localization_editor/scenes/remaps/LocalizationRemapsKeys.gd
new file mode 100644
index 0000000..b9b73f7
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemapsKeys.gd
@@ -0,0 +1,46 @@
+# Remaps keys UI for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends Panel
+
+var _data: LocalizationData
+
+@onready var _head_ui = $VBox/Head
+@onready var _scroll_ui = $VBox/Scroll
+@onready var _keys_ui = $VBox/Scroll/Keys
+
+const LocalizationRemapsKey = preload("res://addons/localization_editor/scenes/remaps/LocalizationRemapsKey.tscn")
+
+func get_v_scroll() -> int:
+ return _scroll_ui.get_v_scroll()
+
+func set_v_scroll(value: int) -> void:
+ _scroll_ui.set_v_scroll(value)
+
+func set_data(data: LocalizationData) -> void:
+ _data = data
+ _head_ui.set_data(_data)
+ _init_connections()
+ _update_view()
+
+func _init_connections() -> void:
+ if not _data.is_connected("data_changed", _update_view):
+ assert(_data.data_changed.connect(_update_view) == OK)
+
+func _update_view() -> void:
+ _clear_view()
+ _draw_view()
+
+func _clear_view() -> void:
+ for key_ui in _keys_ui.get_children():
+ _keys_ui.remove_child(key_ui)
+ key_ui.queue_free()
+
+func _draw_view() -> void:
+ for key in _data.remapkeys_filtered():
+ _draw_key(key)
+
+func _draw_key(key) -> void:
+ var key_ui = LocalizationRemapsKey.instantiate()
+ _keys_ui.add_child(key_ui)
+ key_ui.set_data(key, _data)
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemapsKeys.gd.uid b/addons/localization_editor/scenes/remaps/LocalizationRemapsKeys.gd.uid
new file mode 100644
index 0000000..1b9dbc4
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemapsKeys.gd.uid
@@ -0,0 +1 @@
+uid://dgcbl3ua7u5sp
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemapsKeys.tscn b/addons/localization_editor/scenes/remaps/LocalizationRemapsKeys.tscn
new file mode 100644
index 0000000..4d79df3
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemapsKeys.tscn
@@ -0,0 +1,38 @@
+[gd_scene load_steps=3 format=2]
+
+[ext_resource path="res://addons/localization_editor/scenes/remaps/LocalizationRemapsKeysHead.tscn" type="PackedScene" id=2]
+[ext_resource path="res://addons/localization_editor/scenes/remaps/LocalizationRemapsKeys.gd" type="Script" id=3]
+
+[node name="LocalizationRemapsKeys" type="Panel"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+script = ExtResource( 3 )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="VBox" type="VBoxContainer" parent="."]
+anchor_right = 1.0
+anchor_bottom = 1.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="Head" parent="VBox" instance=ExtResource( 2 )]
+
+[node name="Scroll" type="ScrollContainer" parent="VBox"]
+margin_top = 61.0
+margin_right = 1024.0
+margin_bottom = 600.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+
+[node name="Keys" type="VBoxContainer" parent="VBox/Scroll"]
+margin_right = 1024.0
+margin_bottom = 539.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemapsKeysHead.gd b/addons/localization_editor/scenes/remaps/LocalizationRemapsKeysHead.gd
new file mode 100644
index 0000000..c32f814
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemapsKeysHead.gd
@@ -0,0 +1,46 @@
+# Remaps head keys UI for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends MarginContainer
+
+var _type: String = "remapkeys"
+var _filter: String = ""
+var _data: LocalizationData
+
+@onready var _music_ui = $VBox/HBoxTop/Music
+@onready var _image_ui = $VBox/HBoxTop/Image
+@onready var _video_ui = $VBox/HBoxBottom/Video
+@onready var _reset_ui = $VBox/HBoxBottom/Reset
+
+func set_data(data: LocalizationData):
+ _data = data
+ _filter = _data.data_filter_remaps_by_type(_type)
+ _init_connections()
+
+func _init_connections() -> void:
+ if not _music_ui.is_connected("button_up", _filter_changed_action):
+ assert(_music_ui.button_up.connect(_filter_changed_action) == OK)
+ if not _image_ui.is_connected("button_up", _filter_changed_action):
+ assert(_image_ui.button_up.connect(_filter_changed_action) == OK)
+ if not _video_ui.is_connected("button_up", _filter_changed_action):
+ assert(_video_ui.button_up.connect(_filter_changed_action) == OK)
+ if not _reset_ui.is_connected("button_up", _filter_reset_action):
+ assert(_reset_ui.button_up.connect(_filter_reset_action) == OK)
+
+func _filter_changed_action() -> void:
+ var new_filter = ""
+ if _music_ui.is_pressed():
+ new_filter = new_filter + "audio"
+ if _image_ui.is_pressed():
+ new_filter = new_filter + ",image"
+ if _video_ui.is_pressed():
+ new_filter = new_filter + ",video"
+ _filter = new_filter
+ _data.data_filter_remaps_put(_type, _filter)
+
+func _filter_reset_action() -> void:
+ _music_ui.set_pressed(false)
+ _image_ui.set_pressed(false)
+ _video_ui.set_pressed(false)
+ _filter = ""
+ _data.data_filter_remaps_put(_type, _filter)
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemapsKeysHead.gd.uid b/addons/localization_editor/scenes/remaps/LocalizationRemapsKeysHead.gd.uid
new file mode 100644
index 0000000..d615ba0
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemapsKeysHead.gd.uid
@@ -0,0 +1 @@
+uid://cxu4x8lxt0nvs
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemapsKeysHead.tscn b/addons/localization_editor/scenes/remaps/LocalizationRemapsKeysHead.tscn
new file mode 100644
index 0000000..c9af3c6
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemapsKeysHead.tscn
@@ -0,0 +1,68 @@
+[gd_scene load_steps=6 format=3 uid="uid://b7dpjrokji2pg"]
+
+[ext_resource type="Texture2D" uid="uid://dgp35gsev3h0u" path="res://addons/localization_editor/icons/Audio.svg" id="2_6uq4h"]
+[ext_resource type="Texture2D" uid="uid://0737j0gpu23r" path="res://addons/localization_editor/icons/Image.svg" id="3_aivuy"]
+[ext_resource type="Texture2D" uid="uid://djtpd7stomej7" path="res://addons/localization_editor/icons/Video.svg" id="4_mrycj"]
+[ext_resource type="Script" path="res://addons/localization_editor/scenes/remaps/LocalizationRemapsKeysHead.gd" id="5"]
+[ext_resource type="Texture2D" uid="uid://dyxcie626p7lk" path="res://addons/localization_editor/icons/Cancel.svg" id="5_ydycg"]
+
+[node name="Head" type="MarginContainer"]
+rect_min_size = Vector2(0, 57)
+theme_override_constants/margin_right = 3
+theme_override_constants/margin_top = 3
+theme_override_constants/margin_left = 3
+theme_override_constants/margin_bottom = 0
+script = ExtResource( "5" )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="VBox" type="VBoxContainer" parent="."]
+offset_left = 3.0
+offset_top = 3.0
+offset_right = 63.0
+offset_bottom = 65.0
+
+[node name="HBoxTop" type="HBoxContainer" parent="VBox"]
+offset_right = 60.0
+offset_bottom = 29.0
+rect_min_size = Vector2(0, 24)
+
+[node name="Music" type="Button" parent="VBox/HBoxTop"]
+offset_right = 28.0
+offset_bottom = 29.0
+rect_min_size = Vector2(20, 20)
+hint_tooltip = "Audio filter"
+toggle_mode = true
+icon = ExtResource( "2_6uq4h" )
+
+[node name="Image" type="Button" parent="VBox/HBoxTop"]
+offset_left = 32.0
+offset_right = 60.0
+offset_bottom = 29.0
+rect_min_size = Vector2(20, 20)
+hint_tooltip = "Texture filter"
+toggle_mode = true
+icon = ExtResource( "3_aivuy" )
+
+[node name="HBoxBottom" type="HBoxContainer" parent="VBox"]
+offset_top = 33.0
+offset_right = 60.0
+offset_bottom = 62.0
+rect_min_size = Vector2(0, 24)
+
+[node name="Video" type="Button" parent="VBox/HBoxBottom"]
+offset_right = 28.0
+offset_bottom = 29.0
+rect_min_size = Vector2(20, 20)
+hint_tooltip = "Video filter"
+toggle_mode = true
+icon = ExtResource( "4_mrycj" )
+
+[node name="Reset" type="Button" parent="VBox/HBoxBottom"]
+offset_left = 32.0
+offset_right = 60.0
+offset_bottom = 29.0
+rect_min_size = Vector2(20, 20)
+hint_tooltip = "Reset filters"
+icon = ExtResource( "5_ydycg" )
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemapsList.gd b/addons/localization_editor/scenes/remaps/LocalizationRemapsList.gd
new file mode 100644
index 0000000..4556da0
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemapsList.gd
@@ -0,0 +1,54 @@
+# RemapsList UI for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends HBoxContainer
+
+var _locale: String
+var _data: LocalizationData
+
+@onready var _separator_ui = $Separator
+@onready var _head_ui = $VBox/Head
+@onready var _scroll_ui = $VBox/Scroll
+@onready var _remaps_ui = $VBox/Scroll/RemapsList
+
+const LocalizationRemap = preload("res://addons/localization_editor/scenes/remaps/LocalizationRemap.tscn")
+
+func set_data(locale: String, data: LocalizationData) -> void:
+ _locale = locale
+ _data = data
+ _head_ui.set_data(_locale, _data)
+ update_view()
+
+func get_locale() -> String:
+ return _locale
+
+func get_v_scroll() -> int:
+ if _scroll_ui == null:
+ return 0
+ return _scroll_ui.get_v_scroll()
+
+func set_v_scroll(value: int) -> void:
+ _scroll_ui.set_v_scroll(value)
+
+func update_view() -> void:
+ if get_index() == 0:
+ _separator_ui.hide()
+ _head_ui.set_title(LocalizationLocalesList.label_by_code(_locale))
+ _add_remaps()
+
+func _add_remaps() -> void:
+ _clear_remaps()
+ for key in _data.remapkeys_filtered():
+ for remap in key.remaps:
+ if remap.locale == _locale:
+ _add_remap(key, remap)
+
+func _clear_remaps() -> void:
+ for remap_ui in _remaps_ui.get_children():
+ _remaps_ui.remove_child(remap_ui)
+ remap_ui.queue_free()
+
+func _add_remap(key, remap) -> void:
+ var remap_ui = LocalizationRemap.instantiate()
+ _remaps_ui.add_child(remap_ui)
+ remap_ui.set_data(key, remap, _data)
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemapsList.gd.uid b/addons/localization_editor/scenes/remaps/LocalizationRemapsList.gd.uid
new file mode 100644
index 0000000..98fa56c
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemapsList.gd.uid
@@ -0,0 +1 @@
+uid://d3xv5mt01uv0l
diff --git a/addons/localization_editor/scenes/remaps/LocalizationRemapsList.tscn b/addons/localization_editor/scenes/remaps/LocalizationRemapsList.tscn
new file mode 100644
index 0000000..a002d2e
--- /dev/null
+++ b/addons/localization_editor/scenes/remaps/LocalizationRemapsList.tscn
@@ -0,0 +1,42 @@
+[gd_scene load_steps=3 format=3 uid="uid://bqdplxampikmo"]
+
+[ext_resource type="Script" path="res://addons/localization_editor/scenes/remaps/LocalizationRemapsList.gd" id="1"]
+[ext_resource type="PackedScene" path="res://addons/localization_editor/scenes/remaps/LocalizationRemapsHead.tscn" id="2"]
+
+[node name="RemapsVBox" type="HBoxContainer"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+script = ExtResource( "1" )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="Separator" type="VSeparator" parent="."]
+offset_right = 4.0
+offset_bottom = 600.0
+
+[node name="VBox" type="VBoxContainer" parent="."]
+offset_left = 8.0
+offset_right = 1024.0
+offset_bottom = 600.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+
+[node name="Head" parent="VBox" instance=ExtResource( "2" )]
+offset_right = 1016.0
+offset_bottom = 69.0
+
+[node name="Scroll" type="ScrollContainer" parent="VBox"]
+offset_top = 73.0
+offset_right = 1016.0
+offset_bottom = 600.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+
+[node name="RemapsList" type="VBoxContainer" parent="VBox/Scroll"]
+offset_right = 1016.0
+offset_bottom = 527.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
diff --git a/addons/localization_editor/scenes/translations/LocalizationTranslation.gd b/addons/localization_editor/scenes/translations/LocalizationTranslation.gd
new file mode 100644
index 0000000..d1d55f4
--- /dev/null
+++ b/addons/localization_editor/scenes/translations/LocalizationTranslation.gd
@@ -0,0 +1,49 @@
+# Translation UI for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends MarginContainer
+
+var _key
+var _locale
+var _translation
+var _data: LocalizationData
+
+var _translation_ui_style_empty: StyleBoxFlat
+
+@onready var _translation_ui = $HBox/Translation
+
+func set_data(key, translation, locale, data: LocalizationData) -> void:
+ _key = key
+ _translation = translation
+ _locale = locale
+ _data = data
+ _draw_view()
+
+func _ready() -> void:
+ _init_styles()
+ _init_connections()
+
+func _init_styles() -> void:
+ var style_box = _translation_ui.get_theme_stylebox("normal", "LineEdit")
+ _translation_ui_style_empty = style_box.duplicate()
+ _translation_ui_style_empty.set_bg_color(Color("#661c1c"))
+
+func _init_connections() -> void:
+ if not _translation_ui.is_connected("text_changed", _on_text_changed):
+ assert(_translation_ui.text_changed.connect(_on_text_changed) == OK)
+
+func _draw_view() -> void:
+ _translation_ui.text = _translation.value
+ _check_translation_ui()
+
+func _on_text_changed(new_text) -> void:
+ _translation.value = new_text
+ _check_translation_ui()
+
+func _check_translation_ui() -> void:
+ if _translation_ui.text.length() <= 0:
+ _translation_ui.add_theme_stylebox_override("normal", _translation_ui_style_empty)
+ _translation_ui.tooltip_text = "Please enter value for your translation"
+ else:
+ _translation_ui.remove_theme_stylebox_override("normal")
+ _translation_ui.tooltip_text = ""
diff --git a/addons/localization_editor/scenes/translations/LocalizationTranslation.gd.uid b/addons/localization_editor/scenes/translations/LocalizationTranslation.gd.uid
new file mode 100644
index 0000000..fd31ff2
--- /dev/null
+++ b/addons/localization_editor/scenes/translations/LocalizationTranslation.gd.uid
@@ -0,0 +1 @@
+uid://cfsaie5x0otef
diff --git a/addons/localization_editor/scenes/translations/LocalizationTranslation.tscn b/addons/localization_editor/scenes/translations/LocalizationTranslation.tscn
new file mode 100644
index 0000000..cc826d4
--- /dev/null
+++ b/addons/localization_editor/scenes/translations/LocalizationTranslation.tscn
@@ -0,0 +1,30 @@
+[gd_scene load_steps=2 format=3 uid="uid://bnkc2ox5vcdkq"]
+
+[ext_resource type="Script" path="res://addons/localization_editor/scenes/translations/LocalizationTranslation.gd" id="1"]
+
+[node name="LocalizationTranslation" type="MarginContainer"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+rect_min_size = Vector2(0, 33)
+theme_override_constants/margin_right = 3
+theme_override_constants/margin_left = 3
+theme_override_constants/margin_bottom = 3
+script = ExtResource( "1" )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="HBox" type="HBoxContainer" parent="."]
+offset_left = 3.0
+offset_right = 1021.0
+offset_bottom = 597.0
+rect_min_size = Vector2(0, 24)
+size_flags_horizontal = 3
+size_flags_vertical = 3
+
+[node name="Translation" type="LineEdit" parent="HBox"]
+offset_right = 1018.0
+offset_bottom = 597.0
+rect_min_size = Vector2(0, 24)
+size_flags_horizontal = 3
+size_flags_vertical = 3
diff --git a/addons/localization_editor/scenes/translations/LocalizationTranslations.gd b/addons/localization_editor/scenes/translations/LocalizationTranslations.gd
new file mode 100644
index 0000000..3859899
--- /dev/null
+++ b/addons/localization_editor/scenes/translations/LocalizationTranslations.gd
@@ -0,0 +1,78 @@
+# Translations UI for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends Panel
+
+var _data: LocalizationData
+
+@onready var _translations_ui = $Scroll/Translations
+
+const LocalizationTranslationsList = preload("res://addons/localization_editor/scenes/translations/LocalizationTranslationsList.tscn")
+
+func set_data(data: LocalizationData) -> void:
+ _data = data
+ _init_connections()
+ _update_view()
+
+func _init_connections() -> void:
+ if not _data.is_connected("data_changed", _update_view):
+ assert(_data.data_changed.connect(_update_view) == OK)
+
+func _update_view() -> void:
+ _clear_ui_translations()
+ _add_ui_translations()
+ _view_ui_translations()
+ _update_ui_translations()
+
+func _clear_ui_translations() -> void:
+ var translations_ui = _translations_ui.get_children()
+ for translation_ui in translations_ui:
+ if translation_ui.has_method("get_locale"):
+ var locale = translation_ui.get_locale()
+ if _data.find_locale(locale) == null:
+ translations_ui.erase(translation_ui)
+ translation_ui.queue_free()
+
+func _add_ui_translations() -> void:
+ var locales = _data.locales()
+ for locale in locales:
+ if not _ui_translation_exists(locale):
+ _add_ui_translation(locale)
+
+func _ui_translation_exists(locale) -> bool:
+ for translation_ui in _translations_ui.get_children():
+ if translation_ui.has_method("get_locale"):
+ if translation_ui.get_locale() == locale:
+ return true
+ return false
+
+func _add_ui_translation(locale: String) -> void:
+ var ui_translation = LocalizationTranslationsList.instantiate()
+ _translations_ui.add_child(ui_translation)
+ ui_translation.set_data(locale, _data)
+
+func _view_ui_translations() -> void:
+ for translation_ui in _translations_ui.get_children():
+ if translation_ui.has_method("get_locale"):
+ var locale = translation_ui.get_locale()
+ var serarator_ui = _separator_after_translation_ui(translation_ui)
+ if _data.is_locale_visible(locale):
+ translation_ui.show()
+ if serarator_ui != null:
+ serarator_ui.show()
+ else:
+ translation_ui.hide()
+ if serarator_ui != null:
+ serarator_ui.hide()
+
+func _separator_after_translation_ui(translation_ui: Node) -> Node:
+ var index = translation_ui.get_index()
+ var count = _translations_ui.get_child_count()
+ if index + 1 < count:
+ return _translations_ui.get_child(index + 1)
+ return null
+
+func _update_ui_translations() -> void:
+ for translation_ui in _translations_ui.get_children():
+ if translation_ui.has_method("update_view"):
+ translation_ui.update_view()
diff --git a/addons/localization_editor/scenes/translations/LocalizationTranslations.gd.uid b/addons/localization_editor/scenes/translations/LocalizationTranslations.gd.uid
new file mode 100644
index 0000000..0712de9
--- /dev/null
+++ b/addons/localization_editor/scenes/translations/LocalizationTranslations.gd.uid
@@ -0,0 +1 @@
+uid://c4l5sfsibw527
diff --git a/addons/localization_editor/scenes/translations/LocalizationTranslations.tscn b/addons/localization_editor/scenes/translations/LocalizationTranslations.tscn
new file mode 100644
index 0000000..f0d30c8
--- /dev/null
+++ b/addons/localization_editor/scenes/translations/LocalizationTranslations.tscn
@@ -0,0 +1,29 @@
+[gd_scene load_steps=2 format=3 uid="uid://dfykqid37nnvl"]
+
+[ext_resource type="Script" path="res://addons/localization_editor/scenes/translations/LocalizationTranslations.gd" id="1"]
+
+[node name="LocalizationTranslations" type="Panel"]
+size_flags_horizontal = 3
+size_flags_vertical = 3
+script = ExtResource( "1" )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="Scroll" type="ScrollContainer" parent="."]
+anchor_right = 1.0
+anchor_bottom = 1.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="Translations" type="HBoxContainer" parent="Scroll"]
+offset_right = 12.0
+offset_bottom = 12.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+__meta__ = {
+"_edit_use_anchors_": false
+}
diff --git a/addons/localization_editor/scenes/translations/LocalizationTranslationsEditorView.gd b/addons/localization_editor/scenes/translations/LocalizationTranslationsEditorView.gd
new file mode 100644
index 0000000..23aaa50
--- /dev/null
+++ b/addons/localization_editor/scenes/translations/LocalizationTranslationsEditorView.gd
@@ -0,0 +1,68 @@
+# Translations view for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends VBoxContainer
+
+var _data: LocalizationData
+var _split_viewport_size = 0
+var _scroll_position = 0
+
+@onready var _split_ui = $Split
+@onready var _keys_ui = $Split/Keys
+@onready var _translations_ui = $Split/Translations
+@onready var _translations_list_ui = $Split/Translations/Scroll/Translations
+
+func set_data(data: LocalizationData) -> void:
+ _data = data
+ _keys_ui.set_data(data)
+ _translations_ui.set_data(data)
+ _init_connections()
+
+func _init_connections() -> void:
+ if not _split_ui.is_connected("dragged", _on_split_dragged):
+ assert(_split_ui.dragged.connect(_on_split_dragged) == OK)
+
+func _process(delta):
+ if _split_viewport_size != size.x:
+ _split_viewport_size = size.x
+ _init_split_offset()
+ _update_scrolls()
+
+func _init_split_offset() -> void:
+ var offset = 350
+ if _data:
+ offset = _data.setting_translations_split_offset()
+ _split_ui.set_split_offset(-size.x / 2 + offset)
+
+func _on_split_dragged(offset: int) -> void:
+ if _data != null:
+ var value = -(-size.x / 2 - offset)
+ _data.setting_translations_split_offset_put(value)
+
+# Workaround for https://github.com/godotengine/godot/issues/22936
+func _update_scrolls() -> void:
+ var sc = _new_scrolls_position()
+ if _scroll_position != sc:
+ _scroll_position = sc
+ _keys_ui.set_v_scroll(_scroll_position)
+ for child in _translations_list_ui.get_children():
+ if child.has_method("set_v_scroll"):
+ child.set_v_scroll(_scroll_position)
+
+func _new_scrolls_position() -> int:
+ if _keys_ui == null:
+ return 0
+ var v_1 = [_keys_ui.get_v_scroll()]
+ var v_2 = []
+ for child in _translations_list_ui.get_children():
+ if child.has_method("get_v_scroll"):
+ var v_child = child.get_v_scroll()
+ if v_1[0] == v_child:
+ v_1.append(v_child)
+ else:
+ v_2.append(v_child)
+ if v_2.size() == 0:
+ return v_1[0]
+ if v_1.size() == 1:
+ return v_1[0]
+ return v_2[0]
diff --git a/addons/localization_editor/scenes/translations/LocalizationTranslationsEditorView.gd.uid b/addons/localization_editor/scenes/translations/LocalizationTranslationsEditorView.gd.uid
new file mode 100644
index 0000000..e32f8df
--- /dev/null
+++ b/addons/localization_editor/scenes/translations/LocalizationTranslationsEditorView.gd.uid
@@ -0,0 +1 @@
+uid://80r1f854w4ml
diff --git a/addons/localization_editor/scenes/translations/LocalizationTranslationsEditorView.tscn b/addons/localization_editor/scenes/translations/LocalizationTranslationsEditorView.tscn
new file mode 100644
index 0000000..c7e6fe9
--- /dev/null
+++ b/addons/localization_editor/scenes/translations/LocalizationTranslationsEditorView.tscn
@@ -0,0 +1,28 @@
+[gd_scene load_steps=4 format=3 uid="uid://bchlj4dnjh8j5"]
+
+[ext_resource type="PackedScene" uid="uid://dfykqid37nnvl" path="res://addons/localization_editor/scenes/translations/LocalizationTranslations.tscn" id="1"]
+[ext_resource type="PackedScene" path="res://addons/localization_editor/scenes/translations/LocalizationTranslationsKeys.tscn" id="2"]
+[ext_resource type="Script" path="res://addons/localization_editor/scenes/translations/LocalizationTranslationsEditorView.gd" id="3"]
+
+[node name="LocalizationTranslationsEditorView" type="VBoxContainer"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+script = ExtResource("3")
+
+[node name="Split" type="HSplitContainer" parent="."]
+offset_right = 1920.0
+offset_bottom = 1080.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+split_offset = -610
+
+[node name="Keys" parent="Split" instance=ExtResource("2")]
+offset_right = 344.0
+offset_bottom = 1080.0
+
+[node name="Translations" parent="Split" instance=ExtResource("1")]
+offset_left = 356.0
+offset_right = 1920.0
+offset_bottom = 1080.0
diff --git a/addons/localization_editor/scenes/translations/LocalizationTranslationsHead.gd b/addons/localization_editor/scenes/translations/LocalizationTranslationsHead.gd
new file mode 100644
index 0000000..b00a5e3
--- /dev/null
+++ b/addons/localization_editor/scenes/translations/LocalizationTranslationsHead.gd
@@ -0,0 +1,33 @@
+# Translations head UI for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends VBoxContainer
+
+var _type: String
+var _data: LocalizationData
+
+var _filter = ""
+
+@onready var _title_ui = $TitleMargin/HBox/Title
+@onready var _filter_ui = $FilterMargin/HBox/Filter
+
+func set_data(type: String, data: LocalizationData):
+ _type = type
+ _data = data
+ _filter = _data.data_filter_by_type(_type)
+ _init_connections()
+ _draw_view()
+
+func _init_connections() -> void:
+ if not _filter_ui.is_connected("text_changed", _filter_changed_action):
+ assert(_filter_ui.text_changed.connect(_filter_changed_action) == OK)
+
+func _draw_view() -> void:
+ _filter_ui.text = _filter
+
+func _filter_changed_action(filter) -> void:
+ _filter = filter
+ _data.data_filter_put(_type, _filter)
+
+func set_title(text: String) -> void:
+ _title_ui.text = text
diff --git a/addons/localization_editor/scenes/translations/LocalizationTranslationsHead.gd.uid b/addons/localization_editor/scenes/translations/LocalizationTranslationsHead.gd.uid
new file mode 100644
index 0000000..08cc187
--- /dev/null
+++ b/addons/localization_editor/scenes/translations/LocalizationTranslationsHead.gd.uid
@@ -0,0 +1 @@
+uid://dsx7p1egydm77
diff --git a/addons/localization_editor/scenes/translations/LocalizationTranslationsHead.tscn b/addons/localization_editor/scenes/translations/LocalizationTranslationsHead.tscn
new file mode 100644
index 0000000..cfe220d
--- /dev/null
+++ b/addons/localization_editor/scenes/translations/LocalizationTranslationsHead.tscn
@@ -0,0 +1,61 @@
+[gd_scene load_steps=2 format=2]
+
+[ext_resource path="res://addons/localization_editor/scenes/translations/LocalizationTranslationsHead.gd" type="Script" id=1]
+
+[node name="LocalizationHead" type="VBoxContainer"]
+margin_right = 344.0
+margin_bottom = 57.0
+size_flags_horizontal = 3
+script = ExtResource( 1 )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="TitleMargin" type="MarginContainer" parent="."]
+margin_right = 344.0
+margin_bottom = 26.0
+rect_min_size = Vector2( 0, 26 )
+size_flags_horizontal = 3
+size_flags_vertical = 0
+custom_constants/margin_right = 3
+custom_constants/margin_top = 3
+custom_constants/margin_left = 3
+custom_constants/margin_bottom = 0
+
+[node name="HBox" type="HBoxContainer" parent="TitleMargin"]
+margin_left = 3.0
+margin_top = 3.0
+margin_right = 341.0
+margin_bottom = 26.0
+
+[node name="Title" type="Label" parent="TitleMargin/HBox"]
+margin_top = 4.0
+margin_right = 338.0
+margin_bottom = 18.0
+size_flags_horizontal = 3
+text = "KEYS"
+align = 1
+
+[node name="FilterMargin" type="MarginContainer" parent="."]
+margin_top = 30.0
+margin_right = 344.0
+margin_bottom = 57.0
+rect_min_size = Vector2( 0, 26 )
+size_flags_horizontal = 3
+size_flags_vertical = 0
+custom_constants/margin_right = 3
+custom_constants/margin_top = 3
+custom_constants/margin_left = 3
+custom_constants/margin_bottom = 0
+
+[node name="HBox" type="HBoxContainer" parent="FilterMargin"]
+margin_left = 3.0
+margin_top = 3.0
+margin_right = 341.0
+margin_bottom = 27.0
+
+[node name="Filter" type="LineEdit" parent="FilterMargin/HBox"]
+margin_right = 338.0
+margin_bottom = 24.0
+size_flags_horizontal = 3
+placeholder_text = "Filter"
diff --git a/addons/localization_editor/scenes/translations/LocalizationTranslationsKey.gd b/addons/localization_editor/scenes/translations/LocalizationTranslationsKey.gd
new file mode 100644
index 0000000..bd4f0b8
--- /dev/null
+++ b/addons/localization_editor/scenes/translations/LocalizationTranslationsKey.gd
@@ -0,0 +1,73 @@
+# Translations key UI for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends MarginContainer
+
+var _key
+var _data: LocalizationData
+
+var _key_ui_style_empty: StyleBoxFlat
+var _key_ui_style_double: StyleBoxFlat
+
+@onready var _add_ui = $HBoxContainer/Add as Button
+@onready var _del_ui = $HBoxContainer/Del as Button
+@onready var _key_ui = $HBoxContainer/Key as LineEdit
+
+func key():
+ return _key
+
+func set_data(key, data: LocalizationData):
+ _key = key
+ _data = data
+ _init_styles()
+ _init_connections()
+ _draw_view()
+
+func _init_styles() -> void:
+ var style_box = _key_ui.get_theme_stylebox("normal", "LineEdit")
+ _key_ui_style_empty = style_box.duplicate()
+ _key_ui_style_empty.set_bg_color(Color("#661c1c"))
+ _key_ui_style_double = style_box.duplicate()
+ _key_ui_style_double.set_bg_color(Color("#192e59"))
+
+func _init_connections() -> void:
+ if not _add_ui.is_connected("pressed", _add_pressed):
+ assert(_add_ui.connect("pressed", _add_pressed) == OK)
+ if not _del_ui.is_connected("pressed", _del_pressed):
+ assert(_del_ui.connect("pressed", _del_pressed) == OK)
+ if not _key_ui.is_connected("text_changed", _key_value_changed):
+ assert(_key_ui.text_changed.connect(_key_value_changed) == OK)
+ if not _data.is_connected("data_key_value_changed", _check_key_ui):
+ assert(_data.connect("data_key_value_changed", _check_key_ui) == OK)
+
+func _draw_view() -> void:
+ _key_ui.text = _key.value
+ _check_key_ui()
+ _update_del_view()
+
+func _update_del_view():
+ _del_ui.disabled = _data.keys().size() == 1
+
+func _add_pressed() -> void:
+ _data.add_key_new_after_uuid(_key.uuid)
+
+func _del_pressed() -> void:
+ _data.del_key(_key.uuid)
+
+func _key_value_changed(key_value) -> void:
+ _data.key_value_change(_key, key_value)
+
+func _check_key_ui_text() -> void:
+ if _key_ui.text != _key.value:
+ _key_ui.text = _key.value
+
+func _check_key_ui() -> void:
+ _key_ui.remove_theme_stylebox_override("normal")
+ if _key_ui.text.length() <= 0:
+ _key_ui.add_theme_stylebox_override("normal", _key_ui_style_empty)
+ _key_ui.tooltip_text = "Please enter a key name"
+ elif _data.is_key_value_double(_key_ui.text):
+ _key_ui.tooltip_text = "Keyname already exists"
+ _key_ui.add_theme_stylebox_override("normal", _key_ui_style_double)
+ else:
+ _key_ui.tooltip_text = ""
diff --git a/addons/localization_editor/scenes/translations/LocalizationTranslationsKey.gd.uid b/addons/localization_editor/scenes/translations/LocalizationTranslationsKey.gd.uid
new file mode 100644
index 0000000..81002f9
--- /dev/null
+++ b/addons/localization_editor/scenes/translations/LocalizationTranslationsKey.gd.uid
@@ -0,0 +1 @@
+uid://bwn2f1jmnte55
diff --git a/addons/localization_editor/scenes/translations/LocalizationTranslationsKey.tscn b/addons/localization_editor/scenes/translations/LocalizationTranslationsKey.tscn
new file mode 100644
index 0000000..8cb81d1
--- /dev/null
+++ b/addons/localization_editor/scenes/translations/LocalizationTranslationsKey.tscn
@@ -0,0 +1,52 @@
+[gd_scene load_steps=4 format=3 uid="uid://cwkkxosymxglr"]
+
+[ext_resource type="Texture2D" uid="uid://cbf54t7aak7dy" path="res://addons/localization_editor/icons/Add.svg" id="2_l10x2"]
+[ext_resource type="Script" path="res://addons/localization_editor/scenes/translations/LocalizationTranslationsKey.gd" id="3"]
+[ext_resource type="Texture2D" uid="uid://caiapkr8oaqe6" path="res://addons/localization_editor/icons/Del.svg" id="3_c34cs"]
+
+[node name="MarginContainer" type="MarginContainer"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+rect_min_size = Vector2(0, 33)
+size_flags_horizontal = 3
+size_flags_vertical = 0
+theme_override_constants/margin_right = 3
+theme_override_constants/margin_left = 3
+theme_override_constants/margin_bottom = 3
+script = ExtResource( "3" )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="HBoxContainer" type="HBoxContainer" parent="."]
+offset_left = 3.0
+offset_right = 1021.0
+offset_bottom = 597.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+
+[node name="Add" type="Button" parent="HBoxContainer"]
+offset_right = 28.0
+offset_bottom = 597.0
+rect_min_size = Vector2(20, 20)
+hint_tooltip = "Add translation"
+size_flags_vertical = 3
+icon = ExtResource( "2_l10x2" )
+icon_alignment = 1
+
+[node name="Del" type="Button" parent="HBoxContainer"]
+offset_left = 32.0
+offset_right = 60.0
+offset_bottom = 597.0
+rect_min_size = Vector2(20, 20)
+hint_tooltip = "Del translation"
+size_flags_vertical = 3
+icon = ExtResource( "3_c34cs" )
+
+[node name="Key" type="LineEdit" parent="HBoxContainer"]
+offset_left = 64.0
+offset_right = 1018.0
+offset_bottom = 597.0
+rect_min_size = Vector2(0, 24)
+size_flags_horizontal = 3
+size_flags_vertical = 3
diff --git a/addons/localization_editor/scenes/translations/LocalizationTranslationsKeys.gd b/addons/localization_editor/scenes/translations/LocalizationTranslationsKeys.gd
new file mode 100644
index 0000000..257bd9a
--- /dev/null
+++ b/addons/localization_editor/scenes/translations/LocalizationTranslationsKeys.gd
@@ -0,0 +1,46 @@
+# Translations keys UI for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends Panel
+
+var _data: LocalizationData
+
+@onready var _head_ui = $VBox/Head
+@onready var _scroll_ui = $VBox/Scroll
+@onready var _keys_ui = $VBox/Scroll/Keys
+
+const LocalizationKey = preload("res://addons/localization_editor/scenes/translations/LocalizationTranslationsKey.tscn")
+
+func get_v_scroll() -> int:
+ return _scroll_ui.get_v_scroll()
+
+func set_v_scroll(value: int) -> void:
+ _scroll_ui.set_v_scroll(value)
+
+func set_data(data: LocalizationData) -> void:
+ _data = data
+ _head_ui.set_data("keys", _data)
+ _init_connections()
+ _update_view()
+
+func _init_connections() -> void:
+ if not _data.is_connected("data_changed", _update_view):
+ assert(_data.data_changed.connect(_update_view) == OK)
+
+func _update_view() -> void:
+ _clear_view()
+ _draw_view()
+
+func _clear_view() -> void:
+ for key_ui in _keys_ui.get_children():
+ _keys_ui.remove_child(key_ui)
+ key_ui.queue_free()
+
+func _draw_view() -> void:
+ for key in _data.keys_filtered():
+ _draw_key(key)
+
+func _draw_key(key) -> void:
+ var key_ui = LocalizationKey.instantiate()
+ _keys_ui.add_child(key_ui)
+ key_ui.set_data(key, _data)
diff --git a/addons/localization_editor/scenes/translations/LocalizationTranslationsKeys.gd.uid b/addons/localization_editor/scenes/translations/LocalizationTranslationsKeys.gd.uid
new file mode 100644
index 0000000..67b8668
--- /dev/null
+++ b/addons/localization_editor/scenes/translations/LocalizationTranslationsKeys.gd.uid
@@ -0,0 +1 @@
+uid://bbm2ytsohxag8
diff --git a/addons/localization_editor/scenes/translations/LocalizationTranslationsKeys.tscn b/addons/localization_editor/scenes/translations/LocalizationTranslationsKeys.tscn
new file mode 100644
index 0000000..e19ede5
--- /dev/null
+++ b/addons/localization_editor/scenes/translations/LocalizationTranslationsKeys.tscn
@@ -0,0 +1,30 @@
+[gd_scene load_steps=3 format=3 uid="uid://gmpsh88x1lgp"]
+
+[ext_resource type="PackedScene" path="res://addons/localization_editor/scenes/translations/LocalizationTranslationsHead.tscn" id="1"]
+[ext_resource type="Script" path="res://addons/localization_editor/scenes/translations/LocalizationTranslationsKeys.gd" id="2"]
+
+[node name="LocalizationTranslationsKeys" type="Panel"]
+size_flags_horizontal = 3
+size_flags_vertical = 3
+script = ExtResource("2")
+
+[node name="VBox" type="VBoxContainer" parent="."]
+anchor_right = 1.0
+anchor_bottom = 1.0
+size_flags_horizontal = 3
+
+[node name="Head" parent="VBox" instance=ExtResource("1")]
+offset_right = 67.0
+offset_bottom = 61.0
+
+[node name="Scroll" type="ScrollContainer" parent="VBox"]
+offset_top = 65.0
+offset_right = 67.0
+offset_bottom = 65.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+
+[node name="Keys" type="VBoxContainer" parent="VBox/Scroll"]
+offset_right = 67.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
diff --git a/addons/localization_editor/scenes/translations/LocalizationTranslationsList.gd b/addons/localization_editor/scenes/translations/LocalizationTranslationsList.gd
new file mode 100644
index 0000000..c12f1c1
--- /dev/null
+++ b/addons/localization_editor/scenes/translations/LocalizationTranslationsList.gd
@@ -0,0 +1,56 @@
+# Translations list UI for LocalizationEditor : MIT License
+# @author Vladimir Petrenko
+@tool
+extends HBoxContainer
+
+var _locale: String
+var _data: LocalizationData
+
+@onready var _separator_ui = $Separator
+@onready var _head_ui = $VBox/Head
+@onready var _scroll_ui = $VBox/Scroll
+@onready var _translations_ui = $VBox/Scroll/TranslationsList
+
+const LocalizationTranslation = preload("res://addons/localization_editor/scenes/translations/LocalizationTranslation.tscn")
+
+func set_data(locale: String, data: LocalizationData) -> void:
+ _locale = locale
+ _data = data
+ _head_ui.set_data(_locale, _data)
+ update_view()
+
+func get_locale() -> String:
+ return _locale
+
+func get_v_scroll() -> int:
+ if _scroll_ui == null:
+ return 0
+ return _scroll_ui.get_v_scroll()
+
+func set_v_scroll(value: int) -> void:
+ _scroll_ui.set_v_scroll(value)
+
+func update_view() -> void:
+ if get_index() == 0:
+ _separator_ui.hide()
+ _head_ui.set_title(LocalizationLocalesList.label_by_code(_locale))
+ _add_translations()
+
+func _add_translations() -> void:
+ _clear_translations()
+ for key in _data.keys_filtered():
+ for translation in key.translations:
+ if translation.locale == _locale:
+ _add_translation(key, translation)
+
+func _clear_translations() -> void:
+ for translation_ui in _translations_ui.get_children():
+ _translations_ui.remove_child(translation_ui)
+ translation_ui.queue_free()
+
+func _add_translation(key, translation) -> void:
+ var translation_ui = LocalizationTranslation.instantiate()
+ _translations_ui.add_child(translation_ui)
+ translation_ui.set_data(key, translation, _locale, _data)
+
+
diff --git a/addons/localization_editor/scenes/translations/LocalizationTranslationsList.gd.uid b/addons/localization_editor/scenes/translations/LocalizationTranslationsList.gd.uid
new file mode 100644
index 0000000..b8dd584
--- /dev/null
+++ b/addons/localization_editor/scenes/translations/LocalizationTranslationsList.gd.uid
@@ -0,0 +1 @@
+uid://cu5pu2j20libw
diff --git a/addons/localization_editor/scenes/translations/LocalizationTranslationsList.tscn b/addons/localization_editor/scenes/translations/LocalizationTranslationsList.tscn
new file mode 100644
index 0000000..3bb21f8
--- /dev/null
+++ b/addons/localization_editor/scenes/translations/LocalizationTranslationsList.tscn
@@ -0,0 +1,42 @@
+[gd_scene load_steps=3 format=2]
+
+[ext_resource path="res://addons/localization_editor/scenes/translations/LocalizationTranslationsHead.tscn" type="PackedScene" id=1]
+[ext_resource path="res://addons/localization_editor/scenes/translations/LocalizationTranslationsList.gd" type="Script" id=2]
+
+[node name="LocalizationTranslationsList" type="HBoxContainer"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+rect_min_size = Vector2( 250, 0 )
+size_flags_horizontal = 3
+size_flags_vertical = 3
+script = ExtResource( 2 )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="Separator" type="VSeparator" parent="."]
+margin_right = 4.0
+margin_bottom = 600.0
+
+[node name="VBox" type="VBoxContainer" parent="."]
+margin_left = 8.0
+margin_right = 1024.0
+margin_bottom = 600.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+
+[node name="Head" parent="VBox" instance=ExtResource( 1 )]
+margin_right = 1016.0
+
+[node name="Scroll" type="ScrollContainer" parent="VBox"]
+margin_top = 61.0
+margin_right = 1016.0
+margin_bottom = 600.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+
+[node name="TranslationsList" type="VBoxContainer" parent="VBox/Scroll"]
+margin_right = 1016.0
+margin_bottom = 539.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
diff --git a/addons/localization_editor/uuid/.gitattributes b/addons/localization_editor/uuid/.gitattributes
new file mode 100644
index 0000000..db2e4ff
--- /dev/null
+++ b/addons/localization_editor/uuid/.gitattributes
@@ -0,0 +1 @@
+*.gd linguist-language=GDScript
diff --git a/addons/localization_editor/uuid/LICENSE b/addons/localization_editor/uuid/LICENSE
new file mode 100644
index 0000000..7525f29
--- /dev/null
+++ b/addons/localization_editor/uuid/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2018 Xavier Sellier
+
+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/addons/localization_editor/uuid/README.md b/addons/localization_editor/uuid/README.md
new file mode 100644
index 0000000..12c8e0a
--- /dev/null
+++ b/addons/localization_editor/uuid/README.md
@@ -0,0 +1,14 @@
+uuid - static uuid generator for Godot Engine
+===========================================
+
+The *uuid* class is a GDScript 'static' class that provides a unique identifier generation for [Godot Engine](https://godotengine.org).
+
+Usage
+-----
+
+Copy the `uuid.gd` file in your project folder, and preload it using a constant.
+
+Licensing
+---------
+
+MIT (See license file for more informations)
diff --git a/addons/localization_editor/uuid/logo.png b/addons/localization_editor/uuid/logo.png
new file mode 100644
index 0000000..443a58b
Binary files /dev/null and b/addons/localization_editor/uuid/logo.png differ
diff --git a/addons/localization_editor/uuid/logo.png.import b/addons/localization_editor/uuid/logo.png.import
new file mode 100644
index 0000000..afd2d60
--- /dev/null
+++ b/addons/localization_editor/uuid/logo.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://krygx8vsji2q"
+path="res://.godot/imported/logo.png-ab394230b0f418030caf3fee144227ba.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/localization_editor/uuid/logo.png"
+dest_files=["res://.godot/imported/logo.png-ab394230b0f418030caf3fee144227ba.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/addons/localization_editor/uuid/logo.svg b/addons/localization_editor/uuid/logo.svg
new file mode 100644
index 0000000..fac99d1
--- /dev/null
+++ b/addons/localization_editor/uuid/logo.svg
@@ -0,0 +1,90 @@
+
+
+
+
diff --git a/addons/localization_editor/uuid/logo.svg.import b/addons/localization_editor/uuid/logo.svg.import
new file mode 100644
index 0000000..6904df6
--- /dev/null
+++ b/addons/localization_editor/uuid/logo.svg.import
@@ -0,0 +1,37 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://dndwvnn0a53sq"
+path="res://.godot/imported/logo.svg-d954970adbcf78d2021b10b3f28c7092.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/localization_editor/uuid/logo.svg"
+dest_files=["res://.godot/imported/logo.svg-d954970adbcf78d2021b10b3f28c7092.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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=false
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/localization_editor/uuid/uuid.gd b/addons/localization_editor/uuid/uuid.gd
new file mode 100644
index 0000000..aae218d
--- /dev/null
+++ b/addons/localization_editor/uuid/uuid.gd
@@ -0,0 +1,29 @@
+# TODO Remove in future
+# https://github.com/godotengine/godot/pull/42408
+extends Node
+class_name UUID
+
+static func getRandomInt(max_value):
+ randomize()
+ return randi() % max_value
+
+static func randomBytes(n):
+ var r = []
+ for index in range(0, n):
+ r.append(getRandomInt(256))
+ return r
+
+static func uuidbin():
+ var b = randomBytes(16)
+ b[6] = (b[6] & 0x0f) | 0x40
+ b[8] = (b[8] & 0x3f) | 0x80
+ return b
+
+static func v4():
+ var b = uuidbin()
+ var low = '%02x%02x%02x%02x' % [b[0], b[1], b[2], b[3]]
+ var mid = '%02x%02x' % [b[4], b[5]]
+ var hi = '%02x%02x' % [b[6], b[7]]
+ var clock = '%02x%02x' % [b[8], b[9]]
+ var node = '%02x%02x%02x%02x%02x%02x' % [b[10], b[11], b[12], b[13], b[14], b[15]]
+ return '%s-%s-%s-%s-%s' % [low, mid, hi, clock, node]
diff --git a/addons/localization_editor/uuid/uuid.gd.uid b/addons/localization_editor/uuid/uuid.gd.uid
new file mode 100644
index 0000000..f76baa4
--- /dev/null
+++ b/addons/localization_editor/uuid/uuid.gd.uid
@@ -0,0 +1 @@
+uid://bsir2jtil5q57
diff --git a/addons/script-ide/LICENSE b/addons/script-ide/LICENSE
new file mode 100644
index 0000000..ffc9cf2
--- /dev/null
+++ b/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/addons/script-ide/README.md b/addons/script-ide/README.md
new file mode 100644
index 0000000..5cfa4cb
--- /dev/null
+++ b/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/addons/script-ide/icon/class.svg b/addons/script-ide/icon/class.svg
new file mode 100644
index 0000000..12f44f7
--- /dev/null
+++ b/addons/script-ide/icon/class.svg
@@ -0,0 +1 @@
+
diff --git a/addons/script-ide/icon/class.svg.import b/addons/script-ide/icon/class.svg.import
new file mode 100644
index 0000000..4ff6f00
--- /dev/null
+++ b/addons/script-ide/icon/class.svg.import
@@ -0,0 +1,38 @@
+[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/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=false
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/fix_alpha_border=true
+process/premult_alpha=false
+process/normal_map_invert_y=false
+process/hdr_as_srgb=false
+process/hdr_clamp_exposure=false
+process/size_limit=0
+detect_3d/compress_to=1
+svg/scale=1.0
+editor/scale_with_editor_scale=true
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/script-ide/icon/constant.svg b/addons/script-ide/icon/constant.svg
new file mode 100644
index 0000000..8be4457
--- /dev/null
+++ b/addons/script-ide/icon/constant.svg
@@ -0,0 +1 @@
+
diff --git a/addons/script-ide/icon/constant.svg.import b/addons/script-ide/icon/constant.svg.import
new file mode 100644
index 0000000..2c2e17a
--- /dev/null
+++ b/addons/script-ide/icon/constant.svg.import
@@ -0,0 +1,38 @@
+[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/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=false
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/fix_alpha_border=true
+process/premult_alpha=false
+process/normal_map_invert_y=false
+process/hdr_as_srgb=false
+process/hdr_clamp_exposure=false
+process/size_limit=0
+detect_3d/compress_to=1
+svg/scale=1.0
+editor/scale_with_editor_scale=true
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/script-ide/icon/engine_func.svg b/addons/script-ide/icon/engine_func.svg
new file mode 100644
index 0000000..dee80a2
--- /dev/null
+++ b/addons/script-ide/icon/engine_func.svg
@@ -0,0 +1 @@
+
diff --git a/addons/script-ide/icon/engine_func.svg.import b/addons/script-ide/icon/engine_func.svg.import
new file mode 100644
index 0000000..fc9a323
--- /dev/null
+++ b/addons/script-ide/icon/engine_func.svg.import
@@ -0,0 +1,38 @@
+[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/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=false
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/fix_alpha_border=true
+process/premult_alpha=false
+process/normal_map_invert_y=false
+process/hdr_as_srgb=false
+process/hdr_clamp_exposure=false
+process/size_limit=0
+detect_3d/compress_to=1
+svg/scale=1.0
+editor/scale_with_editor_scale=true
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/script-ide/icon/export.svg b/addons/script-ide/icon/export.svg
new file mode 100644
index 0000000..a8e8721
--- /dev/null
+++ b/addons/script-ide/icon/export.svg
@@ -0,0 +1 @@
+
diff --git a/addons/script-ide/icon/export.svg.import b/addons/script-ide/icon/export.svg.import
new file mode 100644
index 0000000..bb844d6
--- /dev/null
+++ b/addons/script-ide/icon/export.svg.import
@@ -0,0 +1,38 @@
+[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/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=false
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/fix_alpha_border=true
+process/premult_alpha=false
+process/normal_map_invert_y=false
+process/hdr_as_srgb=false
+process/hdr_clamp_exposure=false
+process/size_limit=0
+detect_3d/compress_to=1
+svg/scale=1.0
+editor/scale_with_editor_scale=true
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/script-ide/icon/func.svg b/addons/script-ide/icon/func.svg
new file mode 100644
index 0000000..5388596
--- /dev/null
+++ b/addons/script-ide/icon/func.svg
@@ -0,0 +1 @@
+
diff --git a/addons/script-ide/icon/func.svg.import b/addons/script-ide/icon/func.svg.import
new file mode 100644
index 0000000..30cf4ff
--- /dev/null
+++ b/addons/script-ide/icon/func.svg.import
@@ -0,0 +1,38 @@
+[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/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=false
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/fix_alpha_border=true
+process/premult_alpha=false
+process/normal_map_invert_y=false
+process/hdr_as_srgb=false
+process/hdr_clamp_exposure=false
+process/size_limit=0
+detect_3d/compress_to=1
+svg/scale=1.0
+editor/scale_with_editor_scale=true
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/script-ide/icon/func_get.svg b/addons/script-ide/icon/func_get.svg
new file mode 100644
index 0000000..2fc6857
--- /dev/null
+++ b/addons/script-ide/icon/func_get.svg
@@ -0,0 +1 @@
+
diff --git a/addons/script-ide/icon/func_get.svg.import b/addons/script-ide/icon/func_get.svg.import
new file mode 100644
index 0000000..3c90423
--- /dev/null
+++ b/addons/script-ide/icon/func_get.svg.import
@@ -0,0 +1,38 @@
+[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/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=false
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/fix_alpha_border=true
+process/premult_alpha=false
+process/normal_map_invert_y=false
+process/hdr_as_srgb=false
+process/hdr_clamp_exposure=false
+process/size_limit=0
+detect_3d/compress_to=1
+svg/scale=1.0
+editor/scale_with_editor_scale=true
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/script-ide/icon/func_set.svg b/addons/script-ide/icon/func_set.svg
new file mode 100644
index 0000000..d4613a3
--- /dev/null
+++ b/addons/script-ide/icon/func_set.svg
@@ -0,0 +1 @@
+
diff --git a/addons/script-ide/icon/func_set.svg.import b/addons/script-ide/icon/func_set.svg.import
new file mode 100644
index 0000000..8063f5b
--- /dev/null
+++ b/addons/script-ide/icon/func_set.svg.import
@@ -0,0 +1,38 @@
+[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/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=false
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/fix_alpha_border=true
+process/premult_alpha=false
+process/normal_map_invert_y=false
+process/hdr_as_srgb=false
+process/hdr_clamp_exposure=false
+process/size_limit=0
+detect_3d/compress_to=1
+svg/scale=1.0
+editor/scale_with_editor_scale=true
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/script-ide/icon/property.svg b/addons/script-ide/icon/property.svg
new file mode 100644
index 0000000..144cda9
--- /dev/null
+++ b/addons/script-ide/icon/property.svg
@@ -0,0 +1 @@
+
diff --git a/addons/script-ide/icon/property.svg.import b/addons/script-ide/icon/property.svg.import
new file mode 100644
index 0000000..c9156a5
--- /dev/null
+++ b/addons/script-ide/icon/property.svg.import
@@ -0,0 +1,38 @@
+[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/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=false
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/fix_alpha_border=true
+process/premult_alpha=false
+process/normal_map_invert_y=false
+process/hdr_as_srgb=false
+process/hdr_clamp_exposure=false
+process/size_limit=0
+detect_3d/compress_to=1
+svg/scale=1.0
+editor/scale_with_editor_scale=true
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/script-ide/icon/signal.svg b/addons/script-ide/icon/signal.svg
new file mode 100644
index 0000000..d3f97b8
--- /dev/null
+++ b/addons/script-ide/icon/signal.svg
@@ -0,0 +1 @@
+
diff --git a/addons/script-ide/icon/signal.svg.import b/addons/script-ide/icon/signal.svg.import
new file mode 100644
index 0000000..4c029b0
--- /dev/null
+++ b/addons/script-ide/icon/signal.svg.import
@@ -0,0 +1,38 @@
+[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/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=false
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/fix_alpha_border=true
+process/premult_alpha=false
+process/normal_map_invert_y=false
+process/hdr_as_srgb=false
+process/hdr_clamp_exposure=false
+process/size_limit=0
+detect_3d/compress_to=1
+svg/scale=1.0
+editor/scale_with_editor_scale=true
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/script-ide/override/override_panel.gd b/addons/script-ide/override/override_panel.gd
new file mode 100644
index 0000000..18119e0
--- /dev/null
+++ b/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/addons/script-ide/override/override_panel.gd.uid b/addons/script-ide/override/override_panel.gd.uid
new file mode 100644
index 0000000..07779ab
--- /dev/null
+++ b/addons/script-ide/override/override_panel.gd.uid
@@ -0,0 +1 @@
+uid://btgbaikmlk6my
diff --git a/addons/script-ide/override/override_panel.tscn b/addons/script-ide/override/override_panel.tscn
new file mode 100644
index 0000000..791c8d9
--- /dev/null
+++ b/addons/script-ide/override/override_panel.tscn
@@ -0,0 +1,58 @@
+[gd_scene load_steps=2 format=3 uid="uid://bb1n82qxlqanh"]
+
+[ext_resource type="Script" uid="uid://chc6jwpxj1ig8" path="res://addons/script-ide/override/override_panel.gd" id="1_c3eqr"]
+
+[node name="OverridePanel" type="PopupPanel"]
+size = Vector2i(551, 194)
+script = ExtResource("1_c3eqr")
+
+[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
+
+[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/addons/script-ide/plugin.cfg b/addons/script-ide/plugin.cfg
new file mode 100644
index 0000000..06d16bd
--- /dev/null
+++ b/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.4"
+script="plugin.gd"
diff --git a/addons/script-ide/plugin.gd b/addons/script-ide/plugin.gd
new file mode 100644
index 0000000..19b20cd
--- /dev/null
+++ b/addons/script-ide/plugin.gd
@@ -0,0 +1,1345 @@
+## 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_bar.auto_translate_mode = Node.AUTO_TRANSLATE_MODE_DISABLED
+ scripts_tab_container.tabs_visible = is_script_tabs_visible
+ scripts_tab_container.drag_to_rearrange_enabled = true
+ 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.auto_translate_mode = Node.AUTO_TRANSLATE_MODE_DISABLED
+ 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.set_unparent_when_invisible(true)
+ quick_open_popup.plugin = self
+
+ 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.set_unparent_when_invisible(true)
+ override_popup.plugin = self
+
+ 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) * get_editor_scale()
+ 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()
+ outline_popup.set_unparent_when_invisible(true)
+
+ 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))
+
+ 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):
+ # MIGRATION: This is not needed anymore in Godot 4.5
+ if (Engine.get_version_info()["minor"] > 4):
+ return
+
+ 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):
+ # MIGRATION: This is not needed anymore in Godot 4.5
+ if (Engine.get_version_info()["minor"] > 4):
+ return
+
+ 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
+ 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
+ auto_translate_mode_state = tab_bar.auto_translate_mode
+
+ 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
+ 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
+ tab_bar.auto_translate_mode = auto_translate_mode_state
diff --git a/addons/script-ide/plugin.gd.uid b/addons/script-ide/plugin.gd.uid
new file mode 100644
index 0000000..0bf325c
--- /dev/null
+++ b/addons/script-ide/plugin.gd.uid
@@ -0,0 +1 @@
+uid://dlntlm6dntekp
diff --git a/addons/script-ide/quickopen/quick_open_panel.gd b/addons/script-ide/quickopen/quick_open_panel.gd
new file mode 100644
index 0000000..b744f0b
--- /dev/null
+++ b/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/addons/script-ide/quickopen/quick_open_panel.gd.uid b/addons/script-ide/quickopen/quick_open_panel.gd.uid
new file mode 100644
index 0000000..b7414f7
--- /dev/null
+++ b/addons/script-ide/quickopen/quick_open_panel.gd.uid
@@ -0,0 +1 @@
+uid://c53ls2p5d1lfr
diff --git a/addons/script-ide/quickopen/quick_open_panel.tscn b/addons/script-ide/quickopen/quick_open_panel.tscn
new file mode 100644
index 0000000..8d3d8b8
--- /dev/null
+++ b/addons/script-ide/quickopen/quick_open_panel.tscn
@@ -0,0 +1,147 @@
+[gd_scene load_steps=14 format=3 uid="uid://d2pttchmj3n7q"]
+
+[ext_resource type="Script" uid="uid://deyc8ora1jlkr" path="res://addons/script-ide/quickopen/quick_open_panel.gd" id="1_3tl1s"]
+
+[sub_resource type="Image" id="Image_ta8yk"]
+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_ta8yk")
+
+[sub_resource type="Image" id="Image_rfjdh"]
+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_rfjdh")
+
+[sub_resource type="Image" id="Image_002t5"]
+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_002t5")
+
+[sub_resource type="Image" id="Image_1kivx"]
+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_1kivx")
+
+[sub_resource type="Image" id="Image_6k5u0"]
+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_6k5u0")
+
+[sub_resource type="Image" id="Image_sj6hy"]
+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_sj6hy")
+
+[node name="QuickOpenPanel" type="PopupPanel"]
+size = Vector2i(624, 100)
+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/addons/ui_extensions/dropdown/Arrow.svg b/addons/ui_extensions/dropdown/Arrow.svg
new file mode 100644
index 0000000..c1f190d
--- /dev/null
+++ b/addons/ui_extensions/dropdown/Arrow.svg
@@ -0,0 +1,77 @@
+
+
+
+
diff --git a/addons/ui_extensions/dropdown/Arrow.svg.import b/addons/ui_extensions/dropdown/Arrow.svg.import
new file mode 100644
index 0000000..ba620b8
--- /dev/null
+++ b/addons/ui_extensions/dropdown/Arrow.svg.import
@@ -0,0 +1,37 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://bb76dl3aocsjo"
+path="res://.godot/imported/Arrow.svg-e4a7a75ac3bf7e30d5e37f222d3ad4c0.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/ui_extensions/dropdown/Arrow.svg"
+dest_files=["res://.godot/imported/Arrow.svg-e4a7a75ac3bf7e30d5e37f222d3ad4c0.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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=false
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/ui_extensions/dropdown/Cancel.svg b/addons/ui_extensions/dropdown/Cancel.svg
new file mode 100644
index 0000000..c8bd85a
--- /dev/null
+++ b/addons/ui_extensions/dropdown/Cancel.svg
@@ -0,0 +1,63 @@
+
+
+
+
diff --git a/addons/ui_extensions/dropdown/Cancel.svg.import b/addons/ui_extensions/dropdown/Cancel.svg.import
new file mode 100644
index 0000000..f651d71
--- /dev/null
+++ b/addons/ui_extensions/dropdown/Cancel.svg.import
@@ -0,0 +1,37 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://btxlurvr45t4y"
+path="res://.godot/imported/Cancel.svg-fbdf3881698da8995a36f6dcd62b6529.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://addons/ui_extensions/dropdown/Cancel.svg"
+dest_files=["res://.godot/imported/Cancel.svg-fbdf3881698da8995a36f6dcd62b6529.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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=false
+editor/convert_colors_with_editor_theme=false
diff --git a/addons/ui_extensions/dropdown/Dropdown.gd b/addons/ui_extensions/dropdown/Dropdown.gd
new file mode 100644
index 0000000..a43ac56
--- /dev/null
+++ b/addons/ui_extensions/dropdown/Dropdown.gd
@@ -0,0 +1,175 @@
+# UI Extension Filter Dropdown : MIT License
+# @author Vladimir Petrenko
+@tool
+extends VBoxContainer
+class_name Dropdown
+
+signal selection_changed(item: DropdownItem)
+
+var _disabled: bool = false
+var _selected = -1
+var _group = ButtonGroup.new()
+var _items: Array[DropdownItem] = []
+
+@export var ignore_case: bool = true
+@export var popup_maxheight_count: int = 5
+@onready var _icon: TextureRect = $HBox/Icon
+@onready var _selector: Button = $HBox/Selector
+@onready var _clear: Button= $HBox/Clear
+@onready var _popup_panel: PopupPanel= $PopupPanel
+@onready var _filter: LineEdit= $PopupPanel/VBoxPanel/Filter
+@onready var _popup_panel_vbox: VBoxContainer= $PopupPanel/VBoxPanel/Scroll/ScrollVBox/VBox
+
+func set_disabled(value: bool) -> void:
+ _disabled = value
+ _selector.disabled = _disabled
+ _clear.disabled = _disabled
+
+func is_disabled() -> bool:
+ return _disabled
+
+func items() -> Array:
+ return _items
+
+func add_item_as_string(value: String, tooltip: String = "") -> void:
+ add_item(DropdownItem.new(value, value, tooltip))
+
+func add_item(item: DropdownItem) -> void:
+ _items.append(item)
+
+func clear() -> void:
+ for item in _items:
+ item.free()
+ _items = []
+
+func erase_item_by_string(value: String) -> void:
+ erase_item(DropdownItem.new(value, value))
+
+func erase_item(item: DropdownItem) -> void:
+ _items.erase(item)
+ item.free()
+
+func set_selected_item(item: DropdownItem) -> void:
+ _on_selection_changed(_items.find(item))
+
+func set_selected_index(index: int) -> void:
+ _on_selection_changed(index)
+
+func set_selected_by_value(value) -> void:
+ for item in _items:
+ if item.value == value:
+ set_selected_item(item)
+ return
+
+func get_selected_index() -> int:
+ return _selected
+
+func get_selected_item():
+ if _selected >=0:
+ return _items[_selected]
+ return null
+
+func get_selected_value():
+ if _selected >=0:
+ return _items[_selected].value
+ return null
+
+func _ready() -> void:
+ _group.resource_local_to_scene = false
+ _update_view()
+ _init_connections()
+
+func _update_view() -> void:
+ _update_view_icon()
+ _update_view_button()
+
+func _update_view_icon() -> void:
+ if _selected >= 0 and _items[_selected].icon != null:
+ _icon.show()
+ else:
+ _icon.hide()
+
+func _update_view_button() -> void:
+ _clear.visible = _selected >= 0
+
+func _init_connections() -> void:
+ _selector.pressed.connect(_update_popup_view)
+ _clear.pressed.connect(_clear_pressed)
+ _filter.text_changed.connect(_filter_changed)
+
+func _update_popup_view() -> void:
+ if _disabled:
+ return
+ _update_items_view()
+ var rect = get_global_rect()
+ var position = Vector2(rect.position.x, rect.position.y + rect.size.y + 2)
+ if Engine.is_editor_hint():
+ position = get_viewport().canvas_transform * global_position + Vector2(get_viewport().position)
+ position.y += size.y
+ _popup_panel.position = position
+ _popup_panel.popup()
+
+func _update_items_view() -> void:
+ for child in _popup_panel_vbox.get_children():
+ _popup_panel_vbox.remove_child(child)
+ child.queue_free()
+ for index in range(_items.size()):
+ if _filter.text.length() <= 0:
+ _popup_panel_vbox.add_child(_init_check_box(index))
+ else:
+ var filter_text = _filter.text
+ var item_text = _items[index].text
+ if ignore_case:
+ filter_text = filter_text.to_upper()
+ item_text = item_text.to_upper()
+ if filter_text in item_text:
+ _popup_panel_vbox.add_child(_init_check_box(index))
+ var rect = get_global_rect()
+ var size = Vector2(rect.size.x, _popup_calc_height())
+ _popup_panel.set_size(size)
+
+func _popup_calc_height() -> int:
+ var child_count = _popup_panel_vbox.get_child_count()
+ if child_count > 0:
+ var single_height: int = _popup_panel_vbox.get_child(0).size.y + 5
+ if child_count >= popup_maxheight_count:
+ return (popup_maxheight_count + 1) * single_height
+ else:
+ if Engine.is_editor_hint():
+ return (child_count + 1) * single_height + single_height / 2
+ else:
+ return (child_count + 1) * single_height
+ return 0
+
+func _init_check_box(index: int) -> CheckBox:
+ var check_box = CheckBox.new()
+ check_box.set_button_group(_group)
+ check_box.text = _items[index].text
+ check_box.tooltip_text = _items[index].tooltip
+ if _items[index].icon != null:
+ check_box.expand_icon = true
+ check_box.icon = _items[index].icon
+ if index == _selected:
+ check_box.set_pressed(true)
+ check_box.pressed.connect(_on_selection_changed.bind(index))
+ return check_box
+
+func _on_selection_changed(index: int) -> void:
+ if index < 0:
+ _selected = -1
+ _selector.text = ""
+ else:
+ _selected = index
+ _selector.text = _items[_selected].text
+ _selector.tooltip_text = _items[_selected].tooltip
+ if _items[_selected].icon != null:
+ _icon.texture = _items[_selected].icon
+ emit_signal("selection_changed", _items[_selected])
+ _popup_panel.hide()
+ _update_view()
+
+func _clear_pressed() -> void:
+ set_selected_index(-1)
+
+func _filter_changed(_text: String) -> void:
+ _update_items_view()
diff --git a/addons/ui_extensions/dropdown/Dropdown.gd.uid b/addons/ui_extensions/dropdown/Dropdown.gd.uid
new file mode 100644
index 0000000..7b83f4a
--- /dev/null
+++ b/addons/ui_extensions/dropdown/Dropdown.gd.uid
@@ -0,0 +1 @@
+uid://h1140f0rhrye
diff --git a/addons/ui_extensions/dropdown/Dropdown.tscn b/addons/ui_extensions/dropdown/Dropdown.tscn
new file mode 100644
index 0000000..108121f
--- /dev/null
+++ b/addons/ui_extensions/dropdown/Dropdown.tscn
@@ -0,0 +1,63 @@
+[gd_scene load_steps=4 format=3 uid="uid://ov647hx6yjxa"]
+
+[ext_resource type="Script" path="res://addons/ui_extensions/dropdown/Dropdown.gd" id="1_ah183"]
+[ext_resource type="Texture2D" uid="uid://btxlurvr45t4y" path="res://addons/ui_extensions/dropdown/Cancel.svg" id="1_l2sby"]
+[ext_resource type="Texture2D" uid="uid://bb76dl3aocsjo" path="res://addons/ui_extensions/dropdown/Arrow.svg" id="2_ims8p"]
+
+[node name="DropdownContent" type="VBoxContainer"]
+anchors_preset = 10
+anchor_right = 1.0
+offset_bottom = 31.0
+grow_horizontal = 2
+size_flags_horizontal = 3
+script = ExtResource("1_ah183")
+
+[node name="HBox" type="HBoxContainer" parent="."]
+layout_mode = 2
+
+[node name="Icon" type="TextureRect" parent="HBox"]
+visible = false
+custom_minimum_size = Vector2(20, 20)
+layout_mode = 2
+expand_mode = 1
+stretch_mode = 5
+
+[node name="Selector" type="Button" parent="HBox"]
+layout_mode = 2
+size_flags_horizontal = 3
+icon = ExtResource("2_ims8p")
+alignment = 0
+icon_alignment = 2
+
+[node name="Clear" type="Button" parent="HBox"]
+visible = false
+layout_mode = 2
+size_flags_vertical = 3
+icon = ExtResource("1_l2sby")
+icon_alignment = 1
+
+[node name="PopupPanel" type="PopupPanel" parent="."]
+
+[node name="VBoxPanel" type="VBoxContainer" parent="PopupPanel"]
+offset_left = 4.0
+offset_top = 4.0
+offset_right = 96.0
+offset_bottom = 96.0
+size_flags_horizontal = 3
+size_flags_vertical = 3
+
+[node name="Filter" type="LineEdit" parent="PopupPanel/VBoxPanel"]
+layout_mode = 2
+
+[node name="Scroll" type="ScrollContainer" parent="PopupPanel/VBoxPanel"]
+layout_mode = 2
+size_flags_horizontal = 3
+size_flags_vertical = 3
+
+[node name="ScrollVBox" type="VBoxContainer" parent="PopupPanel/VBoxPanel/Scroll"]
+layout_mode = 2
+size_flags_horizontal = 3
+size_flags_vertical = 3
+
+[node name="VBox" type="VBoxContainer" parent="PopupPanel/VBoxPanel/Scroll/ScrollVBox"]
+layout_mode = 2
diff --git a/addons/ui_extensions/dropdown/DropdownItem.gd b/addons/ui_extensions/dropdown/DropdownItem.gd
new file mode 100644
index 0000000..7c459a7
--- /dev/null
+++ b/addons/ui_extensions/dropdown/DropdownItem.gd
@@ -0,0 +1,15 @@
+# UI Extension Filter Dropdown Item : MIT License
+# @author Vladimir Petrenko
+extends Object
+class_name DropdownItem
+
+var value
+var text: String
+var tooltip: String
+var icon: Texture2D
+
+func _init(ivalue, itext: String, itooltip: String = "", iicon: Texture2D = null) -> void:
+ self.value = ivalue
+ self.text = itext
+ self.tooltip = itooltip
+ self.icon = iicon
diff --git a/addons/ui_extensions/dropdown/DropdownItem.gd.uid b/addons/ui_extensions/dropdown/DropdownItem.gd.uid
new file mode 100644
index 0000000..1d29965
--- /dev/null
+++ b/addons/ui_extensions/dropdown/DropdownItem.gd.uid
@@ -0,0 +1 @@
+uid://dvq1rgfxhpb4p
diff --git a/assets/Spash Screen.png b/assets/Spash Screen.png
new file mode 100644
index 0000000..bf8ff66
Binary files /dev/null and b/assets/Spash Screen.png differ
diff --git a/assets/Spash Screen.png.import b/assets/Spash Screen.png.import
new file mode 100644
index 0000000..813f34a
--- /dev/null
+++ b/assets/Spash Screen.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://b3matrwxo1dfn"
+path="res://.godot/imported/Spash Screen.png-e4bf3d868c64976d7faedf235e897dc7.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://assets/Spash Screen.png"
+dest_files=["res://.godot/imported/Spash Screen.png-e4bf3d868c64976d7faedf235e897dc7.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/assets/cards/bullet.aseprite b/assets/cards/bullet.aseprite
new file mode 100644
index 0000000..38e561b
Binary files /dev/null and b/assets/cards/bullet.aseprite differ
diff --git a/assets/cards/bullet.png b/assets/cards/bullet.png
new file mode 100644
index 0000000..fb99c9e
Binary files /dev/null and b/assets/cards/bullet.png differ
diff --git a/assets/cards/bullet.png.import b/assets/cards/bullet.png.import
new file mode 100644
index 0000000..b465b49
--- /dev/null
+++ b/assets/cards/bullet.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://cmnnfrkp1h5s0"
+path="res://.godot/imported/bullet.png-8a4bb3ca1536da094ad349895687cc84.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://assets/cards/bullet.png"
+dest_files=["res://.godot/imported/bullet.png-8a4bb3ca1536da094ad349895687cc84.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/assets/cards/cardPlaceholder.aseprite b/assets/cards/cardPlaceholder.aseprite
new file mode 100644
index 0000000..10ef34b
Binary files /dev/null and b/assets/cards/cardPlaceholder.aseprite differ
diff --git a/assets/cards/cardPlaceholder.aseprite.import b/assets/cards/cardPlaceholder.aseprite.import
new file mode 100644
index 0000000..4c8d0eb
--- /dev/null
+++ b/assets/cards/cardPlaceholder.aseprite.import
@@ -0,0 +1,14 @@
+[remap]
+
+importer="aseprite_wizard.plugin.noop"
+type="PackedDataContainer"
+uid="uid://cfa76ly1qtam8"
+path="res://.godot/imported/cardPlaceholder.aseprite-6842c12d8d1595d486565081d69053da.res"
+
+[deps]
+
+source_file="res://assets/cards/cardPlaceholder.aseprite"
+dest_files=["res://.godot/imported/cardPlaceholder.aseprite-6842c12d8d1595d486565081d69053da.res"]
+
+[params]
+
diff --git a/assets/cards/cardPlaceholder.png b/assets/cards/cardPlaceholder.png
new file mode 100644
index 0000000..d568cf0
Binary files /dev/null and b/assets/cards/cardPlaceholder.png differ
diff --git a/assets/cards/cardPlaceholder.png.import b/assets/cards/cardPlaceholder.png.import
new file mode 100644
index 0000000..e018f99
--- /dev/null
+++ b/assets/cards/cardPlaceholder.png.import
@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://bprr1g5mf44sm"
+path="res://.godot/imported/cardPlaceholder.png-efc364ac05fc746b4ee6330872fc6962.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://assets/cards/cardPlaceholder.png"
+dest_files=["res://.godot/imported/cardPlaceholder.png-efc364ac05fc746b4ee6330872fc6962.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+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/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/icon.svg b/icon.svg
new file mode 100644
index 0000000..9d8b7fa
--- /dev/null
+++ b/icon.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/icon.svg.import b/icon.svg.import
new file mode 100644
index 0000000..12cfd34
--- /dev/null
+++ b/icon.svg.import
@@ -0,0 +1,39 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://du3d2gb1rri4t"
+path.s3tc="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.s3tc.ctex"
+path.etc2="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.etc2.ctex"
+metadata={
+"imported_formats": ["s3tc_bptc", "etc2_astc"],
+"vram_texture": true
+}
+
+[deps]
+
+source_file="res://icon.svg"
+dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.s3tc.ctex", "res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.etc2.ctex"]
+
+[params]
+
+compress/mode=2
+compress/high_quality=false
+compress/lossy_quality=0.7
+compress/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=true
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/fix_alpha_border=true
+process/premult_alpha=false
+process/normal_map_invert_y=false
+process/hdr_as_srgb=false
+process/hdr_clamp_exposure=false
+process/size_limit=0
+detect_3d/compress_to=0
+svg/scale=1.0
+editor/scale_with_editor_scale=false
+editor/convert_colors_with_editor_theme=false
diff --git a/localization/LocalizationKeys.gd b/localization/LocalizationKeys.gd
new file mode 100644
index 0000000..80cf5e1
--- /dev/null
+++ b/localization/LocalizationKeys.gd
@@ -0,0 +1,12 @@
+# Keys for LocalizationManger to use in source code: MIT License
+# @author Vladimir Petrenko
+@tool
+class_name LocalizationKeys
+
+const KEY_NAME = "KEY_NAME"
+const KEY_PLAY = "KEY_PLAY"
+
+const KEYS = [
+ "KEY_NAME",
+ "KEY_PLAY"
+]
diff --git a/localization/LocalizationKeys.gd.uid b/localization/LocalizationKeys.gd.uid
new file mode 100644
index 0000000..169fab4
--- /dev/null
+++ b/localization/LocalizationKeys.gd.uid
@@ -0,0 +1 @@
+uid://6b2qxogn6b4o
diff --git a/localization/LocalizationPlaceholders.gd b/localization/LocalizationPlaceholders.gd
new file mode 100644
index 0000000..9f36e31
--- /dev/null
+++ b/localization/LocalizationPlaceholders.gd
@@ -0,0 +1,9 @@
+# Placeholders for LocalizationManger to use in source code: MIT License
+# @author Vladimir Petrenko
+@tool
+class_name LocalizationPlaceholders
+
+
+const PLACEHOLDERS = [
+
+]
diff --git a/localization/LocalizationPlaceholders.gd.uid b/localization/LocalizationPlaceholders.gd.uid
new file mode 100644
index 0000000..b367045
--- /dev/null
+++ b/localization/LocalizationPlaceholders.gd.uid
@@ -0,0 +1 @@
+uid://dy5rnmaioifbh
diff --git a/localization/LocalizationRemaps.gd b/localization/LocalizationRemaps.gd
new file mode 100644
index 0000000..e69de29
diff --git a/localization/LocalizationRemaps.gd.uid b/localization/LocalizationRemaps.gd.uid
new file mode 100644
index 0000000..f5452ac
--- /dev/null
+++ b/localization/LocalizationRemaps.gd.uid
@@ -0,0 +1 @@
+uid://dmd6uiolxwn1h
diff --git a/localization/Placeholders.tres b/localization/Placeholders.tres
new file mode 100644
index 0000000..dbd99df
--- /dev/null
+++ b/localization/Placeholders.tres
@@ -0,0 +1,16 @@
+[gd_resource type="Resource" script_class="LocalizationPlaceholdersData" load_steps=2 format=3 uid="uid://dmqjq3hnd4dff"]
+
+[ext_resource type="Script" uid="uid://c56hv2a0fyjv7" path="res://addons/localization_editor/model/LocalizationPlaceholdersData.gd" id="1"]
+
+[resource]
+script = ExtResource("1")
+placeholders = {
+"NAME": {
+"de": "Johan",
+"en": "John"
+},
+"OLD": {
+"de": "16",
+"en": "17"
+}
+}
diff --git a/localization/localizations.csv b/localization/localizations.csv
new file mode 100644
index 0000000..1f44e32
--- /dev/null
+++ b/localization/localizations.csv
@@ -0,0 +1,3 @@
+keys,en,de
+KEY_NAME,English,Deutsch
+KEY_PLAY,Play,Spielen
diff --git a/localization/localizations.csv.import b/localization/localizations.csv.import
new file mode 100644
index 0000000..a2f1851
--- /dev/null
+++ b/localization/localizations.csv.import
@@ -0,0 +1,17 @@
+[remap]
+
+importer="csv_translation"
+type="Translation"
+uid="uid://dda56mdyc1qof"
+
+[deps]
+
+files=["res://localization/localizations.en.translation", "res://localization/localizations.de.translation"]
+
+source_file="res://localization/localizations.csv"
+dest_files=["res://localization/localizations.en.translation", "res://localization/localizations.de.translation"]
+
+[params]
+
+compress=true
+delimiter=0
diff --git a/project.godot b/project.godot
new file mode 100644
index 0000000..93b6985
--- /dev/null
+++ b/project.godot
@@ -0,0 +1,65 @@
+; Engine configuration file.
+; It's best edited using the editor UI and not directly,
+; since the parameters that go here are not all obvious.
+;
+; Format:
+; [section] ; section goes between []
+; param=value ; assign values to parameters
+
+config_version=5
+
+[application]
+
+config/name="brackeysGameJam2025.2"
+run/main_scene="uid://y6lc82qrb1e2"
+config/features=PackedStringArray("4.4", "GL Compatibility")
+boot_splash/image="uid://fdqqfn3eqeue"
+config/icon="res://icon.svg"
+
+[aseprite]
+
+import/import_plugin/default_automatic_importer="Static Texture"
+
+[autoload]
+
+LocalizationManager="*res://addons/localization_editor/LocalizationManager.gd"
+DebugMenu="*res://addons/debug_menu/debug_menu.tscn"
+GLOBALS="*res://scripts/globals/globals.gd"
+
+[display]
+
+window/size/viewport_width=1920
+window/size/viewport_height=1080
+window/stretch/aspect="expand"
+
+[editor]
+
+version_control/plugin_name="GitPlugin"
+version_control/autoload_on_startup=true
+
+[editor_plugins]
+
+enabled=PackedStringArray("res://addons/debug_menu/plugin.cfg", "res://addons/localization_editor/plugin.cfg", "res://addons/script-ide/plugin.cfg")
+
+[file_customization]
+
+folder_colors={
+"res://assets/": "green",
+"res://scenes/": "blue",
+"res://scripts/": "purple"
+}
+
+[internationalization]
+
+locale/translations=PackedStringArray("res://localization/localizations.en.translation", "res://localization/localizations.de.translation")
+
+[rendering]
+
+textures/canvas_textures/default_texture_filter=0
+renderer/rendering_method="gl_compatibility"
+renderer/rendering_method.mobile="gl_compatibility"
+textures/vram_compression/import_etc2_astc=true
+anti_aliasing/quality/msaa_2d=3
+anti_aliasing/quality/msaa_3d=3
+anti_aliasing/quality/screen_space_aa=1
+anti_aliasing/quality/use_debanding=true
diff --git a/scenes/camera/UI/card.gd b/scenes/camera/UI/card.gd
new file mode 100644
index 0000000..bdae293
--- /dev/null
+++ b/scenes/camera/UI/card.gd
@@ -0,0 +1,14 @@
+class_name Card extends CenterContainer
+
+@onready var itemButton = $ItemButton
+@onready var ItemAmountLabel = $ItemButton/ItemAmountLabel
+
+@export var itemType: GLOBALS.ITEMTYPES = GLOBALS.ITEMTYPES.STANDARDBULLET
+
+signal selected(_itemType: GLOBALS.ITEMTYPES)
+
+func _on_item_button_pressed() -> void:
+ selected.emit(itemType)
+
+func setAmount(amount: int) -> void:
+ ItemAmountLabel.text = str(amount)
diff --git a/scenes/camera/UI/card.gd.uid b/scenes/camera/UI/card.gd.uid
new file mode 100644
index 0000000..0dacc3c
--- /dev/null
+++ b/scenes/camera/UI/card.gd.uid
@@ -0,0 +1 @@
+uid://culacsksqcquo
diff --git a/scenes/camera/UI/card.tscn b/scenes/camera/UI/card.tscn
new file mode 100644
index 0000000..4291469
--- /dev/null
+++ b/scenes/camera/UI/card.tscn
@@ -0,0 +1,39 @@
+[gd_scene load_steps=6 format=3 uid="uid://bc84ynsnwc1ew"]
+
+[ext_resource type="Texture2D" uid="uid://bprr1g5mf44sm" path="res://assets/cards/cardPlaceholder.png" id="1_fobdo"]
+[ext_resource type="Script" uid="uid://culacsksqcquo" path="res://scenes/camera/UI/card.gd" id="1_wa0td"]
+[ext_resource type="Texture2D" uid="uid://cmnnfrkp1h5s0" path="res://assets/cards/bullet.png" id="2_wa0td"]
+
+[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_qr7cc"]
+texture = ExtResource("1_fobdo")
+
+[sub_resource type="LabelSettings" id="LabelSettings_6m2n3"]
+font_color = Color(0, 0, 0, 1)
+
+[node name="Card" type="CenterContainer"]
+script = ExtResource("1_wa0td")
+
+[node name="ItemButton" type="Button" parent="."]
+layout_mode = 2
+tooltip_auto_translate_mode = 1
+theme_override_styles/normal = SubResource("StyleBoxTexture_qr7cc")
+icon = ExtResource("2_wa0td")
+
+[node name="ItemAmountLabel" type="Label" parent="ItemButton"]
+layout_mode = 1
+anchors_preset = 3
+anchor_left = 1.0
+anchor_top = 1.0
+anchor_right = 1.0
+anchor_bottom = 1.0
+offset_left = -48.0
+offset_top = -30.0
+offset_right = -8.0
+offset_bottom = -7.0
+grow_horizontal = 0
+grow_vertical = 0
+text = "1"
+label_settings = SubResource("LabelSettings_6m2n3")
+horizontal_alignment = 2
+
+[connection signal="pressed" from="ItemButton" to="." method="_on_item_button_pressed"]
diff --git a/scenes/camera/UI/playerSelectionButton.gd b/scenes/camera/UI/playerSelectionButton.gd
new file mode 100644
index 0000000..07cbb75
--- /dev/null
+++ b/scenes/camera/UI/playerSelectionButton.gd
@@ -0,0 +1,7 @@
+extends CheckBox
+
+var player: Player
+
+func setPlayer(_player: Player) -> void:
+ text = _player.gameName
+ player = _player
diff --git a/scenes/camera/UI/playerSelectionButton.gd.uid b/scenes/camera/UI/playerSelectionButton.gd.uid
new file mode 100644
index 0000000..15fabfb
--- /dev/null
+++ b/scenes/camera/UI/playerSelectionButton.gd.uid
@@ -0,0 +1 @@
+uid://c0elwhiqu20i8
diff --git a/scenes/camera/UI/playerSelectionButton.tscn b/scenes/camera/UI/playerSelectionButton.tscn
new file mode 100644
index 0000000..b6d97fc
--- /dev/null
+++ b/scenes/camera/UI/playerSelectionButton.tscn
@@ -0,0 +1,8 @@
+[gd_scene load_steps=2 format=3 uid="uid://lsg8l7r66uyr"]
+
+[ext_resource type="Script" uid="uid://c0elwhiqu20i8" path="res://scenes/camera/UI/playerSelectionButton.gd" id="1_scfyp"]
+
+[node name="playerSelectionButton" type="CheckBox"]
+offset_right = 24.0
+offset_bottom = 24.0
+script = ExtResource("1_scfyp")
diff --git a/scenes/camera/camera.gd b/scenes/camera/camera.gd
new file mode 100644
index 0000000..deb229b
--- /dev/null
+++ b/scenes/camera/camera.gd
@@ -0,0 +1,93 @@
+extends Camera3D
+
+@onready var playerSelectButton = preload("res://scenes/camera/UI/playerSelectionButton.tscn")
+
+@onready var roundLabel = $CanvasLayer/Control/General/roundLabel
+@onready var playerNameLabel = $CanvasLayer/Control/Player/PlayerNameLabel
+@onready var itemCards = $CanvasLayer/Control/Player/ItemCards
+@onready var magazineLabel = $CanvasLayer/Control/Player/MagazineLabel
+@onready var playerSelection = $CanvasLayer/Control/Player/PlayerSelection
+
+#@onready var itemStandardBulletButton = $
+var currentPlayer: Player
+var selectablePlayers: Array[Player]
+
+signal itemSelected(_itemType: GLOBALS.ITEMTYPES)
+signal nextTurn()
+
+
+func _ready() -> void:
+ for i in itemCards.get_children():
+ if i.has_signal("selected"):
+ i.selected.connect(selectItem.bind())
+
+func setRound(_round: int) -> void:
+ roundLabel.text = str(_round)
+
+func updatePlayerStats():
+ playerNameLabel.text = str(currentPlayer.getGameName())
+ magazineLabel.text = str(currentPlayer.gun.magazineSize) + "/" + str(currentPlayer.gun.getBulletAmount())
+ updatePlayerSelection()
+ updateItemCards()
+
+func setCurrentPlayer(_currentPlayer: Player):
+ currentPlayer = _currentPlayer
+ updatePlayerStats()
+
+func selectItem(_itemType: GLOBALS.ITEMTYPES):
+ print(currentPlayer.gun.magazineSizeLeft())
+ if currentPlayer.gun.magazineSizeLeft() > 0:
+ itemSelected.emit(_itemType)
+
+func updateItemCards() -> void:
+ if currentPlayer.gun.magazineSizeLeft() <= 0:
+ for i in itemCards.get_children():
+ if i.has_node("ItemButton"):
+ i.itemButton.disabled = true
+ else:
+ for i in itemCards.get_children():
+ if i.has_node("ItemButton"):
+ i.itemButton.disabled = false
+ for i in GLOBALS.ITEMTYPES:
+ var counter = 0
+ for j in currentPlayer.getItems():
+ if j.type == GLOBALS.ITEMTYPES[i]:
+ counter += 1
+ for j in itemCards.get_children():
+ if j.has_node("ItemButton/ItemAmountLabel") and j.itemType == GLOBALS.ITEMTYPES[i]:
+ j.setAmount(counter)
+ if counter <= 0:
+ j.visible = false
+ else:
+ j.visible = true
+
+
+func updatePlayerSelection() -> void:
+ for i in playerSelection.get_children():
+ i.free()
+ var newButtonGroup = ButtonGroup.new()
+ for i in selectablePlayers:
+ if i != currentPlayer:
+ var newSelection = playerSelectButton.instantiate()
+ newSelection.setPlayer(i)
+ newSelection.button_group = newButtonGroup
+ playerSelection.add_child(newSelection)
+
+ playerSelection.get_child(0).button_pressed = true
+ var newSelection = playerSelectButton.instantiate()
+ newSelection.setPlayer(currentPlayer)
+ newSelection.button_group = newButtonGroup
+ playerSelection.add_child(newSelection)
+
+
+
+func _on_next_turn_button_pressed() -> void:
+ currentPlayer.selectPlayer(getPlayerSelection())
+ nextTurn.emit()
+
+
+func getPlayerSelection() -> Player:
+ for i in playerSelection.get_children():
+ if i.button_pressed == true:
+ return i.player
+ return currentPlayer
diff --git a/scenes/camera/camera.gd.uid b/scenes/camera/camera.gd.uid
new file mode 100644
index 0000000..63c4b90
--- /dev/null
+++ b/scenes/camera/camera.gd.uid
@@ -0,0 +1 @@
+uid://bvkbh5ngdd0dt
diff --git a/scenes/camera/camera.tscn b/scenes/camera/camera.tscn
new file mode 100644
index 0000000..6dd426e
--- /dev/null
+++ b/scenes/camera/camera.tscn
@@ -0,0 +1,120 @@
+[gd_scene load_steps=3 format=3 uid="uid://ct45lmxlrkhaj"]
+
+[ext_resource type="Script" uid="uid://bvkbh5ngdd0dt" path="res://scenes/camera/camera.gd" id="1_xejhd"]
+[ext_resource type="PackedScene" uid="uid://bc84ynsnwc1ew" path="res://scenes/camera/UI/card.tscn" id="2_6m2n3"]
+
+[node name="Camera3D" type="Camera3D"]
+current = true
+script = ExtResource("1_xejhd")
+
+[node name="CanvasLayer" type="CanvasLayer" parent="."]
+
+[node name="Control" type="Control" parent="CanvasLayer"]
+layout_mode = 3
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+grow_horizontal = 2
+grow_vertical = 2
+
+[node name="General" type="Control" parent="CanvasLayer/Control"]
+layout_mode = 1
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+grow_horizontal = 2
+grow_vertical = 2
+
+[node name="roundLabel" type="Label" parent="CanvasLayer/Control/General"]
+layout_mode = 1
+anchors_preset = 1
+anchor_left = 1.0
+anchor_right = 1.0
+offset_left = -32.0
+offset_top = 16.0
+offset_right = -22.0
+offset_bottom = 39.0
+grow_horizontal = 0
+text = "0"
+
+[node name="Player" type="Control" parent="CanvasLayer/Control"]
+layout_mode = 1
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+grow_horizontal = 2
+grow_vertical = 2
+
+[node name="PlayerNameLabel" type="Label" parent="CanvasLayer/Control/Player"]
+layout_mode = 1
+anchors_preset = 5
+anchor_left = 0.5
+anchor_right = 0.5
+offset_left = -24.0
+offset_top = 16.0
+offset_right = 24.0
+offset_bottom = 39.0
+grow_horizontal = 2
+horizontal_alignment = 1
+vertical_alignment = 1
+
+[node name="nextTurnButton" type="Button" parent="CanvasLayer/Control/Player"]
+layout_mode = 1
+anchors_preset = 3
+anchor_left = 1.0
+anchor_top = 1.0
+anchor_right = 1.0
+anchor_bottom = 1.0
+offset_left = -96.0
+offset_top = -48.0
+offset_right = -17.0
+offset_bottom = -17.0
+grow_horizontal = 0
+grow_vertical = 0
+text = "Continue"
+
+[node name="ItemCards" type="HBoxContainer" parent="CanvasLayer/Control/Player"]
+layout_mode = 1
+anchors_preset = 2
+anchor_top = 1.0
+anchor_bottom = 1.0
+offset_left = 16.0
+offset_top = -136.0
+offset_right = 112.0
+offset_bottom = -10.0
+grow_vertical = 0
+
+[node name="Card" parent="CanvasLayer/Control/Player/ItemCards" instance=ExtResource("2_6m2n3")]
+layout_mode = 2
+
+[node name="Card2" parent="CanvasLayer/Control/Player/ItemCards" instance=ExtResource("2_6m2n3")]
+layout_mode = 2
+itemType = 2
+
+[node name="MagazineLabel" type="Label" parent="CanvasLayer/Control/Player"]
+layout_mode = 1
+anchors_preset = 2
+anchor_top = 1.0
+anchor_bottom = 1.0
+offset_left = 16.0
+offset_top = -184.0
+offset_right = 56.0
+offset_bottom = -161.0
+grow_vertical = 0
+
+[node name="PlayerSelection" type="VBoxContainer" parent="CanvasLayer/Control/Player"]
+layout_mode = 1
+anchors_preset = 6
+anchor_left = 1.0
+anchor_top = 0.5
+anchor_right = 1.0
+anchor_bottom = 0.5
+offset_left = -64.0
+offset_top = -20.0
+offset_right = -24.0
+offset_bottom = 20.0
+grow_horizontal = 0
+grow_vertical = 2
+alignment = 1
+
+[connection signal="pressed" from="CanvasLayer/Control/Player/nextTurnButton" to="." method="_on_next_turn_button_pressed"]
diff --git a/scenes/character/character.gd b/scenes/character/character.gd
new file mode 100644
index 0000000..f0ae80d
--- /dev/null
+++ b/scenes/character/character.gd
@@ -0,0 +1,10 @@
+class_name Character extends Node3D
+
+@onready var shots = $Shots
+
+func shoot():
+ pass
+
+func removeShot() -> void:
+ print("remove Shot")
+ shots.get_child(0).queue_free()
diff --git a/scenes/character/character.gd.uid b/scenes/character/character.gd.uid
new file mode 100644
index 0000000..247883a
--- /dev/null
+++ b/scenes/character/character.gd.uid
@@ -0,0 +1 @@
+uid://1uwdiveyijuu
diff --git a/scenes/character/character.tscn b/scenes/character/character.tscn
new file mode 100644
index 0000000..d1b4da2
--- /dev/null
+++ b/scenes/character/character.tscn
@@ -0,0 +1,37 @@
+[gd_scene load_steps=7 format=3 uid="uid://dlsh4dfqgtvan"]
+
+[ext_resource type="Texture2D" uid="uid://du3d2gb1rri4t" path="res://icon.svg" id="1_6nn2t"]
+[ext_resource type="Script" uid="uid://1uwdiveyijuu" path="res://scenes/character/character.gd" id="1_cuyo6"]
+[ext_resource type="PackedScene" uid="uid://bhr8ggg3suw46" path="res://scenes/character/shotGlas/shotGlas.tscn" id="3_mutn8"]
+
+[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_cuyo6"]
+albedo_texture = ExtResource("1_6nn2t")
+
+[sub_resource type="PlaneMesh" id="PlaneMesh_mutn8"]
+material = SubResource("StandardMaterial3D_cuyo6")
+size = Vector2(1, 1)
+orientation = 2
+
+[sub_resource type="BoxMesh" id="BoxMesh_cuyo6"]
+
+[node name="Character" type="Node3D"]
+script = ExtResource("1_cuyo6")
+
+[node name="Character" type="MeshInstance3D" parent="."]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.4, -1.2)
+mesh = SubResource("PlaneMesh_mutn8")
+
+[node name="Chair" type="CSGMesh3D" parent="."]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.4, -1.2)
+mesh = SubResource("BoxMesh_cuyo6")
+
+[node name="Shots" type="Node3D" parent="."]
+
+[node name="ShotGlas3" parent="Shots" instance=ExtResource("3_mutn8")]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.3, 1.1, -0.8)
+
+[node name="ShotGlas2" parent="Shots" instance=ExtResource("3_mutn8")]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.1, -0.8)
+
+[node name="ShotGlas" parent="Shots" instance=ExtResource("3_mutn8")]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.3, 1.1, -0.8)
diff --git a/scenes/character/shotGlas/shotGlas.tscn b/scenes/character/shotGlas/shotGlas.tscn
new file mode 100644
index 0000000..fb5220e
--- /dev/null
+++ b/scenes/character/shotGlas/shotGlas.tscn
@@ -0,0 +1,19 @@
+[gd_scene load_steps=4 format=3 uid="uid://bhr8ggg3suw46"]
+
+[ext_resource type="Texture2D" uid="uid://du3d2gb1rri4t" path="res://icon.svg" id="1_k57fi"]
+
+[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_tfdbf"]
+albedo_texture = ExtResource("1_k57fi")
+
+[sub_resource type="QuadMesh" id="QuadMesh_ix4wg"]
+material = SubResource("StandardMaterial3D_tfdbf")
+size = Vector2(0.2, 0.2)
+
+[node name="ShotGlas" type="Node3D"]
+
+[node name="Front" type="MeshInstance3D" parent="."]
+mesh = SubResource("QuadMesh_ix4wg")
+
+[node name="Back" type="MeshInstance3D" parent="."]
+transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)
+mesh = SubResource("QuadMesh_ix4wg")
diff --git a/scenes/game/game.gd b/scenes/game/game.gd
new file mode 100644
index 0000000..db7b9a5
--- /dev/null
+++ b/scenes/game/game.gd
@@ -0,0 +1,100 @@
+extends Node3D
+
+@onready var characterScene = preload("res://scenes/character/character.tscn")
+
+@onready var camera = $cameraRottion/Camera3D
+@onready var charactersContainer = $CharactersContainer
+
+var players: Array[Player]
+var selectablePlayers: Array[Player] = players.duplicate()
+var guns: Array[Gun]
+var roundCount: int = 0
+var playerCount: int = 2
+var lastCharacterRotation: int = 0
+var rotationInterval: float = 360 / playerCount
+var currentPlayer: Player
+var currentPlayerIndex: int = 0
+
+func _ready() -> void:
+ camera.itemSelected.connect(selectItem.bind())
+ camera.nextTurn.connect(nextTurn.bind())
+ addNewPlayer("Test 1")
+ addNewPlayer("Test 2")
+ players[1].bot = true
+ players[0].addItem(StandardBullet.new())
+ players[0].addItem(LuckyBullet.new())
+ nextRound()
+ nextTurn()
+
+func nextTurn():
+ if currentPlayerIndex + 1 > selectablePlayers.size():
+ print("Shoot")
+ currentPlayerIndex = 0
+ givePlayersRandomGun()
+ shootPlayers()
+ else:
+ currentPlayer = selectablePlayers[currentPlayerIndex]
+ currentPlayerIndex += 1
+ #if not currentPlayer.bot:
+ camera.setCurrentPlayer(currentPlayer)
+
+func addNewPlayer(_name: String):
+ var newGun = Gun.new()
+ guns.append(newGun)
+ var newCharacter = addCharacter()
+ var newPlayer = Player.new(_name, newGun, newCharacter)
+ players.append(newPlayer)
+ selectablePlayers.append(newPlayer)
+ camera.selectablePlayers = selectablePlayers
+ newPlayer.dead.connect(playerDied.bind())
+
+func addCharacter() -> Character:
+ var newCharacter = characterScene.instantiate()
+ charactersContainer.add_child(newCharacter)
+ lastCharacterRotation += rotationInterval
+ newCharacter.rotation_degrees.y += lastCharacterRotation
+ return newCharacter
+
+
+func playerDied(_player: Player) -> void:
+ selectablePlayers.erase(_player)
+ camera.selectablePlayers = selectablePlayers
+ print("Player " + _player.getGameName() + " is dead")
+
+func givePlayersRandomGun():
+ randomize()
+ var gunPool = guns.duplicate()
+ for i in guns.size():
+ var newGun = gunPool.pick_random()
+ selectablePlayers[i].giveGun(newGun)
+ gunPool.erase(newGun)
+
+func givePlayersGun():
+ for i in guns:
+ i.mainOwner.giveGun(i)
+ i.mainOwner.gun.resetMagazine()
+
+func nextRound() -> void:
+ givePlayersGun()
+ for i in players:
+ i.addItem(StandardBullet.new())
+ roundCount += 1
+ camera.setRound(roundCount)
+ currentPlayerIndex = 0
+
+func shootPlayers():
+ for i in selectablePlayers:
+ i.shootAtSelectedPlayer()
+ nextRound()
+ nextTurn()
+
+func selectItem(_itemType: GLOBALS.ITEMTYPES):
+ playerUseItemType(currentPlayer, _itemType)
+ print(_itemType)
+
+func playerUseItemType(_player: Player, _type: GLOBALS.ITEMTYPES) -> void:
+ for i in currentPlayer.getItems():
+ if i.type == _type:
+ currentPlayer.useItem(i)
+ break
+ camera.updatePlayerStats()
diff --git a/scenes/game/game.gd.uid b/scenes/game/game.gd.uid
new file mode 100644
index 0000000..2298282
--- /dev/null
+++ b/scenes/game/game.gd.uid
@@ -0,0 +1 @@
+uid://ylobnrrhfy5j
diff --git a/scenes/game/game.tscn b/scenes/game/game.tscn
new file mode 100644
index 0000000..c29c207
--- /dev/null
+++ b/scenes/game/game.tscn
@@ -0,0 +1,25 @@
+[gd_scene load_steps=4 format=3 uid="uid://y6lc82qrb1e2"]
+
+[ext_resource type="Script" uid="uid://ylobnrrhfy5j" path="res://scenes/game/game.gd" id="1_sul5r"]
+[ext_resource type="PackedScene" uid="uid://rch2yvsj0pdn" path="res://scenes/room/room.tscn" id="2_7h61r"]
+[ext_resource type="PackedScene" uid="uid://ct45lmxlrkhaj" path="res://scenes/camera/camera.tscn" id="4_kelw5"]
+
+[node name="Game" type="Node3D"]
+script = ExtResource("1_sul5r")
+
+[node name="Room" parent="." instance=ExtResource("2_7h61r")]
+
+[node name="CharactersContainer" type="Node3D" parent="."]
+
+[node name="light" type="Node3D" parent="."]
+
+[node name="OmniLight3D" type="OmniLight3D" parent="light"]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.52843, 0)
+omni_range = 10.5
+
+[node name="cameraRottion" type="Node3D" parent="."]
+
+[node name="Camera3D" parent="cameraRottion" instance=ExtResource("4_kelw5")]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.51089, 1.46703)
+
+[node name="OmniLight3D" type="OmniLight3D" parent="cameraRottion/Camera3D"]
diff --git a/scenes/room/room.tscn b/scenes/room/room.tscn
new file mode 100644
index 0000000..82165dd
--- /dev/null
+++ b/scenes/room/room.tscn
@@ -0,0 +1,41 @@
+[gd_scene load_steps=7 format=3 uid="uid://rch2yvsj0pdn"]
+
+[ext_resource type="Texture2D" uid="uid://dv575ijvfdu7s" path="res://addons/kenney_prototype_textures/dark/texture_13.png" id="1_8xru0"]
+[ext_resource type="Material" uid="uid://vxxgydkoi8qp" path="res://scenes/room/table.tres" id="2_kxljb"]
+
+[sub_resource type="BoxMesh" id="BoxMesh_kxljb"]
+size = Vector3(10, 5, 10)
+
+[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_y1kpu"]
+albedo_texture = ExtResource("1_8xru0")
+uv1_triplanar = true
+
+[sub_resource type="CylinderMesh" id="CylinderMesh_y1kpu"]
+top_radius = 1.0
+bottom_radius = 1.0
+height = 0.05
+
+[sub_resource type="CylinderMesh" id="CylinderMesh_1w8vm"]
+top_radius = 0.1
+bottom_radius = 0.1
+height = 1.0
+
+[node name="Room" type="Node3D"]
+
+[node name="CSGMesh3D" type="CSGMesh3D" parent="."]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.5, 0)
+flip_faces = true
+mesh = SubResource("BoxMesh_kxljb")
+material = SubResource("StandardMaterial3D_y1kpu")
+
+[node name="Table" type="Node3D" parent="."]
+
+[node name="CSGMesh3D2" type="CSGMesh3D" parent="Table"]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
+mesh = SubResource("CylinderMesh_y1kpu")
+material = ExtResource("2_kxljb")
+
+[node name="CSGMesh3D" type="CSGMesh3D" parent="Table"]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.000680447, 0.472962, -9.13143e-05)
+mesh = SubResource("CylinderMesh_1w8vm")
+material = ExtResource("2_kxljb")
diff --git a/scenes/room/table.tres b/scenes/room/table.tres
new file mode 100644
index 0000000..ed9eda8
--- /dev/null
+++ b/scenes/room/table.tres
@@ -0,0 +1,7 @@
+[gd_resource type="StandardMaterial3D" load_steps=2 format=3 uid="uid://vxxgydkoi8qp"]
+
+[ext_resource type="Texture2D" uid="uid://dtkppjofklkfh" path="res://addons/kenney_prototype_textures/orange/texture_01.png" id="1_m5q5g"]
+
+[resource]
+albedo_texture = ExtResource("1_m5q5g")
+uv1_triplanar = true
diff --git a/scripts/globals/globals.gd b/scripts/globals/globals.gd
new file mode 100644
index 0000000..e0db872
--- /dev/null
+++ b/scripts/globals/globals.gd
@@ -0,0 +1,7 @@
+extends Node
+
+enum ITEMTYPES {
+ EMPTY,
+ STANDARDBULLET,
+ LUCKYBULLET
+}
diff --git a/scripts/globals/globals.gd.uid b/scripts/globals/globals.gd.uid
new file mode 100644
index 0000000..79d27db
--- /dev/null
+++ b/scripts/globals/globals.gd.uid
@@ -0,0 +1 @@
+uid://bfagh8y1c83i2
diff --git a/scripts/gun/gun.gd b/scripts/gun/gun.gd
new file mode 100644
index 0000000..9452b6d
--- /dev/null
+++ b/scripts/gun/gun.gd
@@ -0,0 +1,40 @@
+class_name Gun extends Node
+
+@onready var empty = preload("res://scripts/item/bullet/Empty/empty.gd")
+
+const maxMagazineSize: int = 12
+const minMagazineSize: int = 2
+var magazineSize: int = 6
+
+var loadedBullets: int = 0
+
+var magazin: Array[Bullet]
+
+var mainOwner: Player
+
+func setOwner(_player: Player) -> void:
+ mainOwner = _player
+
+func loadBullet(_bullet: Bullet):
+ if magazin.size() + 1 <= magazineSize:
+ magazin.append(_bullet)
+
+func fillEmpty():
+ if magazin.size() < magazineSize:
+ for i in range(0, magazineSizeLeft()):
+ loadBullet(Empty.new())
+
+func resetMagazine():
+ magazin = []
+
+func getRandomBullet() -> Bullet:
+ fillEmpty()
+ var randomBullet = magazin.pick_random()
+ magazin.erase(randomBullet)
+ return randomBullet
+
+func getBulletAmount() -> int:
+ return magazin.size()
+
+func magazineSizeLeft() -> int:
+ return magazineSize - magazin.size()
diff --git a/scripts/gun/gun.gd.uid b/scripts/gun/gun.gd.uid
new file mode 100644
index 0000000..ac645d4
--- /dev/null
+++ b/scripts/gun/gun.gd.uid
@@ -0,0 +1 @@
+uid://b3s5n3psysjrr
diff --git a/scripts/item/bullet/Empty/empty.gd b/scripts/item/bullet/Empty/empty.gd
new file mode 100644
index 0000000..e4d11d3
--- /dev/null
+++ b/scripts/item/bullet/Empty/empty.gd
@@ -0,0 +1,5 @@
+class_name Empty extends Bullet
+
+func _init() -> void:
+ type = GLOBALS.ITEMTYPES.EMPTY
+ damage = 0
diff --git a/scripts/item/bullet/Empty/empty.gd.uid b/scripts/item/bullet/Empty/empty.gd.uid
new file mode 100644
index 0000000..3f23a53
--- /dev/null
+++ b/scripts/item/bullet/Empty/empty.gd.uid
@@ -0,0 +1 @@
+uid://c3l3ik8fk4h3b
diff --git a/scripts/item/bullet/LuckyBullet/luckyBullet.gd b/scripts/item/bullet/LuckyBullet/luckyBullet.gd
new file mode 100644
index 0000000..8325027
--- /dev/null
+++ b/scripts/item/bullet/LuckyBullet/luckyBullet.gd
@@ -0,0 +1,12 @@
+class_name LuckyBullet extends Bullet
+
+var minDamage: int = 0
+var maxDamage: int = 2
+
+func _init() -> void:
+ type = GLOBALS.ITEMTYPES.LUCKYBULLET
+
+func getDamage() -> int:
+ randomize()
+ var rng = RandomNumberGenerator.new()
+ return rng.randi_range(minDamage, maxDamage)
diff --git a/scripts/item/bullet/LuckyBullet/luckyBullet.gd.uid b/scripts/item/bullet/LuckyBullet/luckyBullet.gd.uid
new file mode 100644
index 0000000..c344ed9
--- /dev/null
+++ b/scripts/item/bullet/LuckyBullet/luckyBullet.gd.uid
@@ -0,0 +1 @@
+uid://bxlgreqfamldl
diff --git a/scripts/item/bullet/StandardBullet/standardBulet.gd b/scripts/item/bullet/StandardBullet/standardBulet.gd
new file mode 100644
index 0000000..22198a4
--- /dev/null
+++ b/scripts/item/bullet/StandardBullet/standardBulet.gd
@@ -0,0 +1,5 @@
+class_name StandardBullet extends Bullet
+
+func _init() -> void:
+ type = GLOBALS.ITEMTYPES.STANDARDBULLET
+ damage = 1
diff --git a/scripts/item/bullet/StandardBullet/standardBulet.gd.uid b/scripts/item/bullet/StandardBullet/standardBulet.gd.uid
new file mode 100644
index 0000000..70e15bd
--- /dev/null
+++ b/scripts/item/bullet/StandardBullet/standardBulet.gd.uid
@@ -0,0 +1 @@
+uid://c1gjjch8h0q21
diff --git a/scripts/item/bullet/bullet.gd b/scripts/item/bullet/bullet.gd
new file mode 100644
index 0000000..492f641
--- /dev/null
+++ b/scripts/item/bullet/bullet.gd
@@ -0,0 +1,6 @@
+class_name Bullet extends Item
+
+var damage: int = 0
+
+func getDamage() -> int:
+ return damage
diff --git a/scripts/item/bullet/bullet.gd.uid b/scripts/item/bullet/bullet.gd.uid
new file mode 100644
index 0000000..a010e63
--- /dev/null
+++ b/scripts/item/bullet/bullet.gd.uid
@@ -0,0 +1 @@
+uid://bbqlf1ni1fgmu
diff --git a/scripts/item/item.gd b/scripts/item/item.gd
new file mode 100644
index 0000000..60f32f5
--- /dev/null
+++ b/scripts/item/item.gd
@@ -0,0 +1,3 @@
+class_name Item extends Node
+
+var type: GLOBALS.ITEMTYPES
diff --git a/scripts/item/item.gd.uid b/scripts/item/item.gd.uid
new file mode 100644
index 0000000..df2bb4f
--- /dev/null
+++ b/scripts/item/item.gd.uid
@@ -0,0 +1 @@
+uid://bkg3ot20liwdx
diff --git a/scripts/player/player.gd b/scripts/player/player.gd
new file mode 100644
index 0000000..bc5275b
--- /dev/null
+++ b/scripts/player/player.gd
@@ -0,0 +1,110 @@
+class_name Player extends Node
+
+var gameName: String = ""
+
+# -- HEALTH --
+const maxHealth: int = 3
+const minHealth: int = 0
+var health := maxHealth
+# -- HEALTH --
+
+# -- Item --
+var itemInventory: Array[Item] = []
+# -- Item --
+
+var gun: Gun
+var selectedPlayer: Player = self
+
+var character: Character
+
+var bot: bool = false
+
+signal dead(player: Player)
+signal hit(player: Player)
+signal missed()
+signal hurt()
+
+func _init(_name: String, _gun: Gun, _character: Character) -> void:
+ gameName = _name
+ gun = _gun
+ character = _character
+ gun.setOwner(self)
+
+# -- HEALTH --
+func damage(amount: int) -> void:
+ print("Hit")
+ if health - amount < minHealth:
+ kill()
+ health = minHealth
+ else:
+ health -= amount
+ for i in range(0,amount):
+ character.removeShot()
+
+func heal(amount: int) -> void:
+ if health + amount > maxHealth:
+ health = maxHealth
+ else:
+ health += amount
+
+func getHealth () -> int:
+ return health
+
+func kill():
+ dead.emit(self)
+# -- HEALTH --
+
+
+# -- Item --
+func addItem(_item: Item) -> void:
+ itemInventory.append(_item)
+
+func removeItem(_item: Item) -> void:
+ itemInventory.erase(_item)
+
+func getItems() -> Array[Item]:
+ return itemInventory
+# -- Item --
+
+
+# -- Gun --
+func giveGun(_gun: Gun):
+ gun = _gun
+
+func takeGun():
+ gun = null
+
+func useItem(_item: Item):
+ if _item is Bullet:
+ loadBullet(_item)
+ else:
+ print("no bullet")
+
+func loadBullet(_bullet: Bullet):
+ gun.loadBullet(_bullet)
+ itemInventory.erase(_bullet)
+
+func shootAtSelectedPlayer():
+ var randomBullet = gun.getRandomBullet()
+ if randomBullet is StandardBullet or randomBullet is LuckyBullet:
+ var bulletDamage = randomBullet.getDamage()
+ if bulletDamage > 0:
+ selectedPlayer.damage(bulletDamage)
+ else:
+ print("Missed")
+ else:
+ print("Empty")
+
+# -- Gun --
+
+func selectPlayer(_player: Player) -> void:
+ selectedPlayer = _player
+
+func getGameName() -> String:
+ return gameName
+
+func setCharacter(_character: Character) -> void:
+ character = _character
+
+func getItemAmount() -> int:
+ return itemInventory.size()
diff --git a/scripts/player/player.gd.uid b/scripts/player/player.gd.uid
new file mode 100644
index 0000000..1024643
--- /dev/null
+++ b/scripts/player/player.gd.uid
@@ -0,0 +1 @@
+uid://fkhkxtks5vaw