private static final double height = 15;
private static final double fontHeight = 5;
+ public final int logicWidth;
private final Pin outputPin;
private final LogicObserver logicObs;
public GUIManualSwitch(ViewModelModifiable model, int logicWidth, String name)
{
super(model, name);
+ this.logicWidth = logicWidth;
logicObs = (i) -> model.requestRedraw();
setSize(width, height);
@Override
public JsonElement getParamsForSerializing(IdentifierGetter idGetter)
{
- return new JsonPrimitive(outputPin.logicWidth);
+ return new JsonPrimitive(logicWidth);
}
static