Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class GuiBOLoadingScreen extends GuiBOScreen {
- private int Delay = 0;
- private int Delay2 = 0;
- private int guiDisplay = 0;
- private static boolean flag = false;
- private float white = 0.0F;
- private float Loading1 = 0.0F;
- private float Loading2 = 0.0F;
- public void updateScreen() {
- if (this.white < 1.0F) { this.white += 0.15F; return; }
- if (this.guiDisplay++ >= 100) {
- CManager.isGameLoading = false;
- Minecraft.getMinecraft().displayGuiScreen(new GuiBOMainMenu(this));
- if (!flag) {
- CManager.instance().performClientChecks();
- flag = true;
- }
- }
- if (this.Delay++ < 15) {return;}
- if (this.Loading1 < 1.0F) {this.Loading1 += 0.05F;}
- if (this.Delay2++ < 20) {return;}
- if (this.Loading2 < 1.0F) {this.Loading2 += 0.05F;}
- }
- protected void keyTyped(char par1, int par2) {} protected void mouseClicked(int par1, int par2, int par3) {}
- public void renderOnScreen(int par1, int par2, float par3) {
- int width = 400;
- int height = 100;
- BORenderHelper.drawRect(0, 0, this.width, this.height, "0xffffff", this.white);
- GL11.glPushMatrix();
- GL11.glEnable(3042);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, this.Loading1);
- BORenderHelper.drawImage
- (this.width / 2 - width / 2, this.height / 2 - height / 2 - 65, new ResourceLocation("bo3:textures/gui/loading.png"), width, height);
- GL11.glPopMatrix();
- GL11.glPushMatrix();
- GL11.glEnable(3042);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, this.Loading2);
- double scale = 1.0D;
- width = 300;
- height = 180;
- BORenderHelper.drawImage
- (this.width / 2 - width / 2, this.height / 2 - height / 2 + 40, new ResourceLocation("bo3:textures/gui/loading2.png"), width, height);
- GL11.glPopMatrix();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment