fix color picker (signal handler + alpha channel)
This commit is contained in:
@@ -218,6 +218,7 @@ namespace FlaxEditor.GUI.Dialogs
|
|||||||
|
|
||||||
private void OnColorPicked(Color32 colorPicked)
|
private void OnColorPicked(Color32 colorPicked)
|
||||||
{
|
{
|
||||||
|
Editor.Log("OnColorPicked " + colorPicked + ", _active eye dropper=" + _activeEyedropper);
|
||||||
if (_activeEyedropper)
|
if (_activeEyedropper)
|
||||||
{
|
{
|
||||||
_activeEyedropper = false;
|
_activeEyedropper = false;
|
||||||
@@ -319,7 +320,7 @@ namespace FlaxEditor.GUI.Dialogs
|
|||||||
protected override void OnShow()
|
protected override void OnShow()
|
||||||
{
|
{
|
||||||
// Auto cancel on lost focus
|
// Auto cancel on lost focus
|
||||||
((WindowRootControl)Root).Window.LostFocus += OnCancel;
|
//((WindowRootControl)Root).Window.LostFocus += OnCancel;
|
||||||
|
|
||||||
base.OnShow();
|
base.OnShow();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ Color32 ScreenUtilities::GetColorAt(const Float2& pos)
|
|||||||
outputColor.R = color.red / 256;
|
outputColor.R = color.red / 256;
|
||||||
outputColor.G = color.green / 256;
|
outputColor.G = color.green / 256;
|
||||||
outputColor.B = color.blue / 256;
|
outputColor.B = color.blue / 256;
|
||||||
|
outputColor.A = 255;
|
||||||
return outputColor;
|
return outputColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user