Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Tybobobo | |
Old Version | Published before Godot 3 was released. |
I am trying to emulate the console from JKA;
However I am unable to find any existing functionality to support this in existing nodes such as TextEdit or Label ( http://docs.godotengine.org/en/latest/classes/class_textedit.html )
I figure I could create a separate TextEdit and Label in order to get input using TextEdit and display the output using Label - making it appear like the console example above.
I am also looking for a way to make the text appear from bottom and move upwards instead of starting at the top.
The main purpose of the console is debugging - which later also can be used for various tasks such as changing key bindings, creating custom binds, and other stuff like Quake games use.
Opinions? Tips?
TLDL;
-
Which node types are best to create a console window?
-
How do I make text appear from the bottom and move upwards?
What you wrote make sense to me, for output I would use RichtextLabel since it’s easy to format text with it (or break the line). I would also add Animation player to control showing and hiding of the console, and generally you are good to go I guess?
kubecz3k | 2016-03-02 09:38
Nice tip - I will look into animation in order to show/hide that when I get that far
I am checking out rich text label, as well as lineedit for input
Tybobobo | 2016-03-02 09:41