mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-07-06 03:51:17 +00:00
Added scene palette addon
This commit is contained in:
parent
616062c62d
commit
687d3f7803
43 changed files with 1471 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue