//creates a checkbox listing (checkbox multibutton + label) - default 24px square checkbox public static UICheckboxListing CreateCheckboxListing(UIComponent parent, int numLabelLines, Vector2 size) { UICheckboxListing _checkboxListing = parent.AddUIComponent <UICheckboxListing>(); _checkboxListing.size = size; _checkboxListing.SetLabelLines(numLabelLines); return(_checkboxListing); }
//creates a checkbox listing (checkbox multibutton + label) public static UICheckboxListing CreateCheckboxListing(UIComponent parent, int numLabelLines, Vector2 size, Vector2 checkboxSize, UITextureAtlas checkboxAtlas) { UICheckboxListing _checkboxListing = parent.AddUIComponent <UICheckboxListing>(); _checkboxListing.size = size; _checkboxListing.checkboxSize = checkboxSize; _checkboxListing.SetLabelLines(numLabelLines); _checkboxListing.checkboxAtlas = checkboxAtlas; return(_checkboxListing); }