1
0
Fork 0
mirror of https://github.com/tonytins/dressupzack synced 2025-05-08 06:14:48 -04:00

Removed Screenshot button and binding function

This commit is contained in:
Anthony Wilcox 2018-12-31 07:57:22 -05:00
parent 318a7a99d5
commit 2d2ecebd28
2 changed files with 4 additions and 34 deletions

View file

@ -2,7 +2,7 @@
[ext_resource path="res://src/Interface.gd" type="Script" id=1]
[node name="Interface" type="Control"]
[node name="Interface" type="Control" index="0"]
anchor_left = 0.0
anchor_top = 0.0
@ -54,7 +54,7 @@ size_flags_horizontal = 1
size_flags_vertical = 1
alignment = 0
[node name="ScreenshotBtn" type="Button" parent="ReferenceRect/VertContainer" index="0"]
[node name="AboutBtn" type="Button" parent="ReferenceRect/VertContainer" index="0"]
anchor_left = 0.0
anchor_top = 0.0
@ -73,11 +73,11 @@ toggle_mode = false
enabled_focus_mode = 2
shortcut = null
group = null
text = "Screenshot"
text = "About"
flat = false
align = 1
[node name="AboutBtn" type="Button" parent="ReferenceRect/VertContainer" index="1"]
[node name="CreditsBtn" type="Button" parent="ReferenceRect/VertContainer" index="1"]
anchor_left = 0.0
anchor_top = 0.0
@ -97,36 +97,10 @@ toggle_mode = false
enabled_focus_mode = 2
shortcut = null
group = null
text = "About"
flat = false
align = 1
[node name="CreditsBtn" type="Button" parent="ReferenceRect/VertContainer" index="2"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 48.0
margin_right = 147.0
margin_bottom = 68.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
toggle_mode = false
enabled_focus_mode = 2
shortcut = null
group = null
text = "Credits"
flat = false
align = 1
[connection signal="pressed" from="ReferenceRect/VertContainer/ScreenshotBtn" to="." method="_on_ScreenshotBtn_pressed"]
[connection signal="pressed" from="ReferenceRect/VertContainer/AboutBtn" to="." method="_on_AboutBtn_pressed"]
[connection signal="pressed" from="ReferenceRect/VertContainer/CreditsBtn" to="." method="_on_CreditsBtn_pressed"]

View file

@ -6,10 +6,6 @@ onready var coming_soon_win = preload("res://windows/ComingSoon.tscn")
onready var about_win = preload("res://windows/About.tscn")
onready var credits_win = preload("res://windows/Credits.tscn")
func _on_ScreenshotBtn_pressed():
var win_instance = coming_soon_win.instance()
add_child(win_instance)
func _on_AboutBtn_pressed():
var win_instance = about_win.instance()
add_child(win_instance)