Click or drag to resize

TreeItemAddButton Method

Adds a button with Texturebutton at column column. The button_idx index is used to identify the button when calling other methods. If not specified, the next available index is used, which may be retrieved by calling GetButtonCount(Int32) immediately after this method. Optionally, the button can be disabled and have a tooltip.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void AddButton(
	int column,
	Texture button,
	int buttonIdx = -1,
	bool disabled = false,
	string tooltip = ""
)

Parameters

column
Type: SystemInt32

[Missing <param name="column"/> documentation for "M:Godot.TreeItem.AddButton(System.Int32,Godot.Texture,System.Int32,System.Boolean,System.String)"]

button
Type: GodotTexture

[Missing <param name="button"/> documentation for "M:Godot.TreeItem.AddButton(System.Int32,Godot.Texture,System.Int32,System.Boolean,System.String)"]

buttonIdx (Optional)
Type: SystemInt32

[Missing <param name="buttonIdx"/> documentation for "M:Godot.TreeItem.AddButton(System.Int32,Godot.Texture,System.Int32,System.Boolean,System.String)"]

disabled (Optional)
Type: SystemBoolean

[Missing <param name="disabled"/> documentation for "M:Godot.TreeItem.AddButton(System.Int32,Godot.Texture,System.Int32,System.Boolean,System.String)"]

tooltip (Optional)
Type: SystemString

[Missing <param name="tooltip"/> documentation for "M:Godot.TreeItem.AddButton(System.Int32,Godot.Texture,System.Int32,System.Boolean,System.String)"]

See Also