diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-12-04 23:40:19 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-12-04 23:40:19 +0200 |
| commit | 9e9f6984a500ec6eab02fa651eaaf3472c281c2a (patch) | |
| tree | fcf4e698f185897a1b60236d9fcaeab0e88ac246 /text_bubble.tscn | |
| parent | 872d1f9200584973b2156102f0e7f03b3d271687 (diff) | |
Improve dialogue
Diffstat (limited to 'text_bubble.tscn')
| -rw-r--r-- | text_bubble.tscn | 46 |
1 files changed, 31 insertions, 15 deletions
diff --git a/text_bubble.tscn b/text_bubble.tscn index 42ead69..0ac3e32 100644 --- a/text_bubble.tscn +++ b/text_bubble.tscn @@ -1,27 +1,43 @@ -[gd_scene load_steps=2 format=3 uid="uid://dglar4tto3f1s"] +[gd_scene load_steps=3 format=3 uid="uid://dglar4tto3f1s"] [ext_resource type="Script" uid="uid://dubgnmdd6p1rs" path="res://text_bubble.gd" id="1_bo3s3"] +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_j0576"] +bg_color = Color(0.7372549, 0.69803923, 0.43529412, 1) + [node name="TextBubble" type="Node2D"] +scale = Vector2(0.25, 0.25) script = ExtResource("1_bo3s3") -[node name="ColorRect" type="ColorRect" parent="."] -offset_left = -26.0 -offset_top = -6.0 -offset_right = 14.0 -offset_bottom = 34.0 -scale = Vector2(1.3009955, 0.30328855) -color = Color(1, 0.8980392, 0.7490196, 1) -metadata/_edit_use_anchors_ = true +[node name="PanelContainer" type="PanelContainer" parent="."] +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_styles/panel = SubResource("StyleBoxFlat_j0576") -[node name="Label" type="Label" parent="."] -offset_left = -25.0 -offset_top = -3.0 -offset_right = 174.0 -offset_bottom = 20.0 -scale = Vector2(0.25, 0.25) +[node name="MarginContainer" type="MarginContainer" parent="PanelContainer"] +layout_mode = 2 +theme_override_constants/margin_left = 20 +theme_override_constants/margin_top = 5 +theme_override_constants/margin_right = 20 +theme_override_constants/margin_bottom = 5 + +[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer/MarginContainer"] +clip_contents = true +layout_mode = 2 +size_flags_vertical = 4 + +[node name="Label" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer"] +layout_mode = 2 +size_flags_horizontal = 4 theme_override_colors/font_color = Color(0, 0, 0, 1) text = "foo" horizontal_alignment = 1 vertical_alignment = 1 metadata/_edit_use_anchors_ = true + +[node name="HBoxContainer" type="HBoxContainer" parent="PanelContainer/MarginContainer/VBoxContainer"] +layout_mode = 2 +alignment = 1 |
