Add dark blue bg bar to charge bar

This commit is contained in:
tterrag1098 committed 2014-10-13 19:20:06 -04:00
1 parent 72d15fb5f9
commit 30de9a8f75
1 file changed
+5
@@ -79,7 +79,12 @@ public class PoweredItemRenderer implements IItemRenderer {
Vector4f fg = ColorUtil.toFloat(full);
Vector4f ec = ColorUtil.toFloat(empty);
fg.interpolate(ec, (float) ratio);
Vector4f bg = ColorUtil.toFloat(Color.black);
bg.interpolate(fg, 0.15f);
int barLength = (int) Math.round(12.0 * (1 - ratio));
RenderUtil.renderQuad2D(2, y, 0, 12, 1, bg);
RenderUtil.renderQuad2D(2, y, 0, barLength, 1, fg);
}