use of net.wurstclient.settings.SliderSetting.ValueDisplay in project Wurst7 by Wurst-Imperium.
the class EditSliderScreen method init.
@Override
public void init() {
int x1 = width / 2 - 100;
int y1 = 60;
int y2 = height / 3 * 2;
TextRenderer tr = client.textRenderer;
ValueDisplay vd = ValueDisplay.DECIMAL;
String valueString = vd.getValueString(slider.getValue());
valueField = new TextFieldWidget(tr, x1, y1, 200, 20, new LiteralText(""));
valueField.setText(valueString);
valueField.setSelectionStart(0);
addSelectableChild(valueField);
setInitialFocus(valueField);
valueField.setTextFieldFocused(true);
doneButton = new ButtonWidget(x1, y2, 200, 20, new LiteralText("Done"), b -> done());
addDrawableChild(doneButton);
}
Aggregations