diff --git a/Scenes/DesktopScreen.tscn b/Scenes/DesktopScreen.tscn index 720a80d..be84092 100755 --- a/Scenes/DesktopScreen.tscn +++ b/Scenes/DesktopScreen.tscn @@ -43,6 +43,7 @@ margin_left = -128.0 margin_top = -32.0 margin_right = 149.0 margin_bottom = 37.0 +focus_mode = 0 theme = SubResource( 1 ) custom_colors/font_color = Color( 1, 1, 1, 1 ) custom_colors/font_color_hover = Color( 0.941176, 0.690196, 0.403922, 1 ) diff --git a/Scenes/Scripts/Desktop.gd b/Scenes/Scripts/Desktop.gd index 155ff0d..6338a6e 100755 --- a/Scenes/Scripts/Desktop.gd +++ b/Scenes/Scripts/Desktop.gd @@ -15,6 +15,7 @@ func _ready() -> void: var nbDossier = rng.randi_range(0, 3) for i in range(nbDossier): var dossier = get_child(2).duplicate() + dossier.get_child(0).get_child(3).get_child(1).focus_mode = Button.FOCUS_NONE dossier.position = Vector2(dossier.position.x, dossier.position.y + 150 * (i + 1)) dossier.set_z_index(dossier.get_z_index() + 10 * (i + 1)) add_child(dossier) diff --git a/Scenes/gameover.tscn b/Scenes/gameover.tscn index e484873..fb07e0f 100755 --- a/Scenes/gameover.tscn +++ b/Scenes/gameover.tscn @@ -33,6 +33,7 @@ margin_left = 312.0 margin_top = 632.0 margin_right = 724.0 margin_bottom = 693.0 +focus_mode = 0 custom_colors/font_color = Color( 1, 1, 1, 1 ) custom_colors/font_color_hover = Color( 0.941176, 0.690196, 0.403922, 1 ) custom_fonts/font = ExtResource( 7 ) diff --git a/Scenes/menu.tscn b/Scenes/menu.tscn index eee3ad8..780d90b 100755 --- a/Scenes/menu.tscn +++ b/Scenes/menu.tscn @@ -34,6 +34,7 @@ volume_db = -7.0 margin_top = 34.0 margin_right = 136.0 margin_bottom = 71.0 +focus_mode = 0 custom_colors/font_color = Color( 1, 1, 1, 1 ) custom_colors/font_color_hover = Color( 0.941176, 0.690196, 0.403922, 1 ) custom_fonts/font = ExtResource( 2 ) @@ -46,6 +47,7 @@ text = "PLAY" margin_top = 97.0 margin_right = 136.0 margin_bottom = 134.0 +focus_mode = 0 custom_colors/font_color = Color( 1, 1, 1, 1 ) custom_colors/font_color_hover = Color( 0.941176, 0.690196, 0.403922, 1 ) custom_fonts/font = ExtResource( 2 ) @@ -58,6 +60,7 @@ text = "HELP" margin_top = 160.0 margin_right = 136.0 margin_bottom = 197.0 +focus_mode = 0 custom_colors/font_color = Color( 1, 1, 1, 1 ) custom_colors/font_color_hover = Color( 0.941176, 0.690196, 0.403922, 1 ) custom_fonts/font = ExtResource( 2 )