Skip to content
This repository was archived by the owner on May 17, 2023. It is now read-only.

Creating A CheckBox From A Button

Plague edited this page May 19, 2021 · 1 revision

Just Use My Code Below, Cba Explaining Lol:

ButtonAPI.PlagueButton CheckBox = null;

CheckBox = ButtonAPI.CreateButton(ButtonAPI.ButtonType.Toggle, "X", "A CheckBox, Ez", ButtonAPI.HorizontalPosition.FirstButtonPos, ButtonAPI.VerticalPosition.TopButton, YourParentTransform.transform, delegate (bool a)
            {
                CheckBox.text.text = (a ? "✓" : "X");
            }, Color.white, Color.magenta, null, false, false, true, false, null, true);
Clone this wiki locally