Closed KoBeWi closed 1 year ago
v4.0.beta5.official [89a33d28f], Win 10 22H2
It does work if the Color popup is closed with esc
after clicking on the eye dropper icon:
esc
to close the color popupWhen this is fixed, so that the eye dropper works while the color popup is open,
then the eye dropper probably should be canceled when the color popup is closed with esc
.
While investigating this issue I tracked it to this: https://github.com/godotengine/godot/blob/6318320c04f348eee1df7a5dae3bad540ef1fdcc/scene/gui/color_picker.cpp#L1408-L1429 Is it possible, that this is related to the Control->Window conversion?
I verified, that this problem also exists in v4.0.alpha1.official [31a7ddbf8] on Linux X11:
In v4.0.beta.custom_build [6318320c0] on Linux X11:
I saw weird things happening while debugging ColorPicker::_screen_input
. The first Mouse Click Event doesn't not enter yet... after u click again.... two clicks events enter continuously.
_notification
)_screen_input
)Godot 4 Beta 15 on Windows eyedropper does not pick a color.
The relevant code section has this comment:
// TODO: show modal no longer works, needs to be converted to a popup.
So I did some experiment with popups. Current status is that I ran into the problem that Popups can not be made transparent reliably (previously the Control screen
simply was transparent). So I believe, that it is currently not possible to solve this by a simple replacement Control->Window
In a second attempt I tried to solve this with the Drag & Drop mechanic. This might be possible, but becomes quite complex.
I've considered a couple of alternative ideas, that may or may not work in reality..
1) Use some OS-specific code for eye dropping a colour instead of trying to implement it using Godot objects. 2) Hide the ColorPicker popup while using the eyedropper, and open it again after the user has clicked the main window. Possibly with some kind of decoration, like a thick frame around the window, or a small notification e.g. "click to pick a colour, or Esc to cancel", to give some kind of indication that the popup didn't just disappear. 3) Remove eye dropper. Maybe people aren't using it anyway?
Godot version
4.0 11e1c83
System information
Windows 10 x64
Issue description
The color never changes. Not for the property, nor for the button. According to the discussion in #63886, this is a Windows-specific issue.
Steps to reproduce
Minimal reproduction project
N/A