Cleanup
This commit is contained in:
@@ -27,10 +27,8 @@ public abstract class SliderComponentMixin {
|
||||
|
||||
OwoUIGraphics owo = OwoUIGraphics.of(graphics);
|
||||
|
||||
// glass track
|
||||
owo.fill(RenderPipelines.GUI, x, y, x + w, y + h, 0x40FFFFFF);
|
||||
|
||||
// handle
|
||||
int handleWidth = 4;
|
||||
int handleX = x + (int) (slider.value() * (w - handleWidth));
|
||||
owo.fill(RenderPipelines.GUI, handleX, y, handleX + handleWidth, y + h, 0xFFFFFFFF);
|
||||
|
||||
Reference in New Issue
Block a user