Thread: Custom Loading Bar

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 36
  1. #1 Custom Loading Bar 
    Ain't Messin' Around - Gary Clark Jr.

    Wolfs Darker's Avatar
    Join Date
    Jul 2012
    Posts
    1,542
    Thanks given
    598
    Thanks received
    464
    Rep Power
    252
    Well, i done this 2 days ago, and well, since everyone use that overused 'insidiax' loading bar or that new one with new login screen, ill release this, took me 10 mins on photoshop to do it and few more mins to convert the trisidiax Code to work with it...

    Sprites: [Only registered and activated users can see links. ], extract them at Cache/Sprites/Interfaces and paste the method on your Client.java, the making the client use it is up to you, if you can't do that you don't deserve to use this

    Spoiler for Old Code:

    Code:
    @SuppressWarnings("unused")    void drawNewLoadingText(int i, String s)
        {
            anInt1079 = i;
            aString1049 = s;
            resetImageProducers();
            if(titleStreamLoader == null) {
                super.drawLoadingText(i, s);
                return;
            }
            aRSImageProducer_1109.initDrawingArea();
            loadingBarEmpty = new Sprite("Interfaces/Login/empty");
            loadingBarFull = new Sprite("Interfaces/Login/full");
            char c = '\u0168';
            char c1 = '\310';
            byte byte1 = 20;
            int j = c1 / 2 - 18 - byte1;
            loadingBarEmpty.drawSprite(30, 51);
            loadingBarFull.drawSprite(41, 85);
            DrawingArea.drawPixels(35, 85, (41 + i), 0x302e2c, (250 - i));
            if (i == 250) {
                smallText.drawText(0xffffff, s + " - 100%", 76, 180);
            } else {
                smallText.drawText(0xffffff, s + " - " + (i/2.5) + "%", 76, 180);
            }
            aRSImageProducer_1109.drawGraphics(171, super.graphics, 202);
            if(welcomeScreenRaised) {
                welcomeScreenRaised = false;
                if(!aBoolean831) {
                    aRSImageProducer_1110.drawGraphics(0, super.graphics, 0);
                    aRSImageProducer_1111.drawGraphics(0, super.graphics, 637);
                }
                aRSImageProducer_1107.drawGraphics(0, super.graphics, 128);
                aRSImageProducer_1108.drawGraphics(371, super.graphics, 202);
                aRSImageProducer_1112.drawGraphics(265, super.graphics, 0);
                aRSImageProducer_1113.drawGraphics(265, super.graphics, 562);
                aRSImageProducer_1114.drawGraphics(171, super.graphics, 128);
                aRSImageProducer_1115.drawGraphics(171, super.graphics, 562);
            }
        }


    Spoiler for Updated Code:

    void drawNewLoadingText(int i, String s)
    {
    anInt1079 = i;
    aString1049 = s;
    resetImageProducers();
    if(titleStreamLoader == null) {
    super.drawLoadingText(i, s);
    return;
    }
    aRSImageProducer_1109.initDrawingArea();
    loadingBarEmpty = new Sprite("Interfaces/Login/empty");
    loadingBarFull = new Sprite("Interfaces/Login/full");
    loadingBarEmpty.drawSprite(221, 253);
    loadingBarFull.drawSprite(232, 287);
    DrawingArea.drawPixels(35, 287, (232 + i), 0x302e2c, (250 - i));
    if (i == 250) {
    smallText.drawText(0xffffff, s + " - 100%", 275, 360);// the i = 250 is the loading bar Amount in %
    } else {
    smallText.drawText(0xffffff, s + " - " + (i/2.5) + "%", 275, 360);
    }
    aRSImageProducer_1109.drawGraphics(0, super.graphics, 0);
    if(welcomeScreenRaised) {
    welcomeScreenRaised = false;
    if(!aBoolean831) {
    aRSImageProducer_1110.drawGraphics(0, super.graphics, 0);
    aRSImageProducer_1111.drawGraphics(0, super.graphics, 637);
    }
    aRSImageProducer_1107.drawGraphics(0, super.graphics, 128);
    aRSImageProducer_1108.drawGraphics(371, super.graphics, 202);
    aRSImageProducer_1112.drawGraphics(265, super.graphics, 0);
    aRSImageProducer_1113.drawGraphics(265, super.graphics, 562);
    aRSImageProducer_1114.drawGraphics(171, super.graphics, 128);
    aRSImageProducer_1115.drawGraphics(171, super.graphics, 562);
    }
    }


    Media:

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

  2. Thankful users:


  3. #2  
    Apocraphy Owner/Dev

    o Snaappp's Avatar
    Join Date
    Nov 2012
    Posts
    658
    Thanks given
    9
    Thanks received
    85
    Rep Power
    81
    Looks cool, gonna use
    EDIT: W0000T 1st Post
    Reply With Quote  
     

  4. #3  
    Donator

    Arithium's Avatar
    Join Date
    May 2010
    Age
    28
    Posts
    4,758
    Thanks given
    199
    Thanks received
    1,256
    Rep Power
    1114
    Thanks, will probably be using this.

    Edit: Redid it a little bit to suit my likings plus its good for anybody who has resizable on the loading screen.

    Code:
    private Sprite[] loadingBar = new Sprite[2];
    
    	void drawLoadingText(int i, String s)
    	{
    		loadingPercent = i;
    		loadingString = s;
    		resetImageProducers();
    		if(titleStreamLoader == null) {
    			super.drawLoadingText(i, s);
    			return;
    		}
    		titleImage.initDrawingArea();
    		loadingBar[0] = new Sprite("Login/empty");
    		loadingBar[1] = new Sprite("Login/full");
    		int centerX = 765 / 2, centerY = 503 / 2;
    		byte byte1 = 20;
    		int j = centerY - byte1;
    		loadingBar[0].drawSprite(centerX - 150, centerY - 51);
    		loadingBar[1].drawSprite(centerX - 139, centerY - 17);
    		DrawingArea.drawRect(35, j + 3, (centerX - 139 + i), 0x302e2c, (250 - i));
    		if (i == 250) {
    			smallFont.drawText(0xffffff, s + " - 100%", 76, 180);
    		} else {
    			smallFont.drawText(0xffffff, s + " - " + ((int)Math.ceil(i/2.5)) + "%", centerX + - 160, centerY + 120);
    		}
    		titleImage.drawGraphics(0, super.graphics, 0);
    		if(welcomeScreenRaised) {
    			welcomeScreenRaised = false;
    		}
    		//handleBackground();
    	}
    Should be same as yours only diffence is I repositioned everything and set the graphics to draw at 0, 0
    Reply With Quote  
     

  5. Thankful user:


  6. #4  
    Extreme Donator


    Join Date
    May 2010
    Posts
    1,344
    Thanks given
    961
    Thanks received
    132
    Rep Power
    216
    You guys still do these things ?
    Reply With Quote  
     

  7. #5  
    Software Engineer

    OogleBoogle's Avatar
    Join Date
    Apr 2012
    Age
    22
    Posts
    3,881
    Thanks given
    575
    Thanks received
    488
    Discord
    View profile
    Rep Power
    266
    Quote Originally Posted by Snake View Post
    You guys still do these things ?
    Why not? Its a great release, Something that isn't overused. Uniqe Looks good.
    ╠╬╣
    ╦╦
    ╠╬╬╬╣
    ╠╬╬╬╬╬╬╣
    ╠╬╬╬╬╬╬╣
    ╚╩╩╩╩╩╩╝
    ╠╬╬╬╣

    Reply With Quote  
     

  8. #6  
    Extreme Donator


    Join Date
    May 2010
    Posts
    1,344
    Thanks given
    961
    Thanks received
    132
    Rep Power
    216
    Quote Originally Posted by Ream™ View Post
    Why not? Its a great release, Something that isn't overused. Uniqe Looks good.
    Judging by your recent threads I can say that you don't know what I'm talking about.
    Reply With Quote  
     

  9. #7  
    Registered Member braffolk's Avatar
    Join Date
    Aug 2009
    Posts
    176
    Thanks given
    3
    Thanks received
    6
    Rep Power
    4
    hmm... the only and usual problem with all the custom loading bars is this that nobody tell how to take that red bar off from start...
    Reply With Quote  
     

  10. #8  
    Extreme Donator

    Jilic-Matt's Avatar
    Join Date
    May 2011
    Age
    26
    Posts
    1,614
    Thanks given
    799
    Thanks received
    495
    Rep Power
    540
    Quote Originally Posted by braffolk View Post
    hmm... the only and usual problem with all the custom loading bars is this that nobody tell how to take that red bar off from start...
    drawLoadingText method just comment out a few lines...
    Reply With Quote  
     

  11. Thankful user:


  12. #9  
    Registered Member
    Join Date
    May 2013
    Posts
    23
    Thanks given
    5
    Thanks received
    5
    Rep Power
    11
    You know you could make this same loading bar, exactly the same but without sprites
    Reply With Quote  
     

  13. #10  
    Extreme Donator

    Jilic-Matt's Avatar
    Join Date
    May 2011
    Age
    26
    Posts
    1,614
    Thanks given
    799
    Thanks received
    495
    Rep Power
    540
    Quote Originally Posted by tringanmistake View Post
    You know you could make this same loading bar, exactly the same but without sprites
    yes but how would you do the rounded edges? not that it wouldnt look decent without em
    Reply With Quote  
     

  14. Thankful user:


Page 1 of 4 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. Replies: 30
    Last Post: 01-14-2013, 04:41 AM
  2. Replies: 1
    Last Post: 04-26-2012, 03:58 AM
  3. [galkons refactored] custom loading bar :P
    By Robin Spud in forum Snippets
    Replies: 15
    Last Post: 09-14-2009, 07:38 PM
  4. Changing Loading Bar color & Flames color!
    By Ninja Cat in forum Tutorials
    Replies: 14
    Last Post: 12-22-2008, 11:54 AM
  5. Changing the Shape of the Loading Bar
    By Cpt Anarchy in forum Tutorials
    Replies: 5
    Last Post: 09-20-2007, 05:23 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
  •