![Twitter](/assets/twitter-4e19209ef84344ee0c433f4c7bad8d49.png)
![Twitter.hover](/assets/twitter.hover-1fb19a5bafc50deace8f88eaec867845.png)
Report as inappropriate.
I looked at my old Stat Bar Demo and wanted to update it a little and optimize the performance.
The goal is to create a completely customizable health bar or stat bar. The customization should be done only through subclassing. So please tell me if I should add any constructors or methods to the super class.
Showed here is a HealthBar subclass created with this constructor:
public HealthBar(int max, int current)
{
super(new Color(0, 255, 0), 140, 24, Style.ROUND, max, current);
setSpeed(5);
}
A few methods:
setColor(java.awt.Color color)
setSpeed(double speed)
setTarget(int target)
Want to leave a comment? You must first log in.
2013/11/21
2013/11/21
2014/1/5
2014/1/5
2014/1/5
2014/6/2
2014/6/3