mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-07-11 22:04:43 -04:00
Added a dark texture for the restore to default button
For light & caramel themes
This commit is contained in:
parent
051f3df147
commit
db606a5051
7 changed files with 80 additions and 2 deletions
|
@ -96,7 +96,7 @@ func change_theme(ID : int) -> void:
|
|||
if button.texture_hover:
|
||||
var hover_file_name = button.texture_hover.resource_path.get_file()
|
||||
button.texture_hover = load("res://assets/graphics/%s_themes/%s/%s" % [theme_type_string, button_category, hover_file_name])
|
||||
if button.texture_disabled:
|
||||
if button.texture_disabled and button.texture_disabled == StreamTexture:
|
||||
var disabled_file_name = button.texture_disabled.resource_path.get_file()
|
||||
button.texture_disabled = load("res://assets/graphics/%s_themes/%s/%s" % [theme_type_string, button_category, disabled_file_name])
|
||||
elif button is Button:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue