added rich text label instead of regular label for terminal but there are bugs

This commit is contained in:
BrazlyBearWolf
2026-01-23 04:01:11 +00:00
parent d1d32aef84
commit 86fe0cad08
3 changed files with 76 additions and 21 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=22 format=3 uid="uid://cqtabc6coc58l"]
[gd_scene load_steps=23 format=3 uid="uid://cqtabc6coc58l"]
[ext_resource type="Script" uid="uid://dmtpstry0o0a3" path="res://Assets/Scripts/Player Controls/player_movement.gd" id="1_48dl1"]
[ext_resource type="PackedScene" uid="uid://cbpsnsta7u3wl" path="res://Scenes/Special_Effects/PSX_style.tscn" id="2_gba58"]
@@ -87,6 +87,9 @@ viewport_path = NodePath("Interactables/PC/Sprite3D/SubViewport")
[sub_resource type="LabelSettings" id="LabelSettings_nmbs0"]
font_size = 42
[sub_resource type="Theme" id="Theme_nmbs0"]
default_font_size = 42
[node name="Node3D" type="Node3D"]
[node name="PlayerController" type="Node3D" parent="."]
@@ -242,7 +245,8 @@ scroll_vertical_custom_step = 0.001
[node name="VBoxContainer" type="VBoxContainer" parent="Interactables/PC/Sprite3D/SubViewport/MarginContainer/ScrollContainer"]
layout_mode = 2
[node name="Label" type="Label" parent="Interactables/PC/Sprite3D/SubViewport/MarginContainer/ScrollContainer/VBoxContainer"]
[node name="Label3" type="Label" parent="Interactables/PC/Sprite3D/SubViewport/MarginContainer/ScrollContainer/VBoxContainer"]
visible = false
clip_contents = true
custom_minimum_size = Vector2(1800, 0)
layout_mode = 2
@@ -250,10 +254,20 @@ text = "a0ifjaojkfna"
label_settings = SubResource("LabelSettings_nmbs0")
autowrap_mode = 3
[node name="Label" type="RichTextLabel" parent="Interactables/PC/Sprite3D/SubViewport/MarginContainer/ScrollContainer/VBoxContainer"]
clip_contents = false
layout_mode = 2
size_flags_vertical = 0
theme = SubResource("Theme_nmbs0")
bbcode_enabled = true
text = "afafafafafafa"
fit_content = true
[node name="Caret" type="ColorRect" parent="Interactables/PC/Sprite3D/SubViewport/MarginContainer/ScrollContainer/VBoxContainer/Label"]
layout_mode = 0
offset_top = -62.0
offset_right = 24.0
offset_bottom = 42.0
offset_bottom = -20.0
[node name="CaretTimer" type="Timer" parent="Interactables/PC/Sprite3D/SubViewport/MarginContainer/ScrollContainer/VBoxContainer/Label"]
wait_time = 0.5