A Quadrilateral Cowboy clone intended to help me learn Game Dev

Clearing out this branch to make way for new Rust code

-5648
-4
.editorconfig
··· 1 - root = true 2 - 3 - [*] 4 - charset = utf-8
-2
.gitattributes
··· 1 - # Normalize EOL for all files that Git considers text files. 2 - * text=auto eol=lf
-3
.gitignore
··· 1 - # Godot 4+ specific ignores 2 - .godot/ 3 - /android/
-137
addons/crt/crt.gd
··· 1 - @tool 2 - @icon("res://addons/crt/icon.svg") 3 - class_name CRT 4 - extends CanvasLayer 5 - 6 - # Material and update control 7 - var material: ShaderMaterial 8 - @export var update_in_editor: bool = true: 9 - set(value): 10 - update_in_editor = value 11 - if _should_update(): 12 - visible = true 13 - else: 14 - visible = false 15 - 16 - # Base resolution for pixel-perfect effects 17 - @export var resolution: Vector2 = Vector2(320.0, 180.0): 18 - set(value): 19 - resolution = value 20 - _set_shader_param("resolution", resolution) 21 - 22 - # Scanline effect 23 - @export_range(0.0, 1.0) var scan_line_amount: float = 1.0: 24 - set(value): 25 - scan_line_amount = value 26 - _set_shader_param("scan_line_amount", value) 27 - 28 - @export_range(-12.0, -1.0) var scan_line_strength: float = -8.0: 29 - set(value): 30 - scan_line_strength = value 31 - _set_shader_param("scan_line_strength", value) 32 - 33 - # Screen curvature/warp effect 34 - @export_range(0.0, 5.0) var warp_amount: float = 0.1: 35 - set(value): 36 - warp_amount = value 37 - _set_shader_param("warp_amount", value) 38 - 39 - # Visual noise/interference 40 - @export_range(0.0, 0.3) var noise_amount: float = 0.03: 41 - set(value): 42 - noise_amount = value 43 - _set_shader_param("noise_amount", value) 44 - 45 - @export_range(0.0, 1.0) var interference_amount: float = 0.2: 46 - set(value): 47 - interference_amount = value 48 - _set_shader_param("interference_amount", value) 49 - 50 - # Shadow mask/grille 51 - @export_range(0.0, 1.0) var grille_amount: float = 0.1: 52 - set(value): 53 - grille_amount = value 54 - _set_shader_param("grille_amount", value) 55 - 56 - @export_range(1.0, 5.0) var grille_size: float = 1.0: 57 - set(value): 58 - grille_size = value 59 - _set_shader_param("grille_size", value) 60 - 61 - # Vignette 62 - @export_range(0.0, 2.0) var vignette_amount: float = 0.6: 63 - set(value): 64 - vignette_amount = value 65 - _set_shader_param("vignette_amount", value) 66 - 67 - @export_range(0.0, 1.0) var vignette_intensity: float = 0.4: 68 - set(value): 69 - vignette_intensity = value 70 - _set_shader_param("vignette_intensity", value) 71 - 72 - # Chromatic aberration 73 - @export_range(0.0, 1.0) var aberation_amount: float = 0.5: 74 - set(value): 75 - aberation_amount = value 76 - _set_shader_param("aberation_amount", value) 77 - 78 - # Rolling line effect 79 - @export_range(0.0, 1.0) var roll_line_amount: float = 0.3: 80 - set(value): 81 - roll_line_amount = value 82 - _set_shader_param("roll_line_amount", value) 83 - 84 - @export_range(-8.0, 8.0) var roll_speed: float = 1.0: 85 - set(value): 86 - roll_speed = value 87 - _set_shader_param("roll_speed", value) 88 - 89 - # Pixel sharpness/softness 90 - @export_range(-4.0, 0.0) var pixel_strength: float = -2.0: 91 - set(value): 92 - pixel_strength = value 93 - _set_shader_param("pixel_strength", value) 94 - 95 - 96 - func _ready() -> void: 97 - var color_rect = ColorRect.new() 98 - color_rect.color = Color.WHITE 99 - color_rect.set_anchors_preset(Control.PRESET_FULL_RECT) 100 - 101 - material = ShaderMaterial.new() 102 - material.shader = load("res://addons/crt/crt.gdshader") 103 - 104 - # Initialize all shader parameters 105 - _set_shader_param("resolution", resolution) 106 - _set_shader_param("scan_line_amount", scan_line_amount) 107 - _set_shader_param("scan_line_strength", scan_line_strength) 108 - _set_shader_param("warp_amount", warp_amount) 109 - _set_shader_param("noise_amount", noise_amount) 110 - _set_shader_param("interference_amount", interference_amount) 111 - _set_shader_param("grille_amount", grille_amount) 112 - _set_shader_param("grille_size", grille_size) 113 - _set_shader_param("vignette_amount", vignette_amount) 114 - _set_shader_param("vignette_intensity", vignette_intensity) 115 - _set_shader_param("aberation_amount", aberation_amount) 116 - _set_shader_param("roll_line_amount", roll_line_amount) 117 - _set_shader_param("roll_speed", roll_speed) 118 - _set_shader_param("pixel_strength", pixel_strength) 119 - 120 - color_rect.material = material 121 - add_child(color_rect) 122 - if _should_update(): 123 - visible = true 124 - else: 125 - visible = false 126 - 127 - 128 - # Helper function to safely set shader parameters 129 - func _set_shader_param(param_name: String, value) -> void: 130 - if material: 131 - material.set_shader_parameter(param_name, value) 132 - 133 - 134 - func _should_update() -> bool: 135 - if Engine.is_editor_hint(): 136 - return update_in_editor 137 - return true
-1
addons/crt/crt.gd.uid
··· 1 - uid://bghaddibpt6f1
-262
addons/crt/crt.gdshader
··· 1 - // CRT Shader for Godot Engine 2 - // Simulates the look of old CRT displays with various customizable effects 3 - shader_type canvas_item; 4 - 5 - // Built-in texture for screen sampling 6 - uniform sampler2D SCREEN_TEXTURE: hint_screen_texture; 7 - 8 - // Base resolution for pixel-perfect effects (lower values = larger pixels) 9 - uniform vec2 resolution = vec2(320.0, 180.0); 10 - 11 - // ===== Effect Controls ===== 12 - // Each parameter has a sensible default and range hint for the Godot editor 13 - 14 - // Scanline effect (dark lines between pixel rows) 15 - uniform float scan_line_amount : hint_range(0.0, 1.0) = 1.0; 16 - uniform float scan_line_strength : hint_range(-12.0, -1.0) = -8.0; 17 - 18 - // Screen curvature/warp effect 19 - uniform float warp_amount : hint_range(0.0, 5.0) = 0.1; 20 - 21 - // Visual noise/interference 22 - uniform float noise_amount : hint_range(0.0, 0.3) = 0.03; 23 - uniform float interference_amount : hint_range(0.0, 1.0) = 0.2; 24 - 25 - // Shadow mask/grille (simulates color phosphor patterns) 26 - uniform float grille_amount : hint_range(0.0, 1.0) = 0.1; 27 - uniform float grille_size : hint_range(1.0, 5.0) = 1.0; 28 - 29 - // Vignette (darkening at screen edges) 30 - uniform float vignette_amount : hint_range(0.0, 2.0) = 0.6; 31 - uniform float vignette_intensity : hint_range(0.0, 1.0) = 0.4; 32 - 33 - // Chromatic aberration (color separation) 34 - uniform float aberation_amount : hint_range(0.0, 1.0) = 0.5; 35 - 36 - // Rolling line effect (simulates VHS/analog interference) 37 - uniform float roll_line_amount : hint_range(0.0, 1.0) = 0.3; 38 - uniform float roll_speed : hint_range(-8.0, 8.0) = 1.0; 39 - 40 - // Pixel sharpness/softness 41 - uniform float pixel_strength : hint_range(-4.0, 0.0) = -2.0; 42 - 43 - // ===== Utility Functions ===== 44 - 45 - /** 46 - * Generates a pseudo-random float between 0 and 1 based on input coordinates 47 - */ 48 - float random(vec2 uv) { 49 - return fract(cos(uv.x * 83.4827 + uv.y * 92.2842) * 43758.5453123); 50 - } 51 - 52 - /** 53 - * Samples a pixel from the screen texture with optional offset and noise 54 - * Handles edge cases and applies noise if enabled 55 - */ 56 - vec3 fetch_pixel(vec2 uv, vec2 off) { 57 - // Calculate pixel position with offset and snap to pixel grid 58 - vec2 pos = floor(uv * resolution + off) / resolution + vec2(0.5) / resolution; 59 - 60 - // Apply noise if enabled 61 - float noise = 0.0; 62 - if (noise_amount > 0.0) { 63 - noise = random(pos + fract(TIME)) * noise_amount; 64 - } 65 - 66 - // Clamp to screen bounds (return black if outside) 67 - if (max(abs(pos.x - 0.5), abs(pos.y - 0.5)) > 0.5) { 68 - return vec3(0.0); 69 - } 70 - 71 - // Sample the texture with mipmap bias for sharper pixels 72 - return texture(SCREEN_TEXTURE, pos, -16.0).rgb + noise; 73 - } 74 - 75 - // ===== Pixel and Scanline Processing ===== 76 - 77 - /** 78 - * Calculates distance from current pixel to nearest texel center 79 - * Used for sub-pixel filtering and anti-aliasing 80 - */ 81 - vec2 Dist(vec2 pos) { 82 - pos = pos * resolution; 83 - return -((pos - floor(pos)) - vec2(0.5)); 84 - } 85 - 86 - /** 87 - * 1D Gaussian function for smooth filtering 88 - */ 89 - float Gaus(float pos, float scale) { 90 - return exp2(scale * pos * pos); 91 - } 92 - 93 - /** 94 - * 3-tap Gaussian filter along horizontal line 95 - * Creates smooth horizontal blending between pixels 96 - */ 97 - vec3 Horz3(vec2 pos, float off) { 98 - // Sample three horizontally adjacent pixels 99 - vec3 b = fetch_pixel(pos, vec2(-1.0, off)); 100 - vec3 c = fetch_pixel(pos, vec2( 0.0, off)); 101 - vec3 d = fetch_pixel(pos, vec2( 1.0, off)); 102 - 103 - // Calculate weights based on distance from pixel center 104 - float dst = Dist(pos).x; 105 - float wb = Gaus(dst - 1.0, pixel_strength); 106 - float wc = Gaus(dst + 0.0, pixel_strength); 107 - float wd = Gaus(dst + 1.0, pixel_strength); 108 - 109 - // Return weighted average of samples 110 - return (b * wb + c * wc + d * wd) / (wb + wc + wd); 111 - } 112 - 113 - /** 114 - * Calculates scanline weight for a given position and offset 115 - * Creates the dark lines between pixel rows 116 - */ 117 - float Scan(vec2 pos, float off) { 118 - float dst = Dist(pos).y; 119 - return Gaus(dst + off, scan_line_strength); 120 - } 121 - 122 - /** 123 - * Applies scanline effect by blending multiple horizontal samples 124 - * Combines three scanlines with gaussian weights for smooth transitions 125 - */ 126 - vec3 Tri(vec2 pos) { 127 - vec3 clr = fetch_pixel(pos, vec2(0.0)); 128 - 129 - if (scan_line_amount > 0.0) { 130 - // Sample three vertically adjacent scanlines 131 - vec3 a = Horz3(pos, -1.0); 132 - vec3 b = Horz3(pos, 0.0); 133 - vec3 c = Horz3(pos, 1.0); 134 - 135 - // Calculate scanline weights 136 - float wa = Scan(pos, -1.0); 137 - float wb = Scan(pos, 0.0); 138 - float wc = Scan(pos, 1.0); 139 - 140 - // Blend between original and scanline-affected color 141 - vec3 scanlines = a * wa + b * wb + c * wc; 142 - clr = mix(clr, scanlines, scan_line_amount); 143 - } 144 - 145 - return clr; 146 - } 147 - 148 - // ===== Screen Warping and Distortion Effects ===== 149 - 150 - /** 151 - * Applies a spherize/bulge distortion to simulate CRT screen curvature 152 - * Warps UV coordinates more severely towards screen edges 153 - */ 154 - vec2 warp(vec2 uv) { 155 - // Calculate distance from center and apply non-linear warping 156 - vec2 delta = uv - 0.5; 157 - float delta2 = dot(delta.xy, delta.xy); 158 - float delta4 = delta2 * delta2; 159 - float delta_offset = delta4 * warp_amount; 160 - 161 - // Apply warping and normalize back to 0-1 range 162 - vec2 warped = uv + delta * delta_offset; 163 - return (warped - 0.5) / mix(1.0, 1.2, warp_amount/5.0) + 0.5; 164 - } 165 - 166 - /** 167 - * Applies vignette effect (darkening at screen edges) 168 - * Uses a smooth falloff based on distance from center 169 - */ 170 - float vignette(vec2 uv) { 171 - // Create circular falloff from center 172 - uv *= 1.0 - uv.xy; 173 - float vignette = uv.x * uv.y * 15.0; 174 - 175 - // Apply intensity controls 176 - return pow(vignette, vignette_intensity * vignette_amount); 177 - } 178 - 179 - /** 180 - * Simulates a shadow mask/grille pattern like those found in CRT displays 181 - * Creates color separation similar to real phosphor patterns 182 - */ 183 - vec3 grille(vec2 uv) { 184 - float unit = PI / 3.0; 185 - float scale = 2.0 * unit / grille_size; 186 - 187 - // Create offset color patterns for RGB channels 188 - float r = smoothstep(0.5, 0.8, cos(uv.x * scale - unit)); 189 - float g = smoothstep(0.5, 0.8, cos(uv.x * scale + unit)); 190 - float b = smoothstep(0.5, 0.8, cos(uv.x * scale + 3.0 * unit)); 191 - 192 - // Blend between original color and grille pattern 193 - return mix(vec3(1.0), vec3(r, g, b), grille_amount); 194 - } 195 - 196 - /** 197 - * Creates rolling horizontal interference lines 198 - * Simulates analog signal interference or VHS artifacts 199 - */ 200 - float roll_line(vec2 uv) { 201 - // Create complex wave pattern that moves with time 202 - float x = uv.y * 3.0 - TIME * roll_speed; 203 - float f = cos(x) * cos(x * 2.35 + 1.1) * cos(x * 4.45 + 2.3); 204 - 205 - // Threshold and smooth the wave to create distinct lines 206 - float roll_line = smoothstep(0.5, 0.9, f); 207 - return roll_line * roll_line_amount; 208 - } 209 - 210 - // ===== Main Shader Function ===== 211 - 212 - void fragment() { 213 - // Get screen coordinates and apply screen warping 214 - vec2 pix = FRAGCOORD.xy; 215 - vec2 pos = warp(SCREEN_UV); 216 - 217 - // Generate rolling interference lines if enabled 218 - float line = 0.0; 219 - if (roll_line_amount > 0.0) { 220 - line = roll_line(pos); 221 - } 222 - 223 - // Apply horizontal interference/jitter 224 - vec2 sq_pix = floor(pos * resolution) / resolution + vec2(0.5) / resolution; 225 - if (interference_amount + roll_line_amount > 0.0) { 226 - float interference = random(sq_pix.yy + fract(TIME)); 227 - pos.x += (interference * (interference_amount + line * 6.0)) / resolution.x; 228 - } 229 - 230 - // Get base color with scanline processing 231 - vec3 clr = Tri(pos); 232 - 233 - // Apply chromatic aberration (color separation) 234 - if (aberation_amount > 0.0) { 235 - float chromatic = aberation_amount + line * 2.0; // Enhanced by rolling lines 236 - vec2 chromatic_x = vec2(chromatic, 0.0) / resolution.x; 237 - vec2 chromatic_y = vec2(0.0, chromatic/2.0) / resolution.y; 238 - 239 - // Sample RGB channels with slight offsets 240 - float r = Tri(pos - chromatic_x).r; // Red shifted left 241 - float g = Tri(pos + chromatic_y).g; // Green shifted down 242 - float b = Tri(pos + chromatic_x).b; // Blue shifted right 243 - clr = vec3(r, g, b); 244 - } 245 - 246 - // Apply shadow mask/grille effect 247 - if (grille_amount > 0.0) { 248 - clr *= grille(pix); 249 - } 250 - 251 - // Adjust overall brightness based on effects 252 - clr *= 1.0 + scan_line_amount * 0.6 + line * 3.0 + grille_amount * 2.0; 253 - 254 - // Apply vignette (darken edges) 255 - if (vignette_amount > 0.0) { 256 - clr *= vignette(pos); 257 - } 258 - 259 - // Output final color 260 - COLOR.rgb = clr; 261 - COLOR.a = 1.0; 262 - }
-1
addons/crt/crt.gdshader.uid
··· 1 - uid://cv7hfm5duhalc
-7
addons/crt/icon.svg
··· 1 - <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> 2 - <!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools --> 3 - <svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> 4 - <g id="SVGRepo_bgCarrier" stroke-width="0"/> 5 - <g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/> 6 - <g id="SVGRepo_iconCarrier"> <path opacity="0.5" d="M10 2H14C17.7712 2 19.6569 2 20.8284 3.17157C22 4.34315 22 6.22876 22 10V11C22 11.5516 22 12.5494 21.9935 13H2.00652C2 12.5494 2 11.5516 2 11V10C2 6.22876 2 4.34315 3.17157 3.17157C4.34315 2 6.22876 2 10 2Z" fill="#ff1f6d"/> <path d="M7.9846 17.5C5.14528 17.5 3.72562 17.5 2.84356 16.6213C2.27207 16.052 2.07085 15.2579 2 14V13H22V14C21.9292 15.2579 21.7279 16.052 21.1564 16.6213C20.2744 17.5 18.8547 17.5 16.0154 17.5H12.7529V21.5H16.0154C16.4312 21.5 16.7683 21.8358 16.7683 22.25C16.7683 22.6642 16.4312 23 16.0154 23H7.9846C7.56879 23 7.23171 22.6642 7.23171 22.25C7.23171 21.8358 7.56879 21.5 7.9846 21.5H11.2471V17.5H7.9846Z" fill="#ff1f6d"/> </g> 7 - </svg>
-43
addons/crt/icon.svg.import
··· 1 - [remap] 2 - 3 - importer="texture" 4 - type="CompressedTexture2D" 5 - uid="uid://b5sot5nn7qtwo" 6 - path="res://.godot/imported/icon.svg-d42ab2f5b702d9b6fcd86eb100b7df53.ctex" 7 - metadata={ 8 - "vram_texture": false 9 - } 10 - 11 - [deps] 12 - 13 - source_file="res://addons/crt/icon.svg" 14 - dest_files=["res://.godot/imported/icon.svg-d42ab2f5b702d9b6fcd86eb100b7df53.ctex"] 15 - 16 - [params] 17 - 18 - compress/mode=0 19 - compress/high_quality=false 20 - compress/lossy_quality=0.7 21 - compress/uastc_level=0 22 - compress/rdo_quality_loss=0.0 23 - compress/hdr_compression=1 24 - compress/normal_map=0 25 - compress/channel_pack=0 26 - mipmaps/generate=false 27 - mipmaps/limit=-1 28 - roughness/mode=0 29 - roughness/src_normal="" 30 - process/channel_remap/red=0 31 - process/channel_remap/green=1 32 - process/channel_remap/blue=2 33 - process/channel_remap/alpha=3 34 - process/fix_alpha_border=true 35 - process/premult_alpha=false 36 - process/normal_map_invert_y=false 37 - process/hdr_as_srgb=false 38 - process/hdr_clamp_exposure=false 39 - process/size_limit=0 40 - detect_3d/compress_to=1 41 - svg/scale=1.0 42 - editor/scale_with_editor_scale=false 43 - editor/convert_colors_with_editor_theme=false
-7
addons/crt/plugin.cfg
··· 1 - [plugin] 2 - 3 - name="CRT" 4 - description="A high-quality CRT (Cathode Ray Tube) shader for Godot 4.x that simulates the look and feel of old CRT displays with various customizable effects." 5 - author="nofacer" 6 - version="1.0.1" 7 - script="plugin.gd"
-2
addons/crt/plugin.gd
··· 1 - @tool 2 - extends EditorPlugin
-1
addons/crt/plugin.gd.uid
··· 1 - uid://e1ckld2u6fh5
-21
addons/godot-git-plugin/LICENSE
··· 1 - MIT License 2 - 3 - Copyright (c) 2016-2023 The Godot Engine community 4 - 5 - Permission is hereby granted, free of charge, to any person obtaining a copy 6 - of this software and associated documentation files (the "Software"), to deal 7 - in the Software without restriction, including without limitation the rights 8 - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 - copies of the Software, and to permit persons to whom the Software is 10 - furnished to do so, subject to the following conditions: 11 - 12 - The above copyright notice and this permission notice shall be included in all 13 - copies or substantial portions of the Software. 14 - 15 - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 - SOFTWARE.
-1346
addons/godot-git-plugin/THIRDPARTY.md
··· 1 - # Third-Party Notices 2 - 3 - The Godot Git Plugin source code uses the following third-party source code: 4 - 5 - 1. godotengine/godot-cpp - MIT License - https://github.com/godotengine/godot-cpp/tree/02336831735fd6affbe0a6fa252ec98d3e78120c 6 - 2. libgit2/libgit2 - GPLv2 with a special Linking Exception - https://github.com/libgit2/libgit2/tree/b7bad55e4bb0a285b073ba5e02b01d3f522fc95d 7 - 3. libssh2/libssh2 - BSD-3-Clause License - https://github.com/libssh2/libssh2/tree/635caa90787220ac3773c1d5ba11f1236c22eae8 8 - 4. openssl - OpenSSL License - https://github.com/openssl/openssl/tree/26baecb28ce461696966dac9ac889629db0b3b96 9 - 10 - ## License Texts 11 - 12 - ### godotengine/godot-cpp 13 - 14 - ``` 15 - # MIT License 16 - 17 - Copyright (c) 2017-2022 Godot Engine contributors. 18 - 19 - Permission is hereby granted, free of charge, to any person obtaining a copy 20 - of this software and associated documentation files (the "Software"), to deal 21 - in the Software without restriction, including without limitation the rights 22 - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 - copies of the Software, and to permit persons to whom the Software is 24 - furnished to do so, subject to the following conditions: 25 - 26 - The above copyright notice and this permission notice shall be included in all 27 - copies or substantial portions of the Software. 28 - 29 - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 35 - SOFTWARE. 36 - ``` 37 - 38 - ### libgit2/libgit2 39 - 40 - ``` 41 - libgit2 is Copyright (C) the libgit2 contributors, 42 - unless otherwise stated. See the AUTHORS file for details. 43 - 44 - Note that the only valid version of the GPL as far as this project 45 - is concerned is _this_ particular version of the license (ie v2, not 46 - v2.2 or v3.x or whatever), unless explicitly otherwise stated. 47 - 48 - ---------------------------------------------------------------------- 49 - 50 - LINKING EXCEPTION 51 - 52 - In addition to the permissions in the GNU General Public License, 53 - the authors give you unlimited permission to link the compiled 54 - version of this library into combinations with other programs, 55 - and to distribute those combinations without any restriction 56 - coming from the use of this file. (The General Public License 57 - restrictions do apply in other respects; for example, they cover 58 - modification of the file, and distribution when not linked into 59 - a combined executable.) 60 - 61 - ---------------------------------------------------------------------- 62 - 63 - GNU GENERAL PUBLIC LICENSE 64 - Version 2, June 1991 65 - 66 - Copyright (C) 1989, 1991 Free Software Foundation, Inc. 67 - 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 68 - Everyone is permitted to copy and distribute verbatim copies 69 - of this license document, but changing it is not allowed. 70 - 71 - Preamble 72 - 73 - The licenses for most software are designed to take away your 74 - freedom to share and change it. By contrast, the GNU General Public 75 - License is intended to guarantee your freedom to share and change free 76 - software--to make sure the software is free for all its users. This 77 - General Public License applies to most of the Free Software 78 - Foundation's software and to any other program whose authors commit to 79 - using it. (Some other Free Software Foundation software is covered by 80 - the GNU Library General Public License instead.) You can apply it to 81 - your programs, too. 82 - 83 - When we speak of free software, we are referring to freedom, not 84 - price. Our General Public Licenses are designed to make sure that you 85 - have the freedom to distribute copies of free software (and charge for 86 - this service if you wish), that you receive source code or can get it 87 - if you want it, that you can change the software or use pieces of it 88 - in new free programs; and that you know you can do these things. 89 - 90 - To protect your rights, we need to make restrictions that forbid 91 - anyone to deny you these rights or to ask you to surrender the rights. 92 - These restrictions translate to certain responsibilities for you if you 93 - distribute copies of the software, or if you modify it. 94 - 95 - For example, if you distribute copies of such a program, whether 96 - gratis or for a fee, you must give the recipients all the rights that 97 - you have. You must make sure that they, too, receive or can get the 98 - source code. And you must show them these terms so they know their 99 - rights. 100 - 101 - We protect your rights with two steps: (1) copyright the software, and 102 - (2) offer you this license which gives you legal permission to copy, 103 - distribute and/or modify the software. 104 - 105 - Also, for each author's protection and ours, we want to make certain 106 - that everyone understands that there is no warranty for this free 107 - software. If the software is modified by someone else and passed on, we 108 - want its recipients to know that what they have is not the original, so 109 - that any problems introduced by others will not reflect on the original 110 - authors' reputations. 111 - 112 - Finally, any free program is threatened constantly by software 113 - patents. We wish to avoid the danger that redistributors of a free 114 - program will individually obtain patent licenses, in effect making the 115 - program proprietary. To prevent this, we have made it clear that any 116 - patent must be licensed for everyone's free use or not licensed at all. 117 - 118 - The precise terms and conditions for copying, distribution and 119 - modification follow. 120 - 121 - GNU GENERAL PUBLIC LICENSE 122 - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 123 - 124 - 0. This License applies to any program or other work which contains 125 - a notice placed by the copyright holder saying it may be distributed 126 - under the terms of this General Public License. The "Program", below, 127 - refers to any such program or work, and a "work based on the Program" 128 - means either the Program or any derivative work under copyright law: 129 - that is to say, a work containing the Program or a portion of it, 130 - either verbatim or with modifications and/or translated into another 131 - language. (Hereinafter, translation is included without limitation in 132 - the term "modification".) Each licensee is addressed as "you". 133 - 134 - Activities other than copying, distribution and modification are not 135 - covered by this License; they are outside its scope. The act of 136 - running the Program is not restricted, and the output from the Program 137 - is covered only if its contents constitute a work based on the 138 - Program (independent of having been made by running the Program). 139 - Whether that is true depends on what the Program does. 140 - 141 - 1. You may copy and distribute verbatim copies of the Program's 142 - source code as you receive it, in any medium, provided that you 143 - conspicuously and appropriately publish on each copy an appropriate 144 - copyright notice and disclaimer of warranty; keep intact all the 145 - notices that refer to this License and to the absence of any warranty; 146 - and give any other recipients of the Program a copy of this License 147 - along with the Program. 148 - 149 - You may charge a fee for the physical act of transferring a copy, and 150 - you may at your option offer warranty protection in exchange for a fee. 151 - 152 - 2. You may modify your copy or copies of the Program or any portion 153 - of it, thus forming a work based on the Program, and copy and 154 - distribute such modifications or work under the terms of Section 1 155 - above, provided that you also meet all of these conditions: 156 - 157 - a) You must cause the modified files to carry prominent notices 158 - stating that you changed the files and the date of any change. 159 - 160 - b) You must cause any work that you distribute or publish, that in 161 - whole or in part contains or is derived from the Program or any 162 - part thereof, to be licensed as a whole at no charge to all third 163 - parties under the terms of this License. 164 - 165 - c) If the modified program normally reads commands interactively 166 - when run, you must cause it, when started running for such 167 - interactive use in the most ordinary way, to print or display an 168 - announcement including an appropriate copyright notice and a 169 - notice that there is no warranty (or else, saying that you provide 170 - a warranty) and that users may redistribute the program under 171 - these conditions, and telling the user how to view a copy of this 172 - License. (Exception: if the Program itself is interactive but 173 - does not normally print such an announcement, your work based on 174 - the Program is not required to print an announcement.) 175 - 176 - These requirements apply to the modified work as a whole. If 177 - identifiable sections of that work are not derived from the Program, 178 - and can be reasonably considered independent and separate works in 179 - themselves, then this License, and its terms, do not apply to those 180 - sections when you distribute them as separate works. But when you 181 - distribute the same sections as part of a whole which is a work based 182 - on the Program, the distribution of the whole must be on the terms of 183 - this License, whose permissions for other licensees extend to the 184 - entire whole, and thus to each and every part regardless of who wrote it. 185 - 186 - Thus, it is not the intent of this section to claim rights or contest 187 - your rights to work written entirely by you; rather, the intent is to 188 - exercise the right to control the distribution of derivative or 189 - collective works based on the Program. 190 - 191 - In addition, mere aggregation of another work not based on the Program 192 - with the Program (or with a work based on the Program) on a volume of 193 - a storage or distribution medium does not bring the other work under 194 - the scope of this License. 195 - 196 - 3. You may copy and distribute the Program (or a work based on it, 197 - under Section 2) in object code or executable form under the terms of 198 - Sections 1 and 2 above provided that you also do one of the following: 199 - 200 - a) Accompany it with the complete corresponding machine-readable 201 - source code, which must be distributed under the terms of Sections 202 - 1 and 2 above on a medium customarily used for software interchange; or, 203 - 204 - b) Accompany it with a written offer, valid for at least three 205 - years, to give any third party, for a charge no more than your 206 - cost of physically performing source distribution, a complete 207 - machine-readable copy of the corresponding source code, to be 208 - distributed under the terms of Sections 1 and 2 above on a medium 209 - customarily used for software interchange; or, 210 - 211 - c) Accompany it with the information you received as to the offer 212 - to distribute corresponding source code. (This alternative is 213 - allowed only for noncommercial distribution and only if you 214 - received the program in object code or executable form with such 215 - an offer, in accord with Subsection b above.) 216 - 217 - The source code for a work means the preferred form of the work for 218 - making modifications to it. For an executable work, complete source 219 - code means all the source code for all modules it contains, plus any 220 - associated interface definition files, plus the scripts used to 221 - control compilation and installation of the executable. However, as a 222 - special exception, the source code distributed need not include 223 - anything that is normally distributed (in either source or binary 224 - form) with the major components (compiler, kernel, and so on) of the 225 - operating system on which the executable runs, unless that component 226 - itself accompanies the executable. 227 - 228 - If distribution of executable or object code is made by offering 229 - access to copy from a designated place, then offering equivalent 230 - access to copy the source code from the same place counts as 231 - distribution of the source code, even though third parties are not 232 - compelled to copy the source along with the object code. 233 - 234 - 4. You may not copy, modify, sublicense, or distribute the Program 235 - except as expressly provided under this License. Any attempt 236 - otherwise to copy, modify, sublicense or distribute the Program is 237 - void, and will automatically terminate your rights under this License. 238 - However, parties who have received copies, or rights, from you under 239 - this License will not have their licenses terminated so long as such 240 - parties remain in full compliance. 241 - 242 - 5. You are not required to accept this License, since you have not 243 - signed it. However, nothing else grants you permission to modify or 244 - distribute the Program or its derivative works. These actions are 245 - prohibited by law if you do not accept this License. Therefore, by 246 - modifying or distributing the Program (or any work based on the 247 - Program), you indicate your acceptance of this License to do so, and 248 - all its terms and conditions for copying, distributing or modifying 249 - the Program or works based on it. 250 - 251 - 6. Each time you redistribute the Program (or any work based on the 252 - Program), the recipient automatically receives a license from the 253 - original licensor to copy, distribute or modify the Program subject to 254 - these terms and conditions. You may not impose any further 255 - restrictions on the recipients' exercise of the rights granted herein. 256 - You are not responsible for enforcing compliance by third parties to 257 - this License. 258 - 259 - 7. If, as a consequence of a court judgment or allegation of patent 260 - infringement or for any other reason (not limited to patent issues), 261 - conditions are imposed on you (whether by court order, agreement or 262 - otherwise) that contradict the conditions of this License, they do not 263 - excuse you from the conditions of this License. If you cannot 264 - distribute so as to satisfy simultaneously your obligations under this 265 - License and any other pertinent obligations, then as a consequence you 266 - may not distribute the Program at all. For example, if a patent 267 - license would not permit royalty-free redistribution of the Program by 268 - all those who receive copies directly or indirectly through you, then 269 - the only way you could satisfy both it and this License would be to 270 - refrain entirely from distribution of the Program. 271 - 272 - If any portion of this section is held invalid or unenforceable under 273 - any particular circumstance, the balance of the section is intended to 274 - apply and the section as a whole is intended to apply in other 275 - circumstances. 276 - 277 - It is not the purpose of this section to induce you to infringe any 278 - patents or other property right claims or to contest validity of any 279 - such claims; this section has the sole purpose of protecting the 280 - integrity of the free software distribution system, which is 281 - implemented by public license practices. Many people have made 282 - generous contributions to the wide range of software distributed 283 - through that system in reliance on consistent application of that 284 - system; it is up to the author/donor to decide if he or she is willing 285 - to distribute software through any other system and a licensee cannot 286 - impose that choice. 287 - 288 - This section is intended to make thoroughly clear what is believed to 289 - be a consequence of the rest of this License. 290 - 291 - 8. If the distribution and/or use of the Program is restricted in 292 - certain countries either by patents or by copyrighted interfaces, the 293 - original copyright holder who places the Program under this License 294 - may add an explicit geographical distribution limitation excluding 295 - those countries, so that distribution is permitted only in or among 296 - countries not thus excluded. In such case, this License incorporates 297 - the limitation as if written in the body of this License. 298 - 299 - 9. The Free Software Foundation may publish revised and/or new versions 300 - of the General Public License from time to time. Such new versions will 301 - be similar in spirit to the present version, but may differ in detail to 302 - address new problems or concerns. 303 - 304 - Each version is given a distinguishing version number. If the Program 305 - specifies a version number of this License which applies to it and "any 306 - later version", you have the option of following the terms and conditions 307 - either of that version or of any later version published by the Free 308 - Software Foundation. If the Program does not specify a version number of 309 - this License, you may choose any version ever published by the Free Software 310 - Foundation. 311 - 312 - 10. If you wish to incorporate parts of the Program into other free 313 - programs whose distribution conditions are different, write to the author 314 - to ask for permission. For software which is copyrighted by the Free 315 - Software Foundation, write to the Free Software Foundation; we sometimes 316 - make exceptions for this. Our decision will be guided by the two goals 317 - of preserving the free status of all derivatives of our free software and 318 - of promoting the sharing and reuse of software generally. 319 - 320 - NO WARRANTY 321 - 322 - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 323 - FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 324 - OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 325 - PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 326 - OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 327 - MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 328 - TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 329 - PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 330 - REPAIR OR CORRECTION. 331 - 332 - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 333 - WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 334 - REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 335 - INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 336 - OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 337 - TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 338 - YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 339 - PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 340 - POSSIBILITY OF SUCH DAMAGES. 341 - 342 - END OF TERMS AND CONDITIONS 343 - 344 - How to Apply These Terms to Your New Programs 345 - 346 - If you develop a new program, and you want it to be of the greatest 347 - possible use to the public, the best way to achieve this is to make it 348 - free software which everyone can redistribute and change under these terms. 349 - 350 - To do so, attach the following notices to the program. It is safest 351 - to attach them to the start of each source file to most effectively 352 - convey the exclusion of warranty; and each file should have at least 353 - the "copyright" line and a pointer to where the full notice is found. 354 - 355 - <one line to give the program's name and a brief idea of what it does.> 356 - Copyright (C) <year> <name of author> 357 - 358 - This program is free software; you can redistribute it and/or modify 359 - it under the terms of the GNU General Public License as published by 360 - the Free Software Foundation; either version 2 of the License, or 361 - (at your option) any later version. 362 - 363 - This program is distributed in the hope that it will be useful, 364 - but WITHOUT ANY WARRANTY; without even the implied warranty of 365 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 366 - GNU General Public License for more details. 367 - 368 - You should have received a copy of the GNU General Public License 369 - along with this program; if not, write to the Free Software 370 - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 371 - 372 - 373 - Also add information on how to contact you by electronic and paper mail. 374 - 375 - If the program is interactive, make it output a short notice like this 376 - when it starts in an interactive mode: 377 - 378 - Gnomovision version 69, Copyright (C) year name of author 379 - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 380 - This is free software, and you are welcome to redistribute it 381 - under certain conditions; type `show c' for details. 382 - 383 - The hypothetical commands `show w' and `show c' should show the appropriate 384 - parts of the General Public License. Of course, the commands you use may 385 - be called something other than `show w' and `show c'; they could even be 386 - mouse-clicks or menu items--whatever suits your program. 387 - 388 - You should also get your employer (if you work as a programmer) or your 389 - school, if any, to sign a "copyright disclaimer" for the program, if 390 - necessary. Here is a sample; alter the names: 391 - 392 - Yoyodyne, Inc., hereby disclaims all copyright interest in the program 393 - `Gnomovision' (which makes passes at compilers) written by James Hacker. 394 - 395 - <signature of Ty Coon>, 1 April 1989 396 - Ty Coon, President of Vice 397 - 398 - This General Public License does not permit incorporating your program into 399 - proprietary programs. If your program is a subroutine library, you may 400 - consider it more useful to permit linking proprietary applications with the 401 - library. If this is what you want to do, use the GNU Library General 402 - Public License instead of this License. 403 - 404 - ---------------------------------------------------------------------- 405 - 406 - The bundled ZLib code is licensed under the ZLib license: 407 - 408 - Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler 409 - 410 - This software is provided 'as-is', without any express or implied 411 - warranty. In no event will the authors be held liable for any damages 412 - arising from the use of this software. 413 - 414 - Permission is granted to anyone to use this software for any purpose, 415 - including commercial applications, and to alter it and redistribute it 416 - freely, subject to the following restrictions: 417 - 418 - 1. The origin of this software must not be misrepresented; you must not 419 - claim that you wrote the original software. If you use this software 420 - in a product, an acknowledgment in the product documentation would be 421 - appreciated but is not required. 422 - 2. Altered source versions must be plainly marked as such, and must not be 423 - misrepresented as being the original software. 424 - 3. This notice may not be removed or altered from any source distribution. 425 - 426 - Jean-loup Gailly Mark Adler 427 - jloup@gzip.org madler@alumni.caltech.edu 428 - 429 - ---------------------------------------------------------------------- 430 - 431 - The Clar framework is licensed under the ISC license: 432 - 433 - Copyright (c) 2011-2015 Vicent Marti 434 - 435 - Permission to use, copy, modify, and/or distribute this software for any 436 - purpose with or without fee is hereby granted, provided that the above 437 - copyright notice and this permission notice appear in all copies. 438 - 439 - THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 440 - WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 441 - MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 442 - ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 443 - WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 444 - ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 445 - OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 446 - 447 - ---------------------------------------------------------------------- 448 - 449 - The regex library (deps/regex/) is licensed under the GNU LGPL 450 - (available at the end of this file). 451 - 452 - Definitions for data structures and routines for the regular 453 - expression library. 454 - 455 - Copyright (C) 1985,1989-93,1995-98,2000,2001,2002,2003,2005,2006,2008 456 - Free Software Foundation, Inc. 457 - This file is part of the GNU C Library. 458 - 459 - The GNU C Library is free software; you can redistribute it and/or 460 - modify it under the terms of the GNU Lesser General Public 461 - License as published by the Free Software Foundation; either 462 - version 2.1 of the License, or (at your option) any later version. 463 - 464 - The GNU C Library is distributed in the hope that it will be useful, 465 - but WITHOUT ANY WARRANTY; without even the implied warranty of 466 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 467 - Lesser General Public License for more details. 468 - 469 - You should have received a copy of the GNU Lesser General Public 470 - License along with the GNU C Library; if not, write to the Free 471 - Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 472 - 02110-1301 USA. 473 - 474 - ---------------------------------------------------------------------- 475 - 476 - The bundled winhttp definition files (deps/winhttp/) are licensed under 477 - the GNU LGPL (available at the end of this file). 478 - 479 - Copyright (C) 2007 Francois Gouget 480 - 481 - This library is free software; you can redistribute it and/or 482 - modify it under the terms of the GNU Lesser General Public 483 - License as published by the Free Software Foundation; either 484 - version 2.1 of the License, or (at your option) any later version. 485 - 486 - This library is distributed in the hope that it will be useful, 487 - but WITHOUT ANY WARRANTY; without even the implied warranty of 488 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 489 - Lesser General Public License for more details. 490 - 491 - You should have received a copy of the GNU Lesser General Public 492 - License along with this library; if not, write to the Free Software 493 - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 494 - 495 - ---------------------------------------------------------------------- 496 - 497 - GNU LESSER GENERAL PUBLIC LICENSE 498 - Version 2.1, February 1999 499 - 500 - Copyright (C) 1991, 1999 Free Software Foundation, Inc. 501 - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 502 - Everyone is permitted to copy and distribute verbatim copies 503 - of this license document, but changing it is not allowed. 504 - 505 - [This is the first released version of the Lesser GPL. It also counts 506 - as the successor of the GNU Library Public License, version 2, hence 507 - the version number 2.1.] 508 - 509 - Preamble 510 - 511 - The licenses for most software are designed to take away your 512 - freedom to share and change it. By contrast, the GNU General Public 513 - Licenses are intended to guarantee your freedom to share and change 514 - free software--to make sure the software is free for all its users. 515 - 516 - This license, the Lesser General Public License, applies to some 517 - specially designated software packages--typically libraries--of the 518 - Free Software Foundation and other authors who decide to use it. You 519 - can use it too, but we suggest you first think carefully about whether 520 - this license or the ordinary General Public License is the better 521 - strategy to use in any particular case, based on the explanations below. 522 - 523 - When we speak of free software, we are referring to freedom of use, 524 - not price. Our General Public Licenses are designed to make sure that 525 - you have the freedom to distribute copies of free software (and charge 526 - for this service if you wish); that you receive source code or can get 527 - it if you want it; that you can change the software and use pieces of 528 - it in new free programs; and that you are informed that you can do 529 - these things. 530 - 531 - To protect your rights, we need to make restrictions that forbid 532 - distributors to deny you these rights or to ask you to surrender these 533 - rights. These restrictions translate to certain responsibilities for 534 - you if you distribute copies of the library or if you modify it. 535 - 536 - For example, if you distribute copies of the library, whether gratis 537 - or for a fee, you must give the recipients all the rights that we gave 538 - you. You must make sure that they, too, receive or can get the source 539 - code. If you link other code with the library, you must provide 540 - complete object files to the recipients, so that they can relink them 541 - with the library after making changes to the library and recompiling 542 - it. And you must show them these terms so they know their rights. 543 - 544 - We protect your rights with a two-step method: (1) we copyright the 545 - library, and (2) we offer you this license, which gives you legal 546 - permission to copy, distribute and/or modify the library. 547 - 548 - To protect each distributor, we want to make it very clear that 549 - there is no warranty for the free library. Also, if the library is 550 - modified by someone else and passed on, the recipients should know 551 - that what they have is not the original version, so that the original 552 - author's reputation will not be affected by problems that might be 553 - introduced by others. 554 - 555 - Finally, software patents pose a constant threat to the existence of 556 - any free program. We wish to make sure that a company cannot 557 - effectively restrict the users of a free program by obtaining a 558 - restrictive license from a patent holder. Therefore, we insist that 559 - any patent license obtained for a version of the library must be 560 - consistent with the full freedom of use specified in this license. 561 - 562 - Most GNU software, including some libraries, is covered by the 563 - ordinary GNU General Public License. This license, the GNU Lesser 564 - General Public License, applies to certain designated libraries, and 565 - is quite different from the ordinary General Public License. We use 566 - this license for certain libraries in order to permit linking those 567 - libraries into non-free programs. 568 - 569 - When a program is linked with a library, whether statically or using 570 - a shared library, the combination of the two is legally speaking a 571 - combined work, a derivative of the original library. The ordinary 572 - General Public License therefore permits such linking only if the 573 - entire combination fits its criteria of freedom. The Lesser General 574 - Public License permits more lax criteria for linking other code with 575 - the library. 576 - 577 - We call this license the "Lesser" General Public License because it 578 - does Less to protect the user's freedom than the ordinary General 579 - Public License. It also provides other free software developers Less 580 - of an advantage over competing non-free programs. These disadvantages 581 - are the reason we use the ordinary General Public License for many 582 - libraries. However, the Lesser license provides advantages in certain 583 - special circumstances. 584 - 585 - For example, on rare occasions, there may be a special need to 586 - encourage the widest possible use of a certain library, so that it becomes 587 - a de-facto standard. To achieve this, non-free programs must be 588 - allowed to use the library. A more frequent case is that a free 589 - library does the same job as widely used non-free libraries. In this 590 - case, there is little to gain by limiting the free library to free 591 - software only, so we use the Lesser General Public License. 592 - 593 - In other cases, permission to use a particular library in non-free 594 - programs enables a greater number of people to use a large body of 595 - free software. For example, permission to use the GNU C Library in 596 - non-free programs enables many more people to use the whole GNU 597 - operating system, as well as its variant, the GNU/Linux operating 598 - system. 599 - 600 - Although the Lesser General Public License is Less protective of the 601 - users' freedom, it does ensure that the user of a program that is 602 - linked with the Library has the freedom and the wherewithal to run 603 - that program using a modified version of the Library. 604 - 605 - The precise terms and conditions for copying, distribution and 606 - modification follow. Pay close attention to the difference between a 607 - "work based on the library" and a "work that uses the library". The 608 - former contains code derived from the library, whereas the latter must 609 - be combined with the library in order to run. 610 - 611 - GNU LESSER GENERAL PUBLIC LICENSE 612 - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 613 - 614 - 0. This License Agreement applies to any software library or other 615 - program which contains a notice placed by the copyright holder or 616 - other authorized party saying it may be distributed under the terms of 617 - this Lesser General Public License (also called "this License"). 618 - Each licensee is addressed as "you". 619 - 620 - A "library" means a collection of software functions and/or data 621 - prepared so as to be conveniently linked with application programs 622 - (which use some of those functions and data) to form executables. 623 - 624 - The "Library", below, refers to any such software library or work 625 - which has been distributed under these terms. A "work based on the 626 - Library" means either the Library or any derivative work under 627 - copyright law: that is to say, a work containing the Library or a 628 - portion of it, either verbatim or with modifications and/or translated 629 - straightforwardly into another language. (Hereinafter, translation is 630 - included without limitation in the term "modification".) 631 - 632 - "Source code" for a work means the preferred form of the work for 633 - making modifications to it. For a library, complete source code means 634 - all the source code for all modules it contains, plus any associated 635 - interface definition files, plus the scripts used to control compilation 636 - and installation of the library. 637 - 638 - Activities other than copying, distribution and modification are not 639 - covered by this License; they are outside its scope. The act of 640 - running a program using the Library is not restricted, and output from 641 - such a program is covered only if its contents constitute a work based 642 - on the Library (independent of the use of the Library in a tool for 643 - writing it). Whether that is true depends on what the Library does 644 - and what the program that uses the Library does. 645 - 646 - 1. You may copy and distribute verbatim copies of the Library's 647 - complete source code as you receive it, in any medium, provided that 648 - you conspicuously and appropriately publish on each copy an 649 - appropriate copyright notice and disclaimer of warranty; keep intact 650 - all the notices that refer to this License and to the absence of any 651 - warranty; and distribute a copy of this License along with the 652 - Library. 653 - 654 - You may charge a fee for the physical act of transferring a copy, 655 - and you may at your option offer warranty protection in exchange for a 656 - fee. 657 - 658 - 2. You may modify your copy or copies of the Library or any portion 659 - of it, thus forming a work based on the Library, and copy and 660 - distribute such modifications or work under the terms of Section 1 661 - above, provided that you also meet all of these conditions: 662 - 663 - a) The modified work must itself be a software library. 664 - 665 - b) You must cause the files modified to carry prominent notices 666 - stating that you changed the files and the date of any change. 667 - 668 - c) You must cause the whole of the work to be licensed at no 669 - charge to all third parties under the terms of this License. 670 - 671 - d) If a facility in the modified Library refers to a function or a 672 - table of data to be supplied by an application program that uses 673 - the facility, other than as an argument passed when the facility 674 - is invoked, then you must make a good faith effort to ensure that, 675 - in the event an application does not supply such function or 676 - table, the facility still operates, and performs whatever part of 677 - its purpose remains meaningful. 678 - 679 - (For example, a function in a library to compute square roots has 680 - a purpose that is entirely well-defined independent of the 681 - application. Therefore, Subsection 2d requires that any 682 - application-supplied function or table used by this function must 683 - be optional: if the application does not supply it, the square 684 - root function must still compute square roots.) 685 - 686 - These requirements apply to the modified work as a whole. If 687 - identifiable sections of that work are not derived from the Library, 688 - and can be reasonably considered independent and separate works in 689 - themselves, then this License, and its terms, do not apply to those 690 - sections when you distribute them as separate works. But when you 691 - distribute the same sections as part of a whole which is a work based 692 - on the Library, the distribution of the whole must be on the terms of 693 - this License, whose permissions for other licensees extend to the 694 - entire whole, and thus to each and every part regardless of who wrote 695 - it. 696 - 697 - Thus, it is not the intent of this section to claim rights or contest 698 - your rights to work written entirely by you; rather, the intent is to 699 - exercise the right to control the distribution of derivative or 700 - collective works based on the Library. 701 - 702 - In addition, mere aggregation of another work not based on the Library 703 - with the Library (or with a work based on the Library) on a volume of 704 - a storage or distribution medium does not bring the other work under 705 - the scope of this License. 706 - 707 - 3. You may opt to apply the terms of the ordinary GNU General Public 708 - License instead of this License to a given copy of the Library. To do 709 - this, you must alter all the notices that refer to this License, so 710 - that they refer to the ordinary GNU General Public License, version 2, 711 - instead of to this License. (If a newer version than version 2 of the 712 - ordinary GNU General Public License has appeared, then you can specify 713 - that version instead if you wish.) Do not make any other change in 714 - these notices. 715 - 716 - Once this change is made in a given copy, it is irreversible for 717 - that copy, so the ordinary GNU General Public License applies to all 718 - subsequent copies and derivative works made from that copy. 719 - 720 - This option is useful when you wish to copy part of the code of 721 - the Library into a program that is not a library. 722 - 723 - 4. You may copy and distribute the Library (or a portion or 724 - derivative of it, under Section 2) in object code or executable form 725 - under the terms of Sections 1 and 2 above provided that you accompany 726 - it with the complete corresponding machine-readable source code, which 727 - must be distributed under the terms of Sections 1 and 2 above on a 728 - medium customarily used for software interchange. 729 - 730 - If distribution of object code is made by offering access to copy 731 - from a designated place, then offering equivalent access to copy the 732 - source code from the same place satisfies the requirement to 733 - distribute the source code, even though third parties are not 734 - compelled to copy the source along with the object code. 735 - 736 - 5. A program that contains no derivative of any portion of the 737 - Library, but is designed to work with the Library by being compiled or 738 - linked with it, is called a "work that uses the Library". Such a 739 - work, in isolation, is not a derivative work of the Library, and 740 - therefore falls outside the scope of this License. 741 - 742 - However, linking a "work that uses the Library" with the Library 743 - creates an executable that is a derivative of the Library (because it 744 - contains portions of the Library), rather than a "work that uses the 745 - library". The executable is therefore covered by this License. 746 - Section 6 states terms for distribution of such executables. 747 - 748 - When a "work that uses the Library" uses material from a header file 749 - that is part of the Library, the object code for the work may be a 750 - derivative work of the Library even though the source code is not. 751 - Whether this is true is especially significant if the work can be 752 - linked without the Library, or if the work is itself a library. The 753 - threshold for this to be true is not precisely defined by law. 754 - 755 - If such an object file uses only numerical parameters, data 756 - structure layouts and accessors, and small macros and small inline 757 - functions (ten lines or less in length), then the use of the object 758 - file is unrestricted, regardless of whether it is legally a derivative 759 - work. (Executables containing this object code plus portions of the 760 - Library will still fall under Section 6.) 761 - 762 - Otherwise, if the work is a derivative of the Library, you may 763 - distribute the object code for the work under the terms of Section 6. 764 - Any executables containing that work also fall under Section 6, 765 - whether or not they are linked directly with the Library itself. 766 - 767 - 6. As an exception to the Sections above, you may also combine or 768 - link a "work that uses the Library" with the Library to produce a 769 - work containing portions of the Library, and distribute that work 770 - under terms of your choice, provided that the terms permit 771 - modification of the work for the customer's own use and reverse 772 - engineering for debugging such modifications. 773 - 774 - You must give prominent notice with each copy of the work that the 775 - Library is used in it and that the Library and its use are covered by 776 - this License. You must supply a copy of this License. If the work 777 - during execution displays copyright notices, you must include the 778 - copyright notice for the Library among them, as well as a reference 779 - directing the user to the copy of this License. Also, you must do one 780 - of these things: 781 - 782 - a) Accompany the work with the complete corresponding 783 - machine-readable source code for the Library including whatever 784 - changes were used in the work (which must be distributed under 785 - Sections 1 and 2 above); and, if the work is an executable linked 786 - with the Library, with the complete machine-readable "work that 787 - uses the Library", as object code and/or source code, so that the 788 - user can modify the Library and then relink to produce a modified 789 - executable containing the modified Library. (It is understood 790 - that the user who changes the contents of definitions files in the 791 - Library will not necessarily be able to recompile the application 792 - to use the modified definitions.) 793 - 794 - b) Use a suitable shared library mechanism for linking with the 795 - Library. A suitable mechanism is one that (1) uses at run time a 796 - copy of the library already present on the user's computer system, 797 - rather than copying library functions into the executable, and (2) 798 - will operate properly with a modified version of the library, if 799 - the user installs one, as long as the modified version is 800 - interface-compatible with the version that the work was made with. 801 - 802 - c) Accompany the work with a written offer, valid for at 803 - least three years, to give the same user the materials 804 - specified in Subsection 6a, above, for a charge no more 805 - than the cost of performing this distribution. 806 - 807 - d) If distribution of the work is made by offering access to copy 808 - from a designated place, offer equivalent access to copy the above 809 - specified materials from the same place. 810 - 811 - e) Verify that the user has already received a copy of these 812 - materials or that you have already sent this user a copy. 813 - 814 - For an executable, the required form of the "work that uses the 815 - Library" must include any data and utility programs needed for 816 - reproducing the executable from it. However, as a special exception, 817 - the materials to be distributed need not include anything that is 818 - normally distributed (in either source or binary form) with the major 819 - components (compiler, kernel, and so on) of the operating system on 820 - which the executable runs, unless that component itself accompanies 821 - the executable. 822 - 823 - It may happen that this requirement contradicts the license 824 - restrictions of other proprietary libraries that do not normally 825 - accompany the operating system. Such a contradiction means you cannot 826 - use both them and the Library together in an executable that you 827 - distribute. 828 - 829 - 7. You may place library facilities that are a work based on the 830 - Library side-by-side in a single library together with other library 831 - facilities not covered by this License, and distribute such a combined 832 - library, provided that the separate distribution of the work based on 833 - the Library and of the other library facilities is otherwise 834 - permitted, and provided that you do these two things: 835 - 836 - a) Accompany the combined library with a copy of the same work 837 - based on the Library, uncombined with any other library 838 - facilities. This must be distributed under the terms of the 839 - Sections above. 840 - 841 - b) Give prominent notice with the combined library of the fact 842 - that part of it is a work based on the Library, and explaining 843 - where to find the accompanying uncombined form of the same work. 844 - 845 - 8. You may not copy, modify, sublicense, link with, or distribute 846 - the Library except as expressly provided under this License. Any 847 - attempt otherwise to copy, modify, sublicense, link with, or 848 - distribute the Library is void, and will automatically terminate your 849 - rights under this License. However, parties who have received copies, 850 - or rights, from you under this License will not have their licenses 851 - terminated so long as such parties remain in full compliance. 852 - 853 - 9. You are not required to accept this License, since you have not 854 - signed it. However, nothing else grants you permission to modify or 855 - distribute the Library or its derivative works. These actions are 856 - prohibited by law if you do not accept this License. Therefore, by 857 - modifying or distributing the Library (or any work based on the 858 - Library), you indicate your acceptance of this License to do so, and 859 - all its terms and conditions for copying, distributing or modifying 860 - the Library or works based on it. 861 - 862 - 10. Each time you redistribute the Library (or any work based on the 863 - Library), the recipient automatically receives a license from the 864 - original licensor to copy, distribute, link with or modify the Library 865 - subject to these terms and conditions. You may not impose any further 866 - restrictions on the recipients' exercise of the rights granted herein. 867 - You are not responsible for enforcing compliance by third parties with 868 - this License. 869 - 870 - 11. If, as a consequence of a court judgment or allegation of patent 871 - infringement or for any other reason (not limited to patent issues), 872 - conditions are imposed on you (whether by court order, agreement or 873 - otherwise) that contradict the conditions of this License, they do not 874 - excuse you from the conditions of this License. If you cannot 875 - distribute so as to satisfy simultaneously your obligations under this 876 - License and any other pertinent obligations, then as a consequence you 877 - may not distribute the Library at all. For example, if a patent 878 - license would not permit royalty-free redistribution of the Library by 879 - all those who receive copies directly or indirectly through you, then 880 - the only way you could satisfy both it and this License would be to 881 - refrain entirely from distribution of the Library. 882 - 883 - If any portion of this section is held invalid or unenforceable under any 884 - particular circumstance, the balance of the section is intended to apply, 885 - and the section as a whole is intended to apply in other circumstances. 886 - 887 - It is not the purpose of this section to induce you to infringe any 888 - patents or other property right claims or to contest validity of any 889 - such claims; this section has the sole purpose of protecting the 890 - integrity of the free software distribution system which is 891 - implemented by public license practices. Many people have made 892 - generous contributions to the wide range of software distributed 893 - through that system in reliance on consistent application of that 894 - system; it is up to the author/donor to decide if he or she is willing 895 - to distribute software through any other system and a licensee cannot 896 - impose that choice. 897 - 898 - This section is intended to make thoroughly clear what is believed to 899 - be a consequence of the rest of this License. 900 - 901 - 12. If the distribution and/or use of the Library is restricted in 902 - certain countries either by patents or by copyrighted interfaces, the 903 - original copyright holder who places the Library under this License may add 904 - an explicit geographical distribution limitation excluding those countries, 905 - so that distribution is permitted only in or among countries not thus 906 - excluded. In such case, this License incorporates the limitation as if 907 - written in the body of this License. 908 - 909 - 13. The Free Software Foundation may publish revised and/or new 910 - versions of the Lesser General Public License from time to time. 911 - Such new versions will be similar in spirit to the present version, 912 - but may differ in detail to address new problems or concerns. 913 - 914 - Each version is given a distinguishing version number. If the Library 915 - specifies a version number of this License which applies to it and 916 - "any later version", you have the option of following the terms and 917 - conditions either of that version or of any later version published by 918 - the Free Software Foundation. If the Library does not specify a 919 - license version number, you may choose any version ever published by 920 - the Free Software Foundation. 921 - 922 - 14. If you wish to incorporate parts of the Library into other free 923 - programs whose distribution conditions are incompatible with these, 924 - write to the author to ask for permission. For software which is 925 - copyrighted by the Free Software Foundation, write to the Free 926 - Software Foundation; we sometimes make exceptions for this. Our 927 - decision will be guided by the two goals of preserving the free status 928 - of all derivatives of our free software and of promoting the sharing 929 - and reuse of software generally. 930 - 931 - NO WARRANTY 932 - 933 - 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO 934 - WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. 935 - EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR 936 - OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY 937 - KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE 938 - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 939 - PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE 940 - LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME 941 - THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 942 - 943 - 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN 944 - WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY 945 - AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU 946 - FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR 947 - CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE 948 - LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING 949 - RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A 950 - FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF 951 - SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 952 - DAMAGES. 953 - 954 - END OF TERMS AND CONDITIONS 955 - 956 - How to Apply These Terms to Your New Libraries 957 - 958 - If you develop a new library, and you want it to be of the greatest 959 - possible use to the public, we recommend making it free software that 960 - everyone can redistribute and change. You can do so by permitting 961 - redistribution under these terms (or, alternatively, under the terms of the 962 - ordinary General Public License). 963 - 964 - To apply these terms, attach the following notices to the library. It is 965 - safest to attach them to the start of each source file to most effectively 966 - convey the exclusion of warranty; and each file should have at least the 967 - "copyright" line and a pointer to where the full notice is found. 968 - 969 - <one line to give the library's name and a brief idea of what it does.> 970 - Copyright (C) <year> <name of author> 971 - 972 - This library is free software; you can redistribute it and/or 973 - modify it under the terms of the GNU Lesser General Public 974 - License as published by the Free Software Foundation; either 975 - version 2.1 of the License, or (at your option) any later version. 976 - 977 - This library is distributed in the hope that it will be useful, 978 - but WITHOUT ANY WARRANTY; without even the implied warranty of 979 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 980 - Lesser General Public License for more details. 981 - 982 - You should have received a copy of the GNU Lesser General Public 983 - License along with this library; if not, write to the Free Software 984 - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 985 - 986 - Also add information on how to contact you by electronic and paper mail. 987 - 988 - You should also get your employer (if you work as a programmer) or your 989 - school, if any, to sign a "copyright disclaimer" for the library, if 990 - necessary. Here is a sample; alter the names: 991 - 992 - Yoyodyne, Inc., hereby disclaims all copyright interest in the 993 - library `Frob' (a library for tweaking knobs) written by James Random Hacker. 994 - 995 - <signature of Ty Coon>, 1 April 1990 996 - Ty Coon, President of Vice 997 - 998 - That's all there is to it! 999 - 1000 - ---------------------------------------------------------------------- 1001 - 1002 - The bundled SHA1 collision detection code is licensed under the MIT license: 1003 - 1004 - MIT License 1005 - 1006 - Copyright (c) 2017: 1007 - Marc Stevens 1008 - Cryptology Group 1009 - Centrum Wiskunde & Informatica 1010 - P.O. Box 94079, 1090 GB Amsterdam, Netherlands 1011 - marc@marc-stevens.nl 1012 - 1013 - Dan Shumow 1014 - Microsoft Research 1015 - danshu@microsoft.com 1016 - 1017 - Permission is hereby granted, free of charge, to any person obtaining a copy 1018 - of this software and associated documentation files (the "Software"), to deal 1019 - in the Software without restriction, including without limitation the rights 1020 - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 1021 - copies of the Software, and to permit persons to whom the Software is 1022 - furnished to do so, subject to the following conditions: 1023 - 1024 - The above copyright notice and this permission notice shall be included in all 1025 - copies or substantial portions of the Software. 1026 - 1027 - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1028 - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1029 - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 1030 - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1031 - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 1032 - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 1033 - SOFTWARE. 1034 - 1035 - ---------------------------------------------------------------------- 1036 - 1037 - The bundled wildmatch code is licensed under the BSD license: 1038 - 1039 - Copyright Rich Salz. 1040 - All rights reserved. 1041 - 1042 - Redistribution and use in any form are permitted provided that the 1043 - following restrictions are are met: 1044 - 1045 - 1. Source distributions must retain this entire copyright notice 1046 - and comment. 1047 - 2. Binary distributions must include the acknowledgement ``This 1048 - product includes software developed by Rich Salz'' in the 1049 - documentation or other materials provided with the 1050 - distribution. This must not be represented as an endorsement 1051 - or promotion without specific prior written permission. 1052 - 3. The origin of this software must not be misrepresented, either 1053 - by explicit claim or by omission. Credits must appear in the 1054 - source and documentation. 1055 - 4. Altered versions must be plainly marked as such in the source 1056 - and documentation and must not be misrepresented as being the 1057 - original software. 1058 - 1059 - THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 1060 - WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 1061 - MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 1062 - 1063 - ---------------------------------------------------------------------- 1064 - 1065 - Portions of the OpenSSL headers are included under the OpenSSL license: 1066 - 1067 - Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 1068 - All rights reserved. 1069 - 1070 - This package is an SSL implementation written 1071 - by Eric Young (eay@cryptsoft.com). 1072 - The implementation was written so as to conform with Netscapes SSL. 1073 - 1074 - This library is free for commercial and non-commercial use as long as 1075 - the following conditions are aheared to. The following conditions 1076 - apply to all code found in this distribution, be it the RC4, RSA, 1077 - lhash, DES, etc., code; not just the SSL code. The SSL documentation 1078 - included with this distribution is covered by the same copyright terms 1079 - except that the holder is Tim Hudson (tjh@cryptsoft.com). 1080 - 1081 - Copyright remains Eric Young's, and as such any Copyright notices in 1082 - the code are not to be removed. 1083 - If this package is used in a product, Eric Young should be given attribution 1084 - as the author of the parts of the library used. 1085 - This can be in the form of a textual message at program startup or 1086 - in documentation (online or textual) provided with the package. 1087 - 1088 - Redistribution and use in source and binary forms, with or without 1089 - modification, are permitted provided that the following conditions 1090 - are met: 1091 - 1. Redistributions of source code must retain the copyright 1092 - notice, this list of conditions and the following disclaimer. 1093 - 2. Redistributions in binary form must reproduce the above copyright 1094 - notice, this list of conditions and the following disclaimer in the 1095 - documentation and/or other materials provided with the distribution. 1096 - 3. All advertising materials mentioning features or use of this software 1097 - must display the following acknowledgement: 1098 - "This product includes cryptographic software written by 1099 - Eric Young (eay@cryptsoft.com)" 1100 - The word 'cryptographic' can be left out if the rouines from the library 1101 - being used are not cryptographic related :-). 1102 - 4. If you include any Windows specific code (or a derivative thereof) from 1103 - the apps directory (application code) you must include an acknowledgement: 1104 - "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" 1105 - 1106 - THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND 1107 - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1108 - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1109 - ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1110 - FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1111 - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1112 - OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1113 - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1114 - LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1115 - OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1116 - SUCH DAMAGE. 1117 - 1118 - The licence and distribution terms for any publically available version or 1119 - derivative of this code cannot be changed. i.e. this code cannot simply be 1120 - copied and put under another distribution licence 1121 - [including the GNU Public Licence.] 1122 - 1123 - ==================================================================== 1124 - Copyright (c) 1998-2007 The OpenSSL Project. All rights reserved. 1125 - 1126 - Redistribution and use in source and binary forms, with or without 1127 - modification, are permitted provided that the following conditions 1128 - are met: 1129 - 1130 - 1. Redistributions of source code must retain the above copyright 1131 - notice, this list of conditions and the following disclaimer. 1132 - 1133 - 2. Redistributions in binary form must reproduce the above copyright 1134 - notice, this list of conditions and the following disclaimer in 1135 - the documentation and/or other materials provided with the 1136 - distribution. 1137 - 1138 - 3. All advertising materials mentioning features or use of this 1139 - software must display the following acknowledgment: 1140 - "This product includes software developed by the OpenSSL Project 1141 - for use in the OpenSSL Toolkit. (http://www.openssl.org/)" 1142 - 1143 - 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to 1144 - endorse or promote products derived from this software without 1145 - prior written permission. For written permission, please contact 1146 - openssl-core@openssl.org. 1147 - 1148 - 5. Products derived from this software may not be called "OpenSSL" 1149 - nor may "OpenSSL" appear in their names without prior written 1150 - permission of the OpenSSL Project. 1151 - 1152 - 6. Redistributions of any form whatsoever must retain the following 1153 - acknowledgment: 1154 - "This product includes software developed by the OpenSSL Project 1155 - for use in the OpenSSL Toolkit (http://www.openssl.org/)" 1156 - 1157 - THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY 1158 - EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1159 - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 1160 - PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR 1161 - ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 1162 - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 1163 - NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 1164 - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1165 - HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 1166 - STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 1167 - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 1168 - OF THE POSSIBILITY OF SUCH DAMAGE. 1169 - ``` 1170 - 1171 - ### libssh2/libssh2 1172 - 1173 - ``` 1174 - /* Copyright (c) 2004-2007 Sara Golemon <sarag@libssh2.org> 1175 - * Copyright (c) 2005,2006 Mikhail Gusarov <dottedmag@dottedmag.net> 1176 - * Copyright (c) 2006-2007 The Written Word, Inc. 1177 - * Copyright (c) 2007 Eli Fant <elifantu@mail.ru> 1178 - * Copyright (c) 2009-2021 Daniel Stenberg 1179 - * Copyright (C) 2008, 2009 Simon Josefsson 1180 - * Copyright (c) 2000 Markus Friedl 1181 - * Copyright (c) 2015 Microsoft Corp. 1182 - * All rights reserved. 1183 - * 1184 - * Redistribution and use in source and binary forms, 1185 - * with or without modification, are permitted provided 1186 - * that the following conditions are met: 1187 - * 1188 - * Redistributions of source code must retain the above 1189 - * copyright notice, this list of conditions and the 1190 - * following disclaimer. 1191 - * 1192 - * Redistributions in binary form must reproduce the above 1193 - * copyright notice, this list of conditions and the following 1194 - * disclaimer in the documentation and/or other materials 1195 - * provided with the distribution. 1196 - * 1197 - * Neither the name of the copyright holder nor the names 1198 - * of any other contributors may be used to endorse or 1199 - * promote products derived from this software without 1200 - * specific prior written permission. 1201 - * 1202 - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 1203 - * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 1204 - * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1205 - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1206 - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 1207 - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 1208 - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 1209 - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 1210 - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 1211 - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 1212 - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 1213 - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 1214 - * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 1215 - * OF SUCH DAMAGE. 1216 - */ 1217 - ``` 1218 - 1219 - ### OpenSSL 1220 - 1221 - ``` 1222 - 1223 - LICENSE ISSUES 1224 - ============== 1225 - 1226 - The OpenSSL toolkit stays under a double license, i.e. both the conditions of 1227 - the OpenSSL License and the original SSLeay license apply to the toolkit. 1228 - See below for the actual license texts. 1229 - 1230 - OpenSSL License 1231 - --------------- 1232 - 1233 - /* ==================================================================== 1234 - * Copyright (c) 1998-2019 The OpenSSL Project. All rights reserved. 1235 - * 1236 - * Redistribution and use in source and binary forms, with or without 1237 - * modification, are permitted provided that the following conditions 1238 - * are met: 1239 - * 1240 - * 1. Redistributions of source code must retain the above copyright 1241 - * notice, this list of conditions and the following disclaimer. 1242 - * 1243 - * 2. Redistributions in binary form must reproduce the above copyright 1244 - * notice, this list of conditions and the following disclaimer in 1245 - * the documentation and/or other materials provided with the 1246 - * distribution. 1247 - * 1248 - * 3. All advertising materials mentioning features or use of this 1249 - * software must display the following acknowledgment: 1250 - * "This product includes software developed by the OpenSSL Project 1251 - * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" 1252 - * 1253 - * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to 1254 - * endorse or promote products derived from this software without 1255 - * prior written permission. For written permission, please contact 1256 - * openssl-core@openssl.org. 1257 - * 1258 - * 5. Products derived from this software may not be called "OpenSSL" 1259 - * nor may "OpenSSL" appear in their names without prior written 1260 - * permission of the OpenSSL Project. 1261 - * 1262 - * 6. Redistributions of any form whatsoever must retain the following 1263 - * acknowledgment: 1264 - * "This product includes software developed by the OpenSSL Project 1265 - * for use in the OpenSSL Toolkit (http://www.openssl.org/)" 1266 - * 1267 - * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY 1268 - * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1269 - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 1270 - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR 1271 - * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 1272 - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 1273 - * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 1274 - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1275 - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 1276 - * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 1277 - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 1278 - * OF THE POSSIBILITY OF SUCH DAMAGE. 1279 - * ==================================================================== 1280 - * 1281 - * This product includes cryptographic software written by Eric Young 1282 - * (eay@cryptsoft.com). This product includes software written by Tim 1283 - * Hudson (tjh@cryptsoft.com). 1284 - * 1285 - */ 1286 - 1287 - Original SSLeay License 1288 - ----------------------- 1289 - 1290 - /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 1291 - * All rights reserved. 1292 - * 1293 - * This package is an SSL implementation written 1294 - * by Eric Young (eay@cryptsoft.com). 1295 - * The implementation was written so as to conform with Netscapes SSL. 1296 - * 1297 - * This library is free for commercial and non-commercial use as long as 1298 - * the following conditions are aheared to. The following conditions 1299 - * apply to all code found in this distribution, be it the RC4, RSA, 1300 - * lhash, DES, etc., code; not just the SSL code. The SSL documentation 1301 - * included with this distribution is covered by the same copyright terms 1302 - * except that the holder is Tim Hudson (tjh@cryptsoft.com). 1303 - * 1304 - * Copyright remains Eric Young's, and as such any Copyright notices in 1305 - * the code are not to be removed. 1306 - * If this package is used in a product, Eric Young should be given attribution 1307 - * as the author of the parts of the library used. 1308 - * This can be in the form of a textual message at program startup or 1309 - * in documentation (online or textual) provided with the package. 1310 - * 1311 - * Redistribution and use in source and binary forms, with or without 1312 - * modification, are permitted provided that the following conditions 1313 - * are met: 1314 - * 1. Redistributions of source code must retain the copyright 1315 - * notice, this list of conditions and the following disclaimer. 1316 - * 2. Redistributions in binary form must reproduce the above copyright 1317 - * notice, this list of conditions and the following disclaimer in the 1318 - * documentation and/or other materials provided with the distribution. 1319 - * 3. All advertising materials mentioning features or use of this software 1320 - * must display the following acknowledgement: 1321 - * "This product includes cryptographic software written by 1322 - * Eric Young (eay@cryptsoft.com)" 1323 - * The word 'cryptographic' can be left out if the rouines from the library 1324 - * being used are not cryptographic related :-). 1325 - * 4. If you include any Windows specific code (or a derivative thereof) from 1326 - * the apps directory (application code) you must include an acknowledgement: 1327 - * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" 1328 - * 1329 - * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND 1330 - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1331 - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1332 - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1333 - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1334 - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1335 - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1336 - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1337 - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1338 - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1339 - * SUCH DAMAGE. 1340 - * 1341 - * The licence and distribution terms for any publically available version or 1342 - * derivative of this code cannot be changed. i.e. this code cannot simply be 1343 - * copied and put under another distribution licence 1344 - * [including the GNU Public Licence.] 1345 - */ 1346 - ```
-10
addons/godot-git-plugin/git_plugin.gdextension
··· 1 - [configuration] 2 - 3 - entry_symbol = "git_plugin_init" 4 - compatibility_minimum = "4.2.0" 5 - 6 - [libraries] 7 - 8 - linux.editor.x86_64 = "linux/libgit_plugin.linux.editor.x86_64.so" 9 - macos.editor = "macos/libgit_plugin.macos.editor.universal.dylib" 10 - windows.editor.x86_64 = "windows/libgit_plugin.windows.editor.x86_64.dll"
-1
addons/godot-git-plugin/git_plugin.gdextension.uid
··· 1 - uid://cwnorst0sfh6a
addons/godot-git-plugin/linux/libgit_plugin.linux.editor.x86_64.so

