Picture and OpacityDisabled

Started by billarhos, 07 June 2019, 13:53:35

billarhos

Setting OpacityDisabled for picture seems not working.

Picture {
OpacityDisabled = 0.3
}


However picture->getRenderer()->setOpacityDisabled(0.3f); this is working.

texus

It seems to work for me. Could you share the code you are using (it may be related to the order things are executed)?

billarhos


picture = tgui::Picture::create(mFlagTextures[0]);
picture->setPosition(Settings::handler()->layoutWidth(flagXpos), Settings::handler()->layoutHeight(flagYpos));
picture->getRenderer()->setOpacityDisabled(0.3f);
picture->connect("MousePressed", [=]()
{
nextLang();
});


I ll try on a minimal code project...hold on.

billarhos

You are correct. Is working. Really sorry. Investigating...