Features:
1. HSB <-> RGB on the fly color conversion
2. Visual HSB color panel
Dependencies
- RV_Mods Manager (RV) - not required, but highly recommended for the addon settings access
Globals
RVAPI_ColorDialog.ColorTypes
- COLOR_TYPE_RGB: red-green-blue color theme
- COLOR_TYPE_RGBA: red-green-blue-alpha color theme. Will show additional "Alpha" bar
RVAPI_ColorDialog.Events
- COLOR_EVENT_UPDATED: fires everytime user picks up a new color.
Output:- Red - new color Red
- Green - new color Green
- Blue - new color Blue
- Alpha - new color Alpha
- COLOR_EVENT_CLOSED: use that event if you wish to track OnClose ColorDialog window event.
Output:- ColorSaved - TRUE if "OK" button pressed, FALSE if "CANCEL" button pressed
API Functions
API_GetLink() Description: get a link information. By link we mean a pair of Owner and an owner Function values, which are unique per API_OpenDialog call. You can use those values to track the ColorDialog window visibility. Input: nothingOutput: CurrentCallbackOwner and CurrentCallbackFunction values
API_OpenDialog() Description: opens a color dialog window Input:
- CallbackOwner - owner of the CallbackFunction. Place your addon table here, ex: MyAddon
- CallbackFunction - callback function. Ex: MyAddon.ColorDialogCallback
- SaveColor - save color if color dialog already opened
- ColorR - red color
- ColorG - green color
- ColorB - blue color
- ColorA - alpha
- Layer - specific layer. It can be one of the Window.Layers constants. You can use it to make sure your color dialog is calling in modal mode.
- ColorType - any of the RVAPI_ColorDialog.ColorTypes constants. See above.
API_CloseDialog() Description: close dialog window Input:
- SaveColor - send the last selected color information to the CallbackFunction. In other words, use TRUE value to emulate OK button click.
Facts
- Date created
- Jan 06, 2010
- Category
- Last update
- Mar 11, 2010
- Development stage
- Abandoned
- License
- MIT License
- Downloads
- 7,552
- Recent files
- R: v1.02 Release for 1.3.3 Mar 11, 2010
- R: v1.01 Release for 1.3.3 Feb 24, 2010
- R: v1.0 Release for 1.3.3 Jan 06, 2010