event system and keyboard
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://cd657k2lc3gyc"]
|
||||
[gd_scene load_steps=3 format=3 uid="uid://cd657k2lc3gyc"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cs1ylnivyrbc2" path="res://scripts/menus/profile_creator.gd" id="1_4xjd5"]
|
||||
[ext_resource type="FontFile" uid="uid://s0mghd0bccm0" path="res://assets/fonts/monogram-extended.ttf" id="2_yd267"]
|
||||
|
||||
[node name="ProfileCreator" type="Control"]
|
||||
layout_mode = 3
|
||||
@@ -27,6 +28,7 @@ grow_vertical = 2
|
||||
|
||||
[node name="LineEdit" type="LineEdit" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("2_yd267")
|
||||
placeholder_text = "Name him"
|
||||
editable = false
|
||||
context_menu_enabled = false
|
||||
@@ -44,14 +46,12 @@ alignment = 1
|
||||
[node name="Back" type="Button" parent="VBoxContainer/HBoxContainer"]
|
||||
custom_minimum_size = Vector2(50, 0)
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 8
|
||||
text = "Back"
|
||||
|
||||
[node name="Next" type="Button" parent="VBoxContainer/HBoxContainer"]
|
||||
custom_minimum_size = Vector2(50, 0)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 4
|
||||
theme_override_font_sizes/font_size = 8
|
||||
text = "Next"
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/HBoxContainer/Back" to="." method="_on_back_button_pressed"]
|
||||
|
||||
159
scenes/menus/util/keyboard.tscn
Normal file
159
scenes/menus/util/keyboard.tscn
Normal file
@@ -0,0 +1,159 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://dn0lr1sbir3d3"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bxquk4wo56r22" path="res://scripts/menus/util/keyboard.gd" id="1_xrtsm"]
|
||||
|
||||
[node name="Keyboard" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
script = ExtResource("1_xrtsm")
|
||||
|
||||
[node name="MainKeys" type="HFlowContainer" parent="."]
|
||||
custom_minimum_size = Vector2(230, 100)
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -115.0
|
||||
offset_top = -50.0
|
||||
offset_right = 115.0
|
||||
offset_bottom = 50.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Button" type="Button" parent="MainKeys"]
|
||||
custom_minimum_size = Vector2(22, 22)
|
||||
layout_mode = 2
|
||||
text = "A"
|
||||
|
||||
[node name="Button2" type="Button" parent="MainKeys"]
|
||||
custom_minimum_size = Vector2(22, 22)
|
||||
layout_mode = 2
|
||||
text = "B"
|
||||
|
||||
[node name="Button3" type="Button" parent="MainKeys"]
|
||||
custom_minimum_size = Vector2(22, 22)
|
||||
layout_mode = 2
|
||||
text = "C"
|
||||
|
||||
[node name="Button4" type="Button" parent="MainKeys"]
|
||||
custom_minimum_size = Vector2(22, 22)
|
||||
layout_mode = 2
|
||||
text = "D"
|
||||
|
||||
[node name="Button5" type="Button" parent="MainKeys"]
|
||||
custom_minimum_size = Vector2(22, 22)
|
||||
layout_mode = 2
|
||||
text = "E"
|
||||
|
||||
[node name="Button6" type="Button" parent="MainKeys"]
|
||||
custom_minimum_size = Vector2(22, 22)
|
||||
layout_mode = 2
|
||||
text = "F"
|
||||
|
||||
[node name="Button7" type="Button" parent="MainKeys"]
|
||||
custom_minimum_size = Vector2(22, 22)
|
||||
layout_mode = 2
|
||||
text = "G"
|
||||
|
||||
[node name="Button8" type="Button" parent="MainKeys"]
|
||||
custom_minimum_size = Vector2(22, 22)
|
||||
layout_mode = 2
|
||||
text = "H"
|
||||
|
||||
[node name="Button9" type="Button" parent="MainKeys"]
|
||||
custom_minimum_size = Vector2(22, 22)
|
||||
layout_mode = 2
|
||||
text = "I"
|
||||
|
||||
[node name="Button10" type="Button" parent="MainKeys"]
|
||||
custom_minimum_size = Vector2(22, 22)
|
||||
layout_mode = 2
|
||||
text = "J"
|
||||
|
||||
[node name="Button11" type="Button" parent="MainKeys"]
|
||||
custom_minimum_size = Vector2(22, 22)
|
||||
layout_mode = 2
|
||||
text = "K"
|
||||
|
||||
[node name="Button12" type="Button" parent="MainKeys"]
|
||||
custom_minimum_size = Vector2(22, 22)
|
||||
layout_mode = 2
|
||||
text = "L"
|
||||
|
||||
[node name="Button13" type="Button" parent="MainKeys"]
|
||||
custom_minimum_size = Vector2(22, 22)
|
||||
layout_mode = 2
|
||||
text = "M"
|
||||
|
||||
[node name="Button14" type="Button" parent="MainKeys"]
|
||||
custom_minimum_size = Vector2(22, 22)
|
||||
layout_mode = 2
|
||||
text = "N"
|
||||
|
||||
[node name="Button15" type="Button" parent="MainKeys"]
|
||||
custom_minimum_size = Vector2(22, 22)
|
||||
layout_mode = 2
|
||||
text = "O"
|
||||
|
||||
[node name="Button16" type="Button" parent="MainKeys"]
|
||||
custom_minimum_size = Vector2(22, 22)
|
||||
layout_mode = 2
|
||||
text = "P"
|
||||
|
||||
[node name="Button17" type="Button" parent="MainKeys"]
|
||||
custom_minimum_size = Vector2(22, 22)
|
||||
layout_mode = 2
|
||||
text = "Q"
|
||||
|
||||
[node name="Button18" type="Button" parent="MainKeys"]
|
||||
custom_minimum_size = Vector2(22, 22)
|
||||
layout_mode = 2
|
||||
text = "R"
|
||||
|
||||
[node name="Button19" type="Button" parent="MainKeys"]
|
||||
custom_minimum_size = Vector2(22, 22)
|
||||
layout_mode = 2
|
||||
text = "S"
|
||||
|
||||
[node name="Button20" type="Button" parent="MainKeys"]
|
||||
custom_minimum_size = Vector2(22, 22)
|
||||
layout_mode = 2
|
||||
text = "T"
|
||||
|
||||
[node name="Button21" type="Button" parent="MainKeys"]
|
||||
custom_minimum_size = Vector2(22, 22)
|
||||
layout_mode = 2
|
||||
text = "U"
|
||||
|
||||
[node name="Button22" type="Button" parent="MainKeys"]
|
||||
custom_minimum_size = Vector2(22, 22)
|
||||
layout_mode = 2
|
||||
text = "V"
|
||||
|
||||
[node name="Button23" type="Button" parent="MainKeys"]
|
||||
custom_minimum_size = Vector2(22, 22)
|
||||
layout_mode = 2
|
||||
text = "W"
|
||||
|
||||
[node name="Button24" type="Button" parent="MainKeys"]
|
||||
custom_minimum_size = Vector2(22, 22)
|
||||
layout_mode = 2
|
||||
text = "X"
|
||||
|
||||
[node name="Button25" type="Button" parent="MainKeys"]
|
||||
custom_minimum_size = Vector2(22, 22)
|
||||
layout_mode = 2
|
||||
text = "Y"
|
||||
|
||||
[node name="Button26" type="Button" parent="MainKeys"]
|
||||
custom_minimum_size = Vector2(22, 22)
|
||||
layout_mode = 2
|
||||
text = "Z"
|
||||
Reference in New Issue
Block a user