Advertisement
wreed12345

Untitled

Dec 14th, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.59 KB | None | 0 0
  1.     private void update() {
  2.         camera.update();
  3.         stage.act();
  4.         downloadPerctage = updater.getDownloadPercentage().get();
  5.        
  6.         if(updating) updateLabel.setText("Downloading update " + downloadPerctage + "%");
  7.     }
  8.  
  9.     private void draw() {
  10.         Gdx.gl.glClearColor(0, 0, 0, 1);
  11.         Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
  12.         shapeRenderer.setProjectionMatrix(camera.combined);
  13.  
  14.         //vertical gray bar
  15.         shapeRenderer.begin(ShapeType.Line);
  16.         {
  17.             shapeRenderer.setColor(.74509f, .74509f, .74509f, 1);
  18.             shapeRenderer.line(210, 10, 210, 470);
  19.         }
  20.         shapeRenderer.end();
  21.        
  22.         stage.draw();
  23.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement