forked from Briefcase/Briefcase
-
Notifications
You must be signed in to change notification settings - Fork 6
Global menu xml design
AsherGlick edited this page Mar 7, 2012
·
3 revisions
THIS PAGE IS OUTDATED AND WAS CREATED BEFORE THE MENU WAS FINISHED
- XMLMenu - an over arching tag for the entire menu
- Menu - a tag that indivates it contains more tags (any nested tags that are within a button or break tag will be ignored)
- Button - a buttion that when clicked calls a javascript function
- Break - a break line in the menu
(more will come later this weekend)
<XMLMenu>
<menu name="File" iconsrc="" version="normal">
<button name="save" function="save()" enabled="true" iconsrc="save.png" shortcutKey="Ctrl+S" version="normal"> </button>
<button name="load" function="load()" enabled="true" iconsrc="load.png" shortcutKey="Ctrl+L" version="normal"> </button>
<break></break>
<menu name="Feature Select" iconsrc="gear.png" version="normal">
<button name="Feature One" function="feature('one')" iconsrc="levelone.png" shortcutKey="Shft+Ctrl+1" version="normal"> </button>
<button name="Feature Two" function="feature('two')" iconsrc="leveltwo.png" shortcutKey="Shft+Ctrl+2" version="normal"> </button>
<button name="Feature Three" function="feature('three')" iconsrc="leveltwo.png" shortcutKey="Shft+Ctrl+3" version="normal"> </button>
<button name="Feature Four" function="feature('four')" iconsrc="leveltwo.png" shortcutKey="Shft+Ctrl+4" version="normal"> </button>
<button name="Feature Five" function="feature('five')" iconsrc="leveltwo.png" shortcutKey="Shft+Ctrl+5" version="normal"> </button>
</menu>
</menu>
<menu name="Edit" iconsrc="" version="normal">
<button name="copy" function="copy()" iconsrc="copy.png" shortcutKey="Ctrl+S" version="normal"> </button>
</menu>
</XMLMenu>