v3.11.4 Documentation
Fungus.EditorUtils.EventSelectorPopupWindowContent Class Reference

Searchable Popup Window for selecting Event type, used by block editor More...

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

Classes

class  SetEventHandlerOperation
 

Public Member Functions

 EventSelectorPopupWindowContent (string currentHandlerName, Block block, 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 DoEventHandlerPopUp (Rect position, string currentHandlerName, Block block, int width, int height)
 

Protected Member Functions

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...
 
override void SelectByOrigIndex (int index)
 Called when the user has confirmed an item from the menu. More...
 

Static Protected Member Functions

static void DoOlderMenu (Block block)
 
static void OnSelectEventHandler (object obj)
 

Protected Attributes

Block block
 
- 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
 

Additional Inherited Members

- Static Protected Attributes inherited from Fungus.EditorUtils.BasePopupWindowContent
static readonly char CATEGORY_CHAR = '/'
 

Detailed Description

Searchable Popup Window for selecting Event type, used by block editor

Definition at line 12 of file EventSelectorPopupWindowContent.cs.

Constructor & Destructor Documentation

◆ EventSelectorPopupWindowContent()

Fungus.EditorUtils.EventSelectorPopupWindowContent.EventSelectorPopupWindowContent ( string  currentHandlerName,
Block  block,
int  width,
int  height 
)

Definition at line 44 of file EventSelectorPopupWindowContent.cs.

Member Function Documentation

◆ DoEventHandlerPopUp()

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

Definition at line 78 of file EventSelectorPopupWindowContent.cs.

◆ DoOlderMenu()

static void Fungus.EditorUtils.EventSelectorPopupWindowContent.DoOlderMenu ( Block  block)
staticprotected

Definition at line 90 of file EventSelectorPopupWindowContent.cs.

◆ OnSelectEventHandler()

static void Fungus.EditorUtils.EventSelectorPopupWindowContent.OnSelectEventHandler ( object  obj)
staticprotected

Definition at line 133 of file EventSelectorPopupWindowContent.cs.

◆ PrepareAllItems()

override void Fungus.EditorUtils.EventSelectorPopupWindowContent.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 50 of file EventSelectorPopupWindowContent.cs.

◆ SelectByOrigIndex()

override void Fungus.EditorUtils.EventSelectorPopupWindowContent.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 69 of file EventSelectorPopupWindowContent.cs.

Member Data Documentation

◆ block

Block Fungus.EditorUtils.EventSelectorPopupWindowContent.block
protected

Definition at line 43 of file EventSelectorPopupWindowContent.cs.


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