TGUI::Panel::setBackgroundColor in TGUI 1.0

Started by Honor, 13 January 2023, 16:05:33

Honor

tgui::Panel::setBackGroundColor

I can't find that function in the newer version, nor can I find a way to change the color of the panel (without themes), am I missing something obvious?

Edit: I should probably mention, I'm porting over my old code tgui 0.7 (5 years ago?) to tgui 1.0, could tgui::Panel perhaps been moved to tgui::PanelRenderer?

texus

Most functionality about how a widget looks is now part of the renderer (which can be accessed with "getRenderer()"). So you can change it with "panel->getRenderer()->setBackgroundColor(...)"

Honor