Prevent keyboard buttons from being focused

This commit is contained in:
Terry Hearst 2022-05-14 00:20:33 -04:00
parent c81b4e86c3
commit 0daac1d989

View file

@ -96,6 +96,7 @@ size_flags_horizontal = 4
margin_right = 50.0 margin_right = 50.0
margin_bottom = 47.0 margin_bottom = 47.0
rect_min_size = Vector2( 50, 0 ) rect_min_size = Vector2( 50, 0 )
focus_mode = 0
text = "Q" text = "Q"
[node name="ButtonW" type="Button" parent="C/V/V/HRow1"] [node name="ButtonW" type="Button" parent="C/V/V/HRow1"]
@ -103,6 +104,7 @@ margin_left = 54.0
margin_right = 104.0 margin_right = 104.0
margin_bottom = 47.0 margin_bottom = 47.0
rect_min_size = Vector2( 50, 0 ) rect_min_size = Vector2( 50, 0 )
focus_mode = 0
text = "W" text = "W"
[node name="ButtonE" type="Button" parent="C/V/V/HRow1"] [node name="ButtonE" type="Button" parent="C/V/V/HRow1"]
@ -110,6 +112,7 @@ margin_left = 108.0
margin_right = 158.0 margin_right = 158.0
margin_bottom = 47.0 margin_bottom = 47.0
rect_min_size = Vector2( 50, 0 ) rect_min_size = Vector2( 50, 0 )
focus_mode = 0
text = "E" text = "E"
[node name="ButtonR" type="Button" parent="C/V/V/HRow1"] [node name="ButtonR" type="Button" parent="C/V/V/HRow1"]
@ -117,6 +120,7 @@ margin_left = 162.0
margin_right = 212.0 margin_right = 212.0
margin_bottom = 47.0 margin_bottom = 47.0
rect_min_size = Vector2( 50, 0 ) rect_min_size = Vector2( 50, 0 )
focus_mode = 0
text = "R" text = "R"
[node name="ButtonT" type="Button" parent="C/V/V/HRow1"] [node name="ButtonT" type="Button" parent="C/V/V/HRow1"]
@ -124,6 +128,7 @@ margin_left = 216.0
margin_right = 266.0 margin_right = 266.0
margin_bottom = 47.0 margin_bottom = 47.0
rect_min_size = Vector2( 50, 0 ) rect_min_size = Vector2( 50, 0 )
focus_mode = 0
text = "T" text = "T"
[node name="ButtonY" type="Button" parent="C/V/V/HRow1"] [node name="ButtonY" type="Button" parent="C/V/V/HRow1"]
@ -131,6 +136,7 @@ margin_left = 270.0
margin_right = 320.0 margin_right = 320.0
margin_bottom = 47.0 margin_bottom = 47.0
rect_min_size = Vector2( 50, 0 ) rect_min_size = Vector2( 50, 0 )
focus_mode = 0
text = "Y" text = "Y"
[node name="ButtonU" type="Button" parent="C/V/V/HRow1"] [node name="ButtonU" type="Button" parent="C/V/V/HRow1"]
@ -138,6 +144,7 @@ margin_left = 324.0
margin_right = 374.0 margin_right = 374.0
margin_bottom = 47.0 margin_bottom = 47.0
rect_min_size = Vector2( 50, 0 ) rect_min_size = Vector2( 50, 0 )
focus_mode = 0
text = "U" text = "U"
[node name="ButtonI" type="Button" parent="C/V/V/HRow1"] [node name="ButtonI" type="Button" parent="C/V/V/HRow1"]
@ -145,6 +152,7 @@ margin_left = 378.0
margin_right = 428.0 margin_right = 428.0
margin_bottom = 47.0 margin_bottom = 47.0
rect_min_size = Vector2( 50, 0 ) rect_min_size = Vector2( 50, 0 )
focus_mode = 0
text = "I" text = "I"
[node name="ButtonO" type="Button" parent="C/V/V/HRow1"] [node name="ButtonO" type="Button" parent="C/V/V/HRow1"]
@ -152,6 +160,7 @@ margin_left = 432.0
margin_right = 482.0 margin_right = 482.0
margin_bottom = 47.0 margin_bottom = 47.0
rect_min_size = Vector2( 50, 0 ) rect_min_size = Vector2( 50, 0 )
focus_mode = 0
text = "O" text = "O"
[node name="ButtonP" type="Button" parent="C/V/V/HRow1"] [node name="ButtonP" type="Button" parent="C/V/V/HRow1"]
@ -159,6 +168,7 @@ margin_left = 486.0
margin_right = 536.0 margin_right = 536.0
margin_bottom = 47.0 margin_bottom = 47.0
rect_min_size = Vector2( 50, 0 ) rect_min_size = Vector2( 50, 0 )
focus_mode = 0
text = "P" text = "P"
[node name="HRow2" type="HBoxContainer" parent="C/V/V"] [node name="HRow2" type="HBoxContainer" parent="C/V/V"]
@ -172,6 +182,7 @@ size_flags_horizontal = 4
margin_right = 50.0 margin_right = 50.0
margin_bottom = 47.0 margin_bottom = 47.0
rect_min_size = Vector2( 50, 0 ) rect_min_size = Vector2( 50, 0 )
focus_mode = 0
text = "A" text = "A"
[node name="ButtonS" type="Button" parent="C/V/V/HRow2"] [node name="ButtonS" type="Button" parent="C/V/V/HRow2"]
@ -179,6 +190,7 @@ margin_left = 54.0
margin_right = 104.0 margin_right = 104.0
margin_bottom = 47.0 margin_bottom = 47.0
rect_min_size = Vector2( 50, 0 ) rect_min_size = Vector2( 50, 0 )
focus_mode = 0
text = "S" text = "S"
[node name="ButtonD" type="Button" parent="C/V/V/HRow2"] [node name="ButtonD" type="Button" parent="C/V/V/HRow2"]
@ -186,6 +198,7 @@ margin_left = 108.0
margin_right = 158.0 margin_right = 158.0
margin_bottom = 47.0 margin_bottom = 47.0
rect_min_size = Vector2( 50, 0 ) rect_min_size = Vector2( 50, 0 )
focus_mode = 0
text = "D" text = "D"
[node name="ButtonF" type="Button" parent="C/V/V/HRow2"] [node name="ButtonF" type="Button" parent="C/V/V/HRow2"]
@ -193,6 +206,7 @@ margin_left = 162.0
margin_right = 212.0 margin_right = 212.0
margin_bottom = 47.0 margin_bottom = 47.0
rect_min_size = Vector2( 50, 0 ) rect_min_size = Vector2( 50, 0 )
focus_mode = 0
text = "F" text = "F"
[node name="ButtonG" type="Button" parent="C/V/V/HRow2"] [node name="ButtonG" type="Button" parent="C/V/V/HRow2"]
@ -200,6 +214,7 @@ margin_left = 216.0
margin_right = 266.0 margin_right = 266.0
margin_bottom = 47.0 margin_bottom = 47.0
rect_min_size = Vector2( 50, 0 ) rect_min_size = Vector2( 50, 0 )
focus_mode = 0
text = "G" text = "G"
[node name="ButtonH" type="Button" parent="C/V/V/HRow2"] [node name="ButtonH" type="Button" parent="C/V/V/HRow2"]
@ -207,6 +222,7 @@ margin_left = 270.0
margin_right = 320.0 margin_right = 320.0
margin_bottom = 47.0 margin_bottom = 47.0
rect_min_size = Vector2( 50, 0 ) rect_min_size = Vector2( 50, 0 )
focus_mode = 0
text = "H" text = "H"
[node name="ButtonJ" type="Button" parent="C/V/V/HRow2"] [node name="ButtonJ" type="Button" parent="C/V/V/HRow2"]
@ -214,6 +230,7 @@ margin_left = 324.0
margin_right = 374.0 margin_right = 374.0
margin_bottom = 47.0 margin_bottom = 47.0
rect_min_size = Vector2( 50, 0 ) rect_min_size = Vector2( 50, 0 )
focus_mode = 0
text = "J" text = "J"
[node name="ButtonK" type="Button" parent="C/V/V/HRow2"] [node name="ButtonK" type="Button" parent="C/V/V/HRow2"]
@ -221,6 +238,7 @@ margin_left = 378.0
margin_right = 428.0 margin_right = 428.0
margin_bottom = 47.0 margin_bottom = 47.0
rect_min_size = Vector2( 50, 0 ) rect_min_size = Vector2( 50, 0 )
focus_mode = 0
text = "K" text = "K"
[node name="ButtonL" type="Button" parent="C/V/V/HRow2"] [node name="ButtonL" type="Button" parent="C/V/V/HRow2"]
@ -228,6 +246,7 @@ margin_left = 432.0
margin_right = 482.0 margin_right = 482.0
margin_bottom = 47.0 margin_bottom = 47.0
rect_min_size = Vector2( 50, 0 ) rect_min_size = Vector2( 50, 0 )
focus_mode = 0
text = "L" text = "L"
[node name="HRow3" type="HBoxContainer" parent="C/V/V"] [node name="HRow3" type="HBoxContainer" parent="C/V/V"]
@ -241,6 +260,7 @@ size_flags_horizontal = 4
margin_right = 50.0 margin_right = 50.0
margin_bottom = 47.0 margin_bottom = 47.0
rect_min_size = Vector2( 50, 0 ) rect_min_size = Vector2( 50, 0 )
focus_mode = 0
text = "Z" text = "Z"
[node name="ButtonX" type="Button" parent="C/V/V/HRow3"] [node name="ButtonX" type="Button" parent="C/V/V/HRow3"]
@ -248,6 +268,7 @@ margin_left = 54.0
margin_right = 104.0 margin_right = 104.0
margin_bottom = 47.0 margin_bottom = 47.0
rect_min_size = Vector2( 50, 0 ) rect_min_size = Vector2( 50, 0 )
focus_mode = 0
text = "X" text = "X"
[node name="ButtonC" type="Button" parent="C/V/V/HRow3"] [node name="ButtonC" type="Button" parent="C/V/V/HRow3"]
@ -255,6 +276,7 @@ margin_left = 108.0
margin_right = 158.0 margin_right = 158.0
margin_bottom = 47.0 margin_bottom = 47.0
rect_min_size = Vector2( 50, 0 ) rect_min_size = Vector2( 50, 0 )
focus_mode = 0
text = "C" text = "C"
[node name="ButtonV" type="Button" parent="C/V/V/HRow3"] [node name="ButtonV" type="Button" parent="C/V/V/HRow3"]
@ -262,6 +284,7 @@ margin_left = 162.0
margin_right = 212.0 margin_right = 212.0
margin_bottom = 47.0 margin_bottom = 47.0
rect_min_size = Vector2( 50, 0 ) rect_min_size = Vector2( 50, 0 )
focus_mode = 0
text = "V" text = "V"
[node name="ButtonB" type="Button" parent="C/V/V/HRow3"] [node name="ButtonB" type="Button" parent="C/V/V/HRow3"]
@ -269,6 +292,7 @@ margin_left = 216.0
margin_right = 266.0 margin_right = 266.0
margin_bottom = 47.0 margin_bottom = 47.0
rect_min_size = Vector2( 50, 0 ) rect_min_size = Vector2( 50, 0 )
focus_mode = 0
text = "B" text = "B"
[node name="ButtonN" type="Button" parent="C/V/V/HRow3"] [node name="ButtonN" type="Button" parent="C/V/V/HRow3"]
@ -276,6 +300,7 @@ margin_left = 270.0
margin_right = 320.0 margin_right = 320.0
margin_bottom = 47.0 margin_bottom = 47.0
rect_min_size = Vector2( 50, 0 ) rect_min_size = Vector2( 50, 0 )
focus_mode = 0
text = "N" text = "N"
[node name="ButtonM" type="Button" parent="C/V/V/HRow3"] [node name="ButtonM" type="Button" parent="C/V/V/HRow3"]
@ -283,6 +308,7 @@ margin_left = 324.0
margin_right = 374.0 margin_right = 374.0
margin_bottom = 47.0 margin_bottom = 47.0
rect_min_size = Vector2( 50, 0 ) rect_min_size = Vector2( 50, 0 )
focus_mode = 0
text = "M" text = "M"
[node name="ButtonBksp" type="Button" parent="C/V/V/HRow3"] [node name="ButtonBksp" type="Button" parent="C/V/V/HRow3"]
@ -290,6 +316,7 @@ margin_left = 378.0
margin_right = 470.0 margin_right = 470.0
margin_bottom = 47.0 margin_bottom = 47.0
rect_min_size = Vector2( 50, 0 ) rect_min_size = Vector2( 50, 0 )
focus_mode = 0
text = "bksp" text = "bksp"
[node name="GuessButton" type="Button" parent="C/V/V"] [node name="GuessButton" type="Button" parent="C/V/V"]
@ -297,6 +324,7 @@ margin_left = 205.0
margin_top = 153.0 margin_top = 153.0
margin_right = 330.0 margin_right = 330.0
margin_bottom = 205.0 margin_bottom = 205.0
focus_mode = 0
size_flags_horizontal = 4 size_flags_horizontal = 4
custom_fonts/font = SubResource( 5 ) custom_fonts/font = SubResource( 5 )
text = "Guess" text = "Guess"