统一缩进为制表符
@ -1,9 +1,2 @@
|
||||
# Editor configuration, see https://editorconfig.org
|
||||
root = true
|
||||
|
||||
[*.gd]
|
||||
charset = utf-8
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
@ -1,6 +1,7 @@
|
||||
var id: int;
|
||||
var isVisible: bool;
|
||||
|
||||
func _init(id,isVisible):
|
||||
|
||||
func _init(id, isVisible):
|
||||
self.id = id;
|
||||
self.isVisible = isVisible;
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
[plugin]
|
||||
|
||||
name="MagicaVoxel Importer with Extensions"
|
||||
description="Imports MagicaVoxel .vox files as meshes. Supports most node extensions, allowing multiple models and complex scene graphs."
|
||||
author="Violgamba"
|
||||
version="1.2"
|
||||
script="plugin.gd"
|
||||
name = "MagicaVoxel Importer with Extensions"
|
||||
description = "Imports MagicaVoxel .vox files as meshes. Supports most node extensions, allowing multiple models and complex scene graphs."
|
||||
author = "Violgamba"
|
||||
version = "1.2"
|
||||
script = "plugin.gd"
|
||||
|
||||
@ -1 +1,11 @@
|
||||
<svg height="16" width="16" xmlns="http://www.w3.org/2000/svg"><g fill="#e0e0e0" transform="matrix(0 -1 1 0 0 16)"><rect height="6" rx="1" stroke-width=".6" width="6" y="10"/><rect height="6" rx="1" stroke-width=".780723" width="6" x="5"/><rect height="6" rx="1" stroke-width=".780723" width="6" x="10" y="10"/><path d="m7 5h2v4h-2z" stroke-width=".768491"/><rect height="4" rx="1" ry="0" stroke-width=".768491" width="2" x="12" y="7"/><rect height="5" rx="1" stroke-width=".859" width="2" x="2" y="7"/><path d="m3 7h10v2h-10z" stroke-width="1.09113"/></g></svg>
|
||||
<svg height="16" width="16" xmlns="http://www.w3.org/2000/svg">
|
||||
<g fill="#e0e0e0" transform="matrix(0 -1 1 0 0 16)">
|
||||
<rect height="6" rx="1" stroke-width=".6" width="6" y="10"/>
|
||||
<rect height="6" rx="1" stroke-width=".780723" width="6" x="5"/>
|
||||
<rect height="6" rx="1" stroke-width=".780723" width="6" x="10" y="10"/>
|
||||
<path d="m7 5h2v4h-2z" stroke-width=".768491"/>
|
||||
<rect height="4" rx="1" ry="0" stroke-width=".768491" width="2" x="12" y="7"/>
|
||||
<rect height="5" rx="1" stroke-width=".859" width="2" x="2" y="7"/>
|
||||
<path d="m3 7h10v2h-10z" stroke-width="1.09113"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 562 B After Width: | Height: | Size: 636 B |
@ -1 +1,4 @@
|
||||
<svg height="10" viewBox="0 0 10 10" width="10" xmlns="http://www.w3.org/2000/svg"><path d="m10 4a5 5 0 0 1 -2.5000001 4.3301271 5 5 0 0 1 -5-.0000002 5 5 0 0 1 -2.4999999-4.3301269" fill="#fff" fill-rule="evenodd"/></svg>
|
||||
<svg height="10" viewBox="0 0 10 10" width="10" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="m10 4a5 5 0 0 1 -2.5000001 4.3301271 5 5 0 0 1 -5-.0000002 5 5 0 0 1 -2.4999999-4.3301269" fill="#fff"
|
||||
fill-rule="evenodd"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 222 B After Width: | Height: | Size: 238 B |
@ -1 +1,4 @@
|
||||
<svg height="10" viewBox="0 0 10 10" width="10" xmlns="http://www.w3.org/2000/svg"><path d="m5 0a5 5 0 0 0 -4.33012712 2.5000001 5 5 0 0 0 .0000002 5 5 5 0 0 0 4.33012692 2.4999999" fill="#fff" fill-rule="evenodd"/></svg>
|
||||
<svg height="10" viewBox="0 0 10 10" width="10" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="m5 0a5 5 0 0 0 -4.33012712 2.5000001 5 5 0 0 0 .0000002 5 5 5 0 0 0 4.33012692 2.4999999" fill="#fff"
|
||||
fill-rule="evenodd"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 221 B After Width: | Height: | Size: 237 B |
@ -1 +1,4 @@
|
||||
<svg height="10" viewBox="0 0 10 10" width="10" xmlns="http://www.w3.org/2000/svg"><path d="m4.5 10a5 5 0 0 0 4.3301271-2.5000002 5 5 0 0 0 -.0000002-4.9999999 5 5 0 0 0 -4.3301269-2.4999999" fill="#fff" fill-rule="evenodd"/></svg>
|
||||
<svg height="10" viewBox="0 0 10 10" width="10" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="m4.5 10a5 5 0 0 0 4.3301271-2.5000002 5 5 0 0 0 -.0000002-4.9999999 5 5 0 0 0 -4.3301269-2.4999999"
|
||||
fill="#fff" fill-rule="evenodd"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 231 B After Width: | Height: | Size: 247 B |
@ -1 +1,4 @@
|
||||
<svg height="10" viewBox="0 0 10 10" width="10" xmlns="http://www.w3.org/2000/svg"><path d="m10-6a5 5 0 0 1 -2.5000001 4.3301271 5 5 0 0 1 -5-.0000002 5 5 0 0 1 -2.4999999-4.3301269" fill="#fff" fill-rule="evenodd" transform="scale(1 -1)"/></svg>
|
||||
<svg height="10" viewBox="0 0 10 10" width="10" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="m10-6a5 5 0 0 1 -2.5000001 4.3301271 5 5 0 0 1 -5-.0000002 5 5 0 0 1 -2.4999999-4.3301269" fill="#fff"
|
||||
fill-rule="evenodd" transform="scale(1 -1)"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 246 B After Width: | Height: | Size: 262 B |
@ -1 +1,11 @@
|
||||
<svg height="16" width="16" xmlns="http://www.w3.org/2000/svg"><g fill="#e0e0e0"><rect height="6" rx="1" stroke-width=".6" width="6" y="10"/><rect height="6" rx="1" stroke-width=".780723" width="6" x="5"/><rect height="6" rx="1" stroke-width=".780723" width="6" x="10" y="10"/><path d="m7 5h2v4h-2z" stroke-width=".768491"/><rect height="4" rx="1" ry="0" stroke-width=".768491" width="2" x="12" y="7"/><rect height="5" rx="1" stroke-width=".859" width="2" x="2" y="7"/><path d="m3 7h10v2h-10z" stroke-width="1.09113"/></g></svg>
|
||||
<svg height="16" width="16" xmlns="http://www.w3.org/2000/svg">
|
||||
<g fill="#e0e0e0">
|
||||
<rect height="6" rx="1" stroke-width=".6" width="6" y="10"/>
|
||||
<rect height="6" rx="1" stroke-width=".780723" width="6" x="5"/>
|
||||
<rect height="6" rx="1" stroke-width=".780723" width="6" x="10" y="10"/>
|
||||
<path d="m7 5h2v4h-2z" stroke-width=".768491"/>
|
||||
<rect height="4" rx="1" ry="0" stroke-width=".768491" width="2" x="12" y="7"/>
|
||||
<rect height="5" rx="1" stroke-width=".859" width="2" x="2" y="7"/>
|
||||
<path d="m3 7h10v2h-10z" stroke-width="1.09113"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 528 B After Width: | Height: | Size: 602 B |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.5 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 2.0 KiB |
@ -1,7 +1,7 @@
|
||||
[plugin]
|
||||
|
||||
name="Beehave"
|
||||
description="🐝 Behavior Tree addon for Godot Engine"
|
||||
author="bitbrain"
|
||||
version="2.7.6"
|
||||
script="plugin.gd"
|
||||
name = "Beehave"
|
||||
description = "🐝 Behavior Tree addon for Godot Engine"
|
||||
author = "bitbrain"
|
||||
version = "2.7.6"
|
||||
script = "plugin.gd"
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
[plugin]
|
||||
|
||||
name="Aseprite Importers"
|
||||
description="A bundle of plug-ins for importing Aesprite files into different types of Godot resources"
|
||||
author="Nikolay Lebedev aka nklbdev"
|
||||
version="1.0.0"
|
||||
script="editor_plugin.gd"
|
||||
name = "Aseprite Importers"
|
||||
description = "A bundle of plug-ins for importing Aesprite files into different types of Godot resources"
|
||||
author = "Nikolay Lebedev aka nklbdev"
|
||||
version = "1.0.0"
|
||||
script = "editor_plugin.gd"
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
@tool
|
||||
extends Control
|
||||
|
||||
|
||||
func _ready():
|
||||
modulate = get_theme_color("accent_color", "Editor")
|
||||
|
||||
@ -1,36 +1,44 @@
|
||||
class_name ResourceTablesEditFormat
|
||||
extends RefCounted
|
||||
|
||||
var editor_view : Control
|
||||
var editor_view: Control
|
||||
|
||||
|
||||
## Override to define reading behaviour.
|
||||
func get_value(entry, key : String):
|
||||
func get_value(entry, key: String):
|
||||
pass
|
||||
|
||||
|
||||
## Override to define writing behaviour. This is NOT supposed to save - use `save_entries`.
|
||||
func set_value(entry, key : String, value, index : int):
|
||||
func set_value(entry, key: String, value, index: int):
|
||||
pass
|
||||
|
||||
|
||||
## Override to define how the data gets saved.
|
||||
func save_entries(all_entries : Array, indices : Array):
|
||||
func save_entries(all_entries: Array, indices: Array):
|
||||
pass
|
||||
|
||||
|
||||
## Override to allow editing rows from the Inspector.
|
||||
func create_resource(entry) -> Resource:
|
||||
return Resource.new()
|
||||
|
||||
|
||||
## Override to define duplication behaviour. `name_input` should be a suffix if multiple entries, and full name if one.
|
||||
func duplicate_rows(rows : Array, name_input : String):
|
||||
func duplicate_rows(rows: Array, name_input: String):
|
||||
pass
|
||||
|
||||
|
||||
## Override to define removal behaviour.
|
||||
func delete_rows(rows : Array):
|
||||
func delete_rows(rows: Array):
|
||||
pass
|
||||
|
||||
|
||||
## Override with `return true` if `resource_path` is defined and the Rename butoon should show.
|
||||
func has_row_names():
|
||||
return false
|
||||
|
||||
|
||||
## Override to define import behaviour. Must return the `rows` value for the editor view.
|
||||
func import_from_path(folderpath : String, insert_func : Callable, sort_by : String, sort_reverse : bool = false) -> Array:
|
||||
func import_from_path(folderpath: String, insert_func: Callable, sort_by: String, sort_reverse: bool = false) -> Array:
|
||||
return []
|
||||
|
||||
@ -1,12 +1,11 @@
|
||||
@tool
|
||||
extends HBoxContainer
|
||||
|
||||
|
||||
func display(name : String, type : int):
|
||||
func display(name: String, type: int):
|
||||
$"LineEdit".text = name
|
||||
$"OptionButton".selected = type
|
||||
|
||||
|
||||
func connect_all_signals(to : Object, index : int, prefix : String = "_on_list_item_"):
|
||||
func connect_all_signals(to: Object, index: int, prefix: String = "_on_list_item_"):
|
||||
$"LineEdit".text_changed.connect(Callable(to, prefix + "name_changed").bind(index))
|
||||
$"OptionButton".item_selected.connect(Callable(to, prefix + "type_selected").bind(index))
|
||||
|
||||