v3.11.4 Documentation
Fungus.EditorUtils.CommandSelectorPopupWindowContent Class Reference

Searchable Popup Window for adding a command to a block More...

Inheritance diagram for Fungus.EditorUtils.CommandSelectorPopupWindowContent:
Fungus.EditorUtils.BasePopupWindowContent

Public Member Functions

 CommandSelectorPopupWindowContent (string currentHandlerName, int width, int height)
 
- Public Member Functions inherited from Fungus.EditorUtils.BasePopupWindowContent
 BasePopupWindowContent (string currentHandlerName, int width, int height, bool showNoneOption=false)
 
override void OnGUI (Rect rect)
 
override Vector2 GetWindowSize ()
 

Static Public Member Functions

static void ShowCommandMenu (Rect position, string currentHandlerName, Block block, int width, int height)
 

Protected Member Functions

override void SelectByOrigIndex (int index)
 Called when the user has confirmed an item from the menu. More...
 
override void PrepareAllItems ()
 Called during Base Ctor, must fill allItems list so the ctor can continue to fill the visible items and current selected index. More...
 

Static Protected Member Functions

static List< KeyValuePair< System.Type, CommandInfoAttribute > > GetFilteredSupportedCommands (Flowchart flowchart)
 
static void DoOlderMenu ()
 
static void AddCommandCallback (object obj)
 
static void AddCommandCallback (Type commandType)
 

Static Protected Attributes

static List< KeyValuePair< System.Type, CommandInfoAttribute > > filteredAttributes
 
- Static Protected Attributes inherited from Fungus.EditorUtils.BasePopupWindowContent
static readonly char CATEGORY_CHAR = '/'
 

Additional Inherited Members

- Protected Attributes inherited from Fungus.EditorUtils.BasePopupWindowContent
int hoverIndex
 
readonly string SEARCH_CONTROL_NAME = "PopupSearchControlName"
 
readonly float ROW_HEIGHT = EditorGUIUtility.singleLineHeight
 
List< FilteredListItemallItems = new List<FilteredListItem>()
 
string currentFilter = string.Empty
 
Vector2 scroll
 
int scrollToIndex
 
float scrollOffset
 
int currentIndex
 
Vector2 size
 
bool hasNoneOption = false
 

Detailed Description

Searchable Popup Window for adding a command to a block

Definition at line 12 of file CommandSelectorPopupWindowContent.cs.

Constructor & Destructor Documentation

◆ CommandSelectorPopupWindowContent()

Fungus.EditorUtils.CommandSelectorPopupWindowContent.CommandSelectorPopupWindowContent ( string  currentHandlerName,
int  width,
int  height 
)

Definition at line 40 of file CommandSelectorPopupWindowContent.cs.

Member Function Documentation

◆ AddCommandCallback() [1/2]

static void Fungus.EditorUtils.CommandSelectorPopupWindowContent.AddCommandCallback ( object  obj)
staticprotected

Definition at line 121 of file CommandSelectorPopupWindowContent.cs.

◆ AddCommandCallback() [2/2]

static void Fungus.EditorUtils.CommandSelectorPopupWindowContent.AddCommandCallback ( Type  commandType)
staticprotected

Definition at line 131 of file CommandSelectorPopupWindowContent.cs.

◆ DoOlderMenu()

static void Fungus.EditorUtils.CommandSelectorPopupWindowContent.DoOlderMenu ( )
staticprotected

Definition at line 96 of file CommandSelectorPopupWindowContent.cs.

◆ GetFilteredSupportedCommands()

static List<KeyValuePair<System.Type, CommandInfoAttribute> > Fungus.EditorUtils.CommandSelectorPopupWindowContent.GetFilteredSupportedCommands ( Flowchart  flowchart)
staticprotected

Definition at line 84 of file CommandSelectorPopupWindowContent.cs.

◆ PrepareAllItems()

override void Fungus.EditorUtils.CommandSelectorPopupWindowContent.PrepareAllItems ( )
protectedvirtual

Called during Base Ctor, must fill allItems list so the ctor can continue to fill the visible items and current selected index.

Implements Fungus.EditorUtils.BasePopupWindowContent.

Definition at line 51 of file CommandSelectorPopupWindowContent.cs.

◆ SelectByOrigIndex()

override void Fungus.EditorUtils.CommandSelectorPopupWindowContent.SelectByOrigIndex ( int  index)
protectedvirtual

Called when the user has confirmed an item from the menu.

Parameters
indexIndex of into the original list of items to show given to the popupcontent

Implements Fungus.EditorUtils.BasePopupWindowContent.

Definition at line 45 of file CommandSelectorPopupWindowContent.cs.

◆ ShowCommandMenu()

static void Fungus.EditorUtils.CommandSelectorPopupWindowContent.ShowCommandMenu ( Rect  position,
string  currentHandlerName,
Block  block,
int  width,
int  height 
)
static

Definition at line 63 of file CommandSelectorPopupWindowContent.cs.

Member Data Documentation

◆ filteredAttributes

List<KeyValuePair<System.Type, CommandInfoAttribute> > Fungus.EditorUtils.CommandSelectorPopupWindowContent.filteredAttributes
staticprotected

Definition at line 38 of file CommandSelectorPopupWindowContent.cs.


The documentation for this class was generated from the following file: