OptionsDialog: Difference between revisions
From Vendetta Lua
Jump to navigationJump to search
No edit summary |
|||
Line 1: | Line 1: | ||
A borderless iup dialog with game options. Created with [[API_Index#CreateOptionsMenu|CreateOptionsMenu]] | A borderless iup dialog with game options. Created with [[API_Index#CreateOptionsMenu|CreateOptionsMenu]] | ||
== Functions == | |||
=== SetMenuMode === | |||
'''Definition:''' | '''Definition:'''<br> | ||
SetMenuMode(userdata self, int mode, userdata parent) - | SetMenuMode(userdata self, int mode, userdata parent) -> nil | ||
<br><br> | |||
'''Description:''' | '''Description:''' <br> | ||
Change visibility of logoff button and the parent dialog | Change visibility of logoff button and the parent dialog | ||
<br><br> | |||
'''Arguments:''' | '''Arguments:'''<br> | ||
'''self''' this dialog | '''self''' this dialog<br> | ||
'''mode''' 1 = don't show logoff button; 2 = show button | '''mode''' 1 = don't show logoff button; 2 = show button<br> | ||
'''parent''' dialog to show on clicking close | '''parent''' dialog to show on clicking close | ||
<br><br> | |||
< | |||
Latest revision as of 18:54, 20 November 2010
A borderless iup dialog with game options. Created with CreateOptionsMenu
Functions
SetMenuMode
Definition:
SetMenuMode(userdata self, int mode, userdata parent) -> nil
Description:
Change visibility of logoff button and the parent dialog
Arguments:
self this dialog
mode 1 = don't show logoff button; 2 = show button
parent dialog to show on clicking close