Thread: 2 Questions about Loading Bar [Video]

Results 1 to 7 of 7
  1. #1 2 Questions about Loading Bar [Video] 
    Banned

    Join Date
    Apr 2013
    Posts
    1,456
    Thanks given
    341
    Thanks received
    148
    Rep Power
    0
    Hello So i added my own loading bar recently and it went good but then i came across 2 issue i know someone of rune-server will be able to help

    thanks

    so here is my
    Code:
    drawLoadingText
    Method
    Code:
    void drawLoadingText(int i, String s)     {
            anInt1079 = i;
            aString1049 = s;
            resetImageProducers();
            if(titleStreamLoader == null) {
                super.drawLoadingText(i, s);
                return;
            }
            aRSImageProducer_1109.initDrawingArea();
            loadingBarEmpty = new Sprite("/Login/empty");
            loadingBarFull = new Sprite("/Login/full");
            loadingBarEmpty.drawSprite(0, 453, 50);
            loadingBarFull.drawSprite(8, 463);
            DrawingArea.drawPixels(30, 463, (8 + i), 0x302e2c, (750 - i));
            if (i == 750) {
                smallText.drawText(0xffffff, s + " - 100%", 483, 370);
            } else {
                smallText.drawText(0xffffff, s + " - " + (i) + "%", 483, 370);
            }
            
            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);
            }
        }
    Now my Questions are
    1) How would i make it so saying if the Loading Bar is on 50% it will be hafe way because how it works atm as you will be able to see when its like at 95% its near the bottom i want it show show up near the end off the screen


    2) How would i make the Loading Bar disappear after it is Loaded ?
    3)Now i drawn an background over it on the login but it flickers between the one on the loading screen and the new one

    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Apr 2013
    Posts
    1,456
    Thanks given
    341
    Thanks received
    148
    Rep Power
    0
    bump
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Apr 2013
    Posts
    1,456
    Thanks given
    341
    Thanks received
    148
    Rep Power
    0
    bump
    Reply With Quote  
     

  4. #4  
    Extreme Donator


    Join Date
    Dec 2007
    Posts
    649
    Thanks given
    117
    Thanks received
    61
    Rep Power
    105
    To start with you only have two loading sprites:
    Code:
            loadingBarEmpty = new Sprite("/Login/empty");
            loadingBarFull = new Sprite("/Login/full");
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Apr 2013
    Posts
    1,456
    Thanks given
    341
    Thanks received
    148
    Rep Power
    0
    Quote Originally Posted by sircarl3 View Post
    To start with you only have two loading sprites:
    Code:
            loadingBarEmpty = new Sprite("/Login/empty");
            loadingBarFull = new Sprite("/Login/full");
    Yes ? i only need 2 loading sprites
    Reply With Quote  
     

  6. #6  
    Extreme Donator


    Join Date
    Dec 2007
    Posts
    649
    Thanks given
    117
    Thanks received
    61
    Rep Power
    105
    Okay then. Rephrase your question cause I don't gotta clue what you're asking.
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Apr 2013
    Posts
    1,456
    Thanks given
    341
    Thanks received
    148
    Rep Power
    0
    Quote Originally Posted by sircarl3 View Post
    Okay then. Rephrase your question cause I don't gotta clue what you're asking.
    How would i make my red bar show up depending on where my client i on loading
    Reply With Quote  
     


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: 10
    Last Post: 11-20-2012, 09:29 PM
  2. Replies: 3
    Last Post: 01-04-2012, 07:03 AM
  3. 508 maps, Question about loading
    By i say smd k in forum Help
    Replies: 1
    Last Post: 12-06-2010, 04:44 AM
  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
  •