PopupMenuAddIconShortcut Method |
Adds a new item and assigns the specified ShortCut and icon texture to it. Sets the label of the checkbox to the ShortCut's name.
An id can optionally be provided. If no id is provided, one will be created from the index.
Namespace: Godot
public void AddIconShortcut( Texture texture, ShortCut shortcut, int id = -1, bool global = false )
[Missing <param name="texture"/> documentation for "M:Godot.PopupMenu.AddIconShortcut(Godot.Texture,Godot.ShortCut,System.Int32,System.Boolean)"]
[Missing <param name="shortcut"/> documentation for "M:Godot.PopupMenu.AddIconShortcut(Godot.Texture,Godot.ShortCut,System.Int32,System.Boolean)"]
[Missing <param name="id"/> documentation for "M:Godot.PopupMenu.AddIconShortcut(Godot.Texture,Godot.ShortCut,System.Int32,System.Boolean)"]
[Missing <param name="global"/> documentation for "M:Godot.PopupMenu.AddIconShortcut(Godot.Texture,Godot.ShortCut,System.Int32,System.Boolean)"]