[2.0.69] Revisit label prototypes for parent hovered color (core)
Posted: Wed Oct 22, 2025 7:32 am
I'm implementing custom inventory GUI and the inherited style of count_label sets parent_hovered_font_color to black (also game_controller_hovered_font_color), which turns my item counts black. That attribute is inherited by every single label style
parent_hovered_font_color beats hovered_font_color
The only workaround is to split the tree up
from:
to:
But this solution is off by a pixel on certain UI scales and unnecessarily complex to implement
I would add a custom label prototype, but I'm doing this for a scenario The gui above:
parent_hovered_font_color beats hovered_font_color
The only workaround is to split the tree up
from:
Code: Select all
button (inventory_slot)
├── sprite
├── request_count (count_label)
└── item_count (count_label)
Code: Select all
container
├── button (inventory_slot)
│ └── sprite
└── count_container
├── request_count (count_label)
└── item_count (count_label)
I would add a custom label prototype, but I'm doing this for a scenario The gui above:
Code: Select all
container
├── button (inventory_slot)
│ ├── sprite
│ └── fake_count (count_label)
└── count_container
├── request_count (count_label)
└── item_count (count_label)