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:
OverloadedOrama 2020-07-29 03:16:02 +03:00
parent f88d201e1a
commit 051f3df147
9 changed files with 185 additions and 71 deletions

View 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"]