MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / AddButton

Method AddButton

Source/Editor/GUI/ContextMenu/ContextMenu.cs:194–202  ·  view source on GitHub ↗

Adds the button. The text. Created context menu item control.

(string text)

Source from the content-addressed store, hash-verified

192 /// <param name="text">The text.</param>
193 /// <returns>Created context menu item control.</returns>
194 public ContextMenuButton AddButton(string text)
195 {
196 var item = new ContextMenuButton(this, text)
197 {
198 Parent = _panel
199 };
200 SortButtons();
201 return item;
202 }
203
204 /// <summary>
205 /// Adds the button.

Callers 15

ShowContextMenuMethod · 0.45
OnMouseUpMethod · 0.45
OnTimelineContextMenuMethod · 0.45
OnViewButtonClickedMethod · 0.45
ShowContextMenuMethod · 0.45
OnShowViewContextMenuMethod · 0.45
OnMouseUpMethod · 0.45
OnAddButtonClickedMethod · 0.45
OnContextMenuMethod · 0.45
OnContextMenuMethod · 0.45
OnShowAddContextMenuMethod · 0.45

Calls 1

ToStringMethod · 0.45

Tested by

no test coverage detected