This class represents dialog which enables shows some text and pictures on screen. It's also enables to choose from different options, enter text, etc. It can be very powerfull tool, but now it has just few functions.
addChoice ([return=text], text) - Adds choice for new choose.
choose (title) - Show options added by add and wait for one of it.
clear - Clears content of dialog.
close ([wait=false]) - Close dialog.
isOpen - Returns if dialog is open.
lock - Temporary locks writing content of dialog on screen.
open (icon, name) - Opens dialog.
say (text, [align=0], [color=16]) - Adds text to dialog. Text can contains these chars: <br> <br> new line<br> \p new page<br>
setBgImage (area, name, [mode=0]) - Sets background image.
setBgMode (which) - Sets background mode of dialog.
setIcon (icon, name) - Sets left icon and comment.
unlock - Unlock temporary locks writing of dialog's content on screen.
wait ([text=Next]) - Show button and wait for click on it.
addChoice ([return=text], text) Adds choice for new choose.
Parameters [return=text] - value of this choice
text - of choice
see
choose (title) Show options added by add and wait for one of it.
Parameters
Returns return value of one choice
see
clear Clears content of dialog.
close ([wait=false]) Close dialog.
Parameters [wait=false] - for confirm?
see
isOpen Returns if dialog is open.
Returns
see
lock Temporary locks writing content of dialog on screen.
see
open (icon, name) Opens dialog and if there are params "name" and "icon" shows them.
Parameters icon - name of picture
name - name under picture
see
say (text, [align=0], [color=16]) Adds text to dialog. Text can contains these chars: <br>
- new line<br> \p - new page<br>
Parameters text - to display
[align=0] - of text 0-left,1-center,2-right
[color=16] - of text 0-black,1-blue,2-cyan,3-orange,4-red,16-white
setBgImage (area, name, [mode=0]) Sets background image.
Parameters area - of picture 0 - all, 1 - text area
name - of picture
[mode=0] - of picture 0 - center, 1 - tile
setBgMode (which) Sets background mode of dialog.
Parameters which - mode 0..3 - try it
setIcon (icon, name) Sets left icon and comment. Example:
dialog:setIcon("monsters/killer.gif","Thief master");
This show picture of killer on left part of dialog. Try it.
Parameters icon - name of picture
name - name under picture
unlock Unlock temporary locks writing of dialog's content on screen.
see
wait ([text=Next]) Show button and wait for click on it.
Parameters
Generated by Hideoshi's Documentation Tool on 28.10.2003 20:08:52