add DepthButton
This commit is contained in:
parent
e758168757
commit
47234f1bc1
9 changed files with 304 additions and 62 deletions
34
src/DepthButton.tscn
Normal file
34
src/DepthButton.tscn
Normal file
|
@ -0,0 +1,34 @@
|
|||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://assets/taqin_theme.tres" type="Theme" id=1]
|
||||
[ext_resource path="res://src/DepthButton.gd" type="Script" id=2]
|
||||
|
||||
[node name="DepthButton" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_right = -734.0
|
||||
margin_bottom = -464.0
|
||||
theme = ExtResource( 1 )
|
||||
script = ExtResource( 2 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
text = "Press Me"
|
||||
|
||||
[node name="Background" type="Panel" parent="."]
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
|
||||
[node name="Button" type="Button" parent="."]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_bottom = -10.0
|
||||
text = "Press Me"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
[connection signal="button_down" from="Button" to="." method="_on_Button_button_down"]
|
||||
[connection signal="button_up" from="Button" to="." method="_on_Button_button_up"]
|
||||
[connection signal="pressed" from="Button" to="." method="_on_Button_pressed"]
|
||||
[connection signal="toggled" from="Button" to="." method="_on_Button_toggled"]
|
Loading…
Add table
Add a link
Reference in a new issue