File tree 7 files changed +47
-50
lines changed
addons/fancy_folder_icons
7 files changed +47
-50
lines changed Original file line number Diff line number Diff line change 1
1
@tool
2
2
extends EditorContextMenuPlugin
3
- # {
4
- # "type": "plugin",
5
- # "codeRepository": "https://github.com/CodeNameTwister",
6
- # "description": "Fancy Folder Icons addon for godot 4",
7
- # "license": "https://spdx.org/licenses/MIT",
8
- # "name": "Twister",
9
- # "version": "1.0.1.1"
10
- # }
3
+ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
4
+ # Fancy Folder Icons
5
+ #
6
+ # Folder Icons addon for addon godot 4
7
+ # https://github.com/CodeNameTwister/Fancy-Folder-Icons
8
+ # author: "Twister"
9
+ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
11
10
#region godotengine_repository_icons
12
11
const ICON : Texture = preload ("res://addons/fancy_folder_icons/ZoomMore.svg" )
13
12
#endregion
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ name="Fance Folder Icons"
4
4
description =" Allow customize icons for folders/files"
5
5
author =" Twister"
6
6
github =" https://github.com/CodeNameTwister/Fancy-Folder-Icons"
7
- version =" 1.0.1.1 "
7
+ version =" 1.0.1.2 "
8
8
script =" plugin.gd"
Original file line number Diff line number Diff line change 1
1
@tool
2
2
extends EditorPlugin
3
- # {
4
- # "type": "plugin",
5
- # "codeRepository": "https://github.com/CodeNameTwister",
6
- # "description": "Fancy Folder Icons addon for godot 4",
7
- # "license": "https://spdx.org/licenses/MIT",
8
- # "name": "Twister",
9
- # "version": "1.0.1.1"
10
- # }
3
+ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
4
+ # Fancy Folder Icons
5
+ #
6
+ # Folder Icons addon for addon godot 4
7
+ # https://github.com/CodeNameTwister/Fancy-Folder-Icons
8
+ # author: "Twister"
9
+ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
10
+
11
+ const TICK_REFRESH : int = 60 # Minor do update faster when icon changes by engine.
12
+
11
13
const DOT_USER : String = "user://editor/fancy_folder_icons.dat"
12
14
13
15
var _buffer : Dictionary = {}
@@ -193,7 +195,7 @@ func _n(n : Node) -> bool:
193
195
194
196
func _physics_process (_delta : float ) -> void :
195
197
_tdelta += 1
196
- if _tdelta > 60 :
198
+ if _tdelta > TICK_REFRESH :
197
199
_tdelta = 0
198
200
if ! is_instance_valid (_tchild ):
199
201
_get_dummy_tree_node ()
Original file line number Diff line number Diff line change 1
1
@tool
2
2
extends Button
3
- # {
4
- # "type": "plugin",
5
- # "codeRepository": "https://github.com/CodeNameTwister",
6
- # "description": "Fancy Folder Icons addon for godot 4",
7
- # "license": "https://spdx.org/licenses/MIT",
8
- # "name": "Twister",
9
- # "version": "1.0.1.1"
10
- # }
3
+ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
4
+ # Fancy Folder Icons
5
+ #
6
+ # Folder Icons addon for addon godot 4
7
+ # https://github.com/CodeNameTwister/Fancy-Folder-Icons
8
+ # author: "Twister"
9
+ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
11
10
var _nx : Color = Color .YELLOW
12
11
var _delta : float = 0.0
13
12
Original file line number Diff line number Diff line change 1
1
@tool
2
2
extends Window
3
- # {
4
- # "type": "plugin",
5
- # "codeRepository": "https://github.com/CodeNameTwister",
6
- # "description": "Fancy Folder Icons addon for godot 4",
7
- # "license": "https://spdx.org/licenses/MIT",
8
- # "name": "Twister",
9
- # "version": "1.0.1.1"
10
- # }
3
+ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
4
+ # Fancy Folder Icons
5
+ #
6
+ # Folder Icons addon for addon godot 4
7
+ # https://github.com/CodeNameTwister/Fancy-Folder-Icons
8
+ # author: "Twister"
9
+ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
11
10
@export var texture_container : Control
12
11
@export var line_edit : LineEdit
13
12
@export var file_dialog : FileDialog
Original file line number Diff line number Diff line change 1
1
@tool
2
2
extends TextureRect
3
- # {
4
- # "type": "plugin",
5
- # "codeRepository": "https://github.com/CodeNameTwister",
6
- # "description": "Fancy Folder Icons addon for godot 4",
7
- # "license": "https://spdx.org/licenses/MIT",
8
- # "name": "Twister",
9
- # "version": "1.0.1.1"
10
- # }
3
+ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
4
+ # Fancy Folder Icons
5
+ #
6
+ # Folder Icons addon for addon godot 4
7
+ # https://github.com/CodeNameTwister/Fancy-Folder-Icons
8
+ # author: "Twister"
9
+ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
11
10
12
11
var _nxt : Color = Color .DARK_GRAY
13
12
var _fps : float = 0.0
Original file line number Diff line number Diff line change 1
1
@tool
2
2
extends HBoxContainer
3
- # {
4
- # "type": "plugin",
5
- # "codeRepository": "https://github.com/CodeNameTwister",
6
- # "description": "Fancy Folder Icons addon for godot 4",
7
- # "license": "https://spdx.org/licenses/MIT",
8
- # "name": "Twister",
9
- # "version": "1.0.1.1"
10
- # }
3
+ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
4
+ # Fancy Folder Icons
5
+ #
6
+ # Folder Icons addon for addon godot 4
7
+ # https://github.com/CodeNameTwister/Fancy-Folder-Icons
8
+ # author: "Twister"
9
+ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
11
10
const DOT_USER : String = "user://editor/fancy_folder_icon_recents.dat"
12
11
13
12
func reorder (new_tx : Texture2D ) -> void :
You can’t perform that action at this time.
0 commit comments