|
@@ -837,7 +837,7 @@ declare module 'babylonjs-gui/2D/controls/colorpicker' {
|
|
* @param advancedTexture defines the AdvancedDynamicTexture the dialog is assigned to
|
|
* @param advancedTexture defines the AdvancedDynamicTexture the dialog is assigned to
|
|
* @param options
|
|
* @param options
|
|
*/
|
|
*/
|
|
- static ShowPickerDialog(advancedTexture: AdvancedDynamicTexture, options: {
|
|
|
|
|
|
+ static ShowPickerDialogAsync(advancedTexture: AdvancedDynamicTexture, options: {
|
|
pickerWidth?: string;
|
|
pickerWidth?: string;
|
|
pickerHeight?: string;
|
|
pickerHeight?: string;
|
|
lastColor?: string;
|
|
lastColor?: string;
|
|
@@ -845,7 +845,10 @@ declare module 'babylonjs-gui/2D/controls/colorpicker' {
|
|
swatchSize?: number;
|
|
swatchSize?: number;
|
|
numSwatchesPerLine?: number;
|
|
numSwatchesPerLine?: number;
|
|
savedColors?: Array<string>;
|
|
savedColors?: Array<string>;
|
|
- }): string;
|
|
|
|
|
|
+ }): Promise<{
|
|
|
|
+ savedColors?: string[];
|
|
|
|
+ pickedColor: string;
|
|
|
|
+ }>;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -3748,7 +3751,7 @@ declare module BABYLON.GUI {
|
|
* @param advancedTexture defines the AdvancedDynamicTexture the dialog is assigned to
|
|
* @param advancedTexture defines the AdvancedDynamicTexture the dialog is assigned to
|
|
* @param options
|
|
* @param options
|
|
*/
|
|
*/
|
|
- static ShowPickerDialog(advancedTexture: AdvancedDynamicTexture, options: {
|
|
|
|
|
|
+ static ShowPickerDialogAsync(advancedTexture: AdvancedDynamicTexture, options: {
|
|
pickerWidth?: string;
|
|
pickerWidth?: string;
|
|
pickerHeight?: string;
|
|
pickerHeight?: string;
|
|
lastColor?: string;
|
|
lastColor?: string;
|
|
@@ -3756,7 +3759,10 @@ declare module BABYLON.GUI {
|
|
swatchSize?: number;
|
|
swatchSize?: number;
|
|
numSwatchesPerLine?: number;
|
|
numSwatchesPerLine?: number;
|
|
savedColors?: Array<string>;
|
|
savedColors?: Array<string>;
|
|
- }): string;
|
|
|
|
|
|
+ }): Promise<{
|
|
|
|
+ savedColors?: string[];
|
|
|
|
+ pickedColor: string;
|
|
|
|
+ }>;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
declare module BABYLON.GUI {
|
|
declare module BABYLON.GUI {
|