GridContainer child controls discolored (?)

Godot Version

4.3.stable

Question

I used to have a GridContainer that worked fine when used with buttons that would act like a TabContainer, but that was before I found the TabContainer control.

Now, when used with the TabContainer control, I can’t see the GridContainer at all, only if I move it outside of it.

Here’s when I can see it. As shown, it’s directly on the root base control.


and here you can see it in game:

Here’s what it’s not behaving the way I want it to (tree):


and here’s the result (or lack thereof) in the game:

I’ve been trying to fix that for a while now and my brain is fried. I’m not sure what or where to look for. There must be something I’m doing wrong.

The GridContainer values are basic unchanged stuff except for column which is set at 5. As far as the parent, the TabContainer’s values, for those that are not default are:

  • Tab Alignment : Center
  • Current Tab : 0
  • Clip Tabs : Off
  • Use Hidden Tabs for Min Size : On
  • Tab Focus Mode : Click
  • Container Sizing : Vertical : Fill : Expended : On
  • Theme Overrides : Styles : Tab Focus (StyleBoxEmpty)
  • Theme Overrides : Styles : Tab Selected (StyleBoxLine)

I’ve tried to revert everything to default, but to no avail, I still don’t get the thing to appear.

Thoughts? Suggestions? Stating the obvious that I miss?

TIA

So, my guess is it is a Z index issue. Have you tried messing with the Z index to see if that changes where it appears?

Can’t say I tried, but if the other Statistics Control is shown, why would the GridControl not work?

I’ll try that later on and come back with the result.

As expected, there was no change; I tried negative numbers, positive numbers. I’ll try to fiddle up and find the culprit of this behavior.

There HAS TO BE a reason for the non-appeance of that GridContainer.

So, apparently it was working all along, but for some unknown reason its “coloring” is so washed out that it’s simply impossible to see.

For debugging purposes I decided to color everything in and around the control to see how things were set up and I finally got the empty GridContainer to show. But where a pure green should be bright and visible, we see and very tone down green, very muted and gray. It’s kinda weird.

This is what it looks like:

And this is the GridContainer’s Visibility->Modulate defined color (it is a far cry from bright green):
image

I don’t know how to explain this.

1 Like