/// <summary> /// Input widget for boolean values. /// </summary> public Checkbox(int x, int y, int size, CheckboxStyle style = null, Input <bool> input = null) : base(x, y, size, size, new UIConfiguration(), style ?? new CheckboxStyle()) { Input = input ?? new Input <bool>(false, false, null); Configuration.Lock = new Lock(LockLevel.Self, false, UIDefault.LockDelay, false, false); OldWallColor = Style.WallColor; }
public CheckboxStyle(CheckboxStyle style) : base(style) { CheckedColor = style.CheckedColor; }