From 2d2ecebd28d20cdfc3a08d90f53069055b5af1ab Mon Sep 17 00:00:00 2001 From: Anthony Wilcox <35226681+tomiscw@users.noreply.github.com> Date: Mon, 31 Dec 2018 07:57:22 -0500 Subject: [PATCH] Removed Screenshot button and binding function --- Interface.tscn | 34 ++++------------------------------ src/Interface.gd | 4 ---- 2 files changed, 4 insertions(+), 34 deletions(-) diff --git a/Interface.tscn b/Interface.tscn index 719dbbe..4985bbf 100644 --- a/Interface.tscn +++ b/Interface.tscn @@ -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"] diff --git a/src/Interface.gd b/src/Interface.gd index baaea66..dbec17b 100644 --- a/src/Interface.gd +++ b/src/Interface.gd @@ -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)