About setAlpha!
Posted: Sat Mar 13, 2010 13:52
the CEGUI Samples Demo7 have one setAlpha's VerticalScrollbar.
when I change for the VerticalScrollbar. all windows all controls all elements alpha value will change.
if I set the FrameWindow alpha value == 0.5f , Framewindow elements of all the controls inside the alpha value will change.
Examples:
FrameWdinow ;
Button (In the controls inside the Framewindow)
The end result is not what I want.
the AlphaTestBtn alpha value always 0.5f.
How can I do to change the FrameWindow the alpha value, without thereby affecting the AlphaTestBtn's alpha value.
thanks .
when I change for the VerticalScrollbar. all windows all controls all elements alpha value will change.
if I set the FrameWindow alpha value == 0.5f , Framewindow elements of all the controls inside the alpha value will change.
Examples:
FrameWdinow ;
Button (In the controls inside the Framewindow)
Code: Select all
CEGUI::WindowManager &wm = CEGUI::WindowManager::getSingleton();
FrameWindow * mWnd;
mWnd = (FrameWindow *)wm.getWindow("MainWnd");
mWnd->setAlpha(0.5f);
Window * mBtn;
mBtn = wm.getWindow("AlphaTestBtn");
mBtn->setAlpha(1.0f);
The end result is not what I want.
the AlphaTestBtn alpha value always 0.5f.
How can I do to change the FrameWindow the alpha value, without thereby affecting the AlphaTestBtn's alpha value.
thanks .