Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andsve/def-mnu
https://github.com/andsve/def-mnu
defold defold-library
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/andsve/def-mnu
- Owner: andsve
- Created: 2017-08-05T07:11:08.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-09-23T07:58:52.000Z (over 3 years ago)
- Last Synced: 2023-03-10T22:11:50.767Z (almost 2 years ago)
- Topics: defold, defold-library
- Language: Objective-C
- Size: 5.86 KB
- Stars: 6
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Def-Mnu
Simpe cross-platform (OSX + Windows) native context and app menu library for Defold.(Uses public domain sea_menu.h v0.2)
### Usage
```
mnu.begin()
mnu.label(1, false, "Disabled root item...")
mnu.label(2, true, "Enabled root item...")
mnu.separator()
mnu.label(3, true, "Sub menu item 1")
mnu.sub_begin("File")
mnu.label(4, false, "Sub menu item 2 (disabled)")
mnu.sub_finish()
mnu.finish()print(mnu.show(action.screen_x, sys.get_config("display.height") - action.screen_y))
```
See `main/example.script` for app menu example.