Skip to content

Commit 40517bb

Browse files
committed
Add "quit game" button to mobile devices
1 parent 9181fc2 commit 40517bb

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

SourceCode/scenes/menus/TitleScreen.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func _ready():
4747
# inside of the browser (on HTML5) or on mobile devices
4848
var is_on_mobile = OS.has_feature("mobile")
4949
var is_on_browser = OS.has_feature("HTML5")
50-
quit_button.visible = !is_on_browser and !is_on_mobile and !MobileControls.is_using_mobile
50+
quit_button.visible = !is_on_browser
5151

5252
start_game_button.grab_focus()
5353

SourceCode/scenes/menus/TitleScreen.tscn

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -97,29 +97,29 @@ __meta__ = {
9797
}
9898

9999
[node name="StartGame" parent="TitleContent/Menu/VBoxContainer" instance=ExtResource( 9 )]
100-
margin_top = 0.0
101-
margin_bottom = 30.0
100+
margin_top = 1.0
101+
margin_bottom = 31.0
102102
text = "Start Game"
103103

104104
[node name="BonusLevels" type="Button" parent="TitleContent/Menu/VBoxContainer"]
105-
margin_top = 35.0
105+
margin_top = 36.0
106106
margin_right = 350.0
107-
margin_bottom = 65.0
107+
margin_bottom = 66.0
108108
focus_neighbour_bottom = NodePath("../Options")
109109
text = "Bonus Levels"
110110

111111
[node name="Options" type="Button" parent="TitleContent/Menu/VBoxContainer"]
112-
margin_top = 70.0
112+
margin_top = 71.0
113113
margin_right = 350.0
114-
margin_bottom = 100.0
114+
margin_bottom = 101.0
115115
focus_neighbour_top = NodePath("../BonusLevels")
116116
focus_neighbour_bottom = NodePath("../Credits")
117117
text = "Options"
118118

119119
[node name="Credits" type="Button" parent="TitleContent/Menu/VBoxContainer"]
120-
margin_top = 105.0
120+
margin_top = 106.0
121121
margin_right = 350.0
122-
margin_bottom = 135.0
122+
margin_bottom = 136.0
123123
focus_neighbour_top = NodePath("../Options")
124124
focus_neighbour_bottom = NodePath("../Quit")
125125
text = "Credits"
@@ -139,9 +139,9 @@ margin_bottom = 170.0
139139
text = "Boss Battle (DEBUG)"
140140

141141
[node name="Quit" type="Button" parent="TitleContent/Menu/VBoxContainer"]
142-
margin_top = 140.0
142+
margin_top = 141.0
143143
margin_right = 350.0
144-
margin_bottom = 170.0
144+
margin_bottom = 171.0
145145
focus_neighbour_top = NodePath("../Credits")
146146
text = "Quit Game"
147147

0 commit comments

Comments
 (0)