The original loading bar of vencillio's client was really out of the frame, so I decided to redo the loading bar and share it with you guys!
Open Client.java
Find this:
Replace this:
Code:
private static Sprite BACKGROUND;
private static Sprite LOADING_BAR_EMPTY;
private static Sprite LOADING_BAR_FULL;
static {
try {
BACKGROUND = new Sprite(new URL("https://www.dropbox.com/s/teoprxo57glh2g9/background.png?dl=1"));
LOADING_BAR_EMPTY = new Sprite(new URL("https://www.dropbox.com/s/y6znxtojbtbhv91/frame.png?dl=1"));
LOADING_BAR_FULL = new Sprite(new URL("https://www.dropbox.com/s/6qy16vg2nb8rri3/fullbar.png?dl=1"));
} catch (MalformedURLException e) {
e.printStackTrace();
}
}
public void drawLoadingText(int percent, String message) {
anInt1079 = percent;
aString1049 = message;
resetImageProducers();
if (titleStreamLoader == null) {
super.drawLoadingText(percent, message);
return;
}
refreshFrameSize();
aRSImageProducer_1109.initDrawingArea();
int x = 765 / 2 - 543 / 2;
int y = 503 / 2 - 20 + 8;
int width = 540;
int height = 32;
double offset = 2.00;
BACKGROUND.drawSprite((frameWidth / 2) - (BACKGROUND.myWidth / 2), (frameHeight / 2) - (BACKGROUND.myHeight / 2));
LOADING_BAR_EMPTY.drawARGBSprite(765 / 2 - width / 2, 503 / 2 - height / 2);
LOADING_BAR_FULL.drawARGBSprite(765 / 2 - width / 2, 503 / 2 - height / 2);
new DrawingArea();
DrawingArea.drawAlphaGradient(
x + ((int) Math.round(percent * offset) / 2), y,
width - ((int) Math.round(percent * offset) / 2), height, 0x000000, 0x000000, 200);
regularText.method382(0xffffff, (765 / 2), message, 503 / 2 + 5, true);
aRSImageProducer_1109.drawGraphics(0, super.graphics, 0);
if (welcomeScreenRaised) {
welcomeScreenRaised = false;
}
}
Sprites: https://www.dropbox.com/s/9g99dych6p...gbarl.rar?dl=0
Upload them to your dropbox, change links and you're ready to go!
If you're using this, rep and thanks are appreciated.
Credits: OS-PVP for sprites.