FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
UnrealEnginePython/examples/sub_menu.py at master · crypto318/UnrealEnginePython · GitHub
crypto318
UnrealEnginePython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
UnrealEnginePython
/
examples
/
sub_menu.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
30 lines (23 loc) · 1.28 KB
Breadcrumbs
UnrealEnginePython
/
examples
/
sub_menu.py
Copy path
File metadata and controls
30 lines (23 loc) · 1.28 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import
unreal_engine
as
ue
def
open_submenu001
(
builder
):
builder
.
begin_section
(
'submenu001'
,
'i am a tooltip'
)
builder
.
add_menu_entry
(
'sub_one'
,
'tooltip'
,
lambda
:
ue
.
log
(
'hello from submenu001'
))
builder
.
add_menu_entry
(
'sub_one_2'
,
'tooltip 2'
,
lambda
:
ue
.
log
(
'hello again'
))
builder
.
end_section
()
def
open_sub_submenu
(
builder
):
builder
.
begin_section
(
'sub_submenu003'
,
'i am a tooltip for the submenu'
)
builder
.
add_menu_entry
(
'sub_sub_three'
,
'tooltip'
,
lambda
:
ue
.
log
(
'hello from sub_submenu003'
))
builder
.
end_section
()
def
open_submenu002
(
builder
):
builder
.
begin_section
(
'submenu002'
,
'i am a tooltip'
)
builder
.
add_menu_entry
(
'sub_two'
,
'tooltip'
,
lambda
:
ue
.
log
(
'hello from submenu002'
))
builder
.
add_sub_menu
(
'sub sub menu'
,
'tooltip !'
,
open_sub_submenu
)
builder
.
end_section
()
def
open_menu
(
builder
):
builder
.
begin_section
(
'test1'
,
'test2'
)
builder
.
add_menu_entry
(
'one'
,
'two'
,
lambda
:
ue
.
log
(
'ciao 1'
))
builder
.
add_sub_menu
(
'i am a submenu'
,
'tooltip for the submenu'
,
open_submenu001
)
builder
.
add_menu_entry
(
'three'
,
'four'
,
lambda
:
ue
.
log
(
'ciao 2'
))
builder
.
add_sub_menu
(
'i am another submenu'
,
'tooltip for the second submenu'
,
open_submenu002
)
builder
.
end_section
()
ue
.
add_menu_bar_extension
(
'SimpleMenuBarExtension'
,
open_menu
)
Back
|
FazBrowse Home
|
New Git URL