API navmenu template: Difference between revisions
From Vendetta Lua
Jump to navigationJump to search
split |
No edit summary |
||
Line 5: | Line 5: | ||
'''Description:'''<br> | '''Description:'''<br> | ||
Create a control with a navmenu description box and some control buttons | Create a control with a navmenu description box and some control buttons | ||
<br> | |||
'''Arguments:'''<br> | '''Arguments:'''<br> | ||
''showjumpbutton'' show the jump button if true<br> | ''showjumpbutton'' show the jump button if true<br> | ||
Line 12: | Line 13: | ||
'''Returns:'''<br> | '''Returns:'''<br> | ||
''container'' [[navmenu_template]]<br> | ''container'' [[navmenu_template]]<br> | ||
''distancetext'' distance label<br> | ''distancetext'' distance label<br> | ||
''jumpbutton'' jump button or nil<br> | ''jumpbutton'' jump button or nil<br> | ||
''zoombutton'' zoom button<br> | ''zoombutton'' zoom button<br> | ||
''undolastbutton'' undo button | ''undolastbutton'' undo button | ||
<br> | <br> |
Latest revision as of 16:53, 23 May 2009
Definition:
navmenu_template(bool showjumpbutton, function close_cb, bool issubsub) -> userdata container, distancetext, jumpbutton, zoombutton, undolastbutton
Description:
Create a control with a navmenu description box and some control buttons
Arguments:
showjumpbutton show the jump button if true
close_cb function to call after clicking the jump button while the player is able to jump
issubsub create a sub sub tab
Returns:
container navmenu_template
distancetext distance label
jumpbutton jump button or nil
zoombutton zoom button
undolastbutton undo button