Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Bitmap Number
#3
updaaaaate

Dear past me, what made you think tx = (digit * text.length) - digit or tx = ((digit-offset) * text.length) - digit worked for finding the width of the created bitmap? On that, since when did x -= (tx / 2) + ((digit-offset) / 2) make sense for the centre offset, when the tx alone should be giving the width needed?

Except well, it didn't. tx was ballsingly wrong and that wasn't obvious to me until I wanted a specific right-align value, only to discover... it wasn't drawing to the right place. I then spent a night realigning every instance of this in my own project after fixing this.

So this got an update, I fixed the bad calculations and switched around the arguments a little so that some can be omitted in a more sensible fashion. That is to say, wanting to specify a different alignment would be more common than a different offset, if you've actually got consistent number sizes.
Reply }


Messages In This Thread
Bitmap Number - by Taylor - 04-13-2011, 12:44 PM
RE: Bitmap Number - by Taylor - 06-09-2012, 07:57 AM
RE: Bitmap Number - by Taylor - 01-31-2014, 10:27 PM
RE: Bitmap Number - by JayRay - 02-01-2014, 03:40 PM
RE: Bitmap Number - by Taylor - 03-29-2015, 12:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   MapEffects for Whiteflute's Bitmap EX Narzew 3 8,151 05-05-2012, 09:31 PM
Last Post: Narzew
   Additional Bitmap Methods untra 4 9,333 06-04-2010, 03:55 AM
Last Post: untra



Users browsing this thread: