mirror of
https://github.com/kristoferssolo/FuncIt.git
synced 2025-10-21 19:30:35 +00:00
Added fullscreen toggle
This commit is contained in:
parent
f10cc2e091
commit
3bba732d95
@ -11,3 +11,7 @@ func _on_LAN_party_pressed():
|
|||||||
|
|
||||||
func _on_exit_pressed():
|
func _on_exit_pressed():
|
||||||
get_tree().quit()
|
get_tree().quit()
|
||||||
|
|
||||||
|
|
||||||
|
func _on_fullscreen_pressed():
|
||||||
|
OS.window_fullscreen = !OS.window_fullscreen
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=9 format=2]
|
[gd_scene load_steps=10 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://source/entities/menu_player/player_node.tscn" type="PackedScene" id=1]
|
[ext_resource path="res://source/entities/menu_player/player_node.tscn" type="PackedScene" id=1]
|
||||||
[ext_resource path="res://source/scenes/GUI/background.tscn" type="PackedScene" id=2]
|
[ext_resource path="res://source/scenes/GUI/background.tscn" type="PackedScene" id=2]
|
||||||
@ -7,6 +7,7 @@
|
|||||||
[ext_resource path="res://source/fonts/oxygen/oxygen_bold.tres" type="DynamicFont" id=5]
|
[ext_resource path="res://source/fonts/oxygen/oxygen_bold.tres" type="DynamicFont" id=5]
|
||||||
[ext_resource path="res://source/assets/scripts/ui_element_handlers/main_menu.gd" type="Script" id=6]
|
[ext_resource path="res://source/assets/scripts/ui_element_handlers/main_menu.gd" type="Script" id=6]
|
||||||
[ext_resource path="res://source/scenes/OVERLAY/elements/button.tscn" type="PackedScene" id=7]
|
[ext_resource path="res://source/scenes/OVERLAY/elements/button.tscn" type="PackedScene" id=7]
|
||||||
|
[ext_resource path="res://source/fonts/oxygen/oxygen_regular.tres" type="DynamicFont" id=8]
|
||||||
|
|
||||||
[sub_resource type="DynamicFont" id=1]
|
[sub_resource type="DynamicFont" id=1]
|
||||||
size = 100
|
size = 100
|
||||||
@ -132,6 +133,18 @@ __meta__ = {
|
|||||||
"_edit_use_anchors_": false
|
"_edit_use_anchors_": false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[node name="fullscreen" type="CheckButton" parent="."]
|
||||||
|
margin_left = 1798.91
|
||||||
|
margin_top = 989.536
|
||||||
|
margin_right = 1889.91
|
||||||
|
margin_bottom = 1061.54
|
||||||
|
custom_fonts/font = ExtResource( 8 )
|
||||||
|
custom_colors/font_color_disabled = Color( 1, 1, 1, 1 )
|
||||||
|
__meta__ = {
|
||||||
|
"_edit_use_anchors_": false
|
||||||
|
}
|
||||||
|
|
||||||
[connection signal="pressed" from="foreground/play" to="." method="_on_play_pressed"]
|
[connection signal="pressed" from="foreground/play" to="." method="_on_play_pressed"]
|
||||||
[connection signal="pressed" from="foreground/LAN_party" to="." method="_on_LAN_party_pressed"]
|
[connection signal="pressed" from="foreground/LAN_party" to="." method="_on_LAN_party_pressed"]
|
||||||
[connection signal="pressed" from="foreground/exit" to="." method="_on_exit_pressed"]
|
[connection signal="pressed" from="foreground/exit" to="." method="_on_exit_pressed"]
|
||||||
|
[connection signal="pressed" from="fullscreen" to="." method="_on_fullscreen_pressed"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user