http://rafb.net/p/Yq0PN661.html
Disabled clicking and hovering.
The easiest way of getting this to work is replacing the existing button looknfeel entry, though, all of your other buttons will be like this one. The hard way is to register a new falagard mapping for this button, and give it another name so your other buttons will remain intact.
For example:
Code: Select all
WindowManager::getSingletonPtr()->addFalagardWindowMapping("WindowsLook/DisabledButton", "CEGUI/PushButton", "WindowsLook/DisabledButton", "Falagard/Button");
then you also have to change (or to whatever name you please)
Code: Select all
<WidgetLook name="WindowsLook/Button">
//to
<WidgetLook name="WindowsLook/DisabledButton">
Creating it would require
Code: Select all
WindowManager::getSingletonPtr()->createWindow("WindowsLook/DisabledButton", "button");
Hope it works for you