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

Creating Text Labels

Plague edited this page Oct 10, 2021 · 2 revisions

To Create Text In A SubMenu (See "Creating Buttons" On The Right For How To Create SubMenus), Use:

ButtonAPI.CreateText(ButtonAPI.ButtonType.Toggle, ButtonAPI.SizeType.ButtonSize, "Some Text"/*Text*/, "Just Some Text"/*ToolTip*/, ButtonAPI.HorizontalPosition.FirstButtonPos, ButtonAPI.VerticalPosition.SecondButton, YourParentTransform.transform, true/*Clickable, If You Want The Text To Be Able To Be Selectable Or Not*/, true/*ChangeColourOnClick, If You Want The Text To Change Between The Two Colours Set Later, On Only The OffColour*/, delegate (bool a)
{
    //Ran When The Text Is Clicked
}, false/*CurrentToggleState, The Toggle State Of The Text On Creation*/, Color.magenta/*OnColour, When Toggled On The Text Is This Colour (If ChangeColourOnClick Is True)*/, Color.white/*OffColour, When The Text Is Toggled Off The Text Is This Colour*/);
Clone this wiki locally