TextBox::setTransparency() does not work
« on: 12 September 2015, 18:11:29 »
I have verified in the debugger that the widget has m_opacity set to 20, but its still fully opaque when drawn. Anyone having the same issue?

*

texus

  • *****
  • 1163
    • View Profile
    • Texus's Blog
Re: TextBox::setTransparency() does not work
« Reply #1 on: 12 September 2015, 18:14:23 »
Are u using TGUI 0.6 or 0.7-alpha1?

Re: TextBox::setTransparency() does not work
« Reply #2 on: 12 September 2015, 18:16:56 »
Are u using TGUI 0.6 or 0.7-alpha1?

0.7-alpha1.

*

texus

  • *****
  • 1163
    • View Profile
    • Texus's Blog
Re: TextBox::setTransparency() does not work
« Reply #3 on: 12 September 2015, 18:23:56 »
It is/was a documented problem:
Quote from: setTransparency documentation
Note that this will only change the transparency of the images. The parts of the widgets that use a color will not be changed. You must change them yourself by setting the alpha channel of the color.

But three days ago I finally rewrote all the transparency stuff and the setTransparency function was replaced with a setOpacity function that takes a float from 0 to 1 as parameter which will work for the entire widget.
But since this was done after the alpha1 release you would have to download TGUI 0.7-dev and build the library yourself with CMake.