Jump to content




[CC 1.3 / 1.4] Load Screen / Bar API — The first REALTIME load screen — Use your logo as progress! Now you can have multiple progress bars!

api utility

  • This topic is locked This topic is locked
37 replies to this topic

#21 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 13 January 2013 - 01:08 PM

Ah, just a bar, yeah that makes more sense :P

#22 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 13 January 2013 - 01:12 PM

View PostremiX, on 13 January 2013 - 01:08 PM, said:

Ah, just a bar, yeah that makes more sense :P
Yeh...

just added this error message :P
if #usedIds == 999 then error( "Maximum load bars reached, you have used 999, how?! Tell me on the forum post! Better yet, SHOW ME!" ) end


#23 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 13 January 2013 - 01:16 PM

999 o_O, i highly doubt anyone will use that many lol, or even able to.

Even if you make the block 1x1, there's only a max of 969 blocks.

Adv PC's are 19x51?
19x51 = 969 so yeah...

#24 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 13 January 2013 - 01:20 PM

View PostremiX, on 13 January 2013 - 01:16 PM, said:

999 o_O, i highly doubt anyone will use that many lol, or even able to.

Even if you make the block 1x1, there's only a max of 969 blocks.

Adv PC's are 19x51?
19x51 = 969 so yeah...
Its objects, and it keeps track of the objects, they don't all have to be displaying at once, just created...

#25 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 13 January 2013 - 01:23 PM

Oh yeah, right. Do they get destroyed once all the 'steps' are done? Can't remember what was in the api :o

#26 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 13 January 2013 - 01:30 PM

View PostremiX, on 13 January 2013 - 01:23 PM, said:

Oh yeah, right. Do they get destroyed once all the 'steps' are done? Can't remember what was in the api :o

Well the released one was just a standard API so there was no destroy code... this one however since they are all objects will have dealloc code yes... still deciding if it should be auto dealloc or manual though... I would make it manual if I added a reset() method... thoughts?

#27 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 13 January 2013 - 01:47 PM

Hmm, both?

Add another argument in the calling of the bars for a 'timeout' if you can. Then after that amount of seconds, the object get's destroyed. Or can destroy it with load.destroy()

#28 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 13 January 2013 - 01:55 PM

hmmm ok I'll do that... we shall see how well the timeout thing works...

#29 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 13 January 2013 - 02:46 PM

Just thinking about it then, and realised that a timer to destroy won't work... id have to pull all events and check the event then, id prefer it stay only pulling its own events...

#30 Doyle3694

  • Members
  • 815 posts

Posted 13 January 2013 - 03:35 PM

wouldn't it be cool if you like changed os.pullEvent or something so that it stores the events, thus you can save to a file how many events take to load the program and for the next startup just check percentages with the 2 numbers.

Though, were cool API!

#31 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 13 January 2013 - 03:38 PM

View PostDoyle3694, on 13 January 2013 - 03:35 PM, said:

wouldn't it be cool if you like changed os.pullEvent or something so that it stores the events, thus you can save to a file how many events take to load the program and for the next startup just check percentages with the 2 numbers.

Though, were cool API!
It would be quite cool to do, but I think the implementation of it would be quite difficult, since on first run it would have no idea of event counts... but thank for the suggestion :)

Thank you :)

#32 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 14 January 2013 - 12:22 AM

UPDATE v2.0!


Full rewrite of API, load screen / bars are now objects... 2 new modes...

See OP for more details...

#33 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 14 January 2013 - 02:03 AM

Edited OP with 'Examples of Usage' code... Also new version with a few bugs squished...

#34 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 14 January 2013 - 02:43 AM

Nice

#35 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 14 January 2013 - 02:44 AM

View PostremiX, on 14 January 2013 - 02:43 AM, said:

Nice

Haha thanx... biggest update I've ever done... hardest update I've ever done... felt like I wrote so much more than ~500 lines of code!

#36 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 14 January 2013 - 04:18 AM

View PostTheOriginalBIT, on 14 January 2013 - 02:44 AM, said:

View PostremiX, on 14 January 2013 - 02:43 AM, said:

Nice

Haha thanx... biggest update I've ever done... hardest update I've ever done... felt like I wrote so much more than ~500 lines of code!

Like a boss :P

There's not much you can add now, is there? xD

#37 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 14 January 2013 - 04:24 AM

View PostremiX, on 14 January 2013 - 04:18 AM, said:

View PostTheOriginalBIT, on 14 January 2013 - 02:44 AM, said:

View PostremiX, on 14 January 2013 - 02:43 AM, said:

Nice

Haha thanx... biggest update I've ever done... hardest update I've ever done... felt like I wrote so much more than ~500 lines of code!

Like a boss :P

There's not much you can add now, is there? xD

Nah I have a feeling it just might be a few little things... like the Apple OS 9 style, and the iPhone style... other than that, I don't think there is much left...

#38 AfterLifeLochie

    Wiki Oracle

  • Moderators
  • 480 posts
  • LocationAfterLifeLochie's "Dungeon", Australia

Posted 25 January 2013 - 12:49 AM

Locked by request.





3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users