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