Author Topic: Follow our progress  (Read 48691 times)

Offline tyty1234

  • Self Starter
  • *
  • Posts: 36
    • View Profile
    • tyty1234's SMF Site
Re: Follow our progress
« Reply #15 on: January 17, 2010, 09:04:29 pm »
How'd you guys make the progress bar anyway? I'm so impressed by it! (compared to the one I made for DP....but of course, that one was simple and easy to use, so I went with that one. :D)
tyty1234
Co-Founder of Dream Portal

Gruffen

  • Guest
Re: Follow our progress
« Reply #16 on: January 17, 2010, 09:17:30 pm »
Nas did by far most of it, I did a little cleanup only.

It grabs the number of resolved issues, and solved issues, from Project Tools for the current version (standard DB query), which gives us the percentages.

The bar itself is basic drawing ops, adding the text is a small matter of imagettftext, carefully writing the text twice, the first time slightly offset to the right in a different colour, the second time in its proper place and colour - presto, one insta-shadow.

As for the logo and checkmark, we have those as alpha blended PNGs which are just dropped into place with a careful imagecopyresample to preserve transparency. And then once a day we push them via cron to avoid punishing the DB. And that's all there is to it :)

Offline Trekkie101

  • Project Manager
  • Team
  • *
  • Posts: 389
  • Ticket!?
    • View Profile
    • Lux Mundi
Re: Follow our progress
« Reply #17 on: January 17, 2010, 10:04:27 pm »
Nas did by far most of it, I did a little cleanup only.

It grabs the number of resolved issues, and solved issues, from Project Tools for the current version (standard DB query), which gives us the percentages.

The bar itself is basic drawing ops, adding the text is a small matter of imagettftext, carefully writing the text twice, the first time slightly offset to the right in a different colour, the second time in its proper place and colour - presto, one insta-shadow.

As for the logo and checkmark, we have those as alpha blended PNGs which are just dropped into place with a careful imagecopyresample to preserve transparency. And then once a day we push them via cron to avoid punishing the DB. And that's all there is to it :)

What he really meant to say was: It was a project in itself.

Gruffen

  • Guest
Re: Follow our progress
« Reply #18 on: January 17, 2010, 10:09:37 pm »
Haha, yes, it was in some ways - especially cron.

Now I remember why I prefer making Scheduled Tasks ;D

Offline tyty1234

  • Self Starter
  • *
  • Posts: 36
    • View Profile
    • tyty1234's SMF Site
Re: Follow our progress
« Reply #19 on: January 17, 2010, 11:00:19 pm »
That's really interesting. Our bar updates manually by manual input. However, we kinda pushed the bar too far too fast. xD
tyty1234
Co-Founder of Dream Portal

Gruffen

  • Guest
Re: Follow our progress
« Reply #20 on: January 17, 2010, 11:08:35 pm »
That's the neat thing with us; should we get bugs opened by the beta testers in the run up to 1.0, the bar goes back automatically... while it might look odd, we take the view that it is more accurate that way.

Offline tyty1234

  • Self Starter
  • *
  • Posts: 36
    • View Profile
    • tyty1234's SMF Site
Re: Follow our progress
« Reply #21 on: January 17, 2010, 11:23:02 pm »
I sense alot of conditionals in that one file. lol.
Pretty neat, I must say. :)

* tyty1234 envies SD's progress bar.... :(
tyty1234
Co-Founder of Dream Portal

Gruffen

  • Guest
Re: Follow our progress
« Reply #22 on: January 17, 2010, 11:26:37 pm »
Actually, I don't think there is, but I didn't write most of it, to be fair.

Offline [FailSafe]

  • Beta Tester
  • *
  • Posts: 198
    • View Profile
Re: Follow our progress
« Reply #23 on: January 18, 2010, 12:57:04 pm »
Wow, for a progress bar that seems so simple there is a lot going on behind the scenes. But you're right Arantor, the way you did it makes it a more true. :)

Offline cσσкιє мσηѕтєя

  • Co-Founder
  • SD Friends
  • *
  • Posts: 1,652
  • The cake is a lie. We have but cookies.
    • View Profile
Re: Follow our progress
« Reply #24 on: January 18, 2010, 03:51:31 pm »
If anyone's interested, I have no problem sharing the code. JBlaze and Arantor will have to agree though since they both did a fair amount of work (JB did the actual base which I then used for the current version).

Offline Bᵃ

  • SD Friends
  • *
  • Posts: 657
  • Are we there yet?
    • View Profile
Re: Follow our progress
« Reply #25 on: January 18, 2010, 04:19:03 pm »
If they agree, it'd be kind of cool to give it its own blog post. :)

B
Conquer Club - Free Global Domination Game
Think the board game Risk on steroids!

Offline [FailSafe]

  • Beta Tester
  • *
  • Posts: 198
    • View Profile
Re: Follow our progress
« Reply #26 on: January 18, 2010, 08:34:42 pm »
I agree. I'd love to see that! With their permission of course. ;D

Offline Trekkie101

  • Project Manager
  • Team
  • *
  • Posts: 389
  • Ticket!?
    • View Profile
    • Lux Mundi
Re: Follow our progress
« Reply #27 on: January 18, 2010, 10:27:58 pm »
Internally somethings being whipped up.

Offline ѕησω

  • Beta Tester
  • *
  • Posts: 171
  • Australian
    • View Profile
Re: Follow our progress
« Reply #28 on: January 21, 2010, 03:44:41 am »
Wow, I thought you guys where just editing the picture the more you went on, not actually a system to calculate the bugs and such in the project tool.

Gruffen

  • Guest
Re: Follow our progress
« Reply #29 on: January 21, 2010, 09:12:49 am »
The first version was pretty much what you're suggesting, but the second version - it only makes sense to do that because it's one less job for us ;)

Besides, we've got the bug tracker, and it's the most accurate list of what needs doing, really.