mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-07-06 23:41:16 +00:00
Added scene palette addon
This commit is contained in:
parent
616062c62d
commit
687d3f7803
43 changed files with 1471 additions and 0 deletions
11
addons/scene_palette/resources/rsc_favorite.gd
Normal file
11
addons/scene_palette/resources/rsc_favorite.gd
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# Can't use this because Godot can't save nested custom resources
|
||||
# Leaving here in case this is fixed in the future
|
||||
|
||||
#extends Resource
|
||||
#class_name PalettePluginFavorite
|
||||
#
|
||||
#var _default_button_color = '#21262e'
|
||||
#
|
||||
#var directory:String
|
||||
#var color:Color = Color(_default_button_color)
|
||||
#var instantiate_scenes_for_previews:bool = false
|
||||
1
addons/scene_palette/resources/rsc_favorite.gd.uid
Normal file
1
addons/scene_palette/resources/rsc_favorite.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://dbbhixj1ht5n2
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
@tool
|
||||
extends Resource
|
||||
class_name PalettePluginSaveData
|
||||
const DEFAULT_BUTTON_COLOR = '#0e1521'
|
||||
|
||||
# can't use this because Godot doesn't support saving nested custom resources yet
|
||||
#@export var favorites:Array[PalettePluginFavorite] = []
|
||||
@export var favorites:Dictionary
|
||||
|
||||
func add_favorite(directory, instantiate_scenes, color=DEFAULT_BUTTON_COLOR):
|
||||
favorites[directory] = {
|
||||
instantiate_scenes_for_previews = instantiate_scenes,
|
||||
color = color,
|
||||
scene_preview_scale = 1,
|
||||
show_labels = true
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
uid://d2vskl7301jhr
|
||||
Loading…
Add table
Add a link
Reference in a new issue