From c1e826625f3ca3116d482b27e2f0b230cbd55346 Mon Sep 17 00:00:00 2001 From: tpart Date: Mon, 29 Sep 2025 22:50:44 +0200 Subject: Add new controls explanation (Closes #427) --- .../controller/controller_explanation.tscn | 126 +++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 client/gui/overlays/controls_visualization/controller/controller_explanation.tscn (limited to 'client/gui/overlays/controls_visualization/controller/controller_explanation.tscn') diff --git a/client/gui/overlays/controls_visualization/controller/controller_explanation.tscn b/client/gui/overlays/controls_visualization/controller/controller_explanation.tscn new file mode 100644 index 00000000..410f2592 --- /dev/null +++ b/client/gui/overlays/controls_visualization/controller/controller_explanation.tscn @@ -0,0 +1,126 @@ +[gd_scene load_steps=5 format=3 uid="uid://ceex0cpjrb81p"] + +[ext_resource type="Script" uid="uid://dsg537e6dc68" path="res://gui/overlays/controls_visualization/controller/controller_explanation.gd" id="1_n0s1n"] +[ext_resource type="FontVariation" uid="uid://cl6m4hqsnrpav" path="res://gui/resources/fonts/sansita-swashed-bold.tres" id="2_ewgm4"] +[ext_resource type="Texture2D" uid="uid://cf8hrxilqe2ih" path="res://gui/overlays/controls_visualization/arrow.svg" id="3_565r1"] +[ext_resource type="Texture2D" uid="uid://doo07i13vtb34" path="res://gui/overlays/controls_visualization/controller/controller.svg" id="5_nalwd"] + +[node name="ControllerExplanation" type="Control"] +custom_minimum_size = Vector2(0, 450) +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_bottom = -270.0 +grow_horizontal = 2 +grow_vertical = 2 +script = ExtResource("1_n0s1n") + +[node name="Control" type="Control" parent="."] +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="Node2D" type="Node2D" parent="Control"] +position = Vector2(0, 50) + +[node name="Controller" type="Sprite2D" parent="Control/Node2D"] +scale = Vector2(0.4, 0.4) +texture = ExtResource("5_nalwd") + +[node name="Arrow" type="Sprite2D" parent="Control/Node2D"] +position = Vector2(-250, -150) +rotation = 1.5707964 +scale = Vector2(0.5, 0.5) +texture = ExtResource("3_565r1") + +[node name="Arrow4" type="Sprite2D" parent="Control/Node2D"] +position = Vector2(45, -150) +scale = Vector2(0.5, -0.5) +texture = ExtResource("3_565r1") + +[node name="Arrow2" type="Sprite2D" parent="Control/Node2D"] +position = Vector2(260, -140) +rotation = 1.5707963 +scale = Vector2(0.5, -0.5) +texture = ExtResource("3_565r1") + +[node name="Arrow3" type="Sprite2D" parent="Control/Node2D"] +position = Vector2(215, 20) +rotation = -1.5707964 +scale = Vector2(0.5, 0.5) +texture = ExtResource("3_565r1") + +[node name="Move" type="Node2D" parent="Control/Node2D"] +position = Vector2(-330, -175) + +[node name="Label" type="Label" parent="Control/Node2D/Move"] +anchors_preset = 6 +anchor_left = 1.0 +anchor_top = 0.5 +anchor_right = 1.0 +anchor_bottom = 0.5 +offset_left = -549.0 +offset_top = -24.5 +offset_bottom = 24.5 +grow_horizontal = 0 +grow_vertical = 2 +theme_override_fonts/font = ExtResource("2_ewgm4") +theme_override_font_sizes/font_size = 40 +text = "c.controls_explanation.move" +horizontal_alignment = 2 + +[node name="Boost" type="Node2D" parent="Control/Node2D"] +position = Vector2(335, -165) + +[node name="Label" type="Label" parent="Control/Node2D/Boost"] +anchors_preset = 4 +anchor_top = 0.5 +anchor_bottom = 0.5 +offset_top = -24.5 +offset_right = 549.0 +offset_bottom = 24.5 +grow_vertical = 2 +theme_override_fonts/font = ExtResource("2_ewgm4") +theme_override_font_sizes/font_size = 40 +text = "c.controls_explanation.boost" + +[node name="InteractRight" type="Node2D" parent="Control/Node2D"] +position = Vector2(290, 25) + +[node name="Label" type="Label" parent="Control/Node2D/InteractRight"] +anchors_preset = 4 +anchor_top = 0.5 +anchor_bottom = 0.5 +offset_top = -24.5 +offset_right = 549.0 +offset_bottom = 24.5 +grow_vertical = 2 +theme_override_fonts/font = ExtResource("2_ewgm4") +theme_override_font_sizes/font_size = 40 +text = "c.controls_explanation.interact_right" + +[node name="InteractLeft" type="Node2D" parent="Control/Node2D"] +position = Vector2(20, -250) + +[node name="Label" type="Label" parent="Control/Node2D/InteractLeft"] +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -274.5 +offset_top = -24.5 +offset_right = 274.5 +offset_bottom = 24.5 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_fonts/font = ExtResource("2_ewgm4") +theme_override_font_sizes/font_size = 40 +text = "c.controls_explanation.interact_left" +horizontal_alignment = 1 -- cgit v1.2.3-70-g09d2