MyGUI related question

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
Jay721
Halfling
Posts: 62
Joined: Mon Jan 29, 2018 8:19 am

MyGUI related question

Post by Jay721 »

Does anyone know if it's possible to change the transparency of a button whilst keeping the text solid.

Code: Select all

child->setAlpha(0.5);
Just makes the whole widget semi transparent.

xrgo
OGRE Expert User
OGRE Expert User
Posts: 1131
Joined: Sat Jul 06, 2013 10:59 pm
Location: Chile
x 161

Re: MyGUI related question

Post by xrgo »

you have to setInheritsAlpha( false ) on the text widget/object

Post Reply