Skip to content
/ def-mnu Public
forked from britzl/def-mnu

Simpe cross-platform native context and app menu library for Defold.

Notifications You must be signed in to change notification settings

AGulev/def-mnu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 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

Simpe cross-platform native context and app menu library for Defold.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 71.5%
  • C++ 28.0%
  • Objective-C++ 0.5%