working keyboard and plugin for better tilemaps

This commit is contained in:
2025-10-17 01:00:19 +02:00
parent 69c3e6f396
commit 191235da54
42 changed files with 2274 additions and 11 deletions

View File

@@ -43,7 +43,6 @@ grow_vertical = 2
[node name="Button" type="Button" parent="TabContainer/Main/VBoxContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 8
text = "Start"
[node name="ProfileCreator" parent="TabContainer" instance=ExtResource("2_ovrgc")]

View File

@@ -1,18 +1,40 @@
[gd_scene load_steps=2 format=3 uid="uid://dn0lr1sbir3d3"]
[gd_scene load_steps=4 format=3 uid="uid://dn0lr1sbir3d3"]
[ext_resource type="Script" uid="uid://bxquk4wo56r22" path="res://scripts/menus/util/keyboard.gd" id="1_xrtsm"]
[ext_resource type="Texture2D" uid="uid://cfsvkp6w82tgh" path="res://assets/textures/1bit 16px icons part-2.png" id="2_v4hro"]
[sub_resource type="AtlasTexture" id="AtlasTexture_l3m3g"]
atlas = ExtResource("2_v4hro")
region = Rect2(296.5, 82, 13, 13)
[node name="Keyboard" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 3.0
offset_top = 1.0
offset_right = 3.0
offset_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 4
size_flags_vertical = 4
script = ExtResource("1_xrtsm")
[node name="TextLabel" type="Label" parent="."]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.5
anchor_top = 0.202
anchor_right = 0.5
anchor_bottom = 0.202
offset_left = -125.0
offset_top = -6.4000015
offset_right = 126.0
offset_bottom = 6.5999985
grow_horizontal = 2
[node name="MainKeys" type="HFlowContainer" parent="."]
custom_minimum_size = Vector2(230, 100)
layout_mode = 1
@@ -22,9 +44,9 @@ 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
offset_top = -50.5
offset_right = 154.0
offset_bottom = 50.5
grow_horizontal = 2
grow_vertical = 2
@@ -73,6 +95,11 @@ custom_minimum_size = Vector2(22, 22)
layout_mode = 2
text = "I"
[node name="UShift" type="Button" parent="MainKeys"]
custom_minimum_size = Vector2(22, 22)
layout_mode = 2
icon = SubResource("AtlasTexture_l3m3g")
[node name="Button10" type="Button" parent="MainKeys"]
custom_minimum_size = Vector2(22, 22)
layout_mode = 2
@@ -143,6 +170,11 @@ custom_minimum_size = Vector2(22, 22)
layout_mode = 2
text = "W"
[node name="USpace" type="Button" parent="MainKeys"]
custom_minimum_size = Vector2(74, 0)
layout_mode = 2
text = "Space"
[node name="Button24" type="Button" parent="MainKeys"]
custom_minimum_size = Vector2(22, 22)
layout_mode = 2