Duhhrail wrote:No matter how fast you think you can beat your meat, Jordancoles lies in the shadows and waits to attack his defenseless prey. (tl;dr) Don't afk and jack off.
public static int badcamsensitivity = getint("haven.badcamsensitivity", 5);
float d = dist + (amount * 5);
int cfg = Utils.getprefi("badcamsensitivity", 5);
float d = dist + (amount * cfg);
composer.add(new Label("Zoom speed"));
{
Label dpy = new Label("");
final double smin = 5, smax = 25;
final int steps = (int) Math.round((smax - smin) / 1);
composer.addr(
new HSlider(UI.scale(160), 0, steps, (int) Math.round(steps * (Utils.getprefi("badcamsensitivity", 5) - smin) / (smax - smin))) {
protected void added() {
dpy();
}
void dpy() {
dpy.settext(String.format("%.2f\u00d7", smin + (((double) this.val / steps) * (smax - smin))));
}
public void changed() {
double val = smin + (((double) this.val / steps) * (smax - smin));
Utils.setprefi("badcamsensitivity", (int) val);
dpy();
}
},
dpy
);
}
composer.add(new Button(UI.scale(200), "Reset to defaults")
Users browsing this forum: No registered users and 7 guests