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 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
VIDEO