-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draw issue with focus in UI elements (Compatibility renderer) #74115
Comments
This is not a rendering issue, but an issue with the GUI system. This is the IME (input method editor) having its focus outline visible at all times. |
downloading the export template
_.mp4 |
|
As stated in #71213, the bug is reproducible with the Compatibility renderer. I confirm that the bug is reproducible in 4.1.1 and the current master in Compatibility mode. |
An MRP would probably really help investigate this, if someone can get it to trigger in a simple project. Speaking from experience debugging the editor GUI in 3.x, there is a lot going on, so the first step is usually to simplify it down to the bare minimum draw items to create the bug. It probably just needs some GUI control. It could be a problem in the GLES3 backend, or the GUI code (even if Vulkan is behaving ok). EDIT: |
This comment was marked as resolved.
This comment was marked as resolved.
I have tried to add a breakpoint inside |
Here is MRP of the problem, which is reproduced in-game. The problem seems to arise when weird_window.mp4 |
Tested this, it's only |
after commenting the focus line in The extra panel is not related to this this one is overriding the bg panel of the Tree node.Tree.mp4this one is using a theme to define the default Tree bg panel. |
Investigated this more and these are what I've found out:
These all are being found in sub Looking into the code, I found that only these controls call |
I can say yes, and those lines are needed because the |
I agree. It definitely needs, and I couldn't find any logic mistakes in GUI side codes. Logically it's just adding So I think EDIT: Updated MRP. |
could this happen because engine can't calculate right values from stylebox? stylebox class had some changes before they are separated into diff files. |
Maybe the first draw call of the Panel before applying it's Stylebox and position is polluting the other draw calls, if there's another way to clean the GL renderer before drawing again then it will be a good fix or we add custom content margins for ScrollContainer and we allow the users to change it freely. or the GL stylebox drawing needs a fix because this doesn't happen in Vulkan. |
Hi everyone. I am on Windows 10 and integrated Iris Xe 96EU GPU. I use Compatibility OpenGL backend. I started seeing this happen after I added a Tree into the hud. To me it seems to happen when Tree overlaps another control. It seems to draw a border around the last overlappign control. Also strangely 3D rendering/Camera seems to affect this because the lines vanish when I point the camera in specific direction in game. |
Godot version
4.0.rc6.mono.official
System information
macOS 12.0.1
Issue description
Just a minor visual issue.
When opening an empty directory the focus highlight is drawn incorrectly. It looks like the UI is drawing a smaller rectangle within the main rect:
This behavior also changes when you hover over other items in the view, so I'm not sure if this a general issue with the focus highlighting or just an issue in the directory view:
Steps to reproduce
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: