added dialog bubble without function

This commit is contained in:
2022-11-28 21:27:54 +01:00
parent 67d2f5ca59
commit 43a7ddbf76
4 changed files with 35 additions and 32 deletions

View File

@@ -1,8 +1,11 @@
[gd_scene load_steps=2 format=3 uid="uid://d6ngurhq1r5y"]
[gd_scene load_steps=3 format=3 uid="uid://d6ngurhq1r5y"]
[ext_resource type="Script" path="res://src/scene-scripts/gui/dialog_bubble.cs" id="1_txwv4"]
[ext_resource type="FontFile" uid="uid://cx6bvqk0ghmjv" path="res://assets/font/urbane-rounded-medium.otf" id="1_vlvkg"]
[node name="dialog_bubble" type="CanvasLayer"]
visible = false
script = ExtResource("1_txwv4")
metadata/_edit_use_anchors_ = true
[node name="ColorRect" type="ColorRect" parent="."]
@@ -15,7 +18,6 @@ offset_top = -190.0
offset_right = -210.0
offset_bottom = -20.0
grow_horizontal = 2
grow_vertical = 0
[node name="TextLabel" type="Label" parent="."]
anchors_preset = -1
@@ -26,10 +28,20 @@ anchor_bottom = 0.972
offset_left = 0.319977
offset_top = -19.64
offset_right = 0.380005
offset_bottom = -19.84
offset_bottom = -4.84003
grow_horizontal = 2
grow_vertical = 0
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_fonts/font = ExtResource("1_vlvkg")
theme_override_font_sizes/font_size = 32
text = "This is test text"
[node name="NameLabel" type="Label" parent="."]
offset_left = 252.0
offset_top = 532.0
offset_right = 302.0
offset_bottom = 558.0
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_fonts/font = ExtResource("1_vlvkg")
theme_override_font_sizes/font_size = 16
text = "Name"

View File

@@ -1,10 +1,13 @@
[gd_scene load_steps=3 format=3 uid="uid://2867aayx0skw"]
[gd_scene load_steps=4 format=3 uid="uid://2867aayx0skw"]
[ext_resource type="PackedScene" uid="uid://ujfhvssvbgpg" path="res://scenes/player.tscn" id="1_p5d84"]
[ext_resource type="PackedScene" uid="uid://cld0jncmsk1bj" path="res://scenes/worlds/first_world.tscn" id="2_x8nyb"]
[ext_resource type="PackedScene" uid="uid://d6ngurhq1r5y" path="res://scenes/gui/dialog_bubble.tscn" id="3_ohogx"]
[node name="main" type="Node2D"]
[node name="first_world" parent="." instance=ExtResource("2_x8nyb")]
[node name="player" parent="." instance=ExtResource("1_p5d84")]
[node name="dialog_bubble" parent="." instance=ExtResource("3_ohogx")]

View File

@@ -1,28 +0,0 @@
[gd_scene load_steps=5 format=3 uid="uid://42f1sggm2w0g"]
[ext_resource type="Texture2D" uid="uid://p5ubildre2tg" path="res://assets/textures/debug/cupcake.png" id="1_qmvgm"]
[ext_resource type="PackedScene" path="res://scenes/gui/trigger/dialog_object_area.tscn" id="2_m1t8o"]
[sub_resource type="CircleShape2D" id="CircleShape2D_2d5dy"]
radius = 30.8058
[sub_resource type="RectangleShape2D" id="RectangleShape2D_nu5em"]
size = Vector2(68, 65)
[node name="first_debug_tile" type="StaticBody2D"]
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("1_qmvgm")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(-1, 4)
shape = SubResource("CircleShape2D_2d5dy")
[node name="dialog_area" parent="." instance=ExtResource("2_m1t8o")]
dialogKey = "cupcake"
[node name="CollisionShape2D" parent="dialog_area" index="0"]
position = Vector2(0, 0.5)
shape = SubResource("RectangleShape2D_nu5em")
[editable path="dialog_area"]