Implemented Left and Right Direction GuiArrowButton

Added quick way to switch between Keyframes of similar type in GuiEditKeyframe
This commit is contained in:
CrushedPixel
2015-05-23 01:20:20 +02:00
parent f9c3448cd5
commit 04d0461929
3 changed files with 62 additions and 12 deletions

View File

@@ -34,9 +34,13 @@ public class GuiArrowButton extends GuiButton {
drawHorizontalLine(xPosition + width - height + i + 4, xPosition + width - i - 6, yPosition + (height / 3) + i + 2, Color.BLACK.getRGB());
}
} else if(dir == Direction.LEFT) {
for(int i = -1; i < Math.ceil(height / 2) - 5; i++) {
drawVerticalLine(xPosition + height - ((height / 3) + i + 4), yPosition + width - height + i + 4, yPosition + width - i - 6, Color.BLACK.getRGB());
}
} else if(dir == Direction.RIGHT) {
for(int i = -1; i < Math.ceil(height / 2) - 5; i++) {
drawVerticalLine(xPosition + (height / 3) + i + 2, yPosition + width - height + i + 4, yPosition + width - i - 6, Color.BLACK.getRGB());
}
}
} catch(Exception e) {
e.printStackTrace();