This is a binary file and will not be displayed.

addons/godot-git-plugin/macos/libgit_plugin.macos.editor.universal.dylib

This is a binary file and will not be displayed.

addons/godot-git-plugin/windows/libgit_plugin.windows.editor.x86_64.dll

This is a binary file and will not be displayed.

-21
addons/script-ide/LICENSE
··· 1 - MIT License 2 - 3 - Copyright (c) 2023 Marius Hanl 4 - 5 - Permission is hereby granted, free of charge, to any person obtaining a copy 6 - of this software and associated documentation files (the "Software"), to deal 7 - in the Software without restriction, including without limitation the rights 8 - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 - copies of the Software, and to permit persons to whom the Software is 10 - furnished to do so, subject to the following conditions: 11 - 12 - The above copyright notice and this permission notice shall be included in all 13 - copies or substantial portions of the Software. 14 - 15 - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 - SOFTWARE.
-70
addons/script-ide/README.md
··· 1 - # Script IDE 2 - 3 - Transforms the Script UI into an IDE like UI. 4 - Multiline Tabs are used for navigating between scripts. Tabs can be split. 5 - The default Outline got an overhaul and now shows all members of the script (not just methods) with unique icons for faster navigation. 6 - Enhanced keyboard navigation for Scripts and Outline. 7 - Fast quick search functionality. 8 - Quick function Override functionality. 9 - 10 - Features: 11 - - Scripts are now shown as Multiline Tabs 12 - - Script Tab can be split – showing the current Script as readonly CodeEdit next to the main one. The original script can be reopened by right clicking. 13 - - The Outline got an overhaul and showed more than just the methods of the script. It includes the following members with a unique icon: 14 - - Classes (Red Square) 15 - - Constants (Red Circle) 16 - - Signals (Yellow) 17 - - Export variables (Orange) 18 - - (Static) Variables (Red) 19 - - Engine callback functions (Blue) 20 - - (Static) Functions (Green) 21 - - Setter functions (Green circle, with an arrow inside it pointing to the right) 22 - - Getter functions (Green circle, with an arrow inside it pointing to the left) 23 - - All the different members of the script can be hidden or made visible again by the outline filter. This allows fine control of what should be visible (e.g., only signals, (Godot) functions, ...) 24 - - A `Right Click` enables only the clicked filter, another `Right Click` will enable all filters again 25 - - The Outline can be opened in a Popup with a defined shortcut for quick navigation between methods 26 - - You can navigate through the Outline with the `Arrow` keys (or `Page up/Page down`) and scroll to the selected item by pressing `ENTER` 27 - - Scripts can be opened in a Popup with a defined shortcut or when clicking the three dots on the top right of the Tabs for quick navigation between scripts 28 - - The currently edited script is automatically selected in the Filesystem Dock 29 - - Files can be quickly searched by the Quick Search Popup with `Shift`+`Shift` 30 - - You can find and quickly override any method from your super classes with `Alt`+`Ins` 31 - - The plugin is written with performance in mind, there are no unneeded features and works without any lags or stuttering 32 - 33 - Customization: 34 - - The Outline is on the right side (can be changed to be on the left side again) 35 - - The Outline can be toggled via `File -> Toggle Scripts Panel`. This will hide or show it 36 - - The order in the Outline can be changed 37 - - There is also the possibility to hide private members, this is all members starting with a `_` 38 - - The Script ItemList is not visible by default but can be made visible again 39 - 40 - All settings can be changed in the `Editor Settings` under `Plugin` -> `Script Ide`: 41 - - `Open Outline Popup` = Shortcut to control how the Outline Popup should be triggered (default=CTRL+O or META+O) 42 - - `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) 43 - - `Outline Order` = List which specifies the order of all different types in the Outline 44 - - `Hide Private Members` = Flag to control whether private members (methods/variables/constants starting with '_') should be hidden in the Outline or not (default=false) 45 - - `Open Script Popup` = Shortcut to control how the Script Popup should be triggered (default=CTRL+U or META+U) 46 - - `Script List Visible` = Flag to control whether the script list should still be visible or not (above the outline) (default=false) 47 - - `Script Tabs Singleline` = Flag to control whether the script tabs should be in a single line (instead of multiline) (default=false) 48 - - `Script Tabs Visible` = Flag to control whether the script tabs should be visible or not (default=true) 49 - - `Script Tabs Position Top` = Flag to control whether the script tabs should be on the top or on the bottom (default=true) 50 - - `Script Tabs Close Button Always` = Flag to control whether the script tabs should always have the close button or only the select tab (default=false) 51 - - `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) 52 - - `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) 53 - - `Open Override Popup` = Shortcut to control how the Override Popup should be triggered (default=Alt+Ins) 54 - - `Cycle Tab forward` = Shortcut to cycle the script tabs in the forward direction (only works in the 'Script' Editor Tab) (default=CTRL+TAB) 55 - - `Cycle Tab backward` = Shortcut to cycle the script tabs in the backward direction (only works in the 'Script' Editor Tab) (default=CTRL+SHIFT+TAB) 56 - - All outline visibility settings 57 - 58 - ![Example of Script-IDE](https://github.com/Maran23/script-ide/blob/demo/demo/1.png?raw=true) 59 - 60 - ![Example of the Outline Popup](https://github.com/Maran23/script-ide/blob/demo/demo/2.png?raw=true) 61 - 62 - ![Example of the Script Tabs Popup](https://github.com/Maran23/script-ide/blob/demo/demo/3.png?raw=true) 63 - 64 - ![Example of the Script List Popup](https://github.com/Maran23/script-ide/blob/demo/demo/4.png?raw=true) 65 - 66 - ![Example of the Quick Search Popup](https://github.com/Maran23/script-ide/blob/demo/demo/5.png?raw=true) 67 - 68 - ![Example of the Override Popup](https://github.com/Maran23/script-ide/blob/demo/demo/6.png?raw=true) 69 - 70 - ![Example of the Plugin Editor Settings](https://github.com/Maran23/script-ide/blob/demo/demo/7.png?raw=true)
-1
addons/script-ide/outline/icon/class.svg
··· 1 - <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><rect x="1" y="1" width="14" height="14" fill="#ff7085"/></svg>
-44
addons/script-ide/outline/icon/class.svg.import
··· 1 - [remap] 2 - 3 - importer="texture" 4 - type="CompressedTexture2D" 5 - uid="uid://csik7oxvt7tq3" 6 - path="res://.godot/imported/class.svg-9e3f3363c9474e8c1dcf8ba4e40e95bf.ctex" 7 - metadata={ 8 - "has_editor_variant": true, 9 - "vram_texture": false 10 - } 11 - 12 - [deps] 13 - 14 - source_file="res://addons/script-ide/outline/icon/class.svg" 15 - dest_files=["res://.godot/imported/class.svg-9e3f3363c9474e8c1dcf8ba4e40e95bf.ctex"] 16 - 17 - [params] 18 - 19 - compress/mode=0 20 - compress/high_quality=false 21 - compress/lossy_quality=0.7 22 - compress/uastc_level=0 23 - compress/rdo_quality_loss=0.0 24 - compress/hdr_compression=1 25 - compress/normal_map=0 26 - compress/channel_pack=0 27 - mipmaps/generate=false 28 - mipmaps/limit=-1 29 - roughness/mode=0 30 - roughness/src_normal="" 31 - process/channel_remap/red=0 32 - process/channel_remap/green=1 33 - process/channel_remap/blue=2 34 - process/channel_remap/alpha=3 35 - process/fix_alpha_border=true 36 - process/premult_alpha=false 37 - process/normal_map_invert_y=false 38 - process/hdr_as_srgb=false 39 - process/hdr_clamp_exposure=false 40 - process/size_limit=0 41 - detect_3d/compress_to=1 42 - svg/scale=1.0 43 - editor/scale_with_editor_scale=true 44 - editor/convert_colors_with_editor_theme=false
-1
addons/script-ide/outline/icon/constant.svg
··· 1 - <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><path d="m8 1c-3.866 0-7 3.134-7 7 0 3.866 3.134 7 7 7s7-3.134 7-7c0-3.866-3.134-7-7-7zm0 2c2.7614 0 5 2.2386 5 5 0 2.7614-2.2386 5-5 5-2.7614 0-5-2.2386-5-5 0-2.7614 2.2386-5 5-5z" fill="#ff7085"/></svg>
-44
addons/script-ide/outline/icon/constant.svg.import
··· 1 - [remap] 2 - 3 - importer="texture" 4 - type="CompressedTexture2D" 5 - uid="uid://cawc456ja8vf5" 6 - path="res://.godot/imported/constant.svg-b36d0d3f8bf0f157e4f3b418b692e11b.ctex" 7 - metadata={ 8 - "has_editor_variant": true, 9 - "vram_texture": false 10 - } 11 - 12 - [deps] 13 - 14 - source_file="res://addons/script-ide/outline/icon/constant.svg" 15 - dest_files=["res://.godot/imported/constant.svg-b36d0d3f8bf0f157e4f3b418b692e11b.ctex"] 16 - 17 - [params] 18 - 19 - compress/mode=0 20 - compress/high_quality=false 21 - compress/lossy_quality=0.7 22 - compress/uastc_level=0 23 - compress/rdo_quality_loss=0.0 24 - compress/hdr_compression=1 25 - compress/normal_map=0 26 - compress/channel_pack=0 27 - mipmaps/generate=false 28 - mipmaps/limit=-1 29 - roughness/mode=0 30 - roughness/src_normal="" 31 - process/channel_remap/red=0 32 - process/channel_remap/green=1 33 - process/channel_remap/blue=2 34 - process/channel_remap/alpha=3 35 - process/fix_alpha_border=true 36 - process/premult_alpha=false 37 - process/normal_map_invert_y=false 38 - process/hdr_as_srgb=false 39 - process/hdr_clamp_exposure=false 40 - process/size_limit=0 41 - detect_3d/compress_to=1 42 - svg/scale=1.0 43 - editor/scale_with_editor_scale=true 44 - editor/convert_colors_with_editor_theme=false
-1
addons/script-ide/outline/icon/engine_func.svg
··· 1 - <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><path d="m8 1c-3.866 0-7 3.134-7 7 0 3.866 3.134 7 7 7 3.866 0 7-3.134 7-7 0-3.866-3.134-7-7-7z" fill="#57b3ff"/></svg>
-44
addons/script-ide/outline/icon/engine_func.svg.import
··· 1 - [remap] 2 - 3 - importer="texture" 4 - type="CompressedTexture2D" 5 - uid="uid://cupb0polhqrwj" 6 - path="res://.godot/imported/engine_func.svg-eb6c615eeef058e7cc5ec3b5a17fc008.ctex" 7 - metadata={ 8 - "has_editor_variant": true, 9 - "vram_texture": false 10 - } 11 - 12 - [deps] 13 - 14 - source_file="res://addons/script-ide/outline/icon/engine_func.svg" 15 - dest_files=["res://.godot/imported/engine_func.svg-eb6c615eeef058e7cc5ec3b5a17fc008.ctex"] 16 - 17 - [params] 18 - 19 - compress/mode=0 20 - compress/high_quality=false 21 - compress/lossy_quality=0.7 22 - compress/uastc_level=0 23 - compress/rdo_quality_loss=0.0 24 - compress/hdr_compression=1 25 - compress/normal_map=0 26 - compress/channel_pack=0 27 - mipmaps/generate=false 28 - mipmaps/limit=-1 29 - roughness/mode=0 30 - roughness/src_normal="" 31 - process/channel_remap/red=0 32 - process/channel_remap/green=1 33 - process/channel_remap/blue=2 34 - process/channel_remap/alpha=3 35 - process/fix_alpha_border=true 36 - process/premult_alpha=false 37 - process/normal_map_invert_y=false 38 - process/hdr_as_srgb=false 39 - process/hdr_clamp_exposure=false 40 - process/size_limit=0 41 - detect_3d/compress_to=1 42 - svg/scale=1.0 43 - editor/scale_with_editor_scale=true 44 - editor/convert_colors_with_editor_theme=false
-1
addons/script-ide/outline/icon/export.svg
··· 1 - <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><path d="m8 1c-3.866 0-7 3.134-7 7 0 3.866 3.134 7 7 7 3.866 0 7-3.134 7-7 0-3.866-3.134-7-7-7z" fill="#ffb273"/></svg>
-44
addons/script-ide/outline/icon/export.svg.import
··· 1 - [remap] 2 - 3 - importer="texture" 4 - type="CompressedTexture2D" 5 - uid="uid://bvu2gnj8fv2kw" 6 - path="res://.godot/imported/export.svg-b7770a5f2f99766591abd69aca087dfc.ctex" 7 - metadata={ 8 - "has_editor_variant": true, 9 - "vram_texture": false 10 - } 11 - 12 - [deps] 13 - 14 - source_file="res://addons/script-ide/outline/icon/export.svg" 15 - dest_files=["res://.godot/imported/export.svg-b7770a5f2f99766591abd69aca087dfc.ctex"] 16 - 17 - [params] 18 - 19 - compress/mode=0 20 - compress/high_quality=false 21 - compress/lossy_quality=0.7 22 - compress/uastc_level=0 23 - compress/rdo_quality_loss=0.0 24 - compress/hdr_compression=1 25 - compress/normal_map=0 26 - compress/channel_pack=0 27 - mipmaps/generate=false 28 - mipmaps/limit=-1 29 - roughness/mode=0 30 - roughness/src_normal="" 31 - process/channel_remap/red=0 32 - process/channel_remap/green=1 33 - process/channel_remap/blue=2 34 - process/channel_remap/alpha=3 35 - process/fix_alpha_border=true 36 - process/premult_alpha=false 37 - process/normal_map_invert_y=false 38 - process/hdr_as_srgb=false 39 - process/hdr_clamp_exposure=false 40 - process/size_limit=0 41 - detect_3d/compress_to=1 42 - svg/scale=1.0 43 - editor/scale_with_editor_scale=true 44 - editor/convert_colors_with_editor_theme=false
-1
addons/script-ide/outline/icon/func.svg
··· 1 - <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><path d="m8 1c-3.866 0-7 3.134-7 7 0 3.866 3.134 7 7 7 3.866 0 7-3.134 7-7 0-3.866-3.134-7-7-7z" fill="#8eef97"/></svg>
-44
addons/script-ide/outline/icon/func.svg.import
··· 1 - [remap] 2 - 3 - importer="texture" 4 - type="CompressedTexture2D" 5 - uid="uid://rni04cl446ov" 6 - path="res://.godot/imported/func.svg-d034576bf2eed84b270a8dc1d6d64df6.ctex" 7 - metadata={ 8 - "has_editor_variant": true, 9 - "vram_texture": false 10 - } 11 - 12 - [deps] 13 - 14 - source_file="res://addons/script-ide/outline/icon/func.svg" 15 - dest_files=["res://.godot/imported/func.svg-d034576bf2eed84b270a8dc1d6d64df6.ctex"] 16 - 17 - [params] 18 - 19 - compress/mode=0 20 - compress/high_quality=false 21 - compress/lossy_quality=0.7 22 - compress/uastc_level=0 23 - compress/rdo_quality_loss=0.0 24 - compress/hdr_compression=1 25 - compress/normal_map=0 26 - compress/channel_pack=0 27 - mipmaps/generate=false 28 - mipmaps/limit=-1 29 - roughness/mode=0 30 - roughness/src_normal="" 31 - process/channel_remap/red=0 32 - process/channel_remap/green=1 33 - process/channel_remap/blue=2 34 - process/channel_remap/alpha=3 35 - process/fix_alpha_border=true 36 - process/premult_alpha=false 37 - process/normal_map_invert_y=false 38 - process/hdr_as_srgb=false 39 - process/hdr_clamp_exposure=false 40 - process/size_limit=0 41 - detect_3d/compress_to=1 42 - svg/scale=1.0 43 - editor/scale_with_editor_scale=true 44 - editor/convert_colors_with_editor_theme=false
-1
addons/script-ide/outline/icon/func_get.svg
··· 1 - <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><path d="m8 15c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm0.5-2a1 1 0 0 1-0.70703-0.29297l-4-4a1 1 0 0 1-0.25977-0.62695 1.0001 1.0001 0 0 1 0-0.16016 1 1 0 0 1 0.25977-0.62695l4-4a1 1 0 0 1 1.4141 0 1 1 0 0 1 0 1.4141l-2.293 2.293h4.5859a1 1 0 0 1 1 1 1 1 0 0 1-1 1h-4.5859l2.293 2.293a1 1 0 0 1 0 1.4141 1 1 0 0 1-0.70703 0.29297z" fill="#8eef97"/></svg>
-44
addons/script-ide/outline/icon/func_get.svg.import
··· 1 - [remap] 2 - 3 - importer="texture" 4 - type="CompressedTexture2D" 5 - uid="uid://c2a3aowyhxj5x" 6 - path="res://.godot/imported/func_get.svg-033d200e05dd58beec3becc7967b8c7d.ctex" 7 - metadata={ 8 - "has_editor_variant": true, 9 - "vram_texture": false 10 - } 11 - 12 - [deps] 13 - 14 - source_file="res://addons/script-ide/outline/icon/func_get.svg" 15 - dest_files=["res://.godot/imported/func_get.svg-033d200e05dd58beec3becc7967b8c7d.ctex"] 16 - 17 - [params] 18 - 19 - compress/mode=0 20 - compress/high_quality=false 21 - compress/lossy_quality=0.7 22 - compress/uastc_level=0 23 - compress/rdo_quality_loss=0.0 24 - compress/hdr_compression=1 25 - compress/normal_map=0 26 - compress/channel_pack=0 27 - mipmaps/generate=false 28 - mipmaps/limit=-1 29 - roughness/mode=0 30 - roughness/src_normal="" 31 - process/channel_remap/red=0 32 - process/channel_remap/green=1 33 - process/channel_remap/blue=2 34 - process/channel_remap/alpha=3 35 - process/fix_alpha_border=true 36 - process/premult_alpha=false 37 - process/normal_map_invert_y=false 38 - process/hdr_as_srgb=false 39 - process/hdr_clamp_exposure=false 40 - process/size_limit=0 41 - detect_3d/compress_to=1 42 - svg/scale=1.0 43 - editor/scale_with_editor_scale=true 44 - editor/convert_colors_with_editor_theme=false
-1
addons/script-ide/outline/icon/func_set.svg
··· 1 - <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><path d="m8 1c-3.866 0-7 3.134-7 7 0 3.866 3.134 7 7 7s7-3.134 7-7c0-3.866-3.134-7-7-7zm-0.5 2a1 1 0 0 1 0.70703 0.29297l4 4a1 1 0 0 1 0.25977 0.62695 1.0001 1.0001 0 0 1 0 0.16016 1 1 0 0 1-0.25977 0.62695l-4 4a1 1 0 0 1-1.4141 0 1 1 0 0 1 0-1.4141l2.293-2.293h-4.5859a1 1 0 0 1-1-1 1 1 0 0 1 1-1h4.5859l-2.293-2.293a1 1 0 0 1 0-1.4141 1 1 0 0 1 0.70703-0.29297z" fill="#8eef97"/></svg>
-44
addons/script-ide/outline/icon/func_set.svg.import
··· 1 - [remap] 2 - 3 - importer="texture" 4 - type="CompressedTexture2D" 5 - uid="uid://bvjkrti6kj6o2" 6 - path="res://.godot/imported/func_set.svg-a9087ff3e7ab6aec141e34555a32a254.ctex" 7 - metadata={ 8 - "has_editor_variant": true, 9 - "vram_texture": false 10 - } 11 - 12 - [deps] 13 - 14 - source_file="res://addons/script-ide/outline/icon/func_set.svg" 15 - dest_files=["res://.godot/imported/func_set.svg-a9087ff3e7ab6aec141e34555a32a254.ctex"] 16 - 17 - [params] 18 - 19 - compress/mode=0 20 - compress/high_quality=false 21 - compress/lossy_quality=0.7 22 - compress/uastc_level=0 23 - compress/rdo_quality_loss=0.0 24 - compress/hdr_compression=1 25 - compress/normal_map=0 26 - compress/channel_pack=0 27 - mipmaps/generate=false 28 - mipmaps/limit=-1 29 - roughness/mode=0 30 - roughness/src_normal="" 31 - process/channel_remap/red=0 32 - process/channel_remap/green=1 33 - process/channel_remap/blue=2 34 - process/channel_remap/alpha=3 35 - process/fix_alpha_border=true 36 - process/premult_alpha=false 37 - process/normal_map_invert_y=false 38 - process/hdr_as_srgb=false 39 - process/hdr_clamp_exposure=false 40 - process/size_limit=0 41 - detect_3d/compress_to=1 42 - svg/scale=1.0 43 - editor/scale_with_editor_scale=true 44 - editor/convert_colors_with_editor_theme=false
-1
addons/script-ide/outline/icon/property.svg
··· 1 - <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><path d="m8 1c-3.866 0-7 3.134-7 7 0 3.866 3.134 7 7 7 3.866 0 7-3.134 7-7 0-3.866-3.134-7-7-7z" fill="#ff7085"/></svg>
-44
addons/script-ide/outline/icon/property.svg.import
··· 1 - [remap] 2 - 3 - importer="texture" 4 - type="CompressedTexture2D" 5 - uid="uid://dbwlgnwv5e8kl" 6 - path="res://.godot/imported/property.svg-a9a1c76c01653424a37bad3c0caee2de.ctex" 7 - metadata={ 8 - "has_editor_variant": true, 9 - "vram_texture": false 10 - } 11 - 12 - [deps] 13 - 14 - source_file="res://addons/script-ide/outline/icon/property.svg" 15 - dest_files=["res://.godot/imported/property.svg-a9a1c76c01653424a37bad3c0caee2de.ctex"] 16 - 17 - [params] 18 - 19 - compress/mode=0 20 - compress/high_quality=false 21 - compress/lossy_quality=0.7 22 - compress/uastc_level=0 23 - compress/rdo_quality_loss=0.0 24 - compress/hdr_compression=1 25 - compress/normal_map=0 26 - compress/channel_pack=0 27 - mipmaps/generate=false 28 - mipmaps/limit=-1 29 - roughness/mode=0 30 - roughness/src_normal="" 31 - process/channel_remap/red=0 32 - process/channel_remap/green=1 33 - process/channel_remap/blue=2 34 - process/channel_remap/alpha=3 35 - process/fix_alpha_border=true 36 - process/premult_alpha=false 37 - process/normal_map_invert_y=false 38 - process/hdr_as_srgb=false 39 - process/hdr_clamp_exposure=false 40 - process/size_limit=0 41 - detect_3d/compress_to=1 42 - svg/scale=1.0 43 - editor/scale_with_editor_scale=true 44 - editor/convert_colors_with_editor_theme=false
-1
addons/script-ide/outline/icon/signal.svg
··· 1 - <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><path d="m8 1c-3.866 0-7 3.134-7 7 0 3.866 3.134 7 7 7 3.866 0 7-3.134 7-7 0-3.866-3.134-7-7-7z" fill="#ffdd65"/></svg>
-44
addons/script-ide/outline/icon/signal.svg.import
··· 1 - [remap] 2 - 3 - importer="texture" 4 - type="CompressedTexture2D" 5 - uid="uid://bnccvnaloqnte" 6 - path="res://.godot/imported/signal.svg-65741ce388cd0a6b19f1b195a997cce3.ctex" 7 - metadata={ 8 - "has_editor_variant": true, 9 - "vram_texture": false 10 - } 11 - 12 - [deps] 13 - 14 - source_file="res://addons/script-ide/outline/icon/signal.svg" 15 - dest_files=["res://.godot/imported/signal.svg-65741ce388cd0a6b19f1b195a997cce3.ctex"] 16 - 17 - [params] 18 - 19 - compress/mode=0 20 - compress/high_quality=false 21 - compress/lossy_quality=0.7 22 - compress/uastc_level=0 23 - compress/rdo_quality_loss=0.0 24 - compress/hdr_compression=1 25 - compress/normal_map=0 26 - compress/channel_pack=0 27 - mipmaps/generate=false 28 - mipmaps/limit=-1 29 - roughness/mode=0 30 - roughness/src_normal="" 31 - process/channel_remap/red=0 32 - process/channel_remap/green=1 33 - process/channel_remap/blue=2 34 - process/channel_remap/alpha=3 35 - process/fix_alpha_border=true 36 - process/premult_alpha=false 37 - process/normal_map_invert_y=false 38 - process/hdr_as_srgb=false 39 - process/hdr_clamp_exposure=false 40 - process/size_limit=0 41 - detect_3d/compress_to=1 42 - svg/scale=1.0 43 - editor/scale_with_editor_scale=true 44 - editor/convert_colors_with_editor_theme=false
-442
addons/script-ide/outline/outline.gd
··· 1 - ## The outline shows all script members with different color coding, depending of the type. 2 - @tool 3 - extends ItemList 4 - 5 - const GETTER: StringName = &"get" 6 - const SETTER: StringName = &"set" 7 - const UNDERSCORE: StringName = &"_" 8 - const INLINE: StringName = &"@" 9 - const BUILT_IN_SCRIPT: StringName = &"::GDScript" 10 - 11 - #region Outline type name and icon 12 - const ENGINE_FUNCS: StringName = &"Engine Callbacks" 13 - const FUNCS: StringName = &"Functions" 14 - const SIGNALS: StringName = &"Signals" 15 - const EXPORTED: StringName = &"Exported Properties" 16 - const PROPERTIES: StringName = &"Properties" 17 - const CLASSES: StringName = &"Classes" 18 - const CONSTANTS: StringName = &"Constants" 19 - 20 - const DEFAULT_ORDER: PackedStringArray = [ENGINE_FUNCS, FUNCS, SIGNALS, EXPORTED, PROPERTIES, CONSTANTS, CLASSES] 21 - 22 - var engine_func_icon: Texture2D 23 - var func_icon: Texture2D 24 - var func_get_icon: Texture2D 25 - var func_set_icon: Texture2D 26 - var property_icon: Texture2D 27 - var export_icon: Texture2D 28 - var signal_icon: Texture2D 29 - var constant_icon: Texture2D 30 - var class_icon: Texture2D 31 - #endregion 32 - 33 - var is_hide_private_members: bool = false : set = set_hide_private_members 34 - var outline_order: PackedStringArray : set = set_outline_order 35 - 36 - # Existing components, set from the plugin 37 - var outline_filter_txt: LineEdit 38 - 39 - # Reference back to the plugin, untyped 40 - var plugin: EditorPlugin 41 - 42 - var filter_box: HBoxContainer 43 - var class_btn: Button 44 - var constant_btn: Button 45 - var signal_btn: Button 46 - var property_btn: Button 47 - var export_btn: Button 48 - var func_btn: Button 49 - var engine_func_btn: Button 50 - 51 - var outline_type_order: Array[OutlineType] = [] 52 - var outline_cache: OutlineCache 53 - 54 - func _ready() -> void: 55 - auto_translate_mode = Node.AUTO_TRANSLATE_MODE_DISABLED 56 - allow_reselect = true 57 - size_flags_vertical = Control.SIZE_EXPAND_FILL 58 - 59 - init_icons() 60 - init_outline_order() 61 - 62 - # Add a filter box for all kind of members 63 - filter_box = HBoxContainer.new() 64 - 65 - engine_func_btn = create_filter_btn(engine_func_icon, ENGINE_FUNCS) 66 - func_btn = create_filter_btn(func_icon, FUNCS) 67 - signal_btn = create_filter_btn(signal_icon, SIGNALS) 68 - export_btn = create_filter_btn(export_icon, EXPORTED) 69 - property_btn = create_filter_btn(property_icon, PROPERTIES) 70 - class_btn = create_filter_btn(class_icon, CLASSES) 71 - constant_btn = create_filter_btn(constant_icon, CONSTANTS) 72 - update_outline_button_order() 73 - 74 - func update(): 75 - update_outline_cache() 76 - update_outline() 77 - 78 - func tab_changed(): 79 - var is_script: bool = get_current_script() != null 80 - filter_box.visible = is_script 81 - visible = is_script 82 - 83 - update() 84 - 85 - ## Initializes all plugin icons, while respecting the editor settings. 86 - func init_icons(): 87 - engine_func_icon = create_editor_texture(load_rel("icon/engine_func.svg")) 88 - func_icon = create_editor_texture(load_rel("icon/func.svg")) 89 - func_get_icon = create_editor_texture(load_rel("icon/func_get.svg")) 90 - func_set_icon = create_editor_texture(load_rel("icon/func_set.svg")) 91 - property_icon = create_editor_texture(load_rel("icon/property.svg")) 92 - export_icon = create_editor_texture(load_rel("icon/export.svg")) 93 - signal_icon = create_editor_texture(load_rel("icon/signal.svg")) 94 - constant_icon = create_editor_texture(load_rel("icon/constant.svg")) 95 - class_icon = create_editor_texture(load_rel("icon/class.svg")) 96 - 97 - func create_filter_btn(icon: Texture2D, title: StringName) -> Button: 98 - var btn: Button = Button.new() 99 - btn.toggle_mode = true 100 - btn.icon = icon 101 - btn.icon_alignment = HORIZONTAL_ALIGNMENT_CENTER 102 - btn.tooltip_text = title 103 - 104 - var property: StringName = plugin.SCRIPT_IDE + title.to_lower().replace(" ", "_") 105 - btn.set_meta(&"property", property) 106 - btn.button_pressed = plugin.get_setting(property, true) 107 - 108 - btn.toggled.connect(on_filter_button_pressed.bind(btn)) 109 - btn.gui_input.connect(on_right_click.bind(btn)) 110 - 111 - btn.add_theme_color_override(&"icon_pressed_color", Color.WHITE) 112 - btn.add_theme_color_override(&"icon_hover_color", Color.WHITE) 113 - btn.add_theme_color_override(&"icon_hover_pressed_color", Color.WHITE) 114 - btn.add_theme_color_override(&"icon_focus_color", Color.WHITE) 115 - 116 - var style_box_empty: StyleBoxEmpty = StyleBoxEmpty.new() 117 - btn.add_theme_stylebox_override(&"normal", style_box_empty) 118 - 119 - var style_box: StyleBoxFlat = StyleBoxFlat.new() 120 - style_box.draw_center = false 121 - style_box.border_color = get_editor_accent_color() 122 - style_box.set_border_width_all(1 * get_editor_scale()) 123 - style_box.set_corner_radius_all(get_editor_corner_radius() * get_editor_scale()) 124 - btn.add_theme_stylebox_override(&"focus", style_box) 125 - 126 - return btn 127 - 128 - func on_right_click(event: InputEvent, btn: Button): 129 - if !(event is InputEventMouseButton): 130 - return 131 - 132 - var mouse_event: InputEventMouseButton = event 133 - 134 - if (!mouse_event.is_pressed() || mouse_event.button_index != MOUSE_BUTTON_RIGHT): 135 - return 136 - 137 - btn.button_pressed = true 138 - 139 - var pressed_state: bool = false 140 - for child: Node in filter_box.get_children(): 141 - var other_btn: Button = child 142 - 143 - if (btn != other_btn): 144 - pressed_state = pressed_state || other_btn.button_pressed 145 - 146 - for child: Node in filter_box.get_children(): 147 - var other_btn: Button = child 148 - 149 - if (btn != other_btn): 150 - other_btn.button_pressed = !pressed_state 151 - 152 - outline_filter_txt.grab_focus() 153 - 154 - func on_filter_button_pressed(pressed: bool, btn: Button): 155 - plugin.set_setting(btn.get_meta(&"property"), pressed) 156 - 157 - update_outline() 158 - outline_filter_txt.grab_focus() 159 - 160 - ## Initializes the outline type structure and sorts it based off the outline order. 161 - func init_outline_order(): 162 - var outline_type: OutlineType = OutlineType.new() 163 - outline_type.type_name = ENGINE_FUNCS 164 - outline_type.add_to_outline = func(): add_to_outline_if_selected(engine_func_btn, 165 - func(): add_to_outline(outline_cache.engine_funcs, engine_func_icon, &"func")) 166 - outline_type_order.append(outline_type) 167 - 168 - outline_type = OutlineType.new() 169 - outline_type.type_name = FUNCS 170 - outline_type.add_to_outline = func(): add_to_outline_if_selected(func_btn, 171 - func(): add_to_outline_ext(outline_cache.funcs, get_func_icon, &"func", &"static")) 172 - outline_type_order.append(outline_type) 173 - 174 - outline_type = OutlineType.new() 175 - outline_type.type_name = SIGNALS 176 - outline_type.add_to_outline = func(): add_to_outline_if_selected(signal_btn, 177 - func(): add_to_outline(outline_cache.signals, signal_icon, &"signal")) 178 - outline_type_order.append(outline_type) 179 - 180 - outline_type = OutlineType.new() 181 - outline_type.type_name = EXPORTED 182 - outline_type.add_to_outline = func(): add_to_outline_if_selected(export_btn, 183 - func(): add_to_outline(outline_cache.exports, export_icon, &"var", &"@export")) 184 - outline_type_order.append(outline_type) 185 - 186 - outline_type = OutlineType.new() 187 - outline_type.type_name = PROPERTIES 188 - outline_type.add_to_outline = func(): add_to_outline_if_selected(property_btn, 189 - func(): add_to_outline(outline_cache.properties, property_icon, &"var")) 190 - outline_type_order.append(outline_type) 191 - 192 - outline_type = OutlineType.new() 193 - outline_type.type_name = CLASSES 194 - outline_type.add_to_outline = func(): add_to_outline_if_selected(class_btn, 195 - func(): add_to_outline(outline_cache.classes, class_icon, &"class")) 196 - outline_type_order.append(outline_type) 197 - 198 - outline_type = OutlineType.new() 199 - outline_type.type_name = CONSTANTS 200 - outline_type.add_to_outline = func(): add_to_outline_if_selected(constant_btn, 201 - func(): add_to_outline(outline_cache.constants, constant_icon, &"const", &"enum")) 202 - outline_type_order.append(outline_type) 203 - 204 - func add_to_outline_if_selected(btn: Button, action: Callable): 205 - if (btn.button_pressed): 206 - action.call() 207 - 208 - func update_outline_button_order(): 209 - var all_buttons: Array[Button] = [engine_func_btn, func_btn, signal_btn, export_btn, property_btn, class_btn, constant_btn] 210 - all_buttons.sort_custom(sort_buttons_by_outline_order) 211 - 212 - for btn: Button in all_buttons: 213 - if (btn.get_parent() != null): 214 - filter_box.remove_child(btn) 215 - 216 - for btn: Button in all_buttons: 217 - filter_box.add_child(btn) 218 - 219 - func sort_buttons_by_outline_order(btn1: Button, btn2: Button) -> bool: 220 - return sort_by_outline_order(btn1.tooltip_text, btn2.tooltip_text) 221 - 222 - func sort_types_by_outline_order(type1: OutlineType, type2: OutlineType) -> bool: 223 - return sort_by_outline_order(type1.type_name, type2.type_name) 224 - 225 - func sort_by_outline_order(outline_type1: StringName, outline_type2: StringName) -> bool: 226 - return outline_order.find(outline_type1) < outline_order.find(outline_type2) 227 - 228 - func get_current_script() -> Script: 229 - var script_editor: ScriptEditor = EditorInterface.get_script_editor() 230 - return script_editor.get_current_script() 231 - 232 - func update_outline_cache(): 233 - outline_cache = null 234 - 235 - var script: Script = get_current_script() 236 - if (!script): 237 - return 238 - 239 - # Check if built-in script. In this case we need to duplicate it for whatever reason. 240 - if (script.get_path().contains(BUILT_IN_SCRIPT)): 241 - script = script.duplicate() 242 - 243 - outline_cache = OutlineCache.new() 244 - 245 - # Collect all script members. 246 - for_each_script_member(script, func(array: Array[String], item: String): array.append(item)) 247 - 248 - # Remove script members that only exist in the base script (which includes the base of the base etc.). 249 - # Note: The method that only collects script members without including the base script(s) 250 - # is not exposed to GDScript. 251 - var base_script: Script = script.get_base_script() 252 - if (base_script != null): 253 - for_each_script_member(base_script, func(array: Array[String], item: String): array.erase(item)) 254 - 255 - func for_each_script_member(script: Script, consumer: Callable): 256 - # Functions / Methods 257 - for dict: Dictionary in script.get_script_method_list(): 258 - var func_name: String = dict[&"name"] 259 - 260 - if (plugin.keywords.has(func_name)): 261 - consumer.call(outline_cache.engine_funcs, func_name) 262 - else: 263 - if (is_hide_private_members && func_name.begins_with(UNDERSCORE)): 264 - continue 265 - 266 - # Inline getter/setter will normally be shown as '@...getter', '@...setter'. 267 - # Since we already show the variable itself, we will skip those. 268 - if (func_name.begins_with(INLINE)): 269 - continue 270 - 271 - consumer.call(outline_cache.funcs, func_name) 272 - 273 - # Properties / Exported variables 274 - for dict: Dictionary in script.get_script_property_list(): 275 - var property: String = dict[&"name"] 276 - if (is_hide_private_members && property.begins_with(UNDERSCORE)): 277 - continue 278 - 279 - var usage: int = dict[&"usage"] 280 - 281 - if (usage & PROPERTY_USAGE_SCRIPT_VARIABLE): 282 - if (usage & PROPERTY_USAGE_STORAGE && usage & PROPERTY_USAGE_EDITOR): 283 - consumer.call(outline_cache.exports, property) 284 - else: 285 - consumer.call(outline_cache.properties, property) 286 - 287 - # Static variables (are separated for whatever reason) 288 - for dict: Dictionary in script.get_property_list(): 289 - var property: String = dict[&"name"] 290 - if (is_hide_private_members && property.begins_with(UNDERSCORE)): 291 - continue 292 - 293 - var usage: int = dict[&"usage"] 294 - 295 - if (usage & PROPERTY_USAGE_SCRIPT_VARIABLE): 296 - consumer.call(outline_cache.properties, property) 297 - 298 - # Signals 299 - for dict: Dictionary in script.get_script_signal_list(): 300 - var signal_name: String = dict[&"name"] 301 - 302 - consumer.call(outline_cache.signals, signal_name) 303 - 304 - # Constants / Classes 305 - for name_key: String in script.get_script_constant_map(): 306 - if (is_hide_private_members && name_key.begins_with(UNDERSCORE)): 307 - continue 308 - 309 - var object: Variant = script.get_script_constant_map().get(name_key) 310 - # Inner classes have no source code, while a const of type GDScript has. 311 - if (object is GDScript && !object.has_source_code()): 312 - consumer.call(outline_cache.classes, name_key) 313 - else: 314 - consumer.call(outline_cache.constants, name_key) 315 - 316 - func update_outline(): 317 - clear() 318 - 319 - if (outline_cache == null): 320 - return 321 - 322 - for outline_type: OutlineType in outline_type_order: 323 - outline_type.add_to_outline.call() 324 - 325 - func add_to_outline(items: Array[String], icon: Texture2D, type: StringName, modifier: StringName = &""): 326 - add_to_outline_ext(items, func(str: String): return icon, type, modifier) 327 - 328 - func add_to_outline_ext(items: Array[String], icon_callable: Callable, type: StringName, modifier: StringName = &""): 329 - var text: String = outline_filter_txt.get_text() 330 - 331 - if (is_sorted()): 332 - items = items.duplicate() 333 - items.sort_custom(func(str1: String, str2: String): return str1.naturalnocasecmp_to(str2) < 0) 334 - 335 - for item: String in items: 336 - if (text.is_empty() || text.is_subsequence_ofn(item)): 337 - var icon: Texture2D = icon_callable.call(item) 338 - add_item(item, icon, true) 339 - 340 - var dict: Dictionary[StringName, StringName] = { 341 - &"type": type, 342 - &"modifier": modifier 343 - } 344 - set_item_metadata(item_count - 1, dict) 345 - 346 - func get_func_icon(func_name: String) -> Texture2D: 347 - var icon: Texture2D = func_icon 348 - if (func_name.begins_with(GETTER)): 349 - icon = func_get_icon 350 - elif (func_name.begins_with(SETTER)): 351 - icon = func_set_icon 352 - 353 - return icon 354 - 355 - func save_restore_filter() -> Array[bool]: 356 - var button_flags: Array[bool] = [] 357 - for child: Node in filter_box.get_children(): 358 - var btn: Button = child 359 - button_flags.append(btn.button_pressed) 360 - 361 - btn.set_pressed_no_signal(true) 362 - 363 - return button_flags 364 - 365 - func restore_filter(button_flags: Array[bool]): 366 - var index: int = 0 367 - for flag: bool in button_flags: 368 - var btn: Button = filter_box.get_child(index) 369 - btn.set_pressed_no_signal(flag) 370 - index += 1 371 - 372 - func set_outline_order(new_outline_order: PackedStringArray): 373 - outline_order = new_outline_order 374 - 375 - outline_type_order.sort_custom(sort_types_by_outline_order) 376 - 377 - update_outline_button_order() 378 - update_outline() 379 - 380 - func set_hide_private_members(new_value: bool): 381 - is_hide_private_members = new_value 382 - 383 - update_outline() 384 - 385 - func update_filter_buttons(): 386 - # Update filter buttons. 387 - for btn_node: Node in filter_box.get_children(): 388 - var btn: Button = btn_node 389 - var property: StringName = btn.get_meta(&"property") 390 - 391 - btn.button_pressed = plugin.get_setting(property, btn.button_pressed) 392 - 393 - func reset_icons(): 394 - init_icons() 395 - engine_func_btn.icon = engine_func_icon 396 - func_btn.icon = func_icon 397 - signal_btn.icon = signal_icon 398 - export_btn.icon = export_icon 399 - property_btn.icon = property_icon 400 - class_btn.icon = class_icon 401 - constant_btn.icon = constant_icon 402 - update_outline() 403 - 404 - func create_editor_texture(texture: Texture2D) -> Texture2D: 405 - var image: Image = texture.get_image().duplicate() 406 - image.adjust_bcs(1.0, 1.0, get_editor_icon_saturation()) 407 - 408 - return ImageTexture.create_from_image(image) 409 - 410 - func load_rel(path: String) -> Variant: 411 - var script_path: String = get_script().get_path().get_base_dir() 412 - return load(script_path.path_join(path)) 413 - 414 - func is_sorted() -> bool: 415 - return EditorInterface.get_editor_settings().get_setting("text_editor/script_list/sort_members_outline_alphabetically") 416 - 417 - func get_editor_scale() -> float: 418 - return EditorInterface.get_editor_scale() 419 - 420 - func get_editor_corner_radius() -> int: 421 - return EditorInterface.get_editor_settings().get_setting("interface/theme/corner_radius") 422 - 423 - func get_editor_accent_color() -> Color: 424 - return EditorInterface.get_editor_settings().get_setting("interface/theme/accent_color") 425 - 426 - func get_editor_icon_saturation() -> float: 427 - return EditorInterface.get_editor_settings().get_setting("interface/theme/icon_saturation") 428 - 429 - ## Cache for everything inside we collected to show in the Outline. 430 - class OutlineCache: 431 - var classes: Array[String] = [] 432 - var constants: Array[String] = [] 433 - var signals: Array[String] = [] 434 - var exports: Array[String] = [] 435 - var properties: Array[String] = [] 436 - var funcs: Array[String] = [] 437 - var engine_funcs: Array[String] = [] 438 - 439 - ## Outline type for a concrete button with their items in the Outline. 440 - class OutlineType: 441 - var type_name: StringName 442 - var add_to_outline: Callable
-1
addons/script-ide/outline/outline.gd.uid
··· 1 - uid://db0be00ai3tfi
-344
addons/script-ide/override/override_panel.gd
··· 1 - ## The override panel does show all functions that come from the super class (extends) 2 - ## that can be overridden by the script this is called on. 3 - @tool 4 - extends PopupPanel 5 - 6 - const FUNC_META: StringName = &"func" 7 - 8 - const Outline := preload("uid://db0be00ai3tfi") 9 - 10 - @onready var filter_txt: LineEdit = %FilterTxt 11 - @onready var class_func_tree: Tree = %ClassFuncTree 12 - @onready var ok_btn: Button = %OkBtn 13 - @onready var cancel_btn: Button = %CancelBtn 14 - 15 - # Reference back to the plugin, untyped 16 - var plugin: EditorPlugin 17 - var outline: Outline 18 - 19 - var selections: Dictionary[String, bool] = {} # Used as Set. 20 - var class_to_functions: Dictionary[StringName, PackedStringArray] 21 - 22 - func _ready() -> void: 23 - filter_txt.text_changed.connect(update_tree_filter.unbind(1)) 24 - 25 - class_func_tree.multi_selected.connect(func(item: TreeItem, col: int, selected: bool): save_selection(selected, item)) 26 - class_func_tree.item_activated.connect(generate_functions) 27 - 28 - cancel_btn.pressed.connect(hide) 29 - ok_btn.pressed.connect(generate_functions) 30 - 31 - about_to_popup.connect(on_show) 32 - 33 - filter_txt.gui_input.connect(navigate_on_tree) 34 - 35 - func navigate_on_tree(event: InputEvent): 36 - if (event.is_action_pressed(&"ui_select", true)): 37 - var selected: TreeItem = get_selected_tree_item() 38 - if (selected == null): 39 - return 40 - 41 - class_func_tree.accept_event() 42 - 43 - if (!selected.is_selectable(0)): 44 - selected.collapsed = !selected.collapsed 45 - return 46 - 47 - if (selected.is_selected(0)): 48 - selected.deselect(0) 49 - save_selection(false, selected) 50 - else: 51 - selected.select(0) 52 - save_selection(true, selected) 53 - elif (event.is_action_pressed(&"ui_text_submit", true)): 54 - class_func_tree.accept_event() 55 - 56 - if (selections.size() == 0): 57 - return 58 - 59 - generate_functions() 60 - elif (event.is_action_pressed(&"ui_down", true)): 61 - var selected: TreeItem = get_selected_tree_item() 62 - if (selected == null): 63 - return 64 - var item: TreeItem = selected.get_next_in_tree() 65 - if (item == null): 66 - return 67 - 68 - focus_tree_item(item) 69 - elif (event.is_action_pressed(&"ui_up", true)): 70 - var selected: TreeItem = get_selected_tree_item() 71 - if (selected == null): 72 - return 73 - var item: TreeItem = selected.get_prev_in_tree() 74 - if (item == null): 75 - return 76 - 77 - focus_tree_item(item) 78 - elif (event.is_action_pressed(&"ui_page_down", true)): 79 - var selected: TreeItem = get_selected_tree_item() 80 - if (selected == null): 81 - return 82 - 83 - var item: TreeItem = selected.get_next_in_tree() 84 - if (item == null): 85 - return 86 - 87 - for index: int in 4: 88 - var next: TreeItem = item.get_next_in_tree() 89 - if (next == null): 90 - break 91 - item = next 92 - 93 - focus_tree_item(item) 94 - elif (event.is_action_pressed(&"ui_page_up", true)): 95 - var selected: TreeItem = get_selected_tree_item() 96 - if (selected == null): 97 - return 98 - 99 - var item: TreeItem = selected.get_prev_in_tree() 100 - if (item == null): 101 - return 102 - 103 - for index: int in 4: 104 - var prev: TreeItem = item.get_prev_in_tree() 105 - if (prev == null): 106 - break 107 - item = prev 108 - 109 - focus_tree_item(item) 110 - 111 - func get_selected_tree_item() -> TreeItem: 112 - var selected: TreeItem = class_func_tree.get_selected() 113 - if (selected == null): 114 - selected = class_func_tree.get_root() 115 - return selected 116 - 117 - func focus_tree_item(item: TreeItem): 118 - var was_selected: bool = item.is_selected(0) 119 - item.select(0) 120 - item.deselect(0) 121 - if (was_selected): 122 - item.select(0) 123 - 124 - class_func_tree.ensure_cursor_is_visible() 125 - class_func_tree.accept_event() 126 - 127 - func update_tree_filter(): 128 - update_tree() 129 - 130 - func save_selection(selected: bool, item: TreeItem): 131 - if (selected): 132 - selections[item.get_text(0)] = true 133 - else: 134 - selections.erase(item.get_text(0)) 135 - 136 - ok_btn.disabled = selections.size() == 0 137 - 138 - func on_show(): 139 - class_func_tree.clear() 140 - selections.clear() 141 - ok_btn.disabled = true 142 - filter_txt.text = &"" 143 - 144 - var script: Script = EditorInterface.get_script_editor().get_current_script() 145 - class_to_functions = collect_all_class_functions(script) 146 - if (class_to_functions.is_empty()): 147 - return 148 - 149 - update_tree() 150 - filter_txt.grab_focus() 151 - 152 - func update_tree(): 153 - class_func_tree.clear() 154 - 155 - var text: String = filter_txt.text 156 - 157 - var root: TreeItem = class_func_tree.create_item() 158 - for class_name_str: StringName in class_to_functions.keys(): 159 - var class_item: TreeItem = root.create_child(0) 160 - class_item.set_selectable(0, false) 161 - class_item.set_text(0, class_name_str) 162 - 163 - for function: String in class_to_functions.get(class_name_str): 164 - var is_preselected: bool = selections.has(function) 165 - if (is_preselected || text.is_empty() || text.is_subsequence_ofn(function)): 166 - var func_item: TreeItem = class_item.create_child() 167 - func_item.set_text(0, function) 168 - if (plugin.keywords.has(function.get_slice("(", 0))): 169 - func_item.set_icon(0, outline.engine_func_icon) 170 - else: 171 - func_item.set_icon(0, outline.func_icon) 172 - 173 - if (is_preselected): 174 - func_item.select(0) 175 - 176 - func collect_all_class_functions(script: Script) -> Dictionary[StringName, PackedStringArray]: 177 - var existing_funcs: Dictionary[String, bool] = {} # Used as Set. 178 - for func_str: String in outline.outline_cache.engine_funcs: 179 - existing_funcs[func_str] = true 180 - for func_str: String in outline.outline_cache.funcs: 181 - existing_funcs[func_str] = true 182 - 183 - var class_to_functions: Dictionary[StringName, PackedStringArray] = collect_super_class_functions(script.get_base_script(), existing_funcs) 184 - var native_class_to_functions: Dictionary[StringName, PackedStringArray] = collect_native_class_functions(script.get_instance_base_type(), existing_funcs) 185 - 186 - return native_class_to_functions.merged(class_to_functions) 187 - 188 - func collect_super_class_functions(base_script: Script, existing_funcs: Dictionary[String, bool]) -> Dictionary[StringName, PackedStringArray]: 189 - var super_classes: Array[Script] = [] 190 - while (base_script != null): 191 - super_classes.insert(0, base_script) 192 - 193 - base_script = base_script.get_base_script() 194 - 195 - var class_to_functions: Dictionary[StringName, PackedStringArray] = {} 196 - for super_class: Script in super_classes: 197 - var functions: PackedStringArray = collect_script_functions(super_class, existing_funcs) 198 - if (functions.is_empty()): 199 - continue 200 - 201 - class_to_functions[super_class.get_global_name()] = functions 202 - 203 - return class_to_functions 204 - 205 - func collect_native_class_functions(native_class: StringName, existing_funcs: Dictionary[String, bool]) -> Dictionary[StringName, PackedStringArray]: 206 - var super_native_classes: Array[StringName] = [] 207 - while (native_class != &""): 208 - super_native_classes.insert(0, native_class) 209 - 210 - native_class = ClassDB.get_parent_class(native_class) 211 - 212 - var class_to_functions: Dictionary[StringName, PackedStringArray] = {} 213 - for super_native_class: StringName in super_native_classes: 214 - var functions: PackedStringArray = collect_class_functions(super_native_class, existing_funcs) 215 - if (functions.is_empty()): 216 - continue 217 - 218 - class_to_functions[super_native_class] = functions 219 - 220 - return class_to_functions 221 - 222 - func collect_class_functions(native_class: StringName, existing_funcs: Dictionary[String, bool]) -> PackedStringArray: 223 - var functions: PackedStringArray = [] 224 - 225 - for method: Dictionary in ClassDB.class_get_method_list(native_class, true): 226 - if (method[&"flags"] & METHOD_FLAG_VIRTUAL <= 0): 227 - continue 228 - 229 - var func_name: String = method[&"name"] 230 - if (existing_funcs.has(func_name)): 231 - continue 232 - 233 - func_name = create_function_signature(method) 234 - functions.append(func_name) 235 - 236 - return functions 237 - 238 - func collect_script_functions(super_class: Script, existing_funcs: Dictionary[String, bool]) -> PackedStringArray: 239 - var functions: PackedStringArray = [] 240 - 241 - for method: Dictionary in super_class.get_script_method_list(): 242 - var func_name: String = method[&"name"] 243 - if (existing_funcs.has(func_name)): 244 - continue 245 - 246 - existing_funcs[func_name] = true 247 - 248 - func_name = create_function_signature(method) 249 - functions.append(func_name) 250 - 251 - return functions 252 - 253 - func create_function_signature(method: Dictionary) -> String: 254 - var func_name: String = method[&"name"] 255 - func_name += "(" 256 - 257 - var args: Array = method[&"args"] 258 - var default_args: Array = method[&"default_args"] 259 - 260 - var arg_index: int = 0 261 - var default_arg_index: int = 0 262 - var arg_str: String = "" 263 - for arg: Dictionary in args: 264 - if (arg_str != ""): 265 - arg_str += ", " 266 - 267 - arg_str += arg[&"name"] 268 - var type: String = get_type(arg) 269 - if (type != ""): 270 - arg_str += ": " + type 271 - 272 - if (args.size() - arg_index <= default_args.size()): 273 - var default_arg: Variant = default_args[default_arg_index] 274 - if (!default_arg): 275 - var type_hint: int = arg[&"type"] 276 - if (is_dictionary(type_hint)): 277 - default_arg = {} 278 - elif (is_array(type_hint)): 279 - default_arg = [] 280 - 281 - arg_str += " = " + var_to_str(default_arg) 282 - 283 - default_arg_index += 1 284 - 285 - arg_index += 1 286 - 287 - func_name += arg_str + ")" 288 - 289 - var return_str: String = get_type(method[&"return"]) 290 - if (return_str == ""): 291 - return_str = "void" 292 - 293 - func_name += " -> " + return_str 294 - 295 - return func_name 296 - 297 - func generate_functions(): 298 - if (selections.size() == 0): 299 - return 300 - 301 - var generated_text: String = "" 302 - for function: String in selections.keys(): 303 - generated_text += "\nfunc " + function + ":\n\tpass\n" 304 - 305 - var editor: CodeEdit = EditorInterface.get_script_editor().get_current_editor().get_base_editor() 306 - editor.text += generated_text 307 - 308 - plugin.goto_line(editor.get_line_count() - 1) 309 - 310 - # Deferred as otherwise we get weird errors in the console. 311 - # Probably due to this beeing called in a signal and auto unparent is true. 312 - # 100% Engine bug or at least weird behavior. 313 - hide.call_deferred() 314 - 315 - func get_type(dict: Dictionary) -> String: 316 - var type: String = dict[&"class_name"] 317 - if (type != &""): 318 - return type 319 - 320 - var type_hint: int = dict[&"type"] 321 - if (type_hint == 0): 322 - return &"" 323 - 324 - type = type_string(type_hint) 325 - 326 - if (is_dictionary(type_hint)): 327 - var generic: String = dict[&"hint_string"] 328 - if (generic != &""): 329 - var generic_parts: PackedStringArray = generic.split(";") 330 - if (generic_parts.size() == 2): 331 - return type + "[" + generic_parts[0] + ", " + generic_parts[1] + "]" 332 - 333 - if (is_array(type_hint)): 334 - var generic: String = dict[&"hint_string"] 335 - if (generic != &""): 336 - return type + "[" + generic + "]" 337 - 338 - return type 339 - 340 - func is_dictionary(type_hint: int) -> bool: 341 - return type_hint == 27 342 - 343 - func is_array(type_hint: int) -> bool: 344 - return type_hint == 28
-1
addons/script-ide/override/override_panel.gd.uid
··· 1 - uid://c4w55j4jswg2t
-58
addons/script-ide/override/override_panel.tscn
··· 1 - [gd_scene format=3 uid="uid://bb1n82qxlqanh"] 2 - 3 - [ext_resource type="Script" uid="uid://c4w55j4jswg2t" path="res://addons/script-ide/override/override_panel.gd" id="1_c3eqr"] 4 - 5 - [node name="OverridePanel" type="PopupPanel" unique_id=145780904] 6 - oversampling_override = 1.0 7 - script = ExtResource("1_c3eqr") 8 - 9 - [node name="PanelContainer" type="PanelContainer" parent="." unique_id=1028771242] 10 - anchors_preset = 15 11 - anchor_right = 1.0 12 - anchor_bottom = 1.0 13 - offset_left = 4.0 14 - offset_top = 4.0 15 - offset_right = -4.0 16 - offset_bottom = -4.0 17 - grow_horizontal = 2 18 - grow_vertical = 2 19 - 20 - [node name="MarginContainer" type="MarginContainer" parent="PanelContainer" unique_id=701240329] 21 - layout_mode = 2 22 - 23 - [node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer/MarginContainer" unique_id=46770551] 24 - layout_mode = 2 25 - theme_override_constants/separation = 4 26 - 27 - [node name="Label" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer" unique_id=927995895] 28 - layout_mode = 2 29 - text = "Select Functions to Override/Implement" 30 - 31 - [node name="FilterTxt" type="LineEdit" parent="PanelContainer/MarginContainer/VBoxContainer" unique_id=759695003] 32 - unique_name_in_owner = true 33 - layout_mode = 2 34 - placeholder_text = "Filter Methods" 35 - 36 - [node name="ClassFuncTree" type="Tree" parent="PanelContainer/MarginContainer/VBoxContainer" unique_id=1883825598] 37 - unique_name_in_owner = true 38 - layout_mode = 2 39 - size_flags_vertical = 3 40 - hide_root = true 41 - select_mode = 2 42 - 43 - [node name="HBoxContainer" type="HBoxContainer" parent="PanelContainer/MarginContainer/VBoxContainer" unique_id=1036676649] 44 - layout_mode = 2 45 - theme_override_constants/separation = 4 46 - alignment = 2 47 - 48 - [node name="OkBtn" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer/HBoxContainer" unique_id=598122006] 49 - unique_name_in_owner = true 50 - custom_minimum_size = Vector2(64, 0) 51 - layout_mode = 2 52 - text = "Ok" 53 - 54 - [node name="CancelBtn" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer/HBoxContainer" unique_id=1978369329] 55 - unique_name_in_owner = true 56 - custom_minimum_size = Vector2(64, 0) 57 - layout_mode = 2 58 - text = "Cancel"
-7
addons/script-ide/plugin.cfg
··· 1 - [plugin] 2 - 3 - name="Script-IDE" 4 - 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." 5 - author="Marius Hanl" 6 - version="2.1.1" 7 - script="plugin.gd"
-932
addons/script-ide/plugin.gd
··· 1 - ## Copyright (c) 2023-present Marius Hanl under the MIT License. 2 - ## The editor plugin entrypoint for Script-IDE. 3 - ## 4 - ## Some features interfere with the editor code that is inside 'script_editor_plugin.cpp'. 5 - ## That is, the original structure is changed by this plugin, in order to support everything. 6 - ## The internals of the native C++ code are therefore important in order to make this plugin work 7 - ## without interfering with the Engine itself (and their Node's). 8 - ## 9 - ## Script-IDE does not use global class_name's in order to not clutter projects using it. 10 - ## Especially since this is an editor only plugin, we do not want this plugin in the final game. 11 - ## Therefore, components that references the plugin is untyped. 12 - @tool 13 - extends EditorPlugin 14 - 15 - const BUILT_IN_SCRIPT: StringName = &"::GDScript" 16 - const QUICK_OPEN_INTERVAL: int = 400 17 - 18 - const MULTILINE_TAB_BAR: PackedScene = preload("tabbar/multiline_tab_bar.tscn") 19 - const MultilineTabBar := preload("tabbar/multiline_tab_bar.gd") 20 - 21 - const QUICK_OPEN_SCENE: PackedScene = preload("quickopen/quick_open_panel.tscn") 22 - const QuickOpenPopup := preload("quickopen/quick_open_panel.gd") 23 - 24 - const OVERRIDE_SCENE: PackedScene = preload("override/override_panel.tscn") 25 - const OverridePopup := preload("override/override_panel.gd") 26 - 27 - const Outline := preload("uid://db0be00ai3tfi") 28 - const SplitCodeEdit := preload("uid://boy48rhhyrph") 29 - 30 - #region Settings and Shortcuts 31 - ## Editor setting path 32 - const SCRIPT_IDE: StringName = &"plugin/script_ide/" 33 - ## Editor setting for the outline position 34 - const OUTLINE_POSITION_RIGHT: StringName = SCRIPT_IDE + &"outline_position_right" 35 - ## Editor setting to control the order of the outline 36 - const OUTLINE_ORDER: StringName = SCRIPT_IDE + &"outline_order" 37 - ## Editor setting to control whether private members (annotated with '_' should be hidden or not) 38 - const HIDE_PRIVATE_MEMBERS: StringName = SCRIPT_IDE + &"hide_private_members" 39 - ## Editor setting to control whether we want to auto navigate to the script 40 - ## in the filesystem (dock) when selected 41 - const AUTO_NAVIGATE_IN_FS: StringName = SCRIPT_IDE + &"auto_navigate_in_filesystem_dock" 42 - ## Editor setting to control whether the script list should be visible or not 43 - const SCRIPT_LIST_VISIBLE: StringName = SCRIPT_IDE + &"script_list_visible" 44 - ## Editor setting to control whether the script tabs should be visible or not. 45 - const SCRIPT_TABS_VISIBLE: StringName = SCRIPT_IDE + &"script_tabs_visible" 46 - ## Editor setting to control where the script tabs should be. 47 - const SCRIPT_TABS_POSITION_TOP: StringName = SCRIPT_IDE + &"script_tabs_position_top" 48 - ## Editor setting to control if all script tabs should have close button. 49 - const SCRIPT_TABS_CLOSE_BUTTON_ALWAYS: StringName = SCRIPT_IDE + &"script_tabs_close_button_always" 50 - ## Editor setting to control if all tabs should be shown in a single line. 51 - const SCRIPT_TABS_SINGLELINE: StringName = SCRIPT_IDE + &"script_tabs_singleline" 52 - 53 - ## Editor setting for the 'Open Outline Popup' shortcut 54 - const OPEN_OUTLINE_POPUP: StringName = SCRIPT_IDE + &"open_outline_popup" 55 - ## Editor setting for the 'Open Scripts Popup' shortcut 56 - const OPEN_SCRIPTS_POPUP: StringName = SCRIPT_IDE + &"open_scripts_popup" 57 - ## Editor setting for the 'Open Scripts Popup' shortcut 58 - const OPEN_QUICK_SEARCH_POPUP: StringName = SCRIPT_IDE + &"open_quick_search_popup" 59 - ## Editor setting for the 'Open Override Popup' shortcut 60 - const OPEN_OVERRIDE_POPUP: StringName = SCRIPT_IDE + &"open_override_popup" 61 - ## Editor setting for the 'Tab cycle forward' shortcut 62 - const TAB_CYCLE_FORWARD: StringName = SCRIPT_IDE + &"tab_cycle_forward" 63 - ## Editor setting for the 'Tab cycle backward' shortcut 64 - const TAB_CYCLE_BACKWARD: StringName = SCRIPT_IDE + &"tab_cycle_backward" 65 - 66 - ## Engine editor setting for the icon saturation, so our icons can react. 67 - const ICON_SATURATION: StringName = &"interface/theme/icon_saturation" 68 - ## Engine editor setting for the show members functionality. 69 - const SHOW_MEMBERS: StringName = &"text_editor/script_list/show_members_overview" 70 - ## We track the user setting, so we can restore it properly. 71 - var show_members: bool = true 72 - #endregion 73 - 74 - #region Editor settings 75 - var is_outline_right: bool = true 76 - var is_hide_private_members: bool = false 77 - 78 - var is_script_tabs_visible: bool = true 79 - var is_script_tabs_top: bool = true 80 - var is_script_tabs_close_button_always: bool = false 81 - var is_script_tabs_singleline: bool = false 82 - 83 - var is_auto_navigate_in_fs: bool = true 84 - var is_script_list_visible: bool = false 85 - 86 - var outline_order: PackedStringArray 87 - 88 - var open_outline_popup_shc: Shortcut 89 - var open_scripts_popup_shc: Shortcut 90 - var open_quick_search_popup_shc: Shortcut 91 - var open_override_popup_shc: Shortcut 92 - var tab_cycle_forward_shc: Shortcut 93 - var tab_cycle_backward_shc: Shortcut 94 - #endregion 95 - 96 - #region Existing controls we modify 97 - var script_editor_split_container: HSplitContainer 98 - var files_panel: Control 99 - 100 - var old_scripts_tab_container: TabContainer 101 - var old_scripts_tab_bar: TabBar 102 - 103 - var script_filter_txt: LineEdit 104 - var scripts_item_list: ItemList 105 - var script_panel_split_container: VSplitContainer 106 - 107 - var old_outline: ItemList 108 - var outline_filter_txt: LineEdit 109 - var sort_btn: Button 110 - #endregion 111 - 112 - #region Own controls we add 113 - var outline: Outline 114 - var outline_popup: PopupPanel 115 - var multiline_tab_bar: MultilineTabBar 116 - var scripts_popup: PopupPanel 117 - var quick_open_popup: QuickOpenPopup 118 - var override_popup: OverridePopup 119 - 120 - var tab_splitter: HSplitContainer 121 - #endregion 122 - 123 - #region Plugin variables 124 - var keywords: Dictionary[String, bool] = {} # Used as Set. 125 - 126 - var old_script_editor_base: ScriptEditorBase 127 - var old_script_type: StringName 128 - 129 - var is_script_changed: bool = false 130 - var file_to_navigate: String = &"" 131 - 132 - var quick_open_tween: Tween 133 - 134 - var suppress_settings_sync: bool = false 135 - #endregion 136 - 137 - #region Plugin Enter / Exit setup 138 - ## Change the Engine script UI and transform into an IDE like UI 139 - func _enter_tree() -> void: 140 - init_settings() 141 - init_shortcuts() 142 - 143 - # Update on filesystem changed (e.g. save operation). 144 - var file_system: EditorFileSystem = EditorInterface.get_resource_filesystem() 145 - file_system.filesystem_changed.connect(schedule_update) 146 - 147 - # Sync settings changes for this plugin. 148 - get_editor_settings().settings_changed.connect(sync_settings) 149 - 150 - var script_editor: ScriptEditor = EditorInterface.get_script_editor() 151 - script_editor_split_container = find_or_null(script_editor.find_children("*", "HSplitContainer", true, false)) 152 - files_panel = script_editor_split_container.get_child(0) 153 - 154 - # The 'Filter Scripts' Panel 155 - var upper_files_panel: Control = files_panel.get_child(0) 156 - # The 'Filter Methods' Panel 157 - var lower_files_panel: Control = files_panel.get_child(1) 158 - 159 - # Change script item list visibility (based on settings). 160 - scripts_item_list = find_or_null(upper_files_panel.find_children("*", "ItemList", true, false)) 161 - scripts_item_list.allow_reselect = true 162 - scripts_item_list.item_selected.connect(hide_scripts_popup.unbind(1)) 163 - update_script_list_visibility() 164 - 165 - # Add script filter navigation. 166 - script_filter_txt = find_or_null(scripts_item_list.get_parent().find_children("*", "LineEdit", true, false)) 167 - script_filter_txt.gui_input.connect(navigate_on_list.bind(scripts_item_list, select_script)) 168 - 169 - # --- Outline Start --- # 170 - old_outline = find_or_null(lower_files_panel.find_children("*", "ItemList", true, false)) 171 - lower_files_panel.remove_child(old_outline) 172 - 173 - outline = Outline.new() 174 - outline.plugin = self 175 - 176 - # Add navigation to the filter and text filtering. 177 - outline_filter_txt = find_or_null(lower_files_panel.find_children("*", "LineEdit", true, false)) 178 - outline_filter_txt.gui_input.connect(navigate_on_list.bind(outline, scroll_outline)) 179 - outline_filter_txt.text_changed.connect(update_outline.unbind(1)) 180 - 181 - outline.outline_filter_txt = outline_filter_txt 182 - lower_files_panel.add_child(outline) 183 - 184 - outline.item_selected.connect(scroll_outline) 185 - 186 - outline.get_parent().add_child(outline.filter_box) 187 - outline.get_parent().move_child(outline.filter_box, outline.get_index()) 188 - 189 - # Add callback when the sorting changed. 190 - sort_btn = find_or_null(lower_files_panel.find_children("*", "Button", true, false)) 191 - sort_btn.pressed.connect(update_outline) 192 - 193 - update_outline_order() 194 - update_outline_position() 195 - # --- Outline End --- # 196 - 197 - # --- Tabs Start --- # 198 - old_scripts_tab_container = find_or_null(script_editor.find_children("*", "TabContainer", true, false)) 199 - old_scripts_tab_bar = old_scripts_tab_container.get_tab_bar() 200 - 201 - var tab_container_parent: Control = old_scripts_tab_container.get_parent() 202 - tab_splitter = HSplitContainer.new() 203 - tab_splitter.size_flags_horizontal = Control.SIZE_EXPAND_FILL 204 - tab_splitter.size_flags_vertical = Control.SIZE_EXPAND_FILL 205 - 206 - tab_container_parent.add_child(tab_splitter) 207 - tab_container_parent.move_child(tab_splitter, 0) 208 - old_scripts_tab_container.reparent(tab_splitter) 209 - 210 - # When something changed, we need to sync our own tab container. 211 - old_scripts_tab_container.child_order_changed.connect(notify_order_changed) 212 - 213 - multiline_tab_bar = MULTILINE_TAB_BAR.instantiate() 214 - multiline_tab_bar.plugin = self 215 - multiline_tab_bar.scripts_item_list = scripts_item_list 216 - multiline_tab_bar.script_filter_txt = script_filter_txt 217 - multiline_tab_bar.scripts_tab_container = old_scripts_tab_container 218 - 219 - tab_container_parent.add_theme_constant_override(&"separation", 0) 220 - tab_container_parent.add_child(multiline_tab_bar) 221 - 222 - multiline_tab_bar.split_btn.toggled.connect(toggle_split_view.unbind(1)) 223 - update_tabs_position() 224 - update_tabs_close_button() 225 - update_tabs_visibility() 226 - update_singleline_tabs() 227 - 228 - # Create and set script popup. 229 - script_panel_split_container = scripts_item_list.get_parent().get_parent() 230 - create_set_scripts_popup() 231 - # --- Tabs End --- # 232 - 233 - old_scripts_tab_bar.tab_changed.connect(on_tab_changed) 234 - on_tab_changed(old_scripts_tab_bar.current_tab) 235 - 236 - ## Restore the old Engine script UI and free everything we created 237 - func _exit_tree() -> void: 238 - var file_system: EditorFileSystem = EditorInterface.get_resource_filesystem() 239 - file_system.filesystem_changed.disconnect(schedule_update) 240 - get_editor_settings().settings_changed.disconnect(sync_settings) 241 - 242 - if (tab_splitter != null): 243 - var tab_container_parent: Control = tab_splitter.get_parent() 244 - old_scripts_tab_container.reparent(tab_container_parent) 245 - tab_container_parent.move_child(old_scripts_tab_container, 1) 246 - tab_splitter.free() 247 - 248 - if (script_editor_split_container != null): 249 - if (script_editor_split_container != files_panel.get_parent()): 250 - script_editor_split_container.add_child(files_panel) 251 - 252 - # Try to restore the previous split offset. 253 - if (is_outline_right): 254 - var split_offset: float = script_editor_split_container.get_child(1).size.x 255 - script_editor_split_container.split_offset = split_offset 256 - 257 - script_editor_split_container.move_child(files_panel, 0) 258 - 259 - outline_filter_txt.gui_input.disconnect(navigate_on_list) 260 - outline_filter_txt.text_changed.disconnect(update_outline) 261 - sort_btn.pressed.disconnect(update_outline) 262 - 263 - outline.item_selected.disconnect(scroll_outline) 264 - 265 - var outline_parent: Control = outline.get_parent() 266 - outline_parent.remove_child(outline.filter_box) 267 - outline_parent.remove_child(outline) 268 - outline_parent.add_child(old_outline) 269 - outline_parent.move_child(old_outline, -2) 270 - 271 - outline.filter_box.free() 272 - outline.free() 273 - 274 - if (old_scripts_tab_bar != null): 275 - old_scripts_tab_bar.tab_changed.disconnect(on_tab_changed) 276 - 277 - if (old_scripts_tab_container != null): 278 - old_scripts_tab_container.child_order_changed.disconnect(notify_order_changed) 279 - old_scripts_tab_container.get_parent().remove_theme_constant_override(&"separation") 280 - old_scripts_tab_container.get_parent().remove_child(multiline_tab_bar) 281 - 282 - if (multiline_tab_bar != null): 283 - multiline_tab_bar.free_tabs() 284 - multiline_tab_bar.free() 285 - scripts_popup.free() 286 - 287 - if (scripts_item_list != null): 288 - scripts_item_list.allow_reselect = false 289 - scripts_item_list.item_selected.disconnect(hide_scripts_popup) 290 - scripts_item_list.get_parent().visible = true 291 - 292 - if (script_filter_txt != null): 293 - script_filter_txt.gui_input.disconnect(navigate_on_list) 294 - 295 - if (outline_popup != null): 296 - outline_popup.free() 297 - if (quick_open_popup != null): 298 - quick_open_popup.free() 299 - if (override_popup != null): 300 - override_popup.free() 301 - 302 - if (!show_members): 303 - set_setting(SHOW_MEMBERS, show_members) 304 - #endregion 305 - 306 - #region Plugin and Shortcut processing 307 - ## Lazy pattern to update the editor only once per frame 308 - func _process(delta: float) -> void: 309 - update_editor() 310 - set_process(false) 311 - 312 - ## Process the user defined shortcuts 313 - func _shortcut_input(event: InputEvent) -> void: 314 - if (!event.is_pressed() || event.is_echo()): 315 - return 316 - 317 - if (open_outline_popup_shc.matches_event(event)): 318 - get_viewport().set_input_as_handled() 319 - open_outline_popup() 320 - elif (open_scripts_popup_shc.matches_event(event)): 321 - get_viewport().set_input_as_handled() 322 - open_scripts_popup() 323 - elif (open_quick_search_popup_shc.matches_event(event)): 324 - if (quick_open_tween != null && quick_open_tween.is_running()): 325 - get_viewport().set_input_as_handled() 326 - if (quick_open_tween != null): 327 - quick_open_tween.kill() 328 - 329 - quick_open_tween = create_tween() 330 - quick_open_tween.tween_interval(0.1) 331 - quick_open_tween.tween_callback(open_quick_search_popup) 332 - quick_open_tween.tween_callback(func(): quick_open_tween = null) 333 - else: 334 - quick_open_tween = create_tween() 335 - quick_open_tween.tween_interval(QUICK_OPEN_INTERVAL / 1000.0) 336 - quick_open_tween.tween_callback(func(): quick_open_tween = null) 337 - elif (open_override_popup_shc.matches_event(event)): 338 - get_viewport().set_input_as_handled() 339 - open_override_popup() 340 - 341 - ## May cancels the quick search shortcut timer. 342 - func _input(event: InputEvent) -> void: 343 - if (event is InputEventKey): 344 - if (!open_quick_search_popup_shc.matches_event(event)): 345 - if (quick_open_tween != null): 346 - quick_open_tween.kill() 347 - quick_open_tween = null 348 - #endregion 349 - 350 - #region Settings and Shortcut initialization 351 - 352 - ## Initializes all settings. 353 - ## Every setting can be changed while this plugin is active, which will override them. 354 - func init_settings(): 355 - is_outline_right = get_setting(OUTLINE_POSITION_RIGHT, is_outline_right) 356 - is_hide_private_members = get_setting(HIDE_PRIVATE_MEMBERS, is_hide_private_members) 357 - is_script_list_visible = get_setting(SCRIPT_LIST_VISIBLE, is_script_list_visible) 358 - is_auto_navigate_in_fs = get_setting(AUTO_NAVIGATE_IN_FS, is_auto_navigate_in_fs) 359 - is_script_tabs_visible = get_setting(SCRIPT_TABS_VISIBLE, is_script_tabs_visible) 360 - is_script_tabs_top = get_setting(SCRIPT_TABS_POSITION_TOP, is_script_tabs_top) 361 - is_script_tabs_close_button_always = get_setting(SCRIPT_TABS_CLOSE_BUTTON_ALWAYS, is_script_tabs_close_button_always) 362 - is_script_tabs_singleline = get_setting(SCRIPT_TABS_SINGLELINE, is_script_tabs_singleline) 363 - 364 - outline_order = get_outline_order() 365 - 366 - # Users may disabled this, but with this plugin, we want to show the new Outline. 367 - # So we need to reenable it, but restore the old value on exit. 368 - show_members = get_setting(SHOW_MEMBERS, true) 369 - if (!show_members): 370 - set_setting(SHOW_MEMBERS, true) 371 - 372 - ## Initializes all shortcuts. 373 - ## Every shortcut can be changed while this plugin is active, which will override them. 374 - func init_shortcuts(): 375 - var editor_settings: EditorSettings = get_editor_settings() 376 - if (!editor_settings.has_setting(OPEN_OUTLINE_POPUP)): 377 - var shortcut: Shortcut = Shortcut.new() 378 - var event: InputEventKey = InputEventKey.new() 379 - event.device = -1 380 - event.command_or_control_autoremap = true 381 - event.keycode = KEY_O 382 - 383 - shortcut.events = [ event ] 384 - editor_settings.set_setting(OPEN_OUTLINE_POPUP, shortcut) 385 - 386 - if (!editor_settings.has_setting(OPEN_SCRIPTS_POPUP)): 387 - var shortcut: Shortcut = Shortcut.new() 388 - var event: InputEventKey = InputEventKey.new() 389 - event.device = -1 390 - event.command_or_control_autoremap = true 391 - event.keycode = KEY_U 392 - 393 - shortcut.events = [ event ] 394 - editor_settings.set_setting(OPEN_SCRIPTS_POPUP, shortcut) 395 - 396 - if (!editor_settings.has_setting(OPEN_QUICK_SEARCH_POPUP)): 397 - var shortcut: Shortcut = Shortcut.new() 398 - var event: InputEventKey = InputEventKey.new() 399 - event.device = -1 400 - event.keycode = KEY_SHIFT 401 - 402 - shortcut.events = [ event ] 403 - editor_settings.set_setting(OPEN_QUICK_SEARCH_POPUP, shortcut) 404 - 405 - if (!editor_settings.has_setting(OPEN_OVERRIDE_POPUP)): 406 - var shortcut: Shortcut = Shortcut.new() 407 - var event: InputEventKey = InputEventKey.new() 408 - event.device = -1 409 - event.keycode = KEY_INSERT 410 - event.alt_pressed = true 411 - 412 - shortcut.events = [ event ] 413 - editor_settings.set_setting(OPEN_OVERRIDE_POPUP, shortcut) 414 - 415 - if (!editor_settings.has_setting(TAB_CYCLE_FORWARD)): 416 - var shortcut: Shortcut = Shortcut.new() 417 - var event: InputEventKey = InputEventKey.new() 418 - event.device = -1 419 - event.keycode = KEY_TAB 420 - event.ctrl_pressed = true 421 - 422 - shortcut.events = [ event ] 423 - editor_settings.set_setting(TAB_CYCLE_FORWARD, shortcut) 424 - 425 - if (!editor_settings.has_setting(TAB_CYCLE_BACKWARD)): 426 - var shortcut: Shortcut = Shortcut.new() 427 - var event: InputEventKey = InputEventKey.new() 428 - event.device = -1 429 - event.keycode = KEY_TAB 430 - event.shift_pressed = true 431 - event.ctrl_pressed = true 432 - 433 - shortcut.events = [ event ] 434 - editor_settings.set_setting(TAB_CYCLE_BACKWARD, shortcut) 435 - 436 - open_outline_popup_shc = editor_settings.get_setting(OPEN_OUTLINE_POPUP) 437 - open_scripts_popup_shc = editor_settings.get_setting(OPEN_SCRIPTS_POPUP) 438 - open_quick_search_popup_shc = editor_settings.get_setting(OPEN_QUICK_SEARCH_POPUP) 439 - open_override_popup_shc = editor_settings.get_setting(OPEN_OVERRIDE_POPUP) 440 - tab_cycle_forward_shc = editor_settings.get_setting(TAB_CYCLE_FORWARD) 441 - tab_cycle_backward_shc = editor_settings.get_setting(TAB_CYCLE_BACKWARD) 442 - #endregion 443 - 444 - ## Schedules an update on the next frame. 445 - func schedule_update(): 446 - set_process(true) 447 - 448 - ## Updates all parts of the editor that are needed to be synchronized with the file system change. 449 - func update_editor(): 450 - if (file_to_navigate != &""): 451 - EditorInterface.select_file(file_to_navigate) 452 - EditorInterface.get_script_editor().get_current_editor().get_base_editor().grab_focus() 453 - file_to_navigate = &"" 454 - 455 - update_keywords() 456 - 457 - if (is_script_changed): 458 - multiline_tab_bar.tab_changed() 459 - outline.tab_changed() 460 - is_script_changed = false 461 - else: 462 - # We saved / filesystem changed. so need to update everything. 463 - multiline_tab_bar.update_tabs() 464 - outline.update() 465 - 466 - func on_tab_changed(index: int): 467 - if (old_script_editor_base != null): 468 - old_script_editor_base.edited_script_changed.disconnect(update_selected_tab) 469 - old_script_editor_base = null 470 - 471 - var script_editor: ScriptEditor = EditorInterface.get_script_editor() 472 - var script_editor_base: ScriptEditorBase = script_editor.get_current_editor() 473 - 474 - if (script_editor_base != null): 475 - script_editor_base.edited_script_changed.connect(update_selected_tab) 476 - 477 - old_script_editor_base = script_editor_base 478 - 479 - if (!multiline_tab_bar.is_split()): 480 - multiline_tab_bar.split_btn.disabled = script_editor_base == null 481 - 482 - is_script_changed = true 483 - 484 - if (is_auto_navigate_in_fs && script_editor.get_current_script() != null): 485 - var file: String = script_editor.get_current_script().get_path() 486 - 487 - if (file.contains(BUILT_IN_SCRIPT)): 488 - # We navigate to the scene in case of a built-in script. 489 - file = file.get_slice(BUILT_IN_SCRIPT, 0) 490 - 491 - file_to_navigate = file 492 - else: 493 - file_to_navigate = &"" 494 - 495 - schedule_update() 496 - 497 - func toggle_split_view(): 498 - var script_editor: ScriptEditor = EditorInterface.get_script_editor() 499 - var split_script_editor_base: ScriptEditorBase = script_editor.get_current_editor() 500 - 501 - if (!multiline_tab_bar.is_split()): 502 - if (split_script_editor_base == null): 503 - return 504 - 505 - var base_editor: Control = split_script_editor_base.get_base_editor() 506 - if !(base_editor is CodeEdit): 507 - return 508 - 509 - multiline_tab_bar.set_split(script_editor.get_current_script()) 510 - 511 - var editor: CodeEdit = SplitCodeEdit.new_from(base_editor) 512 - 513 - var container: PanelContainer = PanelContainer.new() 514 - container.custom_minimum_size.x = 200 515 - container.size_flags_horizontal = Control.SIZE_EXPAND_FILL 516 - 517 - container.add_child(editor) 518 - tab_splitter.add_child(container) 519 - else: 520 - multiline_tab_bar.set_split(null) 521 - tab_splitter.remove_child(tab_splitter.get_child(tab_splitter.get_child_count() - 1)) 522 - 523 - if (split_script_editor_base == null): 524 - multiline_tab_bar.split_btn.disabled = true 525 - 526 - func notify_order_changed(): 527 - multiline_tab_bar.script_order_changed() 528 - 529 - func open_quick_search_popup(): 530 - var pref_size: Vector2 531 - if (quick_open_popup == null): 532 - quick_open_popup = QUICK_OPEN_SCENE.instantiate() 533 - quick_open_popup.plugin = self 534 - quick_open_popup.set_unparent_when_invisible(true) 535 - pref_size = Vector2(500, 400) * get_editor_scale() 536 - else: 537 - pref_size = quick_open_popup.size 538 - 539 - quick_open_popup.popup_exclusive_on_parent(EditorInterface.get_script_editor(), get_center_editor_rect(pref_size)) 540 - 541 - func open_override_popup(): 542 - var script: Script = get_current_script() 543 - if (!script): 544 - return 545 - 546 - var pref_size: Vector2 547 - if (override_popup == null): 548 - override_popup = OVERRIDE_SCENE.instantiate() 549 - override_popup.plugin = self 550 - override_popup.outline = outline 551 - override_popup.set_unparent_when_invisible(true) 552 - pref_size = Vector2(500, 400) * get_editor_scale() 553 - else: 554 - pref_size = override_popup.size 555 - 556 - override_popup.popup_exclusive_on_parent(EditorInterface.get_script_editor(), get_center_editor_rect(pref_size)) 557 - 558 - func hide_scripts_popup(): 559 - if (scripts_popup != null && scripts_popup.visible): 560 - scripts_popup.hide.call_deferred() 561 - 562 - func create_set_scripts_popup(): 563 - scripts_popup = PopupPanel.new() 564 - scripts_popup.popup_hide.connect(restore_scripts_list) 565 - 566 - # Need to be inside the tree, so it can be shown as popup for the tab container. 567 - var script_editor: ScriptEditor = EditorInterface.get_script_editor() 568 - script_editor.add_child(scripts_popup) 569 - 570 - multiline_tab_bar.set_popup(scripts_popup) 571 - 572 - func restore_scripts_list(): 573 - script_filter_txt.text = &"" 574 - 575 - update_script_list_visibility() 576 - 577 - scripts_item_list.get_parent().reparent(script_panel_split_container) 578 - script_panel_split_container.move_child(scripts_item_list.get_parent(), 0) 579 - 580 - func navigate_on_list(event: InputEvent, list: ItemList, submit: Callable): 581 - if (event.is_action_pressed(&"ui_text_submit")): 582 - list.accept_event() 583 - 584 - var index: int = get_list_index(list) 585 - if (index == -1): 586 - return 587 - 588 - submit.call(index) 589 - list.accept_event() 590 - elif (event.is_action_pressed(&"ui_down", true)): 591 - var index: int = get_list_index(list) 592 - if (index == list.item_count - 1): 593 - return 594 - 595 - navigate_list(list, index, 1) 596 - elif (event.is_action_pressed(&"ui_up", true)): 597 - var index: int = get_list_index(list) 598 - if (index <= 0): 599 - return 600 - 601 - navigate_list(list, index, -1) 602 - elif (event.is_action_pressed(&"ui_page_down", true)): 603 - var index: int = get_list_index(list) 604 - if (index == list.item_count - 1): 605 - return 606 - 607 - navigate_list(list, index, 5) 608 - elif (event.is_action_pressed(&"ui_page_up", true)): 609 - var index: int = get_list_index(list) 610 - if (index <= 0): 611 - return 612 - 613 - navigate_list(list, index, -5) 614 - elif (event is InputEventKey && list.item_count > 0 && !list.is_anything_selected()): 615 - list.select(0) 616 - 617 - func get_list_index(list: ItemList) -> int: 618 - var items: PackedInt32Array = list.get_selected_items() 619 - 620 - if (items.is_empty()): 621 - return -1 622 - 623 - return items[0] 624 - 625 - func navigate_list(list: ItemList, index: int, amount: int): 626 - index = clamp(index + amount, 0, list.item_count - 1) 627 - 628 - list.select(index) 629 - list.ensure_current_is_visible() 630 - list.accept_event() 631 - 632 - func get_center_editor_rect(pref_size: Vector2) -> Rect2i: 633 - var script_editor: ScriptEditor = EditorInterface.get_script_editor() 634 - 635 - var position: Vector2 = script_editor.global_position + script_editor.size / 2 - pref_size / 2 636 - 637 - return Rect2i(position, pref_size) 638 - 639 - func open_outline_popup(): 640 - if (get_current_script() == null): 641 - return 642 - 643 - var button_flags: Array[bool] = outline.save_restore_filter() 644 - 645 - var old_text: String = outline_filter_txt.text 646 - outline_filter_txt.text = &"" 647 - 648 - var pref_size: Vector2 649 - if (outline_popup == null): 650 - outline_popup = PopupPanel.new() 651 - outline_popup.set_unparent_when_invisible(true) 652 - pref_size = Vector2(500, 400) * get_editor_scale() 653 - else: 654 - pref_size = outline_popup.size 655 - 656 - var outline_initially_closed: bool = !files_panel.visible 657 - if (outline_initially_closed): 658 - files_panel.visible = true 659 - 660 - files_panel.reparent(outline_popup) 661 - 662 - outline_popup.popup_hide.connect(on_outline_popup_hidden.bind(outline_initially_closed, old_text, button_flags)) 663 - 664 - outline_popup.popup_exclusive_on_parent(EditorInterface.get_script_editor(), get_center_editor_rect(pref_size)) 665 - 666 - update_outline() 667 - outline_filter_txt.grab_focus() 668 - 669 - func on_outline_popup_hidden(outline_initially_closed: bool, old_text: String, button_flags: Array[bool]): 670 - outline_popup.popup_hide.disconnect(on_outline_popup_hidden) 671 - 672 - if outline_initially_closed: 673 - files_panel.visible = false 674 - 675 - files_panel.reparent(script_editor_split_container) 676 - if (!is_outline_right): 677 - script_editor_split_container.move_child(files_panel, 0) 678 - 679 - outline_filter_txt.text = old_text 680 - 681 - outline.restore_filter(button_flags) 682 - 683 - update_outline() 684 - 685 - func open_scripts_popup(): 686 - multiline_tab_bar.show_popup() 687 - 688 - func get_current_script() -> Script: 689 - var script_editor: ScriptEditor = EditorInterface.get_script_editor() 690 - return script_editor.get_current_script() 691 - 692 - func select_script(selected_idx: int): 693 - hide_scripts_popup() 694 - 695 - scripts_item_list.item_selected.emit(selected_idx) 696 - 697 - func scroll_outline(selected_idx: int): 698 - if (outline_popup != null && outline_popup.visible): 699 - outline_popup.hide.call_deferred() 700 - 701 - var script: Script = get_current_script() 702 - if (!script): 703 - return 704 - 705 - var text: String = outline.get_item_text(selected_idx) 706 - var metadata: Dictionary[StringName, StringName] = outline.get_item_metadata(selected_idx) 707 - var modifier: StringName = metadata[&"modifier"] 708 - var type: StringName = metadata[&"type"] 709 - 710 - var type_with_text: String = type + " " + text 711 - if (type == &"func"): 712 - type_with_text = type_with_text + "(" 713 - 714 - var source_code: String = script.get_source_code() 715 - var lines: PackedStringArray = source_code.split("\n") 716 - 717 - var index: int = 0 718 - for line: String in lines: 719 - # Easy case, like 'var abc' 720 - if (line.begins_with(type_with_text)): 721 - goto_line(index) 722 - return 723 - 724 - # We have an modifier, e.g. 'static' 725 - if (modifier != &"" && line.begins_with(modifier)): 726 - if (line.begins_with(modifier + " " + type_with_text)): 727 - goto_line(index) 728 - return 729 - # Special case: An 'enum' is treated different. 730 - elif (modifier == &"enum" && line.contains("enum " + text)): 731 - goto_line(index) 732 - return 733 - 734 - # Hard case, probably something like '@onready var abc' 735 - if (type == &"var" && line.contains(type_with_text)): 736 - goto_line(index) 737 - return 738 - 739 - index += 1 740 - 741 - push_error(type_with_text + " or " + modifier + " not found in source code") 742 - 743 - func goto_line(index: int): 744 - var script_editor: ScriptEditor = EditorInterface.get_script_editor() 745 - script_editor.goto_line(index) 746 - 747 - var code_edit: CodeEdit = script_editor.get_current_editor().get_base_editor() 748 - code_edit.set_caret_line(index) 749 - code_edit.set_v_scroll(index) 750 - code_edit.set_caret_column(code_edit.get_line(index).length()) 751 - code_edit.set_h_scroll(0) 752 - 753 - code_edit.grab_focus() 754 - 755 - func update_script_list_visibility(): 756 - scripts_item_list.get_parent().visible = is_script_list_visible 757 - 758 - func sync_settings(): 759 - if (suppress_settings_sync): 760 - return 761 - 762 - var changed_settings: PackedStringArray = get_editor_settings().get_changed_settings() 763 - for setting: String in changed_settings: 764 - if (setting == ICON_SATURATION): 765 - outline.reset_icons() 766 - elif (setting == SHOW_MEMBERS): 767 - show_members = get_setting(SHOW_MEMBERS, true) 768 - if (!show_members): 769 - set_setting(SHOW_MEMBERS, true) 770 - 771 - if (!setting.begins_with(SCRIPT_IDE)): 772 - continue 773 - 774 - match (setting): 775 - OUTLINE_POSITION_RIGHT: 776 - var new_outline_right: bool = get_setting(OUTLINE_POSITION_RIGHT, is_outline_right) 777 - if (new_outline_right != is_outline_right): 778 - is_outline_right = new_outline_right 779 - 780 - update_outline_position() 781 - OUTLINE_ORDER: 782 - var new_outline_order: PackedStringArray = get_outline_order() 783 - if (new_outline_order != outline_order): 784 - outline_order = new_outline_order 785 - 786 - update_outline_order() 787 - HIDE_PRIVATE_MEMBERS: 788 - var new_hide_private_members: bool = get_setting(HIDE_PRIVATE_MEMBERS, is_hide_private_members) 789 - if (new_hide_private_members != is_hide_private_members): 790 - is_hide_private_members = new_hide_private_members 791 - 792 - outline.update() 793 - SCRIPT_LIST_VISIBLE: 794 - var new_script_list_visible: bool = get_setting(SCRIPT_LIST_VISIBLE, is_script_list_visible) 795 - if (new_script_list_visible != is_script_list_visible): 796 - is_script_list_visible = new_script_list_visible 797 - 798 - update_script_list_visibility() 799 - SCRIPT_TABS_VISIBLE: 800 - var new_script_tabs_visible: bool = get_setting(SCRIPT_TABS_VISIBLE, is_script_tabs_visible) 801 - if (new_script_tabs_visible != is_script_tabs_visible): 802 - is_script_tabs_visible = new_script_tabs_visible 803 - 804 - update_tabs_visibility() 805 - SCRIPT_TABS_POSITION_TOP: 806 - var new_script_tabs_top: bool = get_setting(SCRIPT_TABS_POSITION_TOP, is_script_tabs_top) 807 - if (new_script_tabs_top != is_script_tabs_top): 808 - is_script_tabs_top = new_script_tabs_top 809 - 810 - update_tabs_position() 811 - SCRIPT_TABS_CLOSE_BUTTON_ALWAYS: 812 - var new_script_tabs_close_button_always: bool = get_setting(SCRIPT_TABS_CLOSE_BUTTON_ALWAYS, is_script_tabs_close_button_always) 813 - if (new_script_tabs_close_button_always != is_script_tabs_close_button_always): 814 - is_script_tabs_close_button_always = new_script_tabs_close_button_always 815 - 816 - update_tabs_close_button() 817 - SCRIPT_TABS_SINGLELINE: 818 - var new_script_tabs_singleline: bool = get_setting(SCRIPT_TABS_SINGLELINE, is_script_tabs_singleline) 819 - if (new_script_tabs_singleline != is_script_tabs_singleline): 820 - is_script_tabs_singleline = new_script_tabs_singleline 821 - 822 - update_singleline_tabs() 823 - AUTO_NAVIGATE_IN_FS: 824 - is_auto_navigate_in_fs = get_setting(AUTO_NAVIGATE_IN_FS, is_auto_navigate_in_fs) 825 - OPEN_OUTLINE_POPUP: 826 - open_outline_popup_shc = get_shortcut(OPEN_OUTLINE_POPUP) 827 - OPEN_SCRIPTS_POPUP: 828 - open_scripts_popup_shc = get_shortcut(OPEN_SCRIPTS_POPUP) 829 - OPEN_OVERRIDE_POPUP: 830 - open_override_popup_shc = get_shortcut(OPEN_OVERRIDE_POPUP) 831 - TAB_CYCLE_FORWARD: 832 - tab_cycle_forward_shc = get_shortcut(TAB_CYCLE_FORWARD) 833 - TAB_CYCLE_BACKWARD: 834 - tab_cycle_backward_shc = get_shortcut(TAB_CYCLE_BACKWARD) 835 - _: 836 - outline.update_filter_buttons() 837 - 838 - func update_selected_tab(): 839 - multiline_tab_bar.update_selected_tab() 840 - 841 - func update_tabs_position(): 842 - var tab_container_parent: Control = multiline_tab_bar.get_parent() 843 - if (is_script_tabs_top): 844 - tab_container_parent.move_child(multiline_tab_bar, 0) 845 - else: 846 - tab_container_parent.move_child(multiline_tab_bar, tab_container_parent.get_child_count() - 1) 847 - 848 - func update_tabs_close_button(): 849 - multiline_tab_bar.show_close_button_always = is_script_tabs_close_button_always 850 - 851 - func update_tabs_visibility(): 852 - multiline_tab_bar.visible = is_script_tabs_visible 853 - 854 - func update_singleline_tabs(): 855 - multiline_tab_bar.is_singleline_tabs = is_script_tabs_singleline 856 - 857 - func update_outline(): 858 - outline.update_outline() 859 - 860 - func update_outline_position(): 861 - if (is_outline_right): 862 - # Try to restore the previous split offset. 863 - var split_offset: float = script_editor_split_container.get_child(1).size.x 864 - script_editor_split_container.split_offset = split_offset 865 - script_editor_split_container.move_child(files_panel, 1) 866 - else: 867 - script_editor_split_container.move_child(files_panel, 0) 868 - 869 - func update_outline_order(): 870 - outline.outline_order = outline_order 871 - 872 - func update_keywords(): 873 - var script: Script = get_current_script() 874 - if (script == null): 875 - return 876 - 877 - var new_script_type: StringName = script.get_instance_base_type() 878 - if (old_script_type != new_script_type): 879 - old_script_type = new_script_type 880 - 881 - keywords.clear() 882 - keywords["_static_init"] = true 883 - register_virtual_methods(new_script_type) 884 - 885 - func register_virtual_methods(clazz: String): 886 - for method: Dictionary in ClassDB.class_get_method_list(clazz): 887 - if (method[&"flags"] & METHOD_FLAG_VIRTUAL > 0): 888 - keywords[method[&"name"]] = true 889 - 890 - func get_editor_scale() -> float: 891 - return EditorInterface.get_editor_scale() 892 - 893 - func get_editor_settings() -> EditorSettings: 894 - return EditorInterface.get_editor_settings() 895 - 896 - func get_setting(property: StringName, alt: bool) -> bool: 897 - var editor_settings: EditorSettings = get_editor_settings() 898 - if (editor_settings.has_setting(property)): 899 - return editor_settings.get_setting(property) 900 - else: 901 - editor_settings.set_setting(property, alt) 902 - return alt 903 - 904 - func set_setting(property: StringName, value: bool): 905 - var editor_settings: EditorSettings = get_editor_settings() 906 - 907 - suppress_settings_sync = true 908 - editor_settings.set_setting(property, value) 909 - suppress_settings_sync = false 910 - 911 - func get_shortcut(property: StringName) -> Shortcut: 912 - return get_editor_settings().get_setting(property) 913 - 914 - func get_outline_order() -> PackedStringArray: 915 - var new_outline_order: PackedStringArray 916 - var editor_settings: EditorSettings = get_editor_settings() 917 - if (editor_settings.has_setting(OUTLINE_ORDER)): 918 - new_outline_order = editor_settings.get_setting(OUTLINE_ORDER) 919 - else: 920 - new_outline_order = Outline.DEFAULT_ORDER 921 - editor_settings.set_setting(OUTLINE_ORDER, outline_order) 922 - 923 - return new_outline_order 924 - 925 - static func find_or_null(arr: Array[Node]) -> Control: 926 - if (arr.is_empty()): 927 - push_error("""Node that is needed for Script-IDE not found. 928 - Plugin will not work correctly. 929 - This might be due to some other plugins or changes in the Engine. 930 - Please report this to Script-IDE, so we can figure out a fix.""") 931 - return null 932 - return arr[0] as Control
-1
addons/script-ide/plugin.gd.uid
··· 1 - uid://bc0b5v66xdidn
-254
addons/script-ide/quickopen/quick_open_panel.gd
··· 1 - ## Quick open panel to quickly access all resources that are in the project. 2 - ## Initially shows all resources, but can be changed to more specific resources 3 - ## or filtered down with text. 4 - @tool 5 - extends PopupPanel 6 - 7 - const ADDONS: StringName = &"res://addons" 8 - const SEPARATOR: StringName = &" - " 9 - const STRUCTURE_START: StringName = &"(" 10 - const STRUCTURE_END: StringName = &")" 11 - 12 - #region UI 13 - @onready var filter_bar: TabBar = %FilterBar 14 - @onready var search_option_btn: OptionButton = %SearchOptionBtn 15 - @onready var filter_txt: LineEdit = %FilterTxt 16 - @onready var files_list: ItemList = %FilesList 17 - #endregion 18 - 19 - var plugin: EditorPlugin 20 - 21 - var scenes: Array[FileData] 22 - var scripts: Array[FileData] 23 - var resources: Array[FileData] 24 - var others: Array[FileData] 25 - 26 - # For performance and memory considerations, we add all files into one reusable array. 27 - var all_files: Array[FileData] 28 - 29 - var is_rebuild_cache: bool = true 30 - 31 - #region Plugin and Shortcut processing 32 - func _ready() -> void: 33 - files_list.item_selected.connect(open_file) 34 - search_option_btn.item_selected.connect(rebuild_cache_and_ui.unbind(1)) 35 - filter_txt.text_changed.connect(fill_files_list.unbind(1)) 36 - 37 - filter_bar.tab_changed.connect(change_fill_files_list.unbind(1)) 38 - 39 - about_to_popup.connect(on_show) 40 - 41 - var file_system: EditorFileSystem = EditorInterface.get_resource_filesystem() 42 - file_system.filesystem_changed.connect(schedule_rebuild) 43 - 44 - if (plugin != null): 45 - filter_txt.gui_input.connect(plugin.navigate_on_list.bind(files_list, open_file)) 46 - 47 - func _shortcut_input(event: InputEvent) -> void: 48 - if (!event.is_pressed() || event.is_echo()): 49 - return 50 - 51 - if (plugin.tab_cycle_forward_shc.matches_event(event)): 52 - get_viewport().set_input_as_handled() 53 - 54 - var new_tab: int = filter_bar.current_tab + 1 55 - if (new_tab == filter_bar.get_tab_count()): 56 - new_tab = 0 57 - filter_bar.current_tab = new_tab 58 - elif (plugin.tab_cycle_backward_shc.matches_event(event)): 59 - get_viewport().set_input_as_handled() 60 - 61 - var new_tab: int = filter_bar.current_tab - 1 62 - if (new_tab == -1): 63 - new_tab = filter_bar.get_tab_count() - 1 64 - filter_bar.current_tab = new_tab 65 - #endregion 66 - 67 - func open_file(index: int): 68 - var file: String = files_list.get_item_metadata(index) 69 - 70 - if (ResourceLoader.exists(file)): 71 - var res: Resource = load(file) 72 - 73 - if (res is Script): 74 - EditorInterface.edit_script(res) 75 - EditorInterface.set_main_screen_editor.call_deferred("Script") 76 - else: 77 - EditorInterface.edit_resource(res) 78 - 79 - if (res is PackedScene): 80 - EditorInterface.open_scene_from_path(file) 81 - 82 - # Need to be deferred as it does not work otherwise. 83 - var root: Node = EditorInterface.get_edited_scene_root() 84 - if (root is Node3D): 85 - EditorInterface.set_main_screen_editor.call_deferred("3D") 86 - else: 87 - EditorInterface.set_main_screen_editor.call_deferred("2D") 88 - else: 89 - # Text files (.txt, .md) will not be recognized, which seems to be a very bad 90 - # limitation from the Engine. The methods called by the Engine are also not exposed. 91 - # So we just select the file, which is better than nothing. 92 - EditorInterface.select_file(file) 93 - 94 - # Deferred as otherwise we get weird errors in the console. 95 - # Probably due to this beeing called in a signal and auto unparent is true. 96 - # 100% Engine bug or at least weird behavior. 97 - hide.call_deferred() 98 - 99 - func schedule_rebuild(): 100 - is_rebuild_cache = true 101 - 102 - func on_show(): 103 - if (search_option_btn.selected != 0): 104 - search_option_btn.selected = 0 105 - 106 - is_rebuild_cache = true 107 - 108 - var rebuild_ui: bool = false 109 - var all_tab_not_pressed: bool = filter_bar.current_tab != 0 110 - rebuild_ui = is_rebuild_cache || all_tab_not_pressed 111 - 112 - if (is_rebuild_cache): 113 - rebuild_cache() 114 - 115 - if (rebuild_ui): 116 - if (all_tab_not_pressed): 117 - # Triggers the ui update. 118 - filter_bar.current_tab = 0 119 - else: 120 - fill_files_list() 121 - 122 - filter_txt.select_all() 123 - focus_and_select_first() 124 - 125 - func rebuild_cache(): 126 - is_rebuild_cache = false 127 - 128 - all_files.clear() 129 - scenes.clear() 130 - scripts.clear() 131 - resources.clear() 132 - others.clear() 133 - 134 - build_file_cache() 135 - 136 - func rebuild_cache_and_ui(): 137 - rebuild_cache() 138 - fill_files_list() 139 - 140 - focus_and_select_first() 141 - 142 - func focus_and_select_first(): 143 - filter_txt.grab_focus() 144 - 145 - if (files_list.item_count > 0): 146 - files_list.select(0) 147 - 148 - func build_file_cache(): 149 - var dir: EditorFileSystemDirectory = EditorInterface.get_resource_filesystem().get_filesystem() 150 - build_file_cache_dir(dir) 151 - 152 - all_files.append_array(scenes) 153 - all_files.append_array(scripts) 154 - all_files.append_array(resources) 155 - all_files.append_array(others) 156 - 157 - func build_file_cache_dir(dir: EditorFileSystemDirectory): 158 - for index: int in dir.get_subdir_count(): 159 - build_file_cache_dir(dir.get_subdir(index)) 160 - 161 - for index: int in dir.get_file_count(): 162 - var file: String = dir.get_file_path(index) 163 - if (search_option_btn.get_selected_id() == 0 && file.begins_with(ADDONS)): 164 - continue 165 - 166 - var last_delimiter: int = file.rfind(&"/") 167 - 168 - var file_name: String = file.substr(last_delimiter + 1) 169 - var file_structure: String = &"" 170 - if (file_name.length() + 6 != file.length()): 171 - file_structure = SEPARATOR + STRUCTURE_START + file.substr(6, last_delimiter - 6) + STRUCTURE_END 172 - 173 - var file_data: FileData = FileData.new() 174 - file_data.file = file 175 - file_data.file_name = file_name 176 - file_data.file_name_structure = file_name + file_structure 177 - file_data.file_type = dir.get_file_type(index) 178 - 179 - # Needed, as otherwise we have no icon. 180 - if (file_data.file_type == &"Resource"): 181 - file_data.file_type = &"Object" 182 - 183 - match (file.get_extension()): 184 - &"tscn": scenes.append(file_data) 185 - &"gd": scripts.append(file_data) 186 - &"tres": resources.append(file_data) 187 - &"gdshader": resources.append(file_data) 188 - _: others.append(file_data) 189 - 190 - func change_fill_files_list(): 191 - fill_files_list() 192 - 193 - focus_and_select_first() 194 - 195 - func fill_files_list(): 196 - files_list.clear() 197 - 198 - if (filter_bar.current_tab == 0): 199 - fill_files_list_with(all_files) 200 - elif (filter_bar.current_tab == 1): 201 - fill_files_list_with(scenes) 202 - elif (filter_bar.current_tab == 2): 203 - fill_files_list_with(scripts) 204 - elif (filter_bar.current_tab == 3): 205 - fill_files_list_with(resources) 206 - elif (filter_bar.current_tab == 4): 207 - fill_files_list_with(others) 208 - 209 - func fill_files_list_with(files: Array[FileData]): 210 - var filter_text: String = filter_txt.text 211 - files.sort_custom(sort_by_filter) 212 - 213 - for file_data: FileData in files: 214 - var file: String = file_data.file 215 - if (filter_text.is_empty() || filter_text.is_subsequence_ofn(file)): 216 - var icon: Texture2D = EditorInterface.get_base_control().get_theme_icon(file_data.file_type, &"EditorIcons") 217 - 218 - files_list.add_item(file_data.file_name_structure, icon) 219 - files_list.set_item_metadata(files_list.item_count - 1, file) 220 - files_list.set_item_tooltip(files_list.item_count - 1, file) 221 - 222 - func sort_by_filter(file_data1: FileData, file_data2: FileData) -> bool: 223 - var filter_text: String = filter_txt.text 224 - var name1: String = file_data1.file_name 225 - var name2: String = file_data2.file_name 226 - 227 - for index: int in filter_text.length(): 228 - var a_oob: bool = index >= name1.length() 229 - var b_oob: bool = index >= name2.length() 230 - 231 - if (a_oob): 232 - if (b_oob): 233 - return false; 234 - return true 235 - if (b_oob): 236 - return false 237 - 238 - var char: String = filter_text[index] 239 - var a_match: bool = char == name1[index] 240 - var b_match: bool = char == name2[index] 241 - 242 - if (a_match && !b_match): 243 - return true 244 - 245 - if (b_match && !a_match): 246 - return false 247 - 248 - return name1 < name2 249 - 250 - class FileData: 251 - var file: String 252 - var file_name: String 253 - var file_name_structure: String 254 - var file_type: StringName
-1
addons/script-ide/quickopen/quick_open_panel.gd.uid
··· 1 - uid://cgwp4rl1udqbb
-147
addons/script-ide/quickopen/quick_open_panel.tscn
··· 1 - [gd_scene format=3 uid="uid://d2pttchmj3n7q"] 2 - 3 - [ext_resource type="Script" uid="uid://cgwp4rl1udqbb" path="res://addons/script-ide/quickopen/quick_open_panel.gd" id="1_3tl1s"] 4 - 5 - [sub_resource type="Image" id="Image_ta8yk"] 6 - data = { 7 - "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), 8 - "format": "RGBA8", 9 - "height": 16, 10 - "mipmaps": false, 11 - "width": 16 12 - } 13 - 14 - [sub_resource type="ImageTexture" id="ImageTexture_p6ab8"] 15 - image = SubResource("Image_ta8yk") 16 - 17 - [sub_resource type="Image" id="Image_rfjdh"] 18 - data = { 19 - "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), 20 - "format": "RGBA8", 21 - "height": 16, 22 - "mipmaps": false, 23 - "width": 16 24 - } 25 - 26 - [sub_resource type="ImageTexture" id="ImageTexture_bbwjp"] 27 - image = SubResource("Image_rfjdh") 28 - 29 - [sub_resource type="Image" id="Image_002t5"] 30 - data = { 31 - "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), 32 - "format": "RGBA8", 33 - "height": 16, 34 - "mipmaps": false, 35 - "width": 16 36 - } 37 - 38 - [sub_resource type="ImageTexture" id="ImageTexture_ghict"] 39 - image = SubResource("Image_002t5") 40 - 41 - [sub_resource type="Image" id="Image_1kivx"] 42 - data = { 43 - "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), 44 - "format": "RGBA8", 45 - "height": 16, 46 - "mipmaps": false, 47 - "width": 16 48 - } 49 - 50 - [sub_resource type="ImageTexture" id="ImageTexture_grjtr"] 51 - image = SubResource("Image_1kivx") 52 - 53 - [sub_resource type="Image" id="Image_6k5u0"] 54 - data = { 55 - "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), 56 - "format": "RGBA8", 57 - "height": 16, 58 - "mipmaps": false, 59 - "width": 16 60 - } 61 - 62 - [sub_resource type="ImageTexture" id="ImageTexture_xupch"] 63 - image = SubResource("Image_6k5u0") 64 - 65 - [sub_resource type="Image" id="Image_sj6hy"] 66 - data = { 67 - "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), 68 - "format": "RGBA8", 69 - "height": 16, 70 - "mipmaps": false, 71 - "width": 16 72 - } 73 - 74 - [sub_resource type="ImageTexture" id="ImageTexture_w6vkw"] 75 - image = SubResource("Image_sj6hy") 76 - 77 - [node name="QuickOpenPanel" type="PopupPanel" unique_id=1197081327] 78 - oversampling_override = 1.0 79 - script = ExtResource("1_3tl1s") 80 - 81 - [node name="PanelContainer" type="PanelContainer" parent="." unique_id=170455275] 82 - anchors_preset = 15 83 - anchor_right = 1.0 84 - anchor_bottom = 1.0 85 - offset_left = 4.0 86 - offset_top = 4.0 87 - offset_right = -4.0 88 - offset_bottom = -4.0 89 - grow_horizontal = 2 90 - grow_vertical = 2 91 - size_flags_horizontal = 3 92 - size_flags_vertical = 3 93 - 94 - [node name="MarginContainer" type="MarginContainer" parent="PanelContainer" unique_id=811819428] 95 - layout_mode = 2 96 - theme_override_constants/margin_left = 5 97 - theme_override_constants/margin_top = 5 98 - theme_override_constants/margin_right = 5 99 - theme_override_constants/margin_bottom = 5 100 - 101 - [node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer/MarginContainer" unique_id=679259085] 102 - layout_mode = 2 103 - theme_override_constants/separation = 5 104 - 105 - [node name="HBoxContainer" type="HBoxContainer" parent="PanelContainer/MarginContainer/VBoxContainer" unique_id=150235257] 106 - layout_mode = 2 107 - theme_override_constants/separation = 4 108 - 109 - [node name="FilterBar" type="TabBar" parent="PanelContainer/MarginContainer/VBoxContainer/HBoxContainer" unique_id=660360907] 110 - unique_name_in_owner = true 111 - layout_mode = 2 112 - current_tab = 0 113 - clip_tabs = false 114 - scrolling_enabled = false 115 - tab_count = 5 116 - tab_0/title = "All" 117 - tab_0/icon = SubResource("ImageTexture_p6ab8") 118 - tab_1/title = "Scene" 119 - tab_1/icon = SubResource("ImageTexture_bbwjp") 120 - tab_2/title = "GDscript" 121 - tab_2/icon = SubResource("ImageTexture_ghict") 122 - tab_3/title = "Resource" 123 - tab_3/icon = SubResource("ImageTexture_grjtr") 124 - tab_4/title = "Other" 125 - tab_4/icon = SubResource("ImageTexture_xupch") 126 - 127 - [node name="SearchOptionBtn" type="OptionButton" parent="PanelContainer/MarginContainer/VBoxContainer/HBoxContainer" unique_id=902993731] 128 - unique_name_in_owner = true 129 - layout_mode = 2 130 - selected = 0 131 - item_count = 2 132 - popup/item_0/text = "Project" 133 - popup/item_0/id = 0 134 - popup/item_1/text = "Project+Addons" 135 - popup/item_1/id = 1 136 - 137 - [node name="FilterTxt" type="LineEdit" parent="PanelContainer/MarginContainer/VBoxContainer" unique_id=721767691] 138 - unique_name_in_owner = true 139 - layout_mode = 2 140 - placeholder_text = "Filter files" 141 - right_icon = SubResource("ImageTexture_w6vkw") 142 - 143 - [node name="FilesList" type="ItemList" parent="PanelContainer/MarginContainer/VBoxContainer" unique_id=190949578] 144 - unique_name_in_owner = true 145 - layout_mode = 2 146 - size_flags_vertical = 3 147 - allow_reselect = true
-47
addons/script-ide/split/split_code_edit.gd
··· 1 - ## The CodeEdit that is used when the editor is split, to show the split script. 2 - @tool 3 - extends CodeEdit 4 - 5 - var last_v_scroll: float 6 - 7 - func _ready() -> void: 8 - editable = false 9 - caret_draw_when_editable_disabled = true 10 - set_v_scroll.call_deferred(last_v_scroll) 11 - 12 - static func new_from(from_code_edit: CodeEdit) -> CodeEdit: 13 - var new_code_edit: CodeEdit = new() 14 - 15 - new_code_edit.text = from_code_edit.text 16 - new_code_edit.syntax_highlighter = from_code_edit.syntax_highlighter 17 - new_code_edit.highlight_all_occurrences = from_code_edit.highlight_all_occurrences 18 - new_code_edit.highlight_current_line = from_code_edit.highlight_current_line 19 - 20 - new_code_edit.use_default_word_separators = from_code_edit.use_default_word_separators 21 - new_code_edit.use_custom_word_separators = from_code_edit.use_custom_word_separators 22 - new_code_edit.custom_word_separators = from_code_edit.custom_word_separators 23 - 24 - new_code_edit.line_folding = from_code_edit.line_folding 25 - new_code_edit.line_length_guidelines = from_code_edit.line_length_guidelines 26 - 27 - new_code_edit.gutters_draw_line_numbers = from_code_edit.gutters_draw_line_numbers 28 - new_code_edit.gutters_draw_fold_gutter = from_code_edit.gutters_draw_fold_gutter 29 - 30 - new_code_edit.minimap_draw = from_code_edit.minimap_draw 31 - new_code_edit.minimap_width = from_code_edit.minimap_width 32 - 33 - new_code_edit.delimiter_strings = from_code_edit.delimiter_strings 34 - new_code_edit.delimiter_comments = from_code_edit.delimiter_comments 35 - 36 - new_code_edit.indent_automatic = from_code_edit.indent_automatic 37 - new_code_edit.indent_size = from_code_edit.indent_size 38 - new_code_edit.indent_use_spaces = from_code_edit.indent_use_spaces 39 - new_code_edit.indent_automatic_prefixes = from_code_edit.indent_automatic_prefixes 40 - 41 - new_code_edit.draw_control_chars = from_code_edit.draw_control_chars 42 - new_code_edit.draw_tabs = from_code_edit.draw_tabs 43 - new_code_edit.draw_spaces = from_code_edit.draw_spaces 44 - 45 - new_code_edit.last_v_scroll = from_code_edit.scroll_vertical 46 - 47 - return new_code_edit
-1
addons/script-ide/split/split_code_edit.gd.uid
··· 1 - uid://boy48rhhyrph
-84
addons/script-ide/tabbar/custom_tab.gd
··· 1 - ## Button that is used as a custom tab implementation for the multiline tab bar. 2 - @tool 3 - extends Button 4 - 5 - signal close_pressed 6 - signal right_clicked 7 - signal dragged_over 8 - signal dropped(source_index: int, target_index: int) 9 - 10 - var close_button: Button 11 - 12 - func _ready() -> void: 13 - alignment = HORIZONTAL_ALIGNMENT_LEFT 14 - action_mode = ACTION_MODE_BUTTON_PRESS 15 - auto_translate_mode = Node.AUTO_TRANSLATE_MODE_DISABLED 16 - toggle_mode = true 17 - 18 - func show_close_button(): 19 - if (close_button == null): 20 - close_button = create_close_button() 21 - 22 - add_child(close_button) 23 - close_button.set_anchors_and_offsets_preset(Control.PRESET_CENTER_RIGHT) 24 - 25 - func hide_close_button(): 26 - if (close_button != null): 27 - remove_child(close_button) 28 - 29 - func create_close_button() -> Button: 30 - close_button = Button.new() 31 - close_button.icon = EditorInterface.get_editor_theme().get_icon(&"Close", &"EditorIcons") 32 - close_button.flat = true 33 - close_button.focus_mode = Control.FOCUS_NONE 34 - close_button.pressed.connect(on_close_pressed) 35 - 36 - return close_button 37 - 38 - func _gui_input(event: InputEvent) -> void: 39 - if event is InputEventMouseButton && event.pressed: 40 - if event.button_index == MOUSE_BUTTON_MIDDLE: 41 - on_close_pressed() 42 - elif (event.button_index == MOUSE_BUTTON_RIGHT): 43 - button_pressed = true 44 - on_right_click() 45 - 46 - func on_right_click(): 47 - right_clicked.emit() 48 - 49 - func on_close_pressed() -> void: 50 - close_pressed.emit() 51 - 52 - func _get_drag_data(at_position: Vector2) -> Variant: 53 - var preview: Button = Button.new() 54 - preview.text = text 55 - preview.icon = icon 56 - preview.alignment = HORIZONTAL_ALIGNMENT_LEFT 57 - preview.auto_translate_mode = Node.AUTO_TRANSLATE_MODE_DISABLED 58 - preview.add_theme_stylebox_override(&"normal", get_theme_stylebox(&"normal")) 59 - 60 - set_drag_preview(preview) 61 - 62 - var drag_data: Dictionary[String, Variant] 63 - drag_data["type"] = "script_list_element" 64 - drag_data["script_list_element"] = EditorInterface.get_script_editor().get_current_editor() 65 - drag_data["index"] = get_index() 66 - 67 - return drag_data 68 - 69 - func _can_drop_data(at_position: Vector2, data: Variant) -> bool: 70 - if !(data is Dictionary): 71 - return false 72 - 73 - var can_drop: bool = data.has("index") 74 - 75 - if (can_drop): 76 - dragged_over.emit() 77 - 78 - return can_drop 79 - 80 - func _drop_data(at_position: Vector2, data: Variant) -> void: 81 - if (!_can_drop_data(at_position, data)): 82 - return 83 - 84 - dropped.emit(data["index"], get_index())
-1
addons/script-ide/tabbar/custom_tab.gd.uid
··· 1 - uid://bppomxp4mri2o
-486
addons/script-ide/tabbar/multiline_tab_bar.gd
··· 1 - ## Tab bar that can show tabs in multiple lines (wrap), when there is not enough horizontal space. 2 - @tool 3 - extends PanelContainer 4 - 5 - const CLOSE_BTN_SPACER: String = " " 6 - 7 - const CustomTab := preload("custom_tab.gd") 8 - 9 - @onready var multiline_tab_bar: HFlowContainer = %MultilineTabBar 10 - @onready var split_btn: Button = %SplitBtn 11 - @onready var popup_btn: Button = %PopupBtn 12 - 13 - #region Theme 14 - var tab_hovered: StyleBoxFlat 15 - var tab_focus: StyleBoxFlat 16 - var tab_selected: StyleBoxFlat 17 - var tab_unselected: StyleBoxFlat 18 - 19 - var font_selected_color: Color 20 - var font_unselected_color: Color 21 - var font_hovered_color: Color 22 - #endregion 23 - 24 - var show_close_button_always: bool = false : set = set_show_close_button_always 25 - var is_singleline_tabs: bool = false : set = set_singleline_tabs 26 - 27 - var tab_group: ButtonGroup = ButtonGroup.new() 28 - 29 - # Existing components, set from the plugin 30 - var script_filter_txt: LineEdit 31 - var scripts_item_list: ItemList 32 - var scripts_tab_container: TabContainer 33 - var popup: PopupPanel 34 - # Reference back to the plugin, untyped 35 - var plugin: EditorPlugin 36 - 37 - var suppress_theme_changed: bool 38 - 39 - var split_script: Script 40 - var split_icon: Texture2D 41 - var last_drag_over_tab: CustomTab 42 - var drag_marker: ColorRect 43 - var current_tab: CustomTab 44 - 45 - func _init() -> void: 46 - tab_group.pressed.connect(on_new_tab_selected) 47 - 48 - #region Plugin and related tab handling processing 49 - func _ready() -> void: 50 - popup_btn.pressed.connect(show_popup) 51 - split_btn.gui_input.connect(on_right_click) 52 - split_icon = split_btn.icon 53 - 54 - set_process(false) 55 - 56 - if (plugin != null): 57 - schedule_update() 58 - 59 - func _notification(what: int) -> void: 60 - if (what == NOTIFICATION_DRAG_END || what == NOTIFICATION_MOUSE_EXIT): 61 - clear_drag_mark() 62 - return 63 - 64 - if (what == NOTIFICATION_THEME_CHANGED): 65 - if (suppress_theme_changed): 66 - return 67 - 68 - suppress_theme_changed = true 69 - add_theme_stylebox_override(&"panel", EditorInterface.get_editor_theme().get_stylebox(&"tabbar_background", &"TabContainer")) 70 - suppress_theme_changed = false 71 - 72 - tab_hovered = EditorInterface.get_editor_theme().get_stylebox(&"tab_hovered", &"TabContainer") 73 - tab_focus = EditorInterface.get_editor_theme().get_stylebox(&"tab_focus", &"TabContainer") 74 - tab_selected = EditorInterface.get_editor_theme().get_stylebox(&"tab_selected", &"TabContainer") 75 - tab_unselected = EditorInterface.get_editor_theme().get_stylebox(&"tab_unselected", &"TabContainer") 76 - 77 - if (drag_marker == null): 78 - drag_marker = ColorRect.new() 79 - drag_marker.set_anchors_and_offsets_preset(PRESET_LEFT_WIDE) 80 - drag_marker.mouse_filter = Control.MOUSE_FILTER_IGNORE 81 - drag_marker.custom_minimum_size.x = 4 * EditorInterface.get_editor_scale() 82 - drag_marker.color = EditorInterface.get_editor_theme().get_color(&"drop_mark_color", &"TabContainer") 83 - 84 - font_hovered_color = EditorInterface.get_editor_theme().get_color(&"font_hovered_color", &"TabContainer") 85 - font_selected_color = EditorInterface.get_editor_theme().get_color(&"font_selected_color", &"TabContainer") 86 - font_unselected_color = EditorInterface.get_editor_theme().get_color(&"font_unselected_color", &"TabContainer") 87 - 88 - if (plugin == null || multiline_tab_bar == null): 89 - return 90 - 91 - for tab: CustomTab in get_tabs(): 92 - update_tab_style(tab) 93 - 94 - func _process(delta: float) -> void: 95 - sync_tabs_with_item_list() 96 - 97 - if (is_singleline_tabs): 98 - shift_singleline_tabs_to(current_tab) 99 - 100 - set_process(false) 101 - 102 - func _shortcut_input(event: InputEvent) -> void: 103 - if (!event.is_pressed() || event.is_echo()): 104 - return 105 - 106 - if (!is_visible_in_tree()): 107 - return 108 - 109 - if (current_tab == null): 110 - return 111 - 112 - if (plugin.tab_cycle_forward_shc.matches_event(event)): 113 - get_viewport().set_input_as_handled() 114 - 115 - var tab_count: int = get_tab_count() 116 - if (tab_count <= 1): 117 - return 118 - 119 - var index: int = current_tab.get_index() 120 - var new_tab: int = index + 1 121 - if (new_tab == tab_count): 122 - new_tab = 0 123 - 124 - var tab: CustomTab = get_tab(new_tab) 125 - tab.button_pressed = true 126 - elif (plugin.tab_cycle_backward_shc.matches_event(event)): 127 - get_viewport().set_input_as_handled() 128 - 129 - var tab_count: int = get_tab_count() 130 - if (tab_count <= 1): 131 - return 132 - 133 - var index: int = current_tab.get_index() 134 - var new_tab: int = index - 1 135 - if (new_tab == -1): 136 - new_tab = tab_count - 1 137 - 138 - var tab: CustomTab = get_tab(new_tab) 139 - tab.button_pressed = true 140 - 141 - func _can_drop_data(at_position: Vector2, data: Variant) -> bool: 142 - if !(data is Dictionary): 143 - return false 144 - 145 - var can_drop: bool = data.has("index") && data["index"] != get_tab_count() - 1 146 - 147 - if (can_drop): 148 - on_drag_over(get_tab(get_tab_count() - 1)) 149 - 150 - return can_drop 151 - 152 - func _drop_data(at_position: Vector2, data: Variant) -> void: 153 - if (!_can_drop_data(at_position, data)): 154 - return 155 - 156 - on_drag_drop(data["index"], get_tab_count() - 1) 157 - #endregion 158 - 159 - func schedule_update(): 160 - set_process(true) 161 - 162 - func set_split(script: Script) -> void: 163 - split_script = script 164 - 165 - if (split_script != null): 166 - split_btn.icon = split_icon 167 - 168 - var text: String = scripts_item_list.get_item_text(current_tab.get_index()) 169 - var icon: Texture2D = scripts_item_list.get_item_icon(current_tab.get_index()) 170 - split_btn.text = text 171 - split_btn.icon = icon 172 - else: 173 - split_btn.icon = split_icon 174 - split_btn.text = "" 175 - 176 - func is_split() -> bool: 177 - return split_script != null 178 - 179 - func on_right_click(event: InputEvent): 180 - if (!split_btn.button_pressed): 181 - return 182 - 183 - if !(event is InputEventMouseButton): 184 - return 185 - 186 - var mouse_event: InputEventMouseButton = event 187 - 188 - if (!mouse_event.is_pressed() || mouse_event.button_index != MOUSE_BUTTON_RIGHT): 189 - return 190 - 191 - EditorInterface.edit_script(split_script) 192 - split_btn.button_pressed = false 193 - 194 - func on_drag_drop(source_index: int, target_index: int): 195 - var child: Node = scripts_tab_container.get_child(source_index) 196 - scripts_tab_container.move_child(child, target_index); 197 - 198 - var tab: CustomTab = get_tab(target_index) 199 - tab.grab_focus() 200 - 201 - func on_drag_over(tab: CustomTab): 202 - if (last_drag_over_tab == tab): 203 - return 204 - 205 - # The drag marker should always be orphan when here. 206 - tab.add_child(drag_marker) 207 - 208 - last_drag_over_tab = tab 209 - 210 - func clear_drag_mark(): 211 - if (last_drag_over_tab == null): 212 - return 213 - 214 - last_drag_over_tab = null 215 - if (drag_marker.get_parent() != null): 216 - drag_marker.get_parent().remove_child(drag_marker) 217 - 218 - func update_tabs(): 219 - update_script_text_filter() 220 - 221 - for tab: CustomTab in get_tabs(): 222 - update_tab(tab) 223 - 224 - func get_tabs() -> Array[Node]: 225 - return multiline_tab_bar.get_children() 226 - 227 - func update_selected_tab(): 228 - update_tab(tab_group.get_pressed_button()) 229 - 230 - func update_tab(tab: CustomTab): 231 - if (tab == null): 232 - return 233 - 234 - var index: int = tab.get_index() 235 - 236 - tab.text = scripts_item_list.get_item_text(index) 237 - tab.icon = scripts_item_list.get_item_icon(index) 238 - tab.tooltip_text = scripts_item_list.get_item_tooltip(index) 239 - 240 - update_icon_color(tab, scripts_item_list.get_item_icon_modulate(index)) 241 - 242 - if (scripts_item_list.is_selected(index)): 243 - tab.button_pressed = true 244 - tab.text += CLOSE_BTN_SPACER 245 - elif (show_close_button_always): 246 - tab.text += CLOSE_BTN_SPACER 247 - 248 - func get_tab(index: int) -> CustomTab: 249 - if (index < 0 || index >= get_tab_count()): 250 - return null 251 - 252 - return multiline_tab_bar.get_child(index) 253 - 254 - func get_tab_count() -> int: 255 - return multiline_tab_bar.get_child_count() 256 - 257 - func add_tab() -> CustomTab: 258 - var tab: CustomTab = CustomTab.new() 259 - tab.button_group = tab_group 260 - 261 - if (show_close_button_always): 262 - tab.show_close_button() 263 - 264 - update_tab_style(tab) 265 - 266 - tab.close_pressed.connect(on_tab_close_pressed.bind(tab)) 267 - tab.right_clicked.connect(on_tab_right_click.bind(tab)) 268 - tab.mouse_exited.connect(clear_drag_mark) 269 - tab.dragged_over.connect(on_drag_over.bind(tab)) 270 - tab.dropped.connect(on_drag_drop) 271 - 272 - multiline_tab_bar.add_child(tab) 273 - return tab 274 - 275 - func update_tab_style(tab: CustomTab): 276 - tab.add_theme_stylebox_override(&"normal", tab_unselected) 277 - tab.add_theme_stylebox_override(&"hover", tab_hovered) 278 - tab.add_theme_stylebox_override(&"hover_pressed", tab_hovered) 279 - tab.add_theme_stylebox_override(&"focus", tab_focus) 280 - tab.add_theme_stylebox_override(&"pressed", tab_selected) 281 - 282 - tab.add_theme_color_override(&"font_color", font_unselected_color) 283 - tab.add_theme_color_override(&"font_hover_color", font_hovered_color) 284 - tab.add_theme_color_override(&"font_pressed_color", font_selected_color) 285 - 286 - func update_icon_color(tab: CustomTab, color: Color): 287 - tab.add_theme_color_override(&"icon_normal_color", color) 288 - tab.add_theme_color_override(&"icon_hover_color", color) 289 - tab.add_theme_color_override(&"icon_hover_pressed_color", color) 290 - tab.add_theme_color_override(&"icon_pressed_color", color) 291 - tab.add_theme_color_override(&"icon_focus_color", color) 292 - 293 - 294 - func on_tab_right_click(tab: CustomTab): 295 - var index: int = tab.get_index() 296 - scripts_item_list.item_clicked.emit(index, scripts_item_list.get_local_mouse_position(), MOUSE_BUTTON_RIGHT) 297 - 298 - func on_new_tab_selected(tab: CustomTab): 299 - # Hide and show close button. 300 - if (!show_close_button_always): 301 - if (current_tab != null): 302 - current_tab.hide_close_button() 303 - 304 - if (tab != null): 305 - tab.show_close_button() 306 - 307 - update_script_text_filter() 308 - 309 - var index: int = tab.get_index() 310 - if (scripts_item_list != null && !scripts_item_list.is_selected(index)): 311 - scripts_item_list.select(index) 312 - scripts_item_list.item_selected.emit(index) 313 - scripts_item_list.ensure_current_is_visible() 314 - 315 - # Remove spacing from previous tab. 316 - if (!show_close_button_always && current_tab != null): 317 - update_tab(current_tab) 318 - current_tab = tab 319 - 320 - ## Removes the script filter text and emits the signal so that the tabs stay 321 - ## and we do not break anything there. 322 - func update_script_text_filter(): 323 - if (script_filter_txt.text != &""): 324 - script_filter_txt.text = &"" 325 - script_filter_txt.text_changed.emit(&"") 326 - 327 - func on_tab_close_pressed(tab: CustomTab) -> void: 328 - scripts_item_list.item_clicked.emit(tab.get_index(), scripts_item_list.get_local_mouse_position(), MOUSE_BUTTON_MIDDLE) 329 - 330 - func sync_tabs_with_item_list() -> void: 331 - if (plugin == null): 332 - return 333 - 334 - if (get_tab_count() > scripts_item_list.item_count): 335 - for index: int in range(get_tab_count() - 1, scripts_item_list.item_count - 1, -1): 336 - var tab: CustomTab = get_tab(index) 337 - 338 - if (tab == current_tab): 339 - current_tab = null 340 - 341 - multiline_tab_bar.remove_child(tab) 342 - free_tab(tab) 343 - 344 - for index: int in scripts_item_list.item_count: 345 - var tab: CustomTab = get_tab(index) 346 - if (tab == null): 347 - tab = add_tab() 348 - 349 - update_tab(tab) 350 - 351 - func tab_changed(): 352 - update_script_text_filter() 353 - 354 - # When the tab change was not triggered by our component, 355 - # we need to sync the selection. 356 - update_tab(get_tab(scripts_tab_container.current_tab)) 357 - 358 - func script_order_changed() -> void: 359 - schedule_update() 360 - 361 - func set_popup(new_popup: PopupPanel) -> void: 362 - popup = new_popup 363 - 364 - func show_popup() -> void: 365 - if (popup == null): 366 - return 367 - 368 - scripts_item_list.get_parent().reparent(popup) 369 - scripts_item_list.get_parent().visible = true 370 - 371 - popup.size = Vector2(250 * get_editor_scale(), get_parent().size.y - size.y) 372 - popup.position = popup_btn.get_screen_position() - Vector2(popup.size.x, 0) 373 - popup.popup() 374 - 375 - script_filter_txt.grab_focus() 376 - 377 - func get_editor_scale() -> float: 378 - return EditorInterface.get_editor_scale() 379 - 380 - func set_show_close_button_always(new_value: bool): 381 - if (show_close_button_always == new_value): 382 - return 383 - 384 - show_close_button_always = new_value 385 - 386 - if (multiline_tab_bar == null): 387 - return 388 - 389 - for tab: CustomTab in get_tabs(): 390 - tab.text = scripts_item_list.get_item_text(tab.get_index()) 391 - if (show_close_button_always): 392 - tab.text += CLOSE_BTN_SPACER 393 - if (!tab.button_pressed): 394 - tab.show_close_button() 395 - else: 396 - if (!tab.button_pressed): 397 - tab.hide_close_button() 398 - else: 399 - tab.text += CLOSE_BTN_SPACER 400 - 401 - func free_tabs(): 402 - drag_marker.free() 403 - for tab: CustomTab in get_tabs(): 404 - free_tab(tab) 405 - 406 - func free_tab(tab: CustomTab): 407 - if (tab.close_button != null): 408 - tab.close_button.free() 409 - tab.free() 410 - 411 - #region Singeline handling 412 - func set_singleline_tabs(new_value: bool): 413 - if (is_singleline_tabs == new_value): 414 - return 415 - 416 - is_singleline_tabs = new_value 417 - 418 - if (is_singleline_tabs): 419 - item_rect_changed.connect(update_singleline_tabs_width) 420 - tab_group.pressed.connect(ensure_singleline_tab_visible.unbind(1)) 421 - 422 - if (multiline_tab_bar == null): 423 - return 424 - 425 - shift_singleline_tabs_to(current_tab) 426 - else: 427 - item_rect_changed.disconnect(update_singleline_tabs_width) 428 - tab_group.pressed.disconnect(ensure_singleline_tab_visible) 429 - 430 - if (multiline_tab_bar == null): 431 - return 432 - 433 - for tab: CustomTab in get_tabs(): 434 - tab.visible = true 435 - 436 - func ensure_singleline_tab_visible(): 437 - if (current_tab != null && current_tab.visible): 438 - return 439 - 440 - shift_singleline_tabs_to(current_tab) 441 - 442 - func update_singleline_tabs_width(): 443 - if (current_tab != null && !current_tab.visible): 444 - shift_singleline_tabs_to(current_tab) 445 - return 446 - 447 - for tab: CustomTab in get_tabs(): 448 - if (tab.visible): 449 - shift_singleline_tabs_to(tab) 450 - break 451 - 452 - func shift_singleline_tabs_to(start_tab: CustomTab): 453 - var start: bool 454 - var tab_bar_width: float = multiline_tab_bar.size.x 455 - var tabs_width: float 456 - var one_fit: bool = true 457 - 458 - for tab: CustomTab in get_tabs(): 459 - if (start_tab == null || tab == start_tab): 460 - start = true 461 - 462 - if (start): 463 - tabs_width += tab.size.x 464 - 465 - tab.visible = tabs_width <= tab_bar_width 466 - one_fit = one_fit || tab.visible 467 - else: 468 - tab.visible = false 469 - 470 - if (current_tab != null && !current_tab.visible): 471 - if (start_tab != current_tab): 472 - shift_singleline_tabs_to(current_tab) 473 - return 474 - 475 - if (start_tab == null): 476 - return 477 - 478 - for index: int in range(start_tab.get_index() - 1, -1, -1): 479 - var tab: CustomTab = get_tabs().get(index) 480 - 481 - tabs_width += tab.size.x 482 - if (tabs_width > tab_bar_width): 483 - return 484 - 485 - tab.visible = true 486 - #endregion
-1
addons/script-ide/tabbar/multiline_tab_bar.gd.uid
··· 1 - uid://l1rdargfn67o
-43
addons/script-ide/tabbar/multiline_tab_bar.tscn
··· 1 - [gd_scene format=3 uid="uid://vjuhunm2uboy"] 2 - 3 - [ext_resource type="Script" uid="uid://l1rdargfn67o" path="res://addons/script-ide/tabbar/multiline_tab_bar.gd" id="1_8jr3v"] 4 - 5 - [sub_resource type="DPITexture" id="DPITexture_split"] 6 - _source = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\"><path fill=\"#e0e0e0\" d=\"M7.5 0v16h1V0z\"/></svg>" 7 - 8 - [sub_resource type="DPITexture" id="DPITexture_scripts"] 9 - _source = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\"><path fill=\"#e0e0e0\" d=\"M8 0a2 2 0 0 0 0 4 2 2 0 0 0 0-4zm0 6a2 2 0 0 0 0 4 2 2 0 0 0 0-4zm0 6a2 2 0 0 0 0 4 2 2 0 0 0 0-4z\"/></svg>" 10 - 11 - [node name="MultilineTabContainer" type="PanelContainer" unique_id=635880120] 12 - anchors_preset = 10 13 - anchor_right = 1.0 14 - offset_bottom = 28.0 15 - grow_horizontal = 2 16 - size_flags_horizontal = 3 17 - script = ExtResource("1_8jr3v") 18 - 19 - [node name="HBoxContainer" type="HBoxContainer" parent="." unique_id=932291510] 20 - layout_mode = 2 21 - size_flags_horizontal = 3 22 - theme_override_constants/separation = 0 23 - 24 - [node name="MultilineTabBar" type="HFlowContainer" parent="HBoxContainer" unique_id=2135340034] 25 - unique_name_in_owner = true 26 - layout_mode = 2 27 - size_flags_horizontal = 3 28 - theme_override_constants/h_separation = 0 29 - theme_override_constants/v_separation = 0 30 - 31 - [node name="SplitBtn" type="Button" parent="HBoxContainer" unique_id=813915450] 32 - unique_name_in_owner = true 33 - layout_mode = 2 34 - size_flags_horizontal = 8 35 - toggle_mode = true 36 - icon = SubResource("DPITexture_split") 37 - alignment = 0 38 - 39 - [node name="PopupBtn" type="Button" parent="HBoxContainer" unique_id=1586924518] 40 - unique_name_in_owner = true 41 - layout_mode = 2 42 - size_flags_horizontal = 8 43 - icon = SubResource("DPITexture_scripts")
-11
default_env.tres
··· 1 - [gd_resource type="Environment" load_steps=2 format=2] 2 - 3 - [sub_resource type="Sky" id=1] 4 - 5 - [resource] 6 - background_mode = 2 7 - background_sky = SubResource( 1 ) 8 - ambient_light_color = Color( 1, 1, 1, 1 ) 9 - ambient_light_energy = 0.28 10 - ambient_light_sky_contribution = 0.0 11 - ssao_blur = 1
-43
hack_system/hack_system.gd
··· 1 - extends Node 2 - 3 - var registry: Dictionary[String, Node] = {} 4 - 5 - func _ready() -> void: 6 - pass 7 - 8 - func register(item_name: String, item: Node) -> void: 9 - registry.set(item_name as Variant, item as Variant) 10 - 11 - func cmd_on(item: Node) -> void: 12 - pass 13 - 14 - func cmd_off(item: Node) -> void: 15 - pass 16 - 17 - func cmd_open(item: Node) -> void: 18 - pass 19 - 20 - func cmd_close(item: Node) -> void: 21 - pass 22 - 23 - func wait(time: int) -> void: 24 - pass 25 - 26 - func cmd(item_name: String, command: String, ...args: Array) -> void: 27 - var item = registry.get(item_name) 28 - 29 - if item == null and command != "wait": 30 - return # Need to throw error, but for now, this is fine 31 - 32 - if command == "on": 33 - cmd_on(item) 34 - elif command == "off": 35 - cmd_off(item) 36 - elif command == "open": 37 - cmd_open(item) 38 - elif command == "close": 39 - cmd_close(item) 40 - elif command == "wait": 41 - wait(args[0]) 42 - else: 43 - return # Again, need to throw an error here, but for now this is fine
-1
hack_system/hack_system.gd.uid
··· 1 - uid://g3t3fywm2jte
-1
icon.svg
··· 1 - <svg xmlns="http://www.w3.org/2000/svg" width="128" height="128"><rect width="124" height="124" x="2" y="2" fill="#363d52" stroke="#212532" stroke-width="4" rx="14"/><g fill="#fff" transform="translate(12.322 12.322)scale(.101)"><path d="M105 673v33q407 354 814 0v-33z"/><path fill="#478cbf" d="m105 673 152 14q12 1 15 14l4 67 132 10 8-61q2-11 15-15h162q13 4 15 15l8 61 132-10 4-67q3-13 15-14l152-14V427q30-39 56-81-35-59-83-108-43 20-82 47-40-37-88-64 7-51 8-102-59-28-123-42-26 43-46 89-49-7-98 0-20-46-46-89-64 14-123 42 1 51 8 102-48 27-88 64-39-27-82-47-48 49-83 108 26 42 56 81zm0 33v39c0 276 813 276 814 0v-39l-134 12-5 69q-2 10-14 13l-162 11q-12 0-16-11l-10-65H446l-10 65q-4 11-16 11l-162-11q-12-3-14-13l-5-69z"/><path d="M483 600c0 34 58 34 58 0v-86c0-34-58-34-58 0z"/><circle cx="725" cy="526" r="90"/><circle cx="299" cy="526" r="90"/></g><g fill="#414042" transform="translate(12.322 12.322)scale(.101)"><circle cx="307" cy="532" r="60"/><circle cx="717" cy="532" r="60"/></g></svg>
-43
icon.svg.import
··· 1 - [remap] 2 - 3 - importer="texture" 4 - type="CompressedTexture2D" 5 - uid="uid://da3auecsealtx" 6 - path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex" 7 - metadata={ 8 - "vram_texture": false 9 - } 10 - 11 - [deps] 12 - 13 - source_file="res://icon.svg" 14 - dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"] 15 - 16 - [params] 17 - 18 - compress/mode=0 19 - compress/high_quality=false 20 - compress/lossy_quality=0.7 21 - compress/uastc_level=0 22 - compress/rdo_quality_loss=0.0 23 - compress/hdr_compression=1 24 - compress/normal_map=0 25 - compress/channel_pack=0 26 - mipmaps/generate=false 27 - mipmaps/limit=-1 28 - roughness/mode=0 29 - roughness/src_normal="" 30 - process/channel_remap/red=0 31 - process/channel_remap/green=1 32 - process/channel_remap/blue=2 33 - process/channel_remap/alpha=3 34 - process/fix_alpha_border=true 35 - process/premult_alpha=false 36 - process/normal_map_invert_y=false 37 - process/hdr_as_srgb=false 38 - process/hdr_clamp_exposure=false 39 - process/size_limit=0 40 - detect_3d/compress_to=1 41 - svg/scale=1.0 42 - editor/scale_with_editor_scale=false 43 - editor/convert_colors_with_editor_theme=false
-14
levels/level1/level1.tscn
··· 1 - [gd_scene format=3 uid="uid://dauclfksklwo3"] 2 - 3 - [ext_resource type="PackedScene" uid="uid://cpjygpcgptrih" path="res://terminal/terminal.tscn" id="1_eq150"] 4 - [ext_resource type="PackedScene" uid="uid://duy53fvaujpcy" path="res://player_camera.tscn" id="2_c6lro"] 5 - 6 - [node name="Level1" type="Node3D" unique_id=1263765242] 7 - 8 - [node name="Terminal" parent="." unique_id=659384782 instance=ExtResource("1_eq150")] 9 - 10 - [node name="OmniLight3D" type="OmniLight3D" parent="." unique_id=921534522] 11 - transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.926712, 1.6132107, 0) 12 - 13 - [node name="PlayerCamera" parent="." unique_id=82670408 instance=ExtResource("2_c6lro")] 14 - transform = Transform3D(-4.108778e-08, -0.3412328, 0.93997884, -1.491576e-08, 0.93997884, 0.3412328, -1, 8.881784e-16, -4.371139e-08, 2.713509, 2.0723257, 0)
-4
main.gd
··· 1 - extends Node 2 - 3 - func _ready() -> void: 4 - get_tree().change_scene_to_file("res://levels/level1/level1.tscn")
-1
main.gd.uid
··· 1 - uid://cmxsdya5a1gt2
-6
main.tscn
··· 1 - [gd_scene format=3 uid="uid://bpwlvy88e7ha5"] 2 - 3 - [ext_resource type="Script" uid="uid://cmxsdya5a1gt2" path="res://main.gd" id="1_ig7tw"] 4 - 5 - [node name="Main" type="Node" unique_id=107011895] 6 - script = ExtResource("1_ig7tw")
-4
player_camera.gd
··· 1 - extends Camera3D 2 - 3 - func _ready() -> void: 4 - Input.set_mouse_mode(Input.MOUSE_MODE_CONFINED)
-1
player_camera.gd.uid
··· 1 - uid://dkxbbtju24bce
-6
player_camera.tscn
··· 1 - [gd_scene format=3 uid="uid://duy53fvaujpcy"] 2 - 3 - [ext_resource type="Script" uid="uid://dkxbbtju24bce" path="res://player_camera.gd" id="1_agiyq"] 4 - 5 - [node name="PlayerCamera" type="Camera3D" unique_id=82670408] 6 - script = ExtResource("1_agiyq")
-37
project.godot
··· 1 - ; Engine configuration file. 2 - ; It's best edited using the editor UI and not directly, 3 - ; since the parameters that go here are not all obvious. 4 - ; 5 - ; Format: 6 - ; [section] ; section goes between [] 7 - ; param=value ; assign values to parameters 8 - 9 - config_version=5 10 - 11 - [application] 12 - 13 - config/name="Triangular Viking" 14 - run/main_scene="uid://bpwlvy88e7ha5" 15 - config/features=PackedStringArray("4.6", "Forward Plus") 16 - config/icon="res://icon.svg" 17 - 18 - [autoload] 19 - 20 - HackSystem="*uid://g3t3fywm2jte" 21 - 22 - [editor] 23 - 24 - version_control/plugin_name="GitPlugin" 25 - version_control/autoload_on_startup=true 26 - 27 - [editor_plugins] 28 - 29 - enabled=PackedStringArray("res://addons/script-ide/plugin.cfg") 30 - 31 - [physics] 32 - 33 - 3d/physics_engine="Jolt Physics" 34 - 35 - [rendering] 36 - 37 - rendering_device/driver.windows="d3d12"
terminal.bin

This is a binary file and will not be displayed.

-7
terminal/Material.tres
··· 1 - [gd_resource type="StandardMaterial3D" format=3 uid="uid://dxkt5wuhlk0vh"] 2 - 3 - [resource] 4 - resource_name = "Material" 5 - cull_mode = 2 6 - albedo_color = Color(0.9063318, 0.9063318, 0.9063318, 1) 7 - roughness = 0.5
-96
terminal/terminal.gd
··· 1 - extends Node3D 2 - 3 - # Used for checking if the mouse is inside the Area3D. 4 - var is_mouse_inside = false 5 - # The last processed input touch/mouse event. To calculate relative movement. 6 - var last_event_pos2D = null 7 - # The time of the last event in seconds since engine start. 8 - var last_event_time: float = -1.0 9 - 10 - @onready var node_viewport = $SubViewport 11 - @onready var node_quad = $Quad 12 - @onready var node_area = $Quad/Area3D 13 - 14 - func _ready(): 15 - node_area.mouse_entered.connect(_mouse_entered_area) 16 - node_area.mouse_exited.connect(_mouse_exited_area) 17 - node_area.input_event.connect(_mouse_input_event) 18 - 19 - func _mouse_entered_area(): 20 - is_mouse_inside = true 21 - 22 - func _mouse_exited_area(): 23 - is_mouse_inside = false 24 - 25 - func _unhandled_input(event): 26 - # Check if the event is a non-mouse/non-touch event 27 - for mouse_event in [InputEventMouseButton, InputEventMouseMotion, InputEventScreenDrag, InputEventScreenTouch]: 28 - if is_instance_of(event, mouse_event): 29 - # If the event is a mouse/touch event, then we can ignore it here, because it will be 30 - # handled via Physics Picking. 31 - return 32 - node_viewport.push_input(event) 33 - 34 - func _mouse_input_event(_camera: Camera3D, event: InputEvent, event_position: Vector3, _normal: Vector3, _shape_idx: int): 35 - # Get mesh size to detect edges and make conversions. This code only support PlaneMesh and QuadMesh. 36 - var quad_mesh_size = node_quad.mesh.size 37 - 38 - # Event position in Area3D in world coordinate space. 39 - var event_pos3D = event_position 40 - 41 - # Current time in seconds since engine start. 42 - var now: float = Time.get_ticks_msec() / 1000.0 43 - 44 - # Convert position to a coordinate space relative to the Area3D node. 45 - # NOTE: affine_inverse accounts for the Area3D node's scale, rotation, and position in the scene! 46 - event_pos3D = node_quad.global_transform.affine_inverse() * event_pos3D 47 - 48 - # TODO: Adapt to bilboard mode or avoid completely. 49 - 50 - var event_pos2D: Vector2 = Vector2() 51 - 52 - if is_mouse_inside: 53 - # Convert the relative event position from 3D to 2D. 54 - event_pos2D = Vector2(event_pos3D.x, -event_pos3D.y) 55 - 56 - # Right now the event position's range is the following: (-quad_size/2) -> (quad_size/2) 57 - # We need to convert it into the following range: -0.5 -> 0.5 58 - event_pos2D.x = event_pos2D.x / quad_mesh_size.x 59 - event_pos2D.y = event_pos2D.y / quad_mesh_size.y 60 - # Then we need to convert it into the following range: 0 -> 1 61 - event_pos2D.x += 0.5 62 - event_pos2D.y += 0.5 63 - 64 - # Finally, we convert the position to the following range: 0 -> viewport.size 65 - event_pos2D.x *= node_viewport.size.x 66 - event_pos2D.y *= node_viewport.size.y 67 - # We need to do these conversions so the event's position is in the viewport's coordinate system. 68 - 69 - elif last_event_pos2D != null: 70 - # Fall back to the last known event position. 71 - event_pos2D = last_event_pos2D 72 - 73 - # Set the event's position and global position. 74 - event.position = event_pos2D 75 - if event is InputEventMouse: 76 - event.global_position = event_pos2D 77 - 78 - # Calculate the relative event distance. 79 - if event is InputEventMouseMotion or event is InputEventScreenDrag: 80 - # If there is not a stored previous position, then we'll assume there is no relative motion. 81 - if last_event_pos2D == null: 82 - event.relative = Vector2(0, 0) 83 - # If there is a stored previous position, then we'll calculate the relative position by subtracting 84 - # the previous position from the new position. This will give us the distance the event traveled from prev_pos. 85 - else: 86 - event.relative = event_pos2D - last_event_pos2D 87 - event.velocity = event.relative / (now - last_event_time) 88 - 89 - # Update last_event_pos2D with the position we just calculated. 90 - last_event_pos2D = event_pos2D 91 - 92 - # Update last_event_time to current time. 93 - last_event_time = now 94 - 95 - # Finally, send the processed input event to the viewport. 96 - node_viewport.push_input(event)
-1
terminal/terminal.gd.uid
··· 1 - uid://cxudtytk3du86
terminal/terminal.glb terminal.glb
-55
terminal/terminal.glb.import
··· 1 - [remap] 2 - 3 - importer="scene" 4 - importer_version=1 5 - type="PackedScene" 6 - uid="uid://b2b22t84tbbw1" 7 - path="res://.godot/imported/terminal.glb-d6e8a799f9e89390e464a5917c48ebba.scn" 8 - 9 - [deps] 10 - 11 - source_file="res://terminal/terminal.glb" 12 - dest_files=["res://.godot/imported/terminal.glb-d6e8a799f9e89390e464a5917c48ebba.scn"] 13 - 14 - [params] 15 - 16 - nodes/root_type="" 17 - nodes/root_name="" 18 - nodes/root_script=null 19 - nodes/apply_root_scale=true 20 - nodes/root_scale=1.0 21 - nodes/import_as_skeleton_bones=false 22 - nodes/use_name_suffixes=true 23 - nodes/use_node_type_suffixes=true 24 - meshes/ensure_tangents=true 25 - meshes/generate_lods=true 26 - meshes/create_shadow_meshes=true 27 - meshes/light_baking=1 28 - meshes/lightmap_texel_size=0.2 29 - meshes/force_disable_compression=false 30 - skins/use_named_skins=true 31 - animation/import=true 32 - animation/fps=30 33 - animation/trimming=false 34 - animation/remove_immutable_tracks=true 35 - animation/import_rest_as_RESET=false 36 - import_script/path="" 37 - materials/extract=0 38 - materials/extract_format=0 39 - materials/extract_path="" 40 - _subresources={ 41 - "materials": { 42 - "Black Screen": { 43 - "use_external/enabled": true, 44 - "use_external/fallback_path": "res://terminal/Black Screen.tres", 45 - "use_external/path": "uid://cjh5hq7stvbhv" 46 - }, 47 - "Material": { 48 - "use_external/enabled": true, 49 - "use_external/fallback_path": "res://terminal/Material.tres", 50 - "use_external/path": "uid://dxkt5wuhlk0vh" 51 - } 52 - } 53 - } 54 - gltf/naming_version=2 55 - gltf/embedded_image_handling=1
-122
terminal/terminal.tscn
··· 1 - [gd_scene format=4 uid="uid://cpjygpcgptrih"] 2 - 3 - [ext_resource type="Material" uid="uid://dxkt5wuhlk0vh" path="res://terminal/Material.tres" id="1_cgvah"] 4 - [ext_resource type="Script" uid="uid://cxudtytk3du86" path="res://terminal/terminal.gd" id="1_osw5p"] 5 - 6 - [sub_resource type="ViewportTexture" id="ViewportTexture_l3hco"] 7 - viewport_path = NodePath("SubViewport") 8 - 9 - [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_cgvah"] 10 - resource_local_to_scene = true 11 - albedo_texture = SubResource("ViewportTexture_l3hco") 12 - 13 - [sub_resource type="PlaneMesh" id="PlaneMesh_sd0vt"] 14 - resource_local_to_scene = true 15 - material = SubResource("StandardMaterial3D_cgvah") 16 - 17 - [sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_l3hco"] 18 - data = PackedVector3Array(1, 0, 1, -1, 0, 1, 1, 0, -1, -1, 0, 1, -1, 0, -1, 1, 0, -1) 19 - 20 - [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_l3hco"] 21 - albedo_color = Color(0, 0, 0, 1) 22 - 23 - [sub_resource type="ArrayMesh" id="ArrayMesh_s8tlj"] 24 - _surfaces = [{ 25 - "aabb": AABB(-1.499291, -2.4895697, -1.307231, 2.0314422, 2.456404, 2.6144614), 26 - "format": 34896613377, 27 - "index_count": 102, 28 - "index_data": PackedByteArray("AAABAAIAAAACAAMABAADAAIAAAADAAUABAAFAAMABgAAAAUABAAHAAUABgAFAAcABAAIAAcABwAIAAkABwAJAAYABAAKAAgACwAKAAQABAACAAsACwAMAAoABgAJAAwABgAMAAsAAgANAAsAAgABAA0ACwAOAAYACwANAA4ABgAPAAAAAAAPAAEABgAOAA8ADQAQAA4ADwARAAEAAQASAA0ADQASABAAAQARABIADgAQABMADgATAA8AEgATABAADwATABEAEgARABMA"), 29 - "name": "Material", 30 - "primitive": 3, 31 - "uv_scale": Vector4(0, 0, 0, 0), 32 - "vertex_count": 20, 33 - "vertex_data": PackedByteArray("AADMeunhAACEK9wN0TwAAAAAzHoVHgAA9gPK2hUeAAD/////FR4AAPYDytrp4QAA/v+QL+nhAAD+////6eEAAM/hM+4x0QAAz+FcQTHRAADP4TPuzS4AAP7/kC8VHgAAz+FcQc0uAABw2NwN0TwAAHDY3A0twwAAhCvcDS3DAABw2AAA//8AAIQrAAAAAAAAcNgAAAAAAACEKwAA/v8AAA==") 34 - }, { 35 - "aabb": AABB(0.29260463, -1.8624041, -0.8292379, 1e-05, 1.6584768, 1.6584771), 36 - "format": 34896613377, 37 - "index_count": 6, 38 - "index_data": PackedByteArray("AAABAAIAAAADAAEA"), 39 - "name": "Black Screen", 40 - "primitive": 3, 41 - "uv_scale": Vector4(0, 0, 0, 0), 42 - "vertex_count": 4, 43 - "vertex_data": PackedByteArray("uw0AAAAAAAAAAP////8AAOMW//8AAAAAuw0AAP7/AAA=") 44 - }] 45 - blend_shape_mode = 0 46 - 47 - [sub_resource type="ArrayMesh" id="ArrayMesh_sd0vt"] 48 - resource_local_to_scene = true 49 - resource_name = "terminal_Cube" 50 - _surfaces = [{ 51 - "aabb": AABB(-1.499291, -2.4895697, -1.307231, 2.0314422, 2.456404, 2.6144614), 52 - "attribute_data": PackedByteArray("SIRxR5miH3lIhP6BmaLzUOtRUVN7F2MZ61GyGHsXAlSb7t5QWOi/HJvu7RZY6MpM6UgwVdoYsYloDgJUyzMTi0iEcUdKaf+BSmlyR0iE/oGE2k+LfqYRZITa3FBMpwR/maLzUH6mT4uZoh95fqbFPulIMFXrUTWGyzMTi+tRhWF+phFk8NaXRoTa3FDMs1BFNhYCVGgOuiQ2FhEaaA57TITa3FAU40GGhNpPixTjyVX+z1BFcsfED/7P1gpyx0JAWOjeUFfv+oVY6E+LV++EVZjqDdfJwh+MmOpPi8nC3dfOY+Bi61GqOs5jrzrrUdtiVWQQi+tR42JVZOBi61ETi5jq76967t3XmOpBy3ru0KM="), 53 - "format": 34896613399, 54 - "index_count": 102, 55 - "index_data": PackedByteArray("AAABAAIAAAADAAEABAAFAAYABAAHAAUACAAJAAoACAALAAkADAANAA4ADAAPAA0AEAARABIAEAATABEAFAAVABYAFAAXABUAGAAZABoAGAAbABkAHAAdAB4AHAAfAB0AIAAhACIAIAAjACEAJAAlACYAJAAnACUAKAApACoAKAArACkALAAtAC4ALAAvAC0AMAAxADIAMAAzADEANAA1ADYANAA3ADUAOAA5ADoAOAA7ADkAPAA9AD4APAA/AD0AQABBAEIAQABDAEEA"), 56 - "material": ExtResource("1_cgvah"), 57 - "name": "Material", 58 - "primitive": 3, 59 - "uv_scale": Vector4(0, 0, 0, 0), 60 - "vertex_count": 68, 61 - "vertex_data": PackedByteArray("AADMeunhEM6EK9wN0TwQzgAAzHoVHhDOhCvcDS3DEM7/////FR5N2fYDytrp4U3Z9gPK2hUeTdn+////6eFN2f////8VHqrCz+Ez7jHRqsL+////6eGqws/hM+7NLqrC/v+QL+nhGb/2A8ra6eEZv/7////p4Rm/AADMeunhGb8AAMx66eEk1vYDytoVHiTW9gPK2unhJNYAAMx6FR4k1v////8VHv//AADMehUe///+/5AvFR7///YDytoVHv//hCvcDS3DT9WEKwAAAABP1YQr3A3RPE/VhCsAAP7/T9X+/5Av6eFXuYQr3A0tw4q7AADMeunhOrxw2NwNLcP2tgAAzHoVHmXucNjcDdE8ee7+/5AvFR6D7oQr3A3RPFvu/v+QLxUejcRw2NwNLcONxP7/kC/p4Y3EcNjcDdE8jcT+////6eHD5s/hXEEx0cPm/v+QL+nhw+bP4TPuMdHD5v7/kC8VHjuZz+Ez7s0uO5n/////FR47mc/hXEHNLjuZ/v+QL+nhL+3P4VxBzS4v7f7/kC8VHi/tz+FcQTHRL+1w2AAAAAAAwIQrAAD+/wDAcNgAAP//AMCEKwAAAAAAwHDY3A0tw5XQhCsAAP7/ldCEK9wNLcOV0HDYAAD//5XQhCvcDdE8d9pw2AAAAAB32nDY3A3RPHfahCsAAAAAd9pw2NwN0Tw003DYAAD//zTTcNjcDS3DNNNw2AAAAAA008VLJKbFSySmxUskpsVLJKZp2m8tadpvLWnaby1p2m8tPB2NTTwdjU08HY1NPB2NTf9//3//f/9//3//f/9//39LViSrS1Ykq0tWJKtLViSr/f3+ff39/n39/f59/f3+fVdVr6pXVa+qV1WvqldVr6pOZBlybWWyccRlk3EDY5ByAAfGgX8GSn/7BwV+AAgcg+8hhkTvIYZE7yGGRO8hhkR3gJ4Ad4CeAHeAngB3gJ4AGH52ABh+dgAYfnYAGH52AAA4sxAAOLMQADizEAA4sxCPArd+jwK3fo8Ct36PArd+cNiDJ3DYgydw2IMncNiDJ46tlK2OrZStjq2UrY6tlK1Wqa1SVqmtUlaprVJWqa1S") 62 - }, { 63 - "aabb": AABB(0.29260463, -1.8624041, -0.8292379, 1e-05, 1.6584768, 1.6584771), 64 - "attribute_data": PackedByteArray("csdCQH6m1RFyx8QPfqZTQg=="), 65 - "format": 34896613399, 66 - "index_count": 6, 67 - "index_data": PackedByteArray("AAABAAIAAAADAAEA"), 68 - "material": SubResource("StandardMaterial3D_l3hco"), 69 - "name": "Screen", 70 - "primitive": 3, 71 - "uv_scale": Vector4(0, 0, 0, 0), 72 - "vertex_count": 4, 73 - "vertex_data": PackedByteArray("uw0AAAAAA8AAAP////8DwOMW//8AAAPAuw0AAP7/A8CdgjwFnYI8BZ2CPAWdgjwF") 74 - }] 75 - blend_shape_mode = 0 76 - shadow_mesh = SubResource("ArrayMesh_s8tlj") 77 - 78 - [node name="Terminal" type="Node3D" unique_id=659384782] 79 - script = ExtResource("1_osw5p") 80 - 81 - [node name="SubViewport" type="SubViewport" parent="." unique_id=1034127235] 82 - disable_3d = true 83 - 84 - [node name="Control" type="Control" parent="SubViewport" unique_id=1891548089] 85 - layout_mode = 3 86 - anchors_preset = 15 87 - anchor_right = 1.0 88 - anchor_bottom = 1.0 89 - grow_horizontal = 2 90 - grow_vertical = 2 91 - 92 - [node name="ColorRect" type="ColorRect" parent="SubViewport/Control" unique_id=859547923] 93 - layout_mode = 1 94 - anchors_preset = 15 95 - anchor_right = 1.0 96 - anchor_bottom = 1.0 97 - grow_horizontal = 2 98 - grow_vertical = 2 99 - color = Color(0, 0, 0, 1) 100 - 101 - [node name="RichTextLabel" type="RichTextLabel" parent="SubViewport/Control" unique_id=1709738328] 102 - layout_mode = 1 103 - anchors_preset = -1 104 - anchor_left = 0.1 105 - anchor_top = 0.05 106 - anchor_right = 0.9 107 - anchor_bottom = 0.95 108 - grow_horizontal = 2 109 - grow_vertical = 2 110 - 111 - [node name="Quad" type="MeshInstance3D" parent="." unique_id=1260793733] 112 - transform = Transform3D(-4.371139e-08, 1, 0, 4.371139e-08, 1.9106855e-15, -1, -1, -4.371139e-08, -4.371139e-08, 0.29435754, 1.222928, 0) 113 - mesh = SubResource("PlaneMesh_sd0vt") 114 - 115 - [node name="Area3D" type="Area3D" parent="Quad" unique_id=1172421738] 116 - 117 - [node name="CollisionShape3D" type="CollisionShape3D" parent="Quad/Area3D" unique_id=1976920435] 118 - shape = SubResource("ConcavePolygonShape3D_l3hco") 119 - 120 - [node name="TerminalMesh" type="MeshInstance3D" parent="." unique_id=2022448453] 121 - transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.3367326, 0) 122 - mesh = SubResource("ArrayMesh_sd0vt")