[v2.0] Tasty Text - (colors/wrapping/align + more!)

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
markgo
Party member
Posts: 190
Joined: Sat Jan 05, 2013 12:21 am
Location: USA

[v2.0] Tasty Text - (colors/wrapping/align + more!)

Post by markgo »

A library aimed at creating easily scrollable and wrap-able texts. It requires the utf8 library from Kyle Smith.

Current version : 2.0
Version 2.0 is a complete rewrite. It's new and improved!
Repository: https://github.com/markandgo/text.lua

http://imgur.com/3kVwvgj
tastytext20.love
(131.3 KiB) Downloaded 486 times
Old versions:
textv0.9.love
(127.6 KiB) Downloaded 405 times
textv1.2.love
(133.62 KiB) Downloaded 437 times
v0.91 (old version with advance scrolling options)
https://gist.github.com/markandgo/5552086
Last edited by markgo on Mon Jun 09, 2014 2:31 am, edited 21 times in total.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: text.lua - text with wrapping and scrolling support

Post by Robin »

Pretty neat. You may want to take a look at RichText, which has the ability insert images and change fonts and colours mid-text.
Help us help you: attach a .love.
User avatar
markgo
Party member
Posts: 190
Joined: Sat Jan 05, 2013 12:21 am
Location: USA

Re: text.lua - text with wrapping and scrolling support

Post by markgo »

Hey thanks for the link. I'm trying to keep it strictly textual, but I'll take a look at how you handle colors.
User avatar
markgo
Party member
Posts: 190
Joined: Sat Jan 05, 2013 12:21 am
Location: USA

Re: text.lua - fancy text (custom effects + more!)

Post by markgo »

Bump for added ability to color texts, add images, and do any neat text effect.
User avatar
Ratchet
Citizen
Posts: 67
Joined: Mon Apr 08, 2013 10:32 am

Re: [v1.2] text.lua - (colors/wrapping/align + more!)

Post by Ratchet »

Fantastic work, just what I need. Will give you a extra section in my credits ^.^

Found two tiny bugs: When your text starts with a line break ("\nMy text") then it prints just nothing and RowCount is 0. I solved this just by removing the line breaks at the start of the string.

In function text.new, when you give a non string to parameter str it chrashes. I solved this by add a tostring at the call createRowStrings(t,tostring(str),taghandlers)
macOS 10.14 Mojave | LÖVE 11.2
User avatar
markgo
Party member
Posts: 190
Joined: Sat Jan 05, 2013 12:21 am
Location: USA

Re: [v2.0] Tasty Text - (colors/wrapping/align + more!)

Post by markgo »

A new version has been released. It's a complete rewrite. It's what you love plus some more.
Post Reply

Who is online

Users browsing this forum: pericles and 68 guests