OS Detect fix

This commit is contained in:
Page Asgardius 2024-12-16 16:37:07 -07:00
parent 17cdce4c45
commit b8b05d5664
4 changed files with 7 additions and 1 deletions

View file

@ -11,6 +11,9 @@ func _ready():
gldrv = $VBoxContainer/Bullethell
#Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN)
$VBoxContainer/L20.grab_focus()
if OS.get_name() == "X11":
vsync.disabled = false
fullscreen.disabled = false
if OS.is_vsync_enabled():
vsync.set_text(tr("SETTING_VSYNCT"))
else:

View file

@ -46,6 +46,7 @@ margin_right = 1046.0
margin_bottom = 54.0
custom_fonts/font = ExtResource( 5 )
custom_styles/focus = SubResource( 1 )
disabled = true
text = "CERES_L20_DESC"
[node name="Lilytest" type="Button" parent="VBoxContainer"]
@ -54,6 +55,7 @@ margin_right = 1046.0
margin_bottom = 112.0
custom_fonts/font = ExtResource( 5 )
custom_styles/focus = SubResource( 2 )
disabled = true
text = "MENU_MAP"
[node name="Dialogtest" type="Button" parent="VBoxContainer"]

View file

@ -5,7 +5,7 @@ func _ready():
#Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN)
alsatest = $VBoxContainer/ALSA
$"VBoxContainer/Music".grab_focus()
if OS.get_name() == "Linux":
if OS.get_name() == "X11":
alsatest.disabled = false
# Called every frame. 'delta' is the elapsed time since the previous frame.

View file

@ -64,6 +64,7 @@ margin_right = 1131.0
margin_bottom = 308.0
custom_fonts/font = ExtResource( 2 )
custom_styles/focus = SubResource( 2 )
disabled = true
text = "ALSA_TEST_MENU"
[node name="Back" type="Button" parent="VBoxContainer"]