(int x, int y)
| 86 | } |
| 87 | |
| 88 | @Override |
| 89 | public boolean mouseClicked(int x, int y) { |
| 90 | if (super.mouseClicked(x, y)) { |
| 91 | this.value = (x - (this.h + 4)) / (float) (this.f - 8); |
| 92 | if (this.value < 0.0F) { |
| 93 | this.value = 0.0F; |
| 94 | } |
| 95 | if (this.value > 1.0F) { |
| 96 | this.value = 1.0F; |
| 97 | } |
| 98 | |
| 99 | setLabel(this.str + getValue()); |
| 100 | this.dragging = true; |
| 101 | return true; |
| 102 | } |
| 103 | return false; |
| 104 | } |
| 105 | |
| 106 | private String getValue() { |
| 107 | String customValue = sliderItem.getCustomValue(value); |
nothing calls this directly
no test coverage detected