Module vPrompt
"pseudo-modal" dialogs are registered here
to avoid launching multiple times
Functions
-
prompt_for_string (str_default, str_description, str_title)
-
Parameters:
- str_default
(string), suggested value
- str_description
(string), text above textfield
- str_title
(string), title of dialog
Returns:
string or nil if user aborted
-
prompt_for_color (callback, active_color, palette)
-
color prompt is pseudo-modal: will re-use an already opened dialog
(not 'real' modal since we need to receive idle time notifications...)
Parameters:
- callback
(function)
- active_color
(table{r,g,b})
- palette
(table
) predefined palette entries (max. 8)