Mostly finished VN textbox

This commit is contained in:
2025-09-16 23:27:02 -05:00
parent 96b5bae9d0
commit 1e83200bba
7 changed files with 132 additions and 126 deletions

View File

@@ -31,7 +31,7 @@ class_name NPC extends CharacterBody3D
return 64.0
func onInteract(player:Player) -> void:
print("Interacted with NPC")
UI.TEXTBOX.setText("Hello, I'm an NPC!\nThis 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\nLine 1\nLine 2\nLine 3\nLine 4\nLine 5\nLine 6\nLine 7\nLine 8\nLine 9\nLine 10");
pass
func _enter_tree() -> void: