API ReferenceEditor
AutoCompleteclass
Constructors1
Showing 1 constructors
public AutoComplete(Editor.Widget parent)
| Parameter | Type | Description |
|---|---|---|
| parent | Widget | — |
No results match this filter.
Methods6
Showing 6 methods
public virtual Editor.Option AddOption(string name, string icon = null, System.Action action = null, string shortcut = null)
Add an option for this autocomplete
| Parameter | Type | Description |
|---|---|---|
| name | string | — |
| icon = null | string | — |
| action = null | Action | — |
| shortcut = null | string | — |
public void OnAutoComplete(string newPrefix, Vector2 screenPosition)
| Parameter | Type | Description |
|---|---|---|
| newPrefix | string | — |
| screenPosition | Vector2 | — |
Returns:
void—public void OnGlobalMousePressed()
Called when the mouse is pressed. Will hide this window if we clicked on anything except ourselves or our parent control.
Returns:
void—public void OnParentBlur()
Call this when the widget that spawns this blurs, so we can hide ourself
Returns:
void—No results match this filter.
Properties3
Showing 3 properties
public bool Editor.AutoComplete.HasAutocompleteOptions { get; set; }
Returns:
bool—public int Editor.AutoComplete.MinimumLength { get; set; }
Returns:
int—public Vector2 Editor.AutoComplete.OpenOffset { get; set; }
No results match this filter.