mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-20 04:09:43 +00:00
Add dark blue bg bar to charge bar
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user