mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-12-18 21:44:42 -05:00
Buttons to reset preferences to default
Similar functionality with Godot's default buttons. The buttons currently aren't visible with the gold & light themes.
This commit is contained in:
parent
f88d201e1a
commit
051f3df147
9 changed files with 185 additions and 71 deletions
18
src/Preferences/RestoreDefaultButton.tscn
Normal file
18
src/Preferences/RestoreDefaultButton.tscn
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://assets/graphics/dark_themes/misc/icon_reload.png" type="Texture" id=1]
|
||||
[ext_resource path="res://src/Preferences/RestoreDefaultButton.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="ImageTexture" id=1]
|
||||
|
||||
[node name="RestoreDefaultButton" type="TextureButton"]
|
||||
margin_right = 16.0
|
||||
margin_bottom = 16.0
|
||||
disabled = true
|
||||
texture_normal = ExtResource( 1 )
|
||||
texture_disabled = SubResource( 1 )
|
||||
script = ExtResource( 2 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
[connection signal="pressed" from="." to="." method="_on_RestoreDefaultButton_pressed"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue