TextBox::setTransparency() does not work

Started by Maslo, 12 September 2015, 18:11:29

Maslo

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



texus

It is/was a documented problem:
Quote from: setTransparency documentationNote 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.