Click or drag to resize

AcceptDialogAddButton Method

Adds a button with label text and a custom action to the dialog and returns the created button. action will be passed to the custom_action signal when pressed.

If true, right will place the button to the right of any sibling buttons.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Button AddButton(
	string text,
	bool right = false,
	string action = ""
)

Parameters

text
Type: SystemString

[Missing <param name="text"/> documentation for "M:Godot.AcceptDialog.AddButton(System.String,System.Boolean,System.String)"]

right (Optional)
Type: SystemBoolean

[Missing <param name="right"/> documentation for "M:Godot.AcceptDialog.AddButton(System.String,System.Boolean,System.String)"]

action (Optional)
Type: SystemString

[Missing <param name="action"/> documentation for "M:Godot.AcceptDialog.AddButton(System.String,System.Boolean,System.String)"]

Return Value

Type: Button

[Missing <returns> documentation for "M:Godot.AcceptDialog.AddButton(System.String,System.Boolean,System.String)"]

See Also