Picture and OpacityDisabled

  • 3 Replies
  • 209 Views
Picture and OpacityDisabled
« on: 07 June 2019, 13:53:35 »
Setting OpacityDisabled for picture seems not working.
Code: [Select]
Picture {
OpacityDisabled = 0.3
}

However
Code: [Select]
picture->getRenderer()->setOpacityDisabled(0.3f); this is working.

*

texus

  • *****
  • 1485
    • View Profile
    • Texus's Blog
Re: Picture and OpacityDisabled
« Reply #1 on: 07 June 2019, 14:01:08 »
It seems to work for me. Could you share the code you are using (it may be related to the order things are executed)?

Re: Picture and OpacityDisabled
« Reply #2 on: 07 June 2019, 14:04:11 »
Code: [Select]
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.

Re: Picture and OpacityDisabled
« Reply #3 on: 07 June 2019, 14:23:21 »
You are correct. Is working. Really sorry. Investigating...