How to prevent from using much of the same node?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By SubBut

Obviously I am new with the engine. I am trying doing a table for the user fill with datas, but to do it I cant think in another way than using a lot of the same node.

Like this:

Engine godot workspace

Still have more LineEdit to add for, and I aint liking it.
If anybody could give me another solution, I would be very grateful

:bust_in_silhouette: Reply From: exuin

You could try making your own class that extends line edit.

That is a good sugestion.
Could you show me how I implement this in Gdscript?

A simple example is enough.
And thanks btw

SubBut | 2021-03-20 20:17

As exuin said, you you make your own class. The addition of Line edits could be dynamic depending on the data or user input.

MrEliptik | 2021-03-20 20:20

Honestly, I can’t since I’ve never tried this before

exuin | 2021-03-20 20:23

hahaha It’s ok, I’m grateful anyway. At least I have a north now

SubBut | 2021-03-20 20:35