Search found 34 matches
- Tue Jan 25, 2011 5:10 am
- Forum: Libraries and Tools
- Topic: a Rich Text library for LÖVE
- Replies: 92
- Views: 31064
Re: a Rich Text library for LÖVE
Line height doesn't seem to be working though. Could be this bug . Can't say for sure, but a quick glance at the source seems to indicate that the library does all spacing / laying out itself. Another possible bug! Woo. Wrapping seems inconsistent. Sometimes it seems to work perfectly, sometimes ri...
- Mon Jan 24, 2011 11:50 pm
- Forum: Libraries and Tools
- Topic: a Rich Text library for LÖVE
- Replies: 92
- Views: 31064
Re: a Rich Text library for LÖVE
Colours work fantastically. Line height doesn't seem to be working though. log-1-line-height.png log-3-line-height.png I put a print into the rich text library where it's calculating height to ensure that the write font was being used / line height detected. P.S. Thanks for all the work you're putti...
- Mon Jan 24, 2011 5:50 am
- Forum: Libraries and Tools
- Topic: a Rich Text library for LÖVE
- Replies: 92
- Views: 31064
Re: a Rich Text library for LÖVE
Just upgraded, and I had two small problems. 1. If colormode is set to replace by the love app, text won't be drawn with colours. I can see the justification for going with the user's choice, but when asking for a colour, I suspect people want a colour. In any case, I just chucked the colour modes I...
- Mon Jan 24, 2011 12:46 am
- Forum: Libraries and Tools
- Topic: HSV colour transitions
- Replies: 2
- Views: 1570
HSV colour transitions
Something I did for my game recently was a small colour module to allow me to calculate transitions between two colours using the hsv colour space. This means I can make a gradient from one colour to another, without getting muddy-looking colours in the middle, which transitioning through RGB gets y...
- Sun Jan 02, 2011 11:10 pm
- Forum: Support and Development
- Topic: Getting the date modified of a file
- Replies: 3
- Views: 1257
Re: Getting the date modified of a file
FWIW, my cheap hack to get around this is just to write the curent datetime to the first line of a file when I make a savegame, then when I need to find the latest save just read in every save file's first line.
- Thu Nov 11, 2010 12:08 am
- Forum: Libraries and Tools
- Topic: a Rich Text library for LÖVE
- Replies: 92
- Views: 31064
Re: a Rich Text library for LÖVE
[EDIT: pushed. You may commence the cheering.] Just updated to it. I get an error running it out of the box, where it sets self.height = y. "Attempt to index global self, a nil value." Having fixed that, unfortunately your change doesn't seem to have stopped the weird rendering for a fram...
- Wed Nov 10, 2010 1:02 am
- Forum: Libraries and Tools
- Topic: a Rich Text library for LÖVE
- Replies: 92
- Views: 31064
Re: a Rich Text library for LÖVE
Hm. The problem seems to be that RichText doesn't round off any positions. Luckily, that's fixable. Ah. I didn't think of that when I first ran into these problems. Though... why would not rounding be a problem when rendering text to an image but not when rendering directly to screen? I'd have thou...
- Mon Nov 08, 2010 11:25 pm
- Forum: Libraries and Tools
- Topic: a Rich Text library for LÖVE
- Replies: 92
- Views: 31064
Re: a Rich Text library for LÖVE
I've noticed rendering text to a buffer seems to make it extremely ugly and hard to read. That seems to be love wide rather than specific to this library though. I don't suppose anyone knows what's going on there? I can attach screenshots if someone wants. Odd, I have never seen that effect. Screen...
- Mon Nov 08, 2010 5:05 am
- Forum: Libraries and Tools
- Topic: a Rich Text library for LÖVE
- Replies: 92
- Views: 31064
Re: a Rich Text library for LÖVE
I just switched my combat log rendering from native love drawing to rich text. Looks nice so far. One thing I needed to hack into my copy of it was storing the total height of the rendered text on the rich text object so I could access it later -- unless I'm overlooking something I don't see anywher...
- Wed Nov 03, 2010 1:09 am
- Forum: Support and Development
- Topic: Getting number of lines of printf
- Replies: 15
- Views: 4407
Re: Getting number of lines of printf
I think I'm missing something in this function. Test code: function love.load() font = love.graphics.newFont(12) love.graphics.setFont(font) lines = 0 text = "" timePassed = 0 end function love.draw() love.graphics.setColor(255, 255, 255) love.graphics.printf(text, 0, 0, 1000, "left&q...