OS Detect fix
This commit is contained in:
parent
17cdce4c45
commit
b8b05d5664
4 changed files with 7 additions and 1 deletions
|
@ -11,6 +11,9 @@ func _ready():
|
||||||
gldrv = $VBoxContainer/Bullethell
|
gldrv = $VBoxContainer/Bullethell
|
||||||
#Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN)
|
#Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN)
|
||||||
$VBoxContainer/L20.grab_focus()
|
$VBoxContainer/L20.grab_focus()
|
||||||
|
if OS.get_name() == "X11":
|
||||||
|
vsync.disabled = false
|
||||||
|
fullscreen.disabled = false
|
||||||
if OS.is_vsync_enabled():
|
if OS.is_vsync_enabled():
|
||||||
vsync.set_text(tr("SETTING_VSYNCT"))
|
vsync.set_text(tr("SETTING_VSYNCT"))
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -46,6 +46,7 @@ margin_right = 1046.0
|
||||||
margin_bottom = 54.0
|
margin_bottom = 54.0
|
||||||
custom_fonts/font = ExtResource( 5 )
|
custom_fonts/font = ExtResource( 5 )
|
||||||
custom_styles/focus = SubResource( 1 )
|
custom_styles/focus = SubResource( 1 )
|
||||||
|
disabled = true
|
||||||
text = "CERES_L20_DESC"
|
text = "CERES_L20_DESC"
|
||||||
|
|
||||||
[node name="Lilytest" type="Button" parent="VBoxContainer"]
|
[node name="Lilytest" type="Button" parent="VBoxContainer"]
|
||||||
|
@ -54,6 +55,7 @@ margin_right = 1046.0
|
||||||
margin_bottom = 112.0
|
margin_bottom = 112.0
|
||||||
custom_fonts/font = ExtResource( 5 )
|
custom_fonts/font = ExtResource( 5 )
|
||||||
custom_styles/focus = SubResource( 2 )
|
custom_styles/focus = SubResource( 2 )
|
||||||
|
disabled = true
|
||||||
text = "MENU_MAP"
|
text = "MENU_MAP"
|
||||||
|
|
||||||
[node name="Dialogtest" type="Button" parent="VBoxContainer"]
|
[node name="Dialogtest" type="Button" parent="VBoxContainer"]
|
||||||
|
|
|
@ -5,7 +5,7 @@ func _ready():
|
||||||
#Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN)
|
#Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN)
|
||||||
alsatest = $VBoxContainer/ALSA
|
alsatest = $VBoxContainer/ALSA
|
||||||
$"VBoxContainer/Music".grab_focus()
|
$"VBoxContainer/Music".grab_focus()
|
||||||
if OS.get_name() == "Linux":
|
if OS.get_name() == "X11":
|
||||||
alsatest.disabled = false
|
alsatest.disabled = false
|
||||||
|
|
||||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
|
|
|
@ -64,6 +64,7 @@ margin_right = 1131.0
|
||||||
margin_bottom = 308.0
|
margin_bottom = 308.0
|
||||||
custom_fonts/font = ExtResource( 2 )
|
custom_fonts/font = ExtResource( 2 )
|
||||||
custom_styles/focus = SubResource( 2 )
|
custom_styles/focus = SubResource( 2 )
|
||||||
|
disabled = true
|
||||||
text = "ALSA_TEST_MENU"
|
text = "ALSA_TEST_MENU"
|
||||||
|
|
||||||
[node name="Back" type="Button" parent="VBoxContainer"]
|
[node name="Back" type="Button" parent="VBoxContainer"]
|
||||||
|
|
Loading…
Reference in a new issue