@Override protected void paint(GUI gui) { if (dragButton != null) { AnimationState as = dragButton.getAnimationState(); as.setAnimationState(STATE_DOWNARROW_ARMED, scrollbarV.isDownRightButtonArmed()); as.setAnimationState(STATE_RIGHTARROW_ARMED, scrollbarH.isDownRightButtonArmed()); } super.paint(gui); }