public void draw(SpriteBatch batch) { batch.draw( /*Texture*/ sprite, /*x*/ x - originX + dOffX, /*y*/ y - originY + dOffY, /*originX*/ originX, /*originY*/ originY, /*width*/ dWidth, /*height*/ dHeight, /*scaleX*/ 1, /*scaleY*/ 1, /*rotation*/ angle, /*uselss shit to the right*/ 0, 0, sprite.getWidth(), sprite.getHeight(), flipX, flipY); font.draw( batch, Integer.toString(effect.getNum()), (float) (x + 32 - font.getScaleX() * (Math.floor(Math.log10(effect.getNum())) + 1) * 7) - 4, y + font.getScaleY() * 12 + 1); }
@Override public void hovered() { super.hovered(); if (world.mouse.shift_down) { if (world.mouse.rb_pressed) { DescWindow temp = new DescWindow(world, world.mouse.x, world.mouse.y); temp.updateText(effect); temp.open(); } } world.descBox.updateText(effect.getHoveredText()); }