Add an underline beneath a Cocos2d-x Lua label with DrawNode and drawSegment by wrapping endpoints, color, width, scale, and positioning in a reusable helper.
Draw an Underline with DrawNode
An underline is simply a short line positioned below the text. The following helper creates a DrawNode containing a segment between two points: