Initial commit: Rinkplanner (Neustart ohne Historie, Workbench extern archiviert)
20
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# ---> Godot
|
||||
# Godot 4+ specific ignores
|
||||
.godot/
|
||||
|
||||
# Godot-specific ignores
|
||||
.import/
|
||||
export.cfg
|
||||
export_presets.cfg
|
||||
|
||||
# Imported translations (automatically generated from CSV files)
|
||||
*.translation
|
||||
|
||||
# Mono-specific ignores
|
||||
.mono/
|
||||
data_*/
|
||||
mono_crash.*.json
|
||||
|
||||
|
||||
# Workbench (extern archiviert, nicht versionieren)
|
||||
workbench/
|
||||
3
README.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# rinkplanner
|
||||
|
||||
Planner for Figure Skating free skate
|
||||
4
rinkplanner/.editorconfig
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
2
rinkplanner/.gitattributes
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# Normalize EOL for all files that Git considers text files.
|
||||
* text=auto eol=lf
|
||||
3
rinkplanner/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Godot 4+ specific ignores
|
||||
.godot/
|
||||
/android/
|
||||
21
rinkplanner/addons/script-ide/LICENSE
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2023 Marius Hanl
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
65
rinkplanner/addons/script-ide/README.md
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
# Script IDE
|
||||
|
||||
Transforms the Script UI into an IDE like UI.
|
||||
Tabs are used for navigating between scripts.
|
||||
The default Outline got an overhaul and now shows all members of the script (not just methods) with unique icons for faster navigation.
|
||||
Enhanced keyboard navigation for Scripts and Outline.
|
||||
Fast quick search functionality.
|
||||
Quick function Override functionality.
|
||||
|
||||
Features:
|
||||
- Scripts are now shown as Tabs inside a TabContainer
|
||||
- The Outline got an overhaul and shows more than just the methods of the script. It includes the following members with a unique icon:
|
||||
- Classes (Red Square)
|
||||
- Constants (Red Circle)
|
||||
- Signals (Yellow)
|
||||
- Export variables (Orange)
|
||||
- (Static) Variables (Red)
|
||||
- Engine callback functions (Blue)
|
||||
- (Static) Functions (Green)
|
||||
- Setter functions (Green circle, with an arrow inside it pointing to the right)
|
||||
- Getter functions (Green circle, with an arrow inside it pointing to the left)
|
||||
- All the different members of the script can be hidden or made visible again by the outline filter. This allows fine control what should be visible (e.g. only signals, (Godot) functions, ...)
|
||||
- A `Right Click` enables only the clicked filter, another `Right Click` will enable all filters again
|
||||
- The Outline can be opened in a Popup with a defined shortcut for quick navigation between methods
|
||||
- You can navigate through the Outline with the `Arrow` keys (or `Page up/Page down`) and scroll to the selected item by pressing `ENTER`
|
||||
- Scripts can be opened in a Popup with a defined shortcut or when clicking the three dots on the top right of the TabContainer for quick navigation between scripts
|
||||
- The currently edited script is automatically selected in the Filesystem Dock
|
||||
- Files can be quickly searched by the Quick Search Popup with `Shift`+`Shift`
|
||||
- You can find and quickly override any method from your super classes with `Alt`+`Ins`
|
||||
- The plugin is written with performance in mind, everything is very fast and works without any lags or stuttering
|
||||
|
||||
Customization:
|
||||
- The Outline is on the right side (can be changed to be on the left side again)
|
||||
- The Outline can be toggled via `File -> Toggle Scripts Panel`. This will hide or show it
|
||||
- The order in the Outline can be changed
|
||||
- There is also the possibility to hide private members, this is all members starting with a `_`
|
||||
- The Script ItemList is not visible by default, but can be made visible again
|
||||
|
||||
All settings can be changed in the `Editor Settings` under `Plugin` -> `Script Ide`:
|
||||
- `Open Outline Popup` = Shortcut to control how the Outline Popup should be triggered (default=CTRL+O or META+O)
|
||||
- `Outline Position Right` = Flag to control whether the outline should be on the right or on the left side of the script editor (default=true)
|
||||
- `Outline Order` = List which specifies the order of all different types in the Outline
|
||||
- `Hide Private Members` = Flag to control whether private members (methods/variables/constants starting with '_') should be hidden in the Outline or not (default=false)
|
||||
- `Open Script Popup` = Shortcut to control how the Script Popup should be triggered (default=CTRL+U or META+U)
|
||||
- `Script List Visible` = Flag to control whether the script list should still be visible or not (above the outline) (default=false)
|
||||
- `Script Tabs Visible` = Flag to control whether the script tabs should be visible or not (default=true)
|
||||
- `Script Tabs Position Top` = Flag to control whether the script tabs should be on the top or on the bottom (default=true)
|
||||
- `Auto Navigate in FileSystem Dock` = Flag to control whether the script that is currently edited should be automatically selected in the Filesystem Dock (default=true)
|
||||
- `Open Quick Search Popup` = Shortcut to control how the Quick Search Popup should be triggered (default=Shift+Shift, double press behavior is hardcoded for now)
|
||||
- `Open Override Popup` = Shortcut to control how the Override Popup should be triggered (default=Alt+Ins)
|
||||
- `Cycle Tab forward` = Shortcut to cycle the script tabs in the forward direction (only works in the 'Script' Editor Tab) (default=CTRL+TAB)
|
||||
- `Cycle Tab backward` = Shortcut to cycle the script tabs in the backward direction (only works in the 'Script' Editor Tab) (default=CTRL+SHIFT+TAB)
|
||||
- All outline visibility settings
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
1
rinkplanner/addons/script-ide/icon/class.svg
Normal file
|
|
@ -0,0 +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>
|
||||
|
After Width: | Height: | Size: 127 B |
38
rinkplanner/addons/script-ide/icon/class.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://csik7oxvt7tq3"
|
||||
path="res://.godot/imported/class.svg-e6f2816a1f06041fb421c2af52817a4a.ctex"
|
||||
metadata={
|
||||
"has_editor_variant": true,
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/script-ide/icon/class.svg"
|
||||
dest_files=["res://.godot/imported/class.svg-e6f2816a1f06041fb421c2af52817a4a.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
svg/scale=1.0
|
||||
editor/scale_with_editor_scale=true
|
||||
editor/convert_colors_with_editor_theme=false
|
||||
1
rinkplanner/addons/script-ide/icon/constant.svg
Normal file
|
|
@ -0,0 +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>
|
||||
|
After Width: | Height: | Size: 268 B |
38
rinkplanner/addons/script-ide/icon/constant.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cawc456ja8vf5"
|
||||
path="res://.godot/imported/constant.svg-f6e857276565573c7540f3c32801842a.ctex"
|
||||
metadata={
|
||||
"has_editor_variant": true,
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/script-ide/icon/constant.svg"
|
||||
dest_files=["res://.godot/imported/constant.svg-f6e857276565573c7540f3c32801842a.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
svg/scale=1.0
|
||||
editor/scale_with_editor_scale=true
|
||||
editor/convert_colors_with_editor_theme=false
|
||||
1
rinkplanner/addons/script-ide/icon/engine_func.svg
Normal file
|
|
@ -0,0 +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>
|
||||
|
After Width: | Height: | Size: 183 B |
38
rinkplanner/addons/script-ide/icon/engine_func.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cupb0polhqrwj"
|
||||
path="res://.godot/imported/engine_func.svg-91320e42f9cc7bdd7576002e82fa6ab8.ctex"
|
||||
metadata={
|
||||
"has_editor_variant": true,
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/script-ide/icon/engine_func.svg"
|
||||
dest_files=["res://.godot/imported/engine_func.svg-91320e42f9cc7bdd7576002e82fa6ab8.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
svg/scale=1.0
|
||||
editor/scale_with_editor_scale=true
|
||||
editor/convert_colors_with_editor_theme=false
|
||||
1
rinkplanner/addons/script-ide/icon/export.svg
Normal file
|
|
@ -0,0 +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>
|
||||
|
After Width: | Height: | Size: 183 B |
38
rinkplanner/addons/script-ide/icon/export.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bvu2gnj8fv2kw"
|
||||
path="res://.godot/imported/export.svg-d2d18132258a7a219ec1af1f0316c91c.ctex"
|
||||
metadata={
|
||||
"has_editor_variant": true,
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/script-ide/icon/export.svg"
|
||||
dest_files=["res://.godot/imported/export.svg-d2d18132258a7a219ec1af1f0316c91c.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
svg/scale=1.0
|
||||
editor/scale_with_editor_scale=true
|
||||
editor/convert_colors_with_editor_theme=false
|
||||
1
rinkplanner/addons/script-ide/icon/func.svg
Normal file
|
|
@ -0,0 +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>
|
||||
|
After Width: | Height: | Size: 183 B |
38
rinkplanner/addons/script-ide/icon/func.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://rni04cl446ov"
|
||||
path="res://.godot/imported/func.svg-139842caa5b4b7e4839711b6c756d0f7.ctex"
|
||||
metadata={
|
||||
"has_editor_variant": true,
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/script-ide/icon/func.svg"
|
||||
dest_files=["res://.godot/imported/func.svg-139842caa5b4b7e4839711b6c756d0f7.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
svg/scale=1.0
|
||||
editor/scale_with_editor_scale=true
|
||||
editor/convert_colors_with_editor_theme=false
|
||||
1
rinkplanner/addons/script-ide/icon/func_get.svg
Normal file
|
|
@ -0,0 +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>
|
||||
|
After Width: | Height: | Size: 435 B |
38
rinkplanner/addons/script-ide/icon/func_get.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c2a3aowyhxj5x"
|
||||
path="res://.godot/imported/func_get.svg-093f0ce02889d1f102ff9cc3e7f72654.ctex"
|
||||
metadata={
|
||||
"has_editor_variant": true,
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/script-ide/icon/func_get.svg"
|
||||
dest_files=["res://.godot/imported/func_get.svg-093f0ce02889d1f102ff9cc3e7f72654.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
svg/scale=1.0
|
||||
editor/scale_with_editor_scale=true
|
||||
editor/convert_colors_with_editor_theme=false
|
||||
1
rinkplanner/addons/script-ide/icon/func_set.svg
Normal file
|
|
@ -0,0 +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>
|
||||
|
After Width: | Height: | Size: 451 B |
38
rinkplanner/addons/script-ide/icon/func_set.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bvjkrti6kj6o2"
|
||||
path="res://.godot/imported/func_set.svg-c31168d90866ff1707ad9834754bd2c9.ctex"
|
||||
metadata={
|
||||
"has_editor_variant": true,
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/script-ide/icon/func_set.svg"
|
||||
dest_files=["res://.godot/imported/func_set.svg-c31168d90866ff1707ad9834754bd2c9.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
svg/scale=1.0
|
||||
editor/scale_with_editor_scale=true
|
||||
editor/convert_colors_with_editor_theme=false
|
||||
1
rinkplanner/addons/script-ide/icon/property.svg
Normal file
|
|
@ -0,0 +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>
|
||||
|
After Width: | Height: | Size: 183 B |
38
rinkplanner/addons/script-ide/icon/property.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dbwlgnwv5e8kl"
|
||||
path="res://.godot/imported/property.svg-9e228499f30651faad74aa99e4499d7e.ctex"
|
||||
metadata={
|
||||
"has_editor_variant": true,
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/script-ide/icon/property.svg"
|
||||
dest_files=["res://.godot/imported/property.svg-9e228499f30651faad74aa99e4499d7e.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
svg/scale=1.0
|
||||
editor/scale_with_editor_scale=true
|
||||
editor/convert_colors_with_editor_theme=false
|
||||
1
rinkplanner/addons/script-ide/icon/signal.svg
Normal file
|
|
@ -0,0 +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>
|
||||
|
After Width: | Height: | Size: 183 B |
38
rinkplanner/addons/script-ide/icon/signal.svg.import
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bnccvnaloqnte"
|
||||
path="res://.godot/imported/signal.svg-97182e1498b520a1ff5b8b9017c3b480.ctex"
|
||||
metadata={
|
||||
"has_editor_variant": true,
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/script-ide/icon/signal.svg"
|
||||
dest_files=["res://.godot/imported/signal.svg-97182e1498b520a1ff5b8b9017c3b480.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
svg/scale=1.0
|
||||
editor/scale_with_editor_scale=true
|
||||
editor/convert_colors_with_editor_theme=false
|
||||
336
rinkplanner/addons/script-ide/override/override_panel.gd
Normal file
|
|
@ -0,0 +1,336 @@
|
|||
@tool
|
||||
extends PopupPanel
|
||||
|
||||
const FUNC_META: StringName = &"func"
|
||||
|
||||
@onready var filter_txt: LineEdit = %FilterTxt
|
||||
@onready var class_func_tree: Tree = %ClassFuncTree
|
||||
@onready var ok_btn: Button = %OkBtn
|
||||
@onready var cancel_btn: Button = %CancelBtn
|
||||
|
||||
var plugin: EditorPlugin
|
||||
|
||||
var selections: Dictionary[String, bool] = {} # Used as Set.
|
||||
var class_to_functions: Dictionary[StringName, PackedStringArray]
|
||||
|
||||
func _ready() -> void:
|
||||
filter_txt.text_changed.connect(update_tree_filter.unbind(1))
|
||||
|
||||
class_func_tree.multi_selected.connect(func(item: TreeItem, col: int, selected: bool): save_selection(selected, item))
|
||||
class_func_tree.item_activated.connect(generate_functions)
|
||||
|
||||
cancel_btn.pressed.connect(hide)
|
||||
ok_btn.pressed.connect(generate_functions)
|
||||
|
||||
about_to_popup.connect(on_show)
|
||||
|
||||
if (plugin != null):
|
||||
filter_txt.gui_input.connect(navigate_on_tree)
|
||||
|
||||
func navigate_on_tree(event: InputEvent):
|
||||
if (event.is_action_pressed(&"ui_down", true)):
|
||||
var selected: TreeItem = get_selected_tree_item()
|
||||
if (selected == null):
|
||||
return
|
||||
var item: TreeItem = selected.get_next_in_tree()
|
||||
if (item == null):
|
||||
return
|
||||
|
||||
focus_tree_item(item)
|
||||
elif (event.is_action_pressed(&"ui_up", true)):
|
||||
var selected: TreeItem = get_selected_tree_item()
|
||||
if (selected == null):
|
||||
return
|
||||
var item: TreeItem = selected.get_prev_in_tree()
|
||||
if (item == null):
|
||||
return
|
||||
|
||||
focus_tree_item(item)
|
||||
elif (event.is_action_pressed(&"ui_page_down", true)):
|
||||
var selected: TreeItem = get_selected_tree_item()
|
||||
if (selected == null):
|
||||
return
|
||||
|
||||
var item: TreeItem = selected.get_next_in_tree()
|
||||
if (item == null):
|
||||
return
|
||||
|
||||
for index: int in 4:
|
||||
var next: TreeItem = item.get_next_in_tree()
|
||||
if (next == null):
|
||||
break
|
||||
item = next
|
||||
|
||||
focus_tree_item(item)
|
||||
elif (event.is_action_pressed(&"ui_page_up", true)):
|
||||
var selected: TreeItem = get_selected_tree_item()
|
||||
if (selected == null):
|
||||
return
|
||||
|
||||
var item: TreeItem = selected.get_prev_in_tree()
|
||||
if (item == null):
|
||||
return
|
||||
|
||||
for index: int in 4:
|
||||
var prev: TreeItem = item.get_prev_in_tree()
|
||||
if (prev == null):
|
||||
break
|
||||
item = prev
|
||||
|
||||
focus_tree_item(item)
|
||||
elif (event.is_action_pressed(&"ui_select", true)):
|
||||
var selected: TreeItem = get_selected_tree_item()
|
||||
if (selected == null):
|
||||
return
|
||||
|
||||
if (!selected.is_selectable(0)):
|
||||
selected.collapsed = !selected.collapsed
|
||||
class_func_tree.accept_event()
|
||||
return
|
||||
|
||||
if (selected.is_selected(0)):
|
||||
selected.deselect(0)
|
||||
save_selection(false, selected)
|
||||
else:
|
||||
selected.select(0)
|
||||
save_selection(true, selected)
|
||||
|
||||
class_func_tree.accept_event()
|
||||
elif (event.is_action_pressed(&"ui_text_submit", true)):
|
||||
if (selections.size() == 0):
|
||||
return
|
||||
|
||||
generate_functions()
|
||||
class_func_tree.accept_event()
|
||||
|
||||
func get_selected_tree_item() -> TreeItem:
|
||||
var selected: TreeItem = class_func_tree.get_selected()
|
||||
if (selected == null):
|
||||
selected = class_func_tree.get_root()
|
||||
return selected
|
||||
|
||||
func focus_tree_item(item: TreeItem):
|
||||
var was_selected: bool = item.is_selected(0)
|
||||
item.select(0)
|
||||
item.deselect(0)
|
||||
if (was_selected):
|
||||
item.select(0)
|
||||
|
||||
class_func_tree.ensure_cursor_is_visible()
|
||||
class_func_tree.accept_event()
|
||||
|
||||
func update_tree_filter():
|
||||
update_tree()
|
||||
|
||||
func save_selection(selected: bool, item: TreeItem):
|
||||
if (selected):
|
||||
selections[item.get_text(0)] = true
|
||||
else:
|
||||
selections.erase(item.get_text(0))
|
||||
|
||||
ok_btn.disabled = selections.size() == 0
|
||||
|
||||
func on_show():
|
||||
class_func_tree.clear()
|
||||
selections.clear()
|
||||
ok_btn.disabled = true
|
||||
filter_txt.text = &""
|
||||
|
||||
var script: Script = EditorInterface.get_script_editor().get_current_script()
|
||||
class_to_functions = collect_all_class_functions(script) # [StringName, PackedStringArray]
|
||||
if (class_to_functions.is_empty()):
|
||||
return
|
||||
|
||||
update_tree()
|
||||
filter_txt.grab_focus()
|
||||
|
||||
func update_tree():
|
||||
class_func_tree.clear()
|
||||
|
||||
var text: String = filter_txt.text
|
||||
|
||||
var root: TreeItem = class_func_tree.create_item()
|
||||
for class_name_str: StringName in class_to_functions.keys():
|
||||
var class_item: TreeItem = root.create_child(0)
|
||||
class_item.set_selectable(0, false)
|
||||
class_item.set_text(0, class_name_str)
|
||||
|
||||
for function: String in class_to_functions.get(class_name_str):
|
||||
var is_preselected: bool = selections.has(function)
|
||||
if (is_preselected || text.is_empty() || text.is_subsequence_ofn(function)):
|
||||
var func_item: TreeItem = class_item.create_child()
|
||||
func_item.set_text(0, function)
|
||||
if (plugin.keywords.has(function.get_slice("(", 0))):
|
||||
func_item.set_icon(0, plugin.engine_func_icon)
|
||||
else:
|
||||
func_item.set_icon(0, plugin.func_icon)
|
||||
|
||||
if (is_preselected):
|
||||
func_item.select(0)
|
||||
|
||||
func collect_all_class_functions(script: Script) -> Dictionary[StringName, PackedStringArray]:
|
||||
var existing_funcs: Dictionary[String, bool] = {} # Used as Set.
|
||||
for func_str: String in plugin.outline_cache.engine_funcs:
|
||||
existing_funcs[func_str] = true
|
||||
for func_str: String in plugin.outline_cache.funcs:
|
||||
existing_funcs[func_str] = true
|
||||
|
||||
var class_to_functions: Dictionary[StringName, PackedStringArray] = collect_super_class_functions(script.get_base_script(), existing_funcs)
|
||||
var native_class_to_functions: Dictionary[StringName, PackedStringArray] = collect_native_class_functions(script.get_instance_base_type(), existing_funcs)
|
||||
|
||||
return native_class_to_functions.merged(class_to_functions)
|
||||
|
||||
func collect_super_class_functions(base_script: Script, existing_funcs: Dictionary[String, bool]) -> Dictionary[StringName, PackedStringArray]:
|
||||
var super_classes: Array[Script] = []
|
||||
while (base_script != null):
|
||||
super_classes.insert(0, base_script)
|
||||
|
||||
base_script = base_script.get_base_script()
|
||||
|
||||
var class_to_functions: Dictionary[StringName, PackedStringArray] = {}
|
||||
for super_class: Script in super_classes:
|
||||
var functions: PackedStringArray = collect_script_functions(super_class, existing_funcs)
|
||||
if (functions.is_empty()):
|
||||
continue
|
||||
|
||||
class_to_functions[super_class.get_global_name()] = functions
|
||||
|
||||
return class_to_functions
|
||||
|
||||
func collect_native_class_functions(native_class: StringName, existing_funcs: Dictionary[String, bool]) -> Dictionary[StringName, PackedStringArray]:
|
||||
var super_native_classes: Array[StringName] = []
|
||||
while (native_class != &""):
|
||||
super_native_classes.insert(0, native_class)
|
||||
|
||||
native_class = ClassDB.get_parent_class(native_class)
|
||||
|
||||
var class_to_functions: Dictionary[StringName, PackedStringArray] = {}
|
||||
for super_native_class: StringName in super_native_classes:
|
||||
var functions: PackedStringArray = collect_class_functions(super_native_class, existing_funcs)
|
||||
if (functions.is_empty()):
|
||||
continue
|
||||
|
||||
class_to_functions[super_native_class] = functions
|
||||
|
||||
return class_to_functions
|
||||
|
||||
func collect_class_functions(native_class: StringName, existing_funcs: Dictionary[String, bool]):
|
||||
var functions: PackedStringArray = []
|
||||
|
||||
for method: Dictionary in ClassDB.class_get_method_list(native_class, true):
|
||||
if (method[&"flags"] & METHOD_FLAG_VIRTUAL <= 0):
|
||||
continue
|
||||
|
||||
var func_name: String = method[&"name"]
|
||||
if (existing_funcs.has(func_name)):
|
||||
continue
|
||||
|
||||
func_name = create_function_signature(method)
|
||||
functions.append(func_name)
|
||||
|
||||
return functions
|
||||
|
||||
func collect_script_functions(super_class: Script, existing_funcs: Dictionary[String, bool]) -> PackedStringArray:
|
||||
var functions: PackedStringArray = []
|
||||
|
||||
for method: Dictionary in super_class.get_script_method_list():
|
||||
var func_name: String = method[&"name"]
|
||||
if (existing_funcs.has(func_name)):
|
||||
continue
|
||||
|
||||
existing_funcs[func_name] = true
|
||||
|
||||
func_name = create_function_signature(method)
|
||||
functions.append(func_name)
|
||||
|
||||
return functions
|
||||
|
||||
func create_function_signature(method: Dictionary) -> String:
|
||||
var func_name: String = method[&"name"]
|
||||
func_name += "("
|
||||
|
||||
var args: Array = method[&"args"]
|
||||
var default_args: Array = method[&"default_args"]
|
||||
|
||||
var arg_index: int = 0
|
||||
var default_arg_index: int = 0
|
||||
var arg_str: String = ""
|
||||
for arg: Dictionary in args:
|
||||
if (arg_str != ""):
|
||||
arg_str += ", "
|
||||
|
||||
arg_str += arg[&"name"]
|
||||
var type: String = get_type(arg)
|
||||
if (type != ""):
|
||||
arg_str += ": " + type
|
||||
|
||||
if (args.size() - arg_index <= default_args.size()):
|
||||
var default_arg: Variant = default_args[default_arg_index]
|
||||
if (!default_arg):
|
||||
var type_hint: int = arg[&"type"]
|
||||
if (is_dictionary(type_hint)):
|
||||
default_arg = {}
|
||||
elif (is_array(type_hint)):
|
||||
default_arg = []
|
||||
|
||||
arg_str += " = " + var_to_str(default_arg)
|
||||
|
||||
default_arg_index += 1
|
||||
|
||||
arg_index += 1
|
||||
|
||||
func_name += arg_str + ")"
|
||||
|
||||
var return_str: String = get_type(method[&"return"])
|
||||
if (return_str == ""):
|
||||
return_str = "void"
|
||||
|
||||
func_name += " -> " + return_str
|
||||
|
||||
return func_name
|
||||
|
||||
func generate_functions():
|
||||
if (selections.size() == 0):
|
||||
return
|
||||
|
||||
var generated_text: String = ""
|
||||
for function: String in selections.keys():
|
||||
generated_text += "\nfunc " + function + ":\n\tpass\n"
|
||||
|
||||
var editor: CodeEdit = EditorInterface.get_script_editor().get_current_editor().get_base_editor()
|
||||
editor.text += generated_text
|
||||
|
||||
plugin.goto_line(editor.get_line_count() - 1)
|
||||
|
||||
hide()
|
||||
|
||||
func get_type(dict: Dictionary) -> String:
|
||||
var type: String = dict[&"class_name"]
|
||||
if (type != &""):
|
||||
return type
|
||||
|
||||
var type_hint: int = dict[&"type"]
|
||||
if (type_hint == 0):
|
||||
return &""
|
||||
|
||||
type = type_string(type_hint)
|
||||
|
||||
if (is_dictionary(type_hint)):
|
||||
var generic: String = dict[&"hint_string"]
|
||||
if (generic != &""):
|
||||
var generic_parts: PackedStringArray = generic.split(";")
|
||||
if (generic_parts.size() == 2):
|
||||
return type + "[" + generic_parts[0] + ", " + generic_parts[1] + "]"
|
||||
|
||||
if (is_array(type_hint)):
|
||||
var generic: String = dict[&"hint_string"]
|
||||
if (generic != &""):
|
||||
return type + "[" + generic + "]"
|
||||
|
||||
return type
|
||||
|
||||
func is_dictionary(type_hint: int):
|
||||
return type_hint == 27
|
||||
|
||||
func is_array(type_hint: int):
|
||||
return type_hint == 28
|
||||
|
|
@ -0,0 +1 @@
|
|||
uid://do6qffpdrmklf
|
||||
59
rinkplanner/addons/script-ide/override/override_panel.tscn
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://bb1n82qxlqanh"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://jwla7ovpvhdw" path="res://addons/script-ide/override/override_panel.gd" id="1_c3eqr"]
|
||||
|
||||
[node name="OverridePanel" type="PopupPanel"]
|
||||
size = Vector2i(551, 194)
|
||||
visible = true
|
||||
script = ExtResource("1_c3eqr")
|
||||
|
||||
[node name="PanelContainer" type="PanelContainer" parent="."]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 9.0
|
||||
offset_top = 9.0
|
||||
offset_right = -9.0
|
||||
offset_bottom = -9.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="PanelContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer/MarginContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 4
|
||||
|
||||
[node name="Label" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Select Functions to Override/Implement"
|
||||
|
||||
[node name="FilterTxt" type="LineEdit" parent="PanelContainer/MarginContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
placeholder_text = "Filter Methods"
|
||||
|
||||
[node name="ClassFuncTree" type="Tree" parent="PanelContainer/MarginContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
hide_root = true
|
||||
select_mode = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="PanelContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 4
|
||||
alignment = 2
|
||||
|
||||
[node name="OkBtn" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(64, 0)
|
||||
layout_mode = 2
|
||||
text = "Ok"
|
||||
|
||||
[node name="CancelBtn" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(64, 0)
|
||||
layout_mode = 2
|
||||
text = "Cancel"
|
||||
7
rinkplanner/addons/script-ide/plugin.cfg
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[plugin]
|
||||
|
||||
name="Script-IDE"
|
||||
description="Transforms the Script UI into an IDE like UI. Tabs are used for navigating between scripts. The default Outline got an overhaul and now shows all members of the script (not just methods) with unique icons for faster navigation. Enhanced keyboard navigation for Scripts and Outline. Fast quick search functionality."
|
||||
author="Marius Hanl"
|
||||
version="1.9.1"
|
||||
script="plugin.gd"
|
||||
1339
rinkplanner/addons/script-ide/plugin.gd
Normal file
1
rinkplanner/addons/script-ide/plugin.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://drt8qu6j2wwyl
|
||||
234
rinkplanner/addons/script-ide/quickopen/quick_open_panel.gd
Normal file
|
|
@ -0,0 +1,234 @@
|
|||
## Quick open panel to quickly access all resources that are in the project.
|
||||
## Initially shows all resources, but can be changed to more specific resources
|
||||
## or filtered down with text.
|
||||
@tool
|
||||
extends PopupPanel
|
||||
|
||||
const ADDONS: StringName = &"res://addons"
|
||||
const SEPARATOR: StringName = &" - "
|
||||
const STRUCTURE_START: StringName = &"("
|
||||
const STRUCTURE_END: StringName = &")"
|
||||
|
||||
#region UI
|
||||
@onready var filter_bar: TabBar = %FilterBar
|
||||
@onready var search_option_btn: OptionButton = %SearchOptionBtn
|
||||
@onready var filter_txt: LineEdit = %FilterTxt
|
||||
@onready var files_list: ItemList = %FilesList
|
||||
#endregion
|
||||
|
||||
var plugin: EditorPlugin
|
||||
|
||||
var scenes: Array[FileData]
|
||||
var scripts: Array[FileData]
|
||||
var resources: Array[FileData]
|
||||
var others: Array[FileData]
|
||||
|
||||
# For performance and memory considerations, we add all files into one reusable array.
|
||||
var all_files: Array[FileData]
|
||||
|
||||
var is_rebuild_cache: bool = true
|
||||
|
||||
#region Plugin and Shortcut processing
|
||||
func _ready() -> void:
|
||||
files_list.item_selected.connect(open_file)
|
||||
search_option_btn.item_selected.connect(rebuild_cache_and_ui.unbind(1))
|
||||
filter_txt.text_changed.connect(fill_files_list.unbind(1))
|
||||
|
||||
filter_bar.tab_changed.connect(change_fill_files_list.unbind(1))
|
||||
|
||||
about_to_popup.connect(on_show)
|
||||
|
||||
var file_system: EditorFileSystem = EditorInterface.get_resource_filesystem()
|
||||
file_system.filesystem_changed.connect(schedule_rebuild)
|
||||
|
||||
if (plugin != null):
|
||||
filter_txt.gui_input.connect(plugin.navigate_on_list.bind(files_list, open_file))
|
||||
|
||||
func _shortcut_input(event: InputEvent) -> void:
|
||||
if (!event.is_pressed() || event.is_echo()):
|
||||
return
|
||||
|
||||
if (plugin.tab_cycle_forward_shc.matches_event(event)):
|
||||
get_viewport().set_input_as_handled()
|
||||
|
||||
var new_tab: int = filter_bar.current_tab + 1
|
||||
if (new_tab == filter_bar.get_tab_count()):
|
||||
new_tab = 0
|
||||
filter_bar.current_tab = new_tab
|
||||
elif (plugin.tab_cycle_backward_shc.matches_event(event)):
|
||||
get_viewport().set_input_as_handled()
|
||||
|
||||
var new_tab: int = filter_bar.current_tab - 1
|
||||
if (new_tab == -1):
|
||||
new_tab = filter_bar.get_tab_count() - 1
|
||||
filter_bar.current_tab = new_tab
|
||||
#endregion
|
||||
|
||||
func open_file(index: int):
|
||||
hide()
|
||||
|
||||
var file: String = files_list.get_item_metadata(index)
|
||||
|
||||
if (ResourceLoader.exists(file)):
|
||||
var res: Resource = load(file)
|
||||
EditorInterface.edit_resource(res)
|
||||
|
||||
if (res is PackedScene):
|
||||
EditorInterface.open_scene_from_path(file)
|
||||
|
||||
func schedule_rebuild():
|
||||
is_rebuild_cache = true
|
||||
|
||||
func on_show():
|
||||
if (search_option_btn.selected != 0):
|
||||
search_option_btn.selected = 0
|
||||
|
||||
is_rebuild_cache = true
|
||||
|
||||
var rebuild_ui: bool = false
|
||||
var all_tab_not_pressed: bool = filter_bar.current_tab != 0
|
||||
rebuild_ui = is_rebuild_cache || all_tab_not_pressed
|
||||
|
||||
if (is_rebuild_cache):
|
||||
rebuild_cache()
|
||||
|
||||
if (rebuild_ui):
|
||||
if (all_tab_not_pressed):
|
||||
# Triggers the ui update.
|
||||
filter_bar.current_tab = 0
|
||||
else:
|
||||
fill_files_list()
|
||||
|
||||
filter_txt.select_all()
|
||||
focus_and_select_first()
|
||||
|
||||
func rebuild_cache():
|
||||
is_rebuild_cache = false
|
||||
|
||||
all_files.clear()
|
||||
scenes.clear()
|
||||
scripts.clear()
|
||||
resources.clear()
|
||||
others.clear()
|
||||
|
||||
build_file_cache()
|
||||
|
||||
func rebuild_cache_and_ui():
|
||||
rebuild_cache()
|
||||
fill_files_list()
|
||||
|
||||
focus_and_select_first()
|
||||
|
||||
func focus_and_select_first():
|
||||
filter_txt.grab_focus()
|
||||
|
||||
if (files_list.item_count > 0):
|
||||
files_list.select(0)
|
||||
|
||||
func build_file_cache():
|
||||
var dir: EditorFileSystemDirectory = EditorInterface.get_resource_filesystem().get_filesystem()
|
||||
build_file_cache_dir(dir)
|
||||
|
||||
all_files.append_array(scenes)
|
||||
all_files.append_array(scripts)
|
||||
all_files.append_array(resources)
|
||||
all_files.append_array(others)
|
||||
|
||||
func build_file_cache_dir(dir: EditorFileSystemDirectory):
|
||||
for index: int in dir.get_subdir_count():
|
||||
build_file_cache_dir(dir.get_subdir(index))
|
||||
|
||||
for index: int in dir.get_file_count():
|
||||
var file: String = dir.get_file_path(index)
|
||||
if (search_option_btn.get_selected_id() == 0 && file.begins_with(ADDONS)):
|
||||
continue
|
||||
|
||||
var last_delimiter: int = file.rfind(&"/")
|
||||
|
||||
var file_name: String = file.substr(last_delimiter + 1)
|
||||
var file_structure: String = &""
|
||||
if (file_name.length() + 6 != file.length()):
|
||||
file_structure = SEPARATOR + STRUCTURE_START + file.substr(6, last_delimiter - 6) + STRUCTURE_END
|
||||
|
||||
var file_data: FileData = FileData.new()
|
||||
file_data.file = file
|
||||
file_data.file_name = file_name
|
||||
file_data.file_name_structure = file_name + file_structure
|
||||
file_data.file_type = dir.get_file_type(index)
|
||||
|
||||
# Needed, as otherwise we have no icon.
|
||||
if (file_data.file_type == &"Resource"):
|
||||
file_data.file_type = &"Object"
|
||||
|
||||
match (file.get_extension()):
|
||||
&"tscn": scenes.append(file_data)
|
||||
&"gd": scripts.append(file_data)
|
||||
&"tres": resources.append(file_data)
|
||||
&"gdshader": resources.append(file_data)
|
||||
_: others.append(file_data)
|
||||
|
||||
func change_fill_files_list():
|
||||
fill_files_list()
|
||||
|
||||
focus_and_select_first()
|
||||
|
||||
func fill_files_list():
|
||||
files_list.clear()
|
||||
|
||||
if (filter_bar.current_tab == 0):
|
||||
fill_files_list_with(all_files)
|
||||
elif (filter_bar.current_tab == 1):
|
||||
fill_files_list_with(scenes)
|
||||
elif (filter_bar.current_tab == 2):
|
||||
fill_files_list_with(scripts)
|
||||
elif (filter_bar.current_tab == 3):
|
||||
fill_files_list_with(resources)
|
||||
elif (filter_bar.current_tab == 4):
|
||||
fill_files_list_with(others)
|
||||
|
||||
func fill_files_list_with(files: Array[FileData]):
|
||||
var filter_text: String = filter_txt.text
|
||||
files.sort_custom(sort_by_filter)
|
||||
|
||||
for file_data: FileData in files:
|
||||
var file: String = file_data.file
|
||||
if (filter_text.is_empty() || filter_text.is_subsequence_ofn(file)):
|
||||
var icon: Texture2D = EditorInterface.get_base_control().get_theme_icon(file_data.file_type, &"EditorIcons")
|
||||
|
||||
files_list.add_item(file_data.file_name_structure, icon)
|
||||
files_list.set_item_metadata(files_list.item_count - 1, file)
|
||||
files_list.set_item_tooltip(files_list.item_count - 1, file)
|
||||
|
||||
func sort_by_filter(file_data1: FileData, file_data2: FileData) -> bool:
|
||||
var filter_text: String = filter_txt.text
|
||||
var name1: String = file_data1.file_name
|
||||
var name2: String = file_data2.file_name
|
||||
|
||||
for index: int in filter_text.length():
|
||||
var a_oob: bool = index >= name1.length()
|
||||
var b_oob: bool = index >= name2.length()
|
||||
|
||||
if (a_oob):
|
||||
if (b_oob):
|
||||
return false;
|
||||
return true
|
||||
if (b_oob):
|
||||
return false
|
||||
|
||||
var char: String = filter_text[index]
|
||||
var a_match: bool = char == name1[index]
|
||||
var b_match: bool = char == name2[index]
|
||||
|
||||
if (a_match && !b_match):
|
||||
return true
|
||||
|
||||
if (b_match && !a_match):
|
||||
return false
|
||||
|
||||
return name1 < name2
|
||||
|
||||
class FileData:
|
||||
var file: String
|
||||
var file_name: String
|
||||
var file_name_structure: String
|
||||
var file_type: StringName
|
||||
|
|
@ -0,0 +1 @@
|
|||
uid://dccgu1qac6eox
|
||||
148
rinkplanner/addons/script-ide/quickopen/quick_open_panel.tscn
Normal file
|
|
@ -0,0 +1,148 @@
|
|||
[gd_scene load_steps=14 format=3 uid="uid://d2pttchmj3n7q"]
|
||||
|
||||
[ext_resource type="Script" path="res://addons/script-ide/quickopen/quick_open_panel.gd" id="1_3tl1s"]
|
||||
|
||||
[sub_resource type="Image" id="Image_dfysb"]
|
||||
data = {
|
||||
"data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 16, 225, 225, 225, 134, 224, 224, 224, 209, 224, 224, 224, 245, 224, 224, 224, 245, 224, 224, 224, 208, 224, 224, 224, 131, 236, 236, 236, 13, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 73, 224, 224, 224, 228, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 225, 225, 225, 225, 68, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 73, 224, 224, 224, 255, 224, 224, 224, 255, 225, 225, 225, 183, 224, 224, 224, 198, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 198, 224, 224, 224, 189, 224, 224, 224, 255, 224, 224, 224, 254, 224, 224, 224, 65, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 16, 224, 224, 224, 228, 224, 224, 224, 255, 224, 224, 224, 120, 226, 226, 226, 60, 224, 224, 224, 255, 225, 225, 225, 109, 225, 225, 225, 110, 224, 224, 224, 255, 226, 226, 226, 60, 224, 224, 224, 128, 224, 224, 224, 255, 225, 225, 225, 223, 234, 234, 234, 12, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 134, 224, 224, 224, 255, 225, 225, 225, 183, 255, 255, 255, 0, 224, 224, 224, 153, 224, 224, 224, 243, 255, 255, 255, 4, 255, 255, 255, 4, 224, 224, 224, 244, 225, 225, 225, 151, 255, 255, 255, 1, 225, 225, 225, 191, 224, 224, 224, 255, 225, 225, 225, 127, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 209, 224, 224, 224, 255, 224, 224, 224, 72, 255, 255, 255, 0, 224, 224, 224, 216, 224, 224, 224, 198, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 199, 224, 224, 224, 214, 255, 255, 255, 0, 226, 226, 226, 78, 224, 224, 224, 255, 224, 224, 224, 206, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 243, 224, 224, 224, 255, 226, 226, 226, 78, 255, 255, 255, 0, 224, 224, 224, 244, 225, 225, 225, 151, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 152, 224, 224, 224, 242, 255, 255, 255, 1, 227, 227, 227, 81, 224, 224, 224, 255, 224, 224, 224, 241, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 245, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 229, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 147, 225, 225, 225, 149, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 230, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 244, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 208, 224, 224, 224, 255, 224, 224, 224, 147, 224, 224, 224, 161, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 235, 224, 224, 224, 235, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 160, 225, 225, 225, 150, 224, 224, 224, 255, 224, 224, 224, 205, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 131, 224, 224, 224, 255, 224, 224, 224, 189, 255, 255, 255, 1, 224, 224, 224, 152, 224, 224, 224, 243, 255, 255, 255, 4, 255, 255, 255, 4, 224, 224, 224, 244, 225, 225, 225, 151, 255, 255, 255, 2, 225, 225, 225, 199, 224, 224, 224, 255, 225, 225, 225, 127, 255, 255, 255, 0, 255, 255, 255, 0, 236, 236, 236, 13, 224, 224, 224, 225, 224, 224, 224, 255, 224, 224, 224, 128, 225, 225, 225, 67, 224, 224, 224, 255, 225, 225, 225, 110, 226, 226, 226, 111, 224, 224, 224, 255, 225, 225, 225, 67, 225, 225, 225, 135, 224, 224, 224, 255, 224, 224, 224, 221, 234, 234, 234, 12, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 68, 224, 224, 224, 254, 224, 224, 224, 255, 224, 224, 224, 194, 224, 224, 224, 220, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 219, 224, 224, 224, 196, 224, 224, 224, 255, 224, 224, 224, 253, 227, 227, 227, 62, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 66, 224, 224, 224, 225, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 220, 226, 226, 226, 61, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 237, 237, 237, 14, 224, 224, 224, 130, 224, 224, 224, 206, 224, 224, 224, 244, 224, 224, 224, 244, 224, 224, 224, 205, 225, 225, 225, 124, 230, 230, 230, 10, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0),
|
||||
"format": "RGBA8",
|
||||
"height": 16,
|
||||
"mipmaps": false,
|
||||
"width": 16
|
||||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="ImageTexture_p6ab8"]
|
||||
image = SubResource("Image_dfysb")
|
||||
|
||||
[sub_resource type="Image" id="Image_blafy"]
|
||||
data = {
|
||||
"data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 25, 226, 226, 226, 70, 229, 229, 229, 39, 255, 255, 255, 0, 226, 226, 226, 103, 224, 224, 224, 219, 224, 224, 224, 156, 255, 255, 255, 0, 255, 255, 255, 0, 226, 226, 226, 26, 225, 225, 225, 25, 255, 255, 255, 0, 224, 224, 224, 74, 224, 224, 224, 177, 226, 226, 226, 111, 255, 255, 255, 0, 224, 224, 224, 98, 224, 224, 224, 255, 225, 225, 225, 182, 255, 255, 255, 0, 228, 228, 228, 46, 224, 224, 224, 255, 224, 224, 224, 197, 255, 255, 255, 0, 224, 224, 224, 57, 224, 224, 224, 255, 224, 224, 224, 187, 255, 255, 255, 0, 225, 225, 225, 42, 224, 224, 224, 255, 224, 224, 224, 232, 255, 255, 255, 6, 224, 224, 224, 8, 225, 225, 225, 182, 224, 224, 224, 153, 255, 255, 255, 7, 255, 255, 255, 0, 228, 228, 228, 37, 255, 255, 255, 7, 255, 255, 255, 0, 229, 229, 229, 19, 224, 224, 224, 237, 224, 224, 224, 198, 225, 225, 225, 17, 255, 255, 255, 0, 227, 227, 227, 71, 224, 224, 224, 48, 255, 255, 255, 4, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 228, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 73, 224, 224, 224, 226, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0),
|
||||
"format": "RGBA8",
|
||||
"height": 16,
|
||||
"mipmaps": false,
|
||||
"width": 16
|
||||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="ImageTexture_bbwjp"]
|
||||
image = SubResource("Image_blafy")
|
||||
|
||||
[sub_resource type="Image" id="Image_4wc14"]
|
||||
data = {
|
||||
"data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 33, 224, 224, 224, 255, 224, 224, 224, 255, 231, 231, 231, 31, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 226, 226, 226, 95, 224, 224, 224, 57, 255, 255, 255, 0, 224, 224, 224, 99, 224, 224, 224, 255, 224, 224, 224, 255, 225, 225, 225, 93, 255, 255, 255, 0, 224, 224, 224, 57, 224, 224, 224, 90, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 93, 224, 224, 224, 255, 224, 224, 224, 254, 224, 224, 224, 165, 224, 224, 224, 217, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 214, 225, 225, 225, 167, 224, 224, 224, 254, 224, 224, 224, 254, 224, 224, 224, 88, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 228, 228, 228, 55, 224, 224, 224, 254, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 253, 225, 225, 225, 51, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 166, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 160, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 33, 224, 224, 224, 99, 224, 224, 224, 217, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 186, 224, 224, 224, 32, 224, 224, 224, 33, 224, 224, 224, 187, 224, 224, 224, 255, 224, 224, 224, 255, 225, 225, 225, 215, 224, 224, 224, 98, 224, 224, 224, 32, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 33, 255, 255, 255, 0, 255, 255, 255, 0, 227, 227, 227, 36, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 33, 255, 255, 255, 0, 255, 255, 255, 0, 229, 229, 229, 38, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 231, 231, 231, 31, 226, 226, 226, 95, 224, 224, 224, 216, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 187, 225, 225, 225, 34, 226, 226, 226, 35, 224, 224, 224, 192, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 213, 226, 226, 226, 95, 231, 231, 231, 31, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 166, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 163, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 57, 224, 224, 224, 254, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 254, 227, 227, 227, 54, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 90, 224, 224, 224, 254, 224, 224, 224, 253, 224, 224, 224, 161, 225, 225, 225, 215, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 213, 224, 224, 224, 162, 224, 224, 224, 253, 224, 224, 224, 253, 226, 226, 226, 86, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 88, 225, 225, 225, 51, 255, 255, 255, 0, 224, 224, 224, 98, 224, 224, 224, 255, 224, 224, 224, 255, 226, 226, 226, 95, 255, 255, 255, 0, 227, 227, 227, 53, 226, 226, 226, 86, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 32, 224, 224, 224, 255, 224, 224, 224, 255, 231, 231, 231, 31, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0),
|
||||
"format": "RGBA8",
|
||||
"height": 16,
|
||||
"mipmaps": false,
|
||||
"width": 16
|
||||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="ImageTexture_ghict"]
|
||||
image = SubResource("Image_4wc14")
|
||||
|
||||
[sub_resource type="Image" id="Image_7rebo"]
|
||||
data = {
|
||||
"data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 4, 224, 224, 224, 99, 224, 224, 224, 213, 224, 224, 224, 212, 224, 224, 224, 97, 255, 255, 255, 4, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 4, 224, 224, 224, 99, 224, 224, 224, 222, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 220, 224, 224, 224, 97, 255, 255, 255, 4, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 4, 224, 224, 224, 99, 224, 224, 224, 222, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 213, 226, 226, 226, 87, 224, 224, 224, 88, 224, 224, 224, 214, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 220, 224, 224, 224, 97, 255, 255, 255, 4, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 199, 224, 224, 224, 255, 224, 224, 224, 255, 225, 225, 225, 215, 224, 224, 224, 89, 255, 255, 255, 2, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 2, 224, 224, 224, 90, 224, 224, 224, 216, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 194, 255, 255, 255, 0, 255, 255, 255, 4, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 221, 224, 224, 224, 99, 255, 255, 255, 4, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 5, 225, 225, 225, 101, 225, 225, 225, 223, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 3, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 213, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 222, 225, 225, 225, 100, 225, 225, 225, 100, 225, 225, 225, 223, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 3, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 2, 226, 226, 226, 87, 224, 224, 224, 213, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 2, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 2, 226, 226, 226, 87, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 1, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 225, 225, 225, 100, 255, 255, 255, 5, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 196, 224, 224, 224, 255, 224, 224, 224, 255, 225, 225, 225, 223, 225, 225, 225, 101, 255, 255, 255, 5, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 193, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 3, 225, 225, 225, 93, 224, 224, 224, 218, 224, 224, 224, 255, 224, 224, 224, 255, 225, 225, 225, 223, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 216, 225, 225, 225, 91, 255, 255, 255, 2, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 3, 225, 225, 225, 93, 224, 224, 224, 218, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 216, 225, 225, 225, 91, 255, 255, 255, 2, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 3, 225, 225, 225, 93, 224, 224, 224, 208, 225, 225, 225, 207, 225, 225, 225, 91, 255, 255, 255, 2, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0),
|
||||
"format": "RGBA8",
|
||||
"height": 16,
|
||||
"mipmaps": false,
|
||||
"width": 16
|
||||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="ImageTexture_grjtr"]
|
||||
image = SubResource("Image_7rebo")
|
||||
|
||||
[sub_resource type="Image" id="Image_e7nb8"]
|
||||
data = {
|
||||
"data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 184, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 181, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 226, 226, 226, 77, 225, 225, 225, 76, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 8, 224, 224, 224, 222, 224, 224, 224, 221, 224, 224, 224, 8, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 120, 224, 224, 224, 32, 224, 224, 224, 128, 224, 224, 224, 255, 224, 224, 224, 255, 225, 225, 225, 127, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 226, 226, 226, 35, 224, 224, 224, 248, 224, 224, 224, 195, 224, 224, 224, 247, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 247, 225, 225, 225, 34, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 224, 224, 224, 180, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 178, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 181, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 180, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0),
|
||||
"format": "RGBA8",
|
||||
"height": 16,
|
||||
"mipmaps": false,
|
||||
"width": 16
|
||||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="ImageTexture_xupch"]
|
||||
image = SubResource("Image_e7nb8")
|
||||
|
||||
[sub_resource type="Image" id="Image_gfvg1"]
|
||||
data = {
|
||||
"data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 68, 224, 224, 224, 184, 224, 224, 224, 240, 224, 224, 224, 232, 224, 224, 224, 186, 227, 227, 227, 62, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 129, 224, 224, 224, 254, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 122, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 68, 224, 224, 224, 254, 224, 224, 224, 254, 224, 224, 224, 123, 224, 224, 224, 32, 224, 224, 224, 33, 225, 225, 225, 125, 224, 224, 224, 254, 224, 224, 224, 254, 226, 226, 226, 69, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 184, 224, 224, 224, 255, 224, 224, 224, 123, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 125, 224, 224, 224, 255, 225, 225, 225, 174, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 240, 224, 224, 224, 255, 231, 231, 231, 31, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 226, 226, 226, 35, 224, 224, 224, 255, 224, 224, 224, 233, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 232, 224, 224, 224, 255, 224, 224, 224, 32, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 228, 228, 228, 37, 224, 224, 224, 255, 224, 224, 224, 228, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 186, 224, 224, 224, 255, 224, 224, 224, 123, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 130, 224, 224, 224, 255, 224, 224, 224, 173, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 227, 227, 227, 62, 224, 224, 224, 255, 224, 224, 224, 254, 225, 225, 225, 126, 225, 225, 225, 34, 227, 227, 227, 36, 224, 224, 224, 131, 224, 224, 224, 255, 224, 224, 224, 255, 226, 226, 226, 77, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 122, 224, 224, 224, 254, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 210, 231, 231, 231, 21, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 226, 226, 226, 69, 225, 225, 225, 174, 224, 224, 224, 233, 224, 224, 224, 228, 224, 224, 224, 173, 226, 226, 226, 77, 224, 224, 224, 210, 224, 224, 224, 255, 224, 224, 224, 210, 231, 231, 231, 21, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 231, 231, 231, 21, 224, 224, 224, 210, 224, 224, 224, 255, 224, 224, 224, 210, 231, 231, 231, 21, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 231, 231, 231, 21, 224, 224, 224, 210, 224, 224, 224, 255, 224, 224, 224, 210, 231, 231, 231, 21, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 231, 231, 231, 21, 224, 224, 224, 210, 224, 224, 224, 227, 225, 225, 225, 34, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 231, 231, 231, 21, 225, 225, 225, 34, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0),
|
||||
"format": "RGBA8",
|
||||
"height": 16,
|
||||
"mipmaps": false,
|
||||
"width": 16
|
||||
}
|
||||
|
||||
[sub_resource type="ImageTexture" id="ImageTexture_w6vkw"]
|
||||
image = SubResource("Image_gfvg1")
|
||||
|
||||
[node name="QuickOpenPanel" type="PopupPanel"]
|
||||
size = Vector2i(624, 100)
|
||||
visible = true
|
||||
script = ExtResource("1_3tl1s")
|
||||
|
||||
[node name="PanelContainer" type="PanelContainer" parent="."]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 4.0
|
||||
offset_top = 4.0
|
||||
offset_right = -4.0
|
||||
offset_bottom = -4.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="PanelContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_left = 5
|
||||
theme_override_constants/margin_top = 5
|
||||
theme_override_constants/margin_right = 5
|
||||
theme_override_constants/margin_bottom = 5
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer/MarginContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 5
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="PanelContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 4
|
||||
|
||||
[node name="FilterBar" type="TabBar" parent="PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
current_tab = 0
|
||||
clip_tabs = false
|
||||
scrolling_enabled = false
|
||||
tab_count = 5
|
||||
tab_0/title = "All"
|
||||
tab_0/icon = SubResource("ImageTexture_p6ab8")
|
||||
tab_1/title = "Scene"
|
||||
tab_1/icon = SubResource("ImageTexture_bbwjp")
|
||||
tab_2/title = "GDscript"
|
||||
tab_2/icon = SubResource("ImageTexture_ghict")
|
||||
tab_3/title = "Resource"
|
||||
tab_3/icon = SubResource("ImageTexture_grjtr")
|
||||
tab_4/title = "Other"
|
||||
tab_4/icon = SubResource("ImageTexture_xupch")
|
||||
|
||||
[node name="SearchOptionBtn" type="OptionButton" parent="PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
selected = 0
|
||||
item_count = 2
|
||||
popup/item_0/text = "Project"
|
||||
popup/item_0/id = 0
|
||||
popup/item_1/text = "Project+Addons"
|
||||
popup/item_1/id = 1
|
||||
|
||||
[node name="FilterTxt" type="LineEdit" parent="PanelContainer/MarginContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
placeholder_text = "Filter files"
|
||||
right_icon = SubResource("ImageTexture_w6vkw")
|
||||
|
||||
[node name="FilesList" type="ItemList" parent="PanelContainer/MarginContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
allow_reselect = true
|
||||
BIN
rinkplanner/assets/images/checkboard.png
Normal file
|
After Width: | Height: | Size: 449 B |
35
rinkplanner/assets/images/checkboard.png.import
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://d2f4ue6f2152o"
|
||||
path.s3tc="res://.godot/imported/checkboard.png-60f6db393233dd01fdd8b7cd558c6460.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/images/checkboard.png"
|
||||
dest_files=["res://.godot/imported/checkboard.png-60f6db393233dd01fdd8b7cd558c6460.s3tc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
183433
rinkplanner/assets/models/Flieger.obj
Normal file
25
rinkplanner/assets/models/Flieger.obj.import
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
[remap]
|
||||
|
||||
importer="wavefront_obj"
|
||||
importer_version=1
|
||||
type="Mesh"
|
||||
uid="uid://lqtpafx25sxi"
|
||||
path="res://.godot/imported/Flieger.obj-baa6b2a54fb828f6bb21ff3e0800d640.mesh"
|
||||
|
||||
[deps]
|
||||
|
||||
files=["res://.godot/imported/Flieger.obj-baa6b2a54fb828f6bb21ff3e0800d640.mesh"]
|
||||
|
||||
source_file="res://assets/models/Flieger.obj"
|
||||
dest_files=["res://.godot/imported/Flieger.obj-baa6b2a54fb828f6bb21ff3e0800d640.mesh", "res://.godot/imported/Flieger.obj-baa6b2a54fb828f6bb21ff3e0800d640.mesh"]
|
||||
|
||||
[params]
|
||||
|
||||
generate_tangents=true
|
||||
generate_lods=true
|
||||
generate_shadow_mesh=true
|
||||
generate_lightmap_uv2=false
|
||||
generate_lightmap_uv2_texel_size=0.2
|
||||
scale_mesh=Vector3(1, 1, 1)
|
||||
offset_mesh=Vector3(0, 0, 0)
|
||||
force_disable_mesh_compression=false
|
||||
1
rinkplanner/icon.svg
Normal file
|
|
@ -0,0 +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>
|
||||
|
After Width: | Height: | Size: 994 B |
37
rinkplanner/icon.svg.import
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c360p00qqrprd"
|
||||
path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://icon.svg"
|
||||
dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
svg/scale=1.0
|
||||
editor/scale_with_editor_scale=false
|
||||
editor/convert_colors_with_editor_theme=false
|
||||
33
rinkplanner/project.godot
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
; Engine configuration file.
|
||||
; It's best edited using the editor UI and not directly,
|
||||
; since the parameters that go here are not all obvious.
|
||||
;
|
||||
; Format:
|
||||
; [section] ; section goes between []
|
||||
; param=value ; assign values to parameters
|
||||
|
||||
config_version=5
|
||||
|
||||
[application]
|
||||
|
||||
config/name="Rinkplanner"
|
||||
run/main_scene="uid://cd1ulyybmuft5"
|
||||
config/features=PackedStringArray("4.5", "Forward Plus")
|
||||
config/icon="res://icon.svg"
|
||||
|
||||
[editor_plugins]
|
||||
|
||||
enabled=PackedStringArray("res://addons/script-ide/plugin.cfg")
|
||||
|
||||
[input]
|
||||
|
||||
zoom_in={
|
||||
"deadzone": 0.2,
|
||||
"events": [Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"button_mask":0,"position":Vector2(0, 0),"global_position":Vector2(0, 0),"factor":1.0,"button_index":4,"canceled":false,"pressed":false,"double_click":false,"script":null)
|
||||
]
|
||||
}
|
||||
zoom_out={
|
||||
"deadzone": 0.2,
|
||||
"events": [Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"button_mask":0,"position":Vector2(0, 0),"global_position":Vector2(0, 0),"factor":1.0,"button_index":5,"canceled":false,"pressed":false,"double_click":false,"script":null)
|
||||
]
|
||||
}
|
||||
96
rinkplanner/rinkplanner_definition_agent_guidelines.md
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
# Project Context: Rinkplanner
|
||||
|
||||
## 1. Project Overview
|
||||
**Rinkplanner** is a 3D desktop application designed for visual planning, choreography, and timing of figure skating routines (specifically tailored to ISU Adult regulations and rules). It allows choreographers and skaters to map out elements on a 3D ice rink, sync them to music audio tracks, and visualize realistic movement paths and technical elements.
|
||||
|
||||
---
|
||||
|
||||
## 2. Technical Stack & Architecture
|
||||
|
||||
- **Game Engine:** Godot 4.x (GDScript)
|
||||
- **3D Creation & Asset Pipeline:** Blender 4.x
|
||||
- **Rigging Solution:** Auto-Rig Pro (Blender)
|
||||
- **Animation Workflow:** Video Rotoscoping / Motion Capture based on action-cam footage (e.g., DJI Osmo Action) recorded from rinkside/tribune setups.
|
||||
- **Audio:** Multi-track / timed audio synchronization in Godot for element triggers.
|
||||
- **Rules Engine:** ISU Adult Figure Skating Scale of Values (SOV) and element verification rules.
|
||||
|
||||
---
|
||||
|
||||
## 3. Core Features & Data Structures
|
||||
|
||||
### A. Ice Rink & Spatial System
|
||||
- **Dimensions:** Standard ISU Rink ($60\text{m} \times 30\text{m}$).
|
||||
- **Coordinate System:**
|
||||
- Origin $(0,0,0)$ at the exact center of the ice rink surface.
|
||||
- $X$-axis: Long axis ($-30\text{m}$ to $+30\text{m}$).
|
||||
- $Z$-axis: Short axis ($-15\text{m}$ to $+15\text{m}$).
|
||||
- $Y$-axis: Vertical height (Up = positive).
|
||||
|
||||
### B. Choreography Pathing System
|
||||
- Path definition using 3D Bézier curves (`Path3D` / `PathFollow3D` in Godot).
|
||||
- **Control points:** Position $(X, Y, Z)$, Speed/In/Out tangents, Edge Type (Inside/Outside, Forward/Backward).
|
||||
- **Time Markers:** Syncing node positions on the curve with exact timestamps in seconds on the audio track.
|
||||
|
||||
### C. ISU Adult Rules & Elements Data Structure
|
||||
- Elements must follow ISU category codes (e.g., `1A` for Single Axel, `2S` for Double Salchow, `FCSp` for Flying Camel Spin, `ChSq1` for Choreo Step Sequence).
|
||||
- Each element node contains:
|
||||
- `element_id`: String (e.g., `"1A"`)
|
||||
- `start_time`: Float (seconds)
|
||||
- `duration`: Float (seconds)
|
||||
- `execution_path_id`: NodePath
|
||||
- `isu_category`: Enum (`JUMP`, `SPIN`, `STEP_SEQUENCE`, `TURNS`, `CONNECTIVE_SKATING`)
|
||||
- `adult_level_validity`: Boolean check based on current ISU Adult Handbook rules.
|
||||
|
||||
---
|
||||
|
||||
## 4. MCP Agent Guidelines & Tool Integration
|
||||
|
||||
### A. General Coding Standards
|
||||
1. **GDScript Standards:**
|
||||
- Always use strong typing in GDScript (`var speed: float = 2.5`, `func calculate_element_time(start: float) -> void:`).
|
||||
- Use signal-driven architecture for UI updates (`signal element_added(element_data)`).
|
||||
- Keep logic separated: UI Layer -> Choreography Manager -> Physics/Path Interpolator.
|
||||
|
||||
2. **File & Folder Structure:**
|
||||
```text
|
||||
res://
|
||||
├── assets/
|
||||
│ ├── models/ # .blend / .gltf files (Rink, Skater, Rig)
|
||||
│ ├── animations/ # .res / .gltf imported animation clips
|
||||
│ └── audio/ # Music tracks
|
||||
├── core/
|
||||
│ ├── pathing/ # Curve interpolation & speed calculation
|
||||
│ ├── isu/ # ISU Rules, SOV, and element data models
|
||||
│ └── sync/ # Audio-to-time synchro engine
|
||||
└── scenes/
|
||||
├── rink/ # 3D Rink Environment
|
||||
├── skater/ # Skater model, ARP Rig, AnimationTree
|
||||
└── ui/ # Timeline, element inspector, control panels
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### B. Godot MCP Guidelines
|
||||
When issuing commands via the **Godot MCP Server**:
|
||||
- **Scene Manipulation:** Ensure node references use unique names (`%NodeName`) or absolute type-checked paths.
|
||||
- **AnimationTree:** The skater uses an `AnimationTree` with a `StateNode` or `BlendTree` to transition smoothly between stroking, crossovers, turns, and jumps.
|
||||
- **Real-time Path Update:** When updating Bézier handles dynamically, call `curve.clear_points()` and rebuild or use `set_point_position()` / `set_point_in()` / `set_point_out()` cleanly without breaking time-stamps.
|
||||
|
||||
---
|
||||
|
||||
### C. Blender MCP Guidelines (For Future Integration)
|
||||
When connected to a **Blender MCP Server**:
|
||||
- **Rigging Standard:** Target rig must match the **Auto-Rig Pro (ARP)** bone structure (specifically the Humanoid preset).
|
||||
- **Export Presets:**
|
||||
- Format: `GLTF / GLB`
|
||||
- Mesh: Apply Modifiers, Include Armature.
|
||||
- Animation: Export NLA Tracks / Actions cleanly named with prefix (e.g., `anim_jump_1A`, `anim_gliding_RFO`).
|
||||
- Axis Orientations: $+Y$ Forward, $+Z$ Up (Godot compatible).
|
||||
- **Rotoscope Setup:** Camera parameters must match action camera settings (e.g., 1080p/4K at 60fps, fixed focal length, wide-angle distortion correction turned on prior to tracking).
|
||||
|
||||
---
|
||||
|
||||
## 5. Development Principles for AI Assistance
|
||||
1. **Prioritize Performance:** Keep track interpolation optimized. Do not execute heavy curve recalculations inside `_process()` unless the curve is actively being edited by the user.
|
||||
2. **Modular ISU Rules:** Keep the ISU rules set isolated in JSON or dedicated Resource files (`.tres`) so they can be updated annually without breaking application code.
|
||||
3. **Respect User Voice & Design:** Maintain a clean, desktop-focused tool approach with dark-mode aesthetic, highly responsive timeline controls, and crisp 3D visualization.
|
||||
36
rinkplanner/scenes/rink/avatar.gd
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
extends CharacterBody3D
|
||||
|
||||
@export var target_node: Node3D
|
||||
@export var speed: float = 5.0
|
||||
@export var waypoints: Array[Node3D] = []
|
||||
var wp_index=0
|
||||
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
#var target = get_node(target_node)
|
||||
var target = waypoints[wp_index]
|
||||
|
||||
if target:
|
||||
#var direction = (target.global_transform.origin - global_transform.origin)
|
||||
var direction = (target.global_transform.origin - global_transform.origin)
|
||||
direction = Vector3(direction.x, 0.0, direction.z)
|
||||
|
||||
var target_dir = (target.global_transform.origin - global_transform.origin).normalized()
|
||||
var current_dir = global_transform.basis.z.normalized()
|
||||
var lerp_dir = current_dir.lerp(target_dir, delta * speed)
|
||||
if direction.length() > 1.0:
|
||||
#look_at(target.global_transform.origin + lerp_dir, Vector3.UP)
|
||||
var look_t:Vector3 = target.global_transform.origin + lerp_dir
|
||||
look_t=Vector3(target.global_position.x, 0.0, target.global_position.z)
|
||||
look_at(look_t)
|
||||
direction = direction.normalized()
|
||||
print(global_transform.origin)
|
||||
direction = Vector3(direction.x, 0.0, direction.z)
|
||||
velocity = direction * speed
|
||||
move_and_slide()
|
||||
else:
|
||||
#velocity = Vector3.ZERO
|
||||
wp_index+=1
|
||||
if wp_index==len(waypoints):
|
||||
wp_index=0
|
||||
target = waypoints[wp_index]
|
||||
1
rinkplanner/scenes/rink/avatar.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://deq4wi2r1o4e4
|
||||
26
rinkplanner/scenes/rink/camera_3d.gd
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
extends Camera3D
|
||||
@onready var skater = $"../CharacterBody3D"
|
||||
|
||||
var zoom:Vector2
|
||||
var zoom_factor=1.0
|
||||
var min_zoom=0.1
|
||||
var max_zoom=10.0
|
||||
|
||||
func _process(delta):
|
||||
var target_position = skater.global_transform.origin
|
||||
look_at(target_position, Vector3.UP)
|
||||
|
||||
func _unhandled_input(event):
|
||||
if event.is_action_pressed("zoom_in"):
|
||||
#print("Zoom In")
|
||||
%Camera3D.fov -= zoom_factor
|
||||
|
||||
|
||||
elif event.is_action_pressed("zoom_out"):
|
||||
|
||||
%Camera3D.fov += zoom_factor
|
||||
#print("Zoom Out")
|
||||
#zoom = Vector2(
|
||||
# clamp(zoom.x + zoom_factor, min_zoom, max_zoom),
|
||||
# clamp(zoom.y + zoom_factor, min_zoom, max_zoom)
|
||||
#)
|
||||
1
rinkplanner/scenes/rink/camera_3d.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://cbufos2esa5yu
|
||||
144
rinkplanner/scenes/rink/rink.tscn
Normal file
|
|
@ -0,0 +1,144 @@
|
|||
[gd_scene load_steps=13 format=3 uid="uid://cd1ulyybmuft5"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://d2f4ue6f2152o" path="res://assets/images/checkboard.png" id="1_pkikb"]
|
||||
[ext_resource type="Script" uid="uid://cbufos2esa5yu" path="res://scenes/rink/camera_3d.gd" id="2_3oeyx"]
|
||||
[ext_resource type="Script" uid="uid://deq4wi2r1o4e4" path="res://scenes/rink/avatar.gd" id="3_dfx6t"]
|
||||
[ext_resource type="ArrayMesh" uid="uid://lqtpafx25sxi" path="res://assets/models/Flieger.obj" id="4_qwf8l"]
|
||||
|
||||
[sub_resource type="Curve3D" id="Curve3D_jm5wf"]
|
||||
closed = true
|
||||
_data = {
|
||||
"points": PackedVector3Array(0, 0, 0, 0, 0, 0, 0, 0, 6.50187, 0, 0, 0, 0, 0, 0, 15.918, 0, -4.194, 0, 0, 0, 0, 0, 0, 0, 0, 0),
|
||||
"tilts": PackedFloat32Array(0, 0, 0)
|
||||
}
|
||||
point_count = 3
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_28a8u"]
|
||||
albedo_color = Color(0, 0.280322, 0.280373, 1)
|
||||
|
||||
[sub_resource type="CanvasTexture" id="CanvasTexture_ytmxt"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_xqoi8"]
|
||||
albedo_color = Color(0, 0.267906, 0.269092, 1)
|
||||
albedo_texture = SubResource("CanvasTexture_ytmxt")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ytmxt"]
|
||||
albedo_texture = ExtResource("1_pkikb")
|
||||
albedo_texture_force_srgb = true
|
||||
uv1_triplanar = true
|
||||
|
||||
[sub_resource type="Environment" id="Environment_ysbyt"]
|
||||
background_mode = 1
|
||||
background_color = Color(0.101961, 0.101961, 0.101961, 1)
|
||||
background_energy_multiplier = 1.25
|
||||
ambient_light_color = Color(0.674815, 0.674815, 0.674815, 1)
|
||||
tonemap_mode = 2
|
||||
fog_enabled = true
|
||||
fog_light_color = Color(0.214139, 0.235722, 0.269651, 1)
|
||||
fog_density = 0.0
|
||||
fog_sky_affect = 0.5
|
||||
fog_height = -1.0
|
||||
fog_height_density = 0.8
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_2kbi8"]
|
||||
albedo_color = Color(0.627646, 0.000333257, 0.639032, 1)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_28a8u"]
|
||||
|
||||
[node name="world" type="Node3D"]
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer"]
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
[node name="NameLabel" type="Label" parent="CanvasLayer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Rinkplanner V0.1"
|
||||
|
||||
[node name="btnToeLoop" type="Button" parent="CanvasLayer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Toe Loop"
|
||||
|
||||
[node name="btnSalchow" type="Button" parent="CanvasLayer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Salchow"
|
||||
|
||||
[node name="btnFlip" type="Button" parent="CanvasLayer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Flip"
|
||||
|
||||
[node name="Path3D" type="Path3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6.78599, 2.17402, 4.31148)
|
||||
visible = false
|
||||
curve = SubResource("Curve3D_jm5wf")
|
||||
|
||||
[node name="PathFollow3D" type="PathFollow3D" parent="Path3D"]
|
||||
transform = Transform3D(0.5577211, 0, -0.83002007, 0, 0.999992, 0, 0.83002186, 0, 0.5577199, 0, 0, 6.50187)
|
||||
|
||||
[node name="CSGPolygon3D" type="CSGPolygon3D" parent="Path3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.56211, -3.94667, -15.3778)
|
||||
material_override = SubResource("StandardMaterial3D_28a8u")
|
||||
mode = 2
|
||||
path_node = NodePath("..")
|
||||
path_interval_type = 0
|
||||
path_interval = 1.0
|
||||
path_simplify_angle = 0.0
|
||||
path_rotation = 2
|
||||
path_rotation_accurate = false
|
||||
path_local = false
|
||||
path_continuous_u = true
|
||||
path_u_distance = 1.0
|
||||
path_joined = false
|
||||
material = SubResource("StandardMaterial3D_xqoi8")
|
||||
|
||||
[node name="rink_surface" type="CSGBox3D" parent="."]
|
||||
use_collision = true
|
||||
size = Vector3(60, 1, 30)
|
||||
material = SubResource("StandardMaterial3D_ytmxt")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(0.707107, 0.5, -0.5, 0, 0.707107, 0.707107, 0.707107, -0.5, 0.5, 0, 3.08694, 0)
|
||||
shadow_enabled = true
|
||||
directional_shadow_mode = 0
|
||||
directional_shadow_max_distance = 50.0
|
||||
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||
environment = SubResource("Environment_ysbyt")
|
||||
|
||||
[node name="Waypoints" type="Node3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.16534, 0)
|
||||
|
||||
[node name="Waypoint1" type="CSGBox3D" parent="Waypoints"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -20.826, 0, 8.65)
|
||||
material = SubResource("StandardMaterial3D_2kbi8")
|
||||
|
||||
[node name="Waypoint2" type="CSGBox3D" parent="Waypoints"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 23.432, 0, 8.075)
|
||||
|
||||
[node name="Waypoint3" type="CSGBox3D" parent="Waypoints"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 21.787, 0, -6.138)
|
||||
|
||||
[node name="Waypoint4" type="CSGBox3D" parent="Waypoints"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -16.985, 0, -9.146)
|
||||
|
||||
[node name="FliegerBase" type="Node3D" parent="."]
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 0.484031, 0.875051, 0, -0.875051, 0.484031, 0, 23.5809, 16.7921)
|
||||
script = ExtResource("2_3oeyx")
|
||||
|
||||
[node name="CharacterBody3D" type="CharacterBody3D" parent="." node_paths=PackedStringArray("waypoints")]
|
||||
script = ExtResource("3_dfx6t")
|
||||
waypoints = [NodePath("../Waypoints/Waypoint1"), NodePath("../Waypoints/Waypoint2"), NodePath("../Waypoints/Waypoint3"), NodePath("../Waypoints/Waypoint4")]
|
||||
|
||||
[node name="Flieger" type="MeshInstance3D" parent="CharacterBody3D"]
|
||||
transform = Transform3D(-0.999657, 0, -0.026177, 0, 1, 0, 0.026177, 0, -0.999657, 0, 0.470388, 0)
|
||||
mesh = ExtResource("4_qwf8l")
|
||||
skeleton = NodePath("../..")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="CharacterBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.45429, 0)
|
||||
shape = SubResource("BoxShape3D_28a8u")
|
||||
4
rinkplanner/scenes/title/logic.gd
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
extends Node
|
||||
|
||||
func quit_program():
|
||||
get_tree().quit()
|
||||
1
rinkplanner/scenes/title/logic.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://byqcjgteix27n
|
||||
47
rinkplanner/scenes/title/title.tscn
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://c4myh7psuj5hy"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://byqcjgteix27n" path="res://scenes/title/logic.gd" id="1_5vtrw"]
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Title" type="Label" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 34
|
||||
text = "Rinkplanner"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
alignment = 1
|
||||
|
||||
[node name="NewButton" type="Button" parent="VBoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Neue Kür"
|
||||
|
||||
[node name="LoadButton" type="Button" parent="VBoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Kür laden"
|
||||
|
||||
[node name="QuitButton" type="Button" parent="VBoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Beenden"
|
||||
|
||||
[node name="Logics" type="Node" parent="."]
|
||||
script = ExtResource("1_5vtrw")
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/VBoxContainer/QuitButton" to="Logics" method="quit_program"]
|
||||