I am using windows look and I am trying to make a slider in my game that has a different picture on it than the regular slider. Since the slider Thumb inherits from push button class I thought that the following code would work.
Code: Select all
CEGUI::Thumb *thumb = (CEGUI::Thumb*)wmgr.getWindow(hud_power_slider);
thumb->setPushedImage(image);
This is the same code I use for pushbutton images, but it looks like Thumbs can't do the same thing. The image remains as the thumb default image. I don't want to change the window's look targa because the image I want to put on the slider is pretty big. Any ideas?