Click or drag to resize

PopupMenuAddCheckItem Method

Adds a new checkable item with text label.

An id can optionally be provided, as well as an accelerator (accel). If no id is provided, one will be created from the index. If no accel is provided then the default 0 will be assigned to it. See GetItemAccelerator(Int32) for more info on accelerators.

Note: Checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. See SetItemChecked(Int32, Boolean) for more info on how to control it.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void AddCheckItem(
	string label,
	int id = -1,
	uint accel = 0
)

Parameters

label
Type: SystemString

[Missing <param name="label"/> documentation for "M:Godot.PopupMenu.AddCheckItem(System.String,System.Int32,System.UInt32)"]

id (Optional)
Type: SystemInt32

[Missing <param name="id"/> documentation for "M:Godot.PopupMenu.AddCheckItem(System.String,System.Int32,System.UInt32)"]

accel (Optional)
Type: SystemUInt32

[Missing <param name="accel"/> documentation for "M:Godot.PopupMenu.AddCheckItem(System.String,System.Int32,System.UInt32)"]

See Also