attempt to make sliderbody look better
This commit is contained in:
parent
923f8dcb49
commit
0d89c2612d
Binary file not shown.
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 1.5 KiB |
|
@ -110,7 +110,7 @@ public class Slider extends GameObject {
|
||||||
|
|
||||||
private int repeats;
|
private int repeats;
|
||||||
|
|
||||||
private static Color curveColor = new Color(0, 0, 0);
|
private static Color curveColor = new Color(0, 0, 0, 20);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initializes the Slider data type with images and dimensions.
|
* Initializes the Slider data type with images and dimensions.
|
||||||
|
|
|
@ -394,8 +394,8 @@ public class CurveRenderState {
|
||||||
ByteBuffer buff = BufferUtils.createByteBuffer(slider.getWidth() * 4);
|
ByteBuffer buff = BufferUtils.createByteBuffer(slider.getWidth() * 4);
|
||||||
for (int i = 0; i < slider.getWidth(); ++i) {
|
for (int i = 0; i < slider.getWidth(); ++i) {
|
||||||
Color col = slider.getColor(i, 0);
|
Color col = slider.getColor(i, 0);
|
||||||
buff.put((byte) (255 * col.r));
|
buff.put((byte) (255 * col.b));
|
||||||
buff.put((byte) (255 * col.g));
|
buff.put((byte) (255 * col.b)); // I know this looks strange...
|
||||||
buff.put((byte) (255 * col.b));
|
buff.put((byte) (255 * col.b));
|
||||||
buff.put((byte) (255 * col.a));
|
buff.put((byte) (255 * col.a));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user