Gloria beat me to it, but here are some more details:
Yeah there is a control called
_label that is for displaying text. Knowing that all GUI controls are in fact prototypes of GUI classes, the simplest form you could do something in code like create a label node:
myLabel as NodeRef of class GUILabel = CreateNodeFromPrototype("_label")
myLabel.build = true
The "build = true" line is very important. That line causes the structure of the control to be built and any gui control created needs to have that put somewhere after it is created. If there are any child controls, they are not created until after build = true.
The GUILabel class has a field called "text" that defines what text it displays. There are also other properties such as defining the font to use and how it is justified, e.g. centered, left, right, etc.
Like all GUI controls, there are properties of position and size to determine the rectangular space it will occupy in its parent, which is the screen by default.
Make sure you store that label reference so you can later delete it or hide it. Like all nodes, you can use DestroyNode() if you want to just get rid of it.
Note that for anything more complex, the GUI Editor is the preferred method for designing GUI's rather than trying to set every property in code.
See these pages for some more details:
http://hewiki.heroengine.com/wiki/GUI_Controls#GUILabelhttp://hewiki.heroengine.com/wiki/GUI_Label_Markuphttp://hewiki.heroengine.com/wiki/GUI_Editor