diff --git a/levels/ui/settings.gd b/levels/ui/settings.gd index 13e11cc..00564f1 100644 --- a/levels/ui/settings.gd +++ b/levels/ui/settings.gd @@ -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: diff --git a/levels/ui/settings.tscn b/levels/ui/settings.tscn index b34570c..9103fde 100644 --- a/levels/ui/settings.tscn +++ b/levels/ui/settings.tscn @@ -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"] diff --git a/levels/ui/soundtest.gd b/levels/ui/soundtest.gd index 96b6350..846bb5b 100644 --- a/levels/ui/soundtest.gd +++ b/levels/ui/soundtest.gd @@ -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. diff --git a/levels/ui/soundtest.tscn b/levels/ui/soundtest.tscn index 03080e4..043bef6 100644 --- a/levels/ui/soundtest.tscn +++ b/levels/ui/soundtest.tscn @@ -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"]