Shows a dialog box to the user,containing a list of items and check boxes in front of them.User Can check or uncheck options.caption is the text to show in the title bar of the dialog.prompt is the prompt to the user.items is a string containing a list of items to show separated by "|".Ex "Red|Green|Blue" . It returs 1 if user presses OK and -1 for Cancel.
To Get the status
of check boxes call get_checks(index)
where index is the index of the check box 0 for first, 1 for
second and so on.If the check box of the given index is
checked it returns 1 if it is unchecked it returns 0
To initaialize the state of check boxes call
set_checks(index,value);
index is index of check box
value is 1 for checked 0 for unchecked
NOTE -- CALL THIS FUNCTION BEFORE CALLING show_option3();
Example
ch=show_option3("My Game","Sound/Video Settings","Sound Effects|Background Music|Full Screen|Full Hardware Acceleration")
after calling this.If
you want to know whether 'Sound Effects' was selected or
not call
if (get_checks(0)==1) show_message("Sound Effects");
Screen Shot Of the Dialog Box