Method AddButton
AddButton(object, Action?, CustomEventArgs?)
Adds item with the button.
public virtual PanelSettingsItem AddButton(object label, Action? clickAction, CustomEventArgs? e = null)
Parameters
labelobjectText which will be shown next to the editor.
clickActionActionAction which is invoked when button is clicked.
eCustomEventArgsAdditional arguments.
Returns
AddButton(object, ItemActionDelegate?, CustomEventArgs?)
Adds item with the button.
public virtual PanelSettingsItem AddButton(object label, PanelSettings.ItemActionDelegate? clickAction, CustomEventArgs? e = null)
Parameters
labelobjectText which will be shown next to the editor.
clickActionPanelSettings.ItemActionDelegateAction which is invoked when button is clicked.
eCustomEventArgsAdditional arguments.