72 lines
2.8 KiB
Plaintext
72 lines
2.8 KiB
Plaintext
[gd_scene load_steps=4 format=3 uid="uid://bkx3l0kckf4a8"]
|
|
|
|
[ext_resource type="Theme" uid="uid://dm7ee4aqjr2dl" path="res://ui/UI Theme.tres" id="1_wx4lp"]
|
|
[ext_resource type="Script" uid="uid://h8lw23ypcfty" path="res://ui/component/VNTextbox.gd" id="2_uo1gm"]
|
|
[ext_resource type="Script" uid="uid://bjj6upgk1uvxd" path="res://ui/component/advancedrichtext/AdvancedRichText.gd" id="3_m60k3"]
|
|
|
|
[node name="VNTextbox" type="PanelContainer"]
|
|
clip_contents = true
|
|
anchors_preset = 12
|
|
anchor_top = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_top = -58.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
theme = ExtResource("1_wx4lp")
|
|
script = ExtResource("2_uo1gm")
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="."]
|
|
clip_contents = true
|
|
layout_mode = 2
|
|
theme = ExtResource("1_wx4lp")
|
|
theme_override_constants/margin_left = 4
|
|
theme_override_constants/margin_top = 4
|
|
theme_override_constants/margin_right = 4
|
|
theme_override_constants/margin_bottom = 4
|
|
|
|
[node name="Label" type="RichTextLabel" parent="MarginContainer"]
|
|
layout_mode = 2
|
|
theme = ExtResource("1_wx4lp")
|
|
bbcode_enabled = true
|
|
text = "Hello, I'm an NPC!
|
|
This is the second line here, I am purposefully adding a tonne of words so that it is forced to go across multiple lines and you can see how the word wrapping works, not only using Godot's built in word wrapping but with my advanced visibile characters smart wrapping. Now I am doing a multiline thing
|
|
Line 1
|
|
Line 2
|
|
Line 3
|
|
Line 4
|
|
Line 5
|
|
Line 6
|
|
Line 7
|
|
Line 8
|
|
Line 9
|
|
Line 10"
|
|
script = ExtResource("3_m60k3")
|
|
userText = "Hello, I'm an NPC!
|
|
This is the second line here, I am purposefully adding a tonne of words so that it is forced to go across multiple lines and you can see how the word wrapping works, not only using Godot's built in word wrapping but with my advanced visibile characters smart wrapping. Now I am doing a multiline thing
|
|
Line 1
|
|
Line 2
|
|
Line 3
|
|
Line 4
|
|
Line 5
|
|
Line 6
|
|
Line 7
|
|
Line 8
|
|
Line 9
|
|
Line 10"
|
|
_finalText = "Hello, I'm an NPC!
|
|
This is the second line here, I am purposefully adding a tonne of words so that it is forced to go across multiple lines and you can see how the word wrapping works, not only using Godot's built in word wrapping but with my advanced visibile characters smart wrapping. Now I am doing a multiline thing
|
|
Line 1
|
|
Line 2
|
|
Line 3
|
|
Line 4
|
|
Line 5
|
|
Line 6
|
|
Line 7
|
|
Line 8
|
|
Line 9
|
|
Line 10"
|
|
_newLineIndexes = Array[int]([0])
|
|
_lines = PackedStringArray("Hello, I\'m an NPC!", "This is the second line here, I am purposefully adding a tonne of words so that it is forced to go across multiple lines and you can see how the word wrapping works, not only using Godot\'s built in word wrapping but with my advanced visibile characters smart wrapping. Now I am doing a multiline thing", "Line 1", "Line 2", "Line 3", "Line 4", "Line 5", "Line 6", "Line 7", "Line 8", "Line 9", "Line 10")
|
|
maxLines = 4
|