Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
UIContextMenuManager.cs
Go to the documentation of this file.
1
using
UnityEngine;
2
3
public
class
UIContextMenuManager
: MonoBehaviour
4
{
5
public
Canvas
canvas
;
6
7
public
UIContextMenu
currentMenu
;
8
9
public
static
UIContextMenuManager
Instance
;
10
11
public
bool
showMenuOnRightClick
=
true
;
12
13
public
bool
autoClose
;
14
15
public
bool
isActive
16
{
17
get
18
{
19
if
(
currentMenu
!=
null
)
20
{
21
return
!
currentMenu
.
isDestroyed
;
22
}
23
return
false
;
24
}
25
}
26
27
private
void
Awake
()
28
{
29
Instance
=
this
;
30
}
31
32
public
UIContextMenu
Create
(
string
menuName =
"ContextMenu"
,
bool
destroyOnHide =
true
)
33
{
34
if
((
bool
)
currentMenu
)
35
{
36
currentMenu
.
Hide
();
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
}
46
}
FontColor.Util
@ Util
UIContextMenuManager
Definition:
UIContextMenuManager.cs:4
UIContextMenuManager.canvas
Canvas canvas
Definition:
UIContextMenuManager.cs:5
UIContextMenuManager.isActive
bool isActive
Definition:
UIContextMenuManager.cs:16
UIContextMenuManager.currentMenu
UIContextMenu currentMenu
Definition:
UIContextMenuManager.cs:7
UIContextMenuManager.Awake
void Awake()
Definition:
UIContextMenuManager.cs:27
UIContextMenuManager.Create
UIContextMenu Create(string menuName="ContextMenu", bool destroyOnHide=true)
Definition:
UIContextMenuManager.cs:32
UIContextMenuManager.showMenuOnRightClick
bool showMenuOnRightClick
Definition:
UIContextMenuManager.cs:11
UIContextMenuManager.Instance
static UIContextMenuManager Instance
Definition:
UIContextMenuManager.cs:9
UIContextMenuManager.autoClose
bool autoClose
Definition:
UIContextMenuManager.cs:13
UIContextMenu
Definition:
UIContextMenu.cs:9
UIContextMenu.isDestroyed
bool isDestroyed
Definition:
UIContextMenu.cs:87
UIContextMenu.logo
Transform logo
Definition:
UIContextMenu.cs:26
UIContextMenu.Hide
void Hide()
Definition:
UIContextMenu.cs:226
Elin
Plugins.UI
UIContextMenuManager.cs
Generated by
1.9.6