Elin Decompiled Documentation EA 23.102 Nightly
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Pages
UIContextMenuManager Class Reference
Inheritance diagram for UIContextMenuManager:

Public Member Functions

UIContextMenu Create (string menuName="ContextMenu", bool destroyOnHide=true)
 

Public Attributes

Canvas canvas
 
UIContextMenu currentMenu
 
bool showMenuOnRightClick = true
 
bool autoClose
 

Static Public Attributes

static UIContextMenuManager Instance
 

Properties

bool isActive [get]
 

Private Member Functions

void Awake ()
 

Detailed Description

Definition at line 3 of file UIContextMenuManager.cs.

Member Function Documentation

◆ Awake()

void UIContextMenuManager.Awake ( )
inlineprivate

Definition at line 27 of file UIContextMenuManager.cs.

28 {
29 Instance = this;
30 }
static UIContextMenuManager Instance

References Instance.

◆ Create()

UIContextMenu UIContextMenuManager.Create ( string  menuName = "ContextMenu",
bool  destroyOnHide = true 
)
inline

Definition at line 32 of file UIContextMenuManager.cs.

33 {
34 if ((bool)currentMenu)
35 {
37 }
38 currentMenu = Util.Instantiate<UIContextMenu>(menuName, base.transform);
39 currentMenu.destroyOnHide = destroyOnHide;
40 if ((bool)currentMenu.logo)
41 {
42 currentMenu.logo.SetActive(enable: true);
43 }
44 return currentMenu;
45 }
Transform logo
Definition: Util.cs:10
static Transform Instantiate(string path, Component parent=null)
Definition: Util.cs:67

References currentMenu, UIContextMenu.Hide(), UIContextMenu.logo, and Util.

Referenced by UI.CreateContextMenu(), and UI.CreateContextMenuInteraction().

Member Data Documentation

◆ autoClose

bool UIContextMenuManager.autoClose

Definition at line 13 of file UIContextMenuManager.cs.

Referenced by UIContextMenu.Hide().

◆ canvas

Canvas UIContextMenuManager.canvas

Definition at line 5 of file UIContextMenuManager.cs.

◆ currentMenu

UIContextMenu UIContextMenuManager.currentMenu

Definition at line 7 of file UIContextMenuManager.cs.

Referenced by Create().

◆ Instance

UIContextMenuManager UIContextMenuManager.Instance
static

Definition at line 9 of file UIContextMenuManager.cs.

Referenced by Awake(), UIContextMenu.Hide(), and Layer.UpdateInput().

◆ showMenuOnRightClick

bool UIContextMenuManager.showMenuOnRightClick = true

Definition at line 11 of file UIContextMenuManager.cs.

Property Documentation

◆ isActive

bool UIContextMenuManager.isActive
get

Definition at line 15 of file UIContextMenuManager.cs.

16 {
17 get
18 {
19 if (currentMenu != null)
20 {
22 }
23 return false;
24 }
25 }

Referenced by Layer.UpdateInput().


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