Thread: [Refactored] Custom loading bar

Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1 [Refactored] Custom loading bar 
    Registered Member
    Join Date
    Apr 2012
    Posts
    378
    Thanks given
    6
    Thanks received
    27
    Rep Power
    18
    Took around 1 minute to make.

    Just a small gradient (No sprites used)

    Noob friendly:
    Open client.java and find
    Code:
    drawLoadingText(int i, String s)
    In that method find something like:
    Code:
    DrawingArea.drawPixels(30, j + 2, c / 2 - 150, 0x8c1111, i * 3);
    Replace that line with:
    Code:
    int color = 0x8c1111;
    		int color2 = 0;
    		
    		while(color2 <= 30)
    		{
    			DrawingArea.drawPixels(30-color2, j + 2, c / 2 - 150, color, i * 3);
    			color += 65536*3;
    			color2 += 1;
    		}


    If you want another color on the loading bar just change
    Code:
    int color = 0x8c1111;
    To something else.

    Some colors:
    int color = 0x26116d;

    int color = 0x006d00;

    int color = 0x006d9f;


    Change color of border:

    In the drawLoadingText method find
    Code:
    DrawingArea.fillPixels(c / 2 - 152, 304, 34, 0x8c1111, j);
    Replace
    Code:
    0x8c1111
    With desired color.

    Color editor:
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
    Reply With Quote  
     


  2. #2  
    Registered Member
    Tyler Okonma's Avatar
    Join Date
    Aug 2013
    Posts
    373
    Thanks given
    16
    Thanks received
    69
    Rep Power
    103
    Looks a lot nicer. I will use. Cheers
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Apr 2012
    Posts
    378
    Thanks given
    6
    Thanks received
    27
    Rep Power
    18
    Quote Originally Posted by Dairus View Post
    Looks a lot nicer. I will use. Cheers
    Glad you like it

    EDIT: added color codes to the main post
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #4  
    Registered Member
    Tyler Okonma's Avatar
    Join Date
    Aug 2013
    Posts
    373
    Thanks given
    16
    Thanks received
    69
    Rep Power
    103
    Sweet. Can't believe i didn't think of something like this
    Reply With Quote  
     

  5. #5  
    Donator

    Join Date
    Feb 2013
    Posts
    197
    Thanks given
    100
    Thanks received
    8
    Rep Power
    19
    Thanks will use
    Spoiler for massive sig:




    Reply With Quote  
     

  6. #6  
    Registered Member Sheddy's Avatar
    Join Date
    Jul 2009
    Age
    28
    Posts
    1,041
    Thanks given
    52
    Thanks received
    87
    Rep Power
    52
    I like this, very nice.



    Spoiler for Nex Sets Done Right w/ Dyl:

    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Apr 2012
    Posts
    378
    Thanks given
    6
    Thanks received
    27
    Rep Power
    18
    Quote Originally Posted by Logic View Post
    easy, looks way better than the original tho so gj
    Quote Originally Posted by Downsx View Post
    I like this, very nice.
    Thanks
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Apr 2012
    Posts
    378
    Thanks given
    6
    Thanks received
    27
    Rep Power
    18
    Bump
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  9. #9  
    Donator


    Join Date
    Jun 2011
    Posts
    2,555
    Thanks given
    539
    Thanks received
    402
    Rep Power
    658
    Is there a way in which we can make the loading bar progress more smoothly? Instead of just increments at a time.
    All the best,
    Nirvana

    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Apr 2012
    Posts
    378
    Thanks given
    6
    Thanks received
    27
    Rep Power
    18
    Uhm, in the starup() method in client it does a little bit at a time.
    drawLoadingText(95, "Unpacking interfaces");
    changing the 95 will change how much the loading bar loads.
    In between each the client does actions which is why it stops sometimes, to do actions before the drawloadingtext is called again
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [Galkon's Refactored] New loading bar (Almost 100%)
    By Ryan Rebelle in forum Tutorials
    Replies: 55
    Last Post: 05-15-2014, 01:56 AM
  2. Replies: 1
    Last Post: 04-26-2012, 03:58 AM
  3. [Galkon's Refactored] New loading bar Fix up
    By steven031291 in forum Tutorials
    Replies: 6
    Last Post: 03-24-2011, 12:27 PM
  4. Replies: 0
    Last Post: 06-10-2010, 05:11 PM
  5. [galkons refactored] custom loading bar :P
    By Robin Spud in forum Snippets
    Replies: 15
    Last Post: 09-14-2009, 07:38 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •