| accept (optional) - True closes it as if OK was pressed, keeping the colour; False closes it as if Cancel was pressed, putting the starting colour back; False (default) |
|
Closes the colour picker OpenColorPicker opened, as if the user had pressed OK or Cancel. The picker posts the events it posts when the user closes it: after a cancel, a $2007 with the starting colour if the colour had changed, then $2008 with EventData 1 for OK or 0 for Cancel, then the end-modal event ($2005). Your loop handles them as usual, so closing it yourself needs no extra code. Use it when what the picker is colouring changes under it: a network update removes the object, a turn ends on a timer, or the player is sent to another screen. When no picker is open it does nothing. It has no effect on RequestColor, which waits for the user. The Modern controls sample (10_Modern_Control_Showcase.bb) shows the live picker in use. See also: OpenColorPicker, RequestColor, RequestedRed. |