Skip to content

britzl/def-mnu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 76.4%
  • C++ 23.3%
  • Objective-C++ 0.3%