Skip to content

Question about editing LineEdit's properties within Dialogic's default layout #1798

Closed Answered by skulltrick
aumusic asked this question in Q&A
Discussion options

You must be logged in to vote

I ran into the same issue before and found a way to work around it:

Go to: res://addons/dialogic/Modules/TextInput/node_text_input.gd

Change the ready function from this:

func _ready():
	add_to_group('dialogic_text_input')
	if confirmation_button:
		get_node(confirmation_button).pressed.connect(_on_confirmation_button_pressed)
	if input_line_edit:
		get_node(input_line_edit).text_changed.connect(_on_input_text_changed)
	visible = false

To this:

func _ready():
	add_to_group('dialogic_text_input')
	if confirmation_button:
		get_node(confirmation_button).pressed.connect(_on_confirmation_button_pressed)
	if input_line_edit:
		get_node(input_line_edit).max_length = 6
		get_node(input_line_edi…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by aumusic
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants