Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Text Block Sprite — Gideros Forum

Text Block Sprite

andybarillaandybarilla Member
edited March 2012 in Code snippets
I created a control for a block of text. It works much like the TextField but you can specify the maximum width and it will wrap to a second line.
	local textArea = TextArea.new(font, text)	
	textArea:setPosition(10, 10)
	textArea:setMaxWidth(300)
	textArea:setLineSpacing(4)
	textArea:setTextColor(0xffffff)
	self:addChild(textArea)
The source code is here: https://github.com/mozicodo/gideros-TextArea
+1 -1 (+4 / -0 )Share on Facebook

Comments

Sign In or Register to comment.