Code: Select all
// image size is 75x25
IGUIButton *button = guienv->addButton(recti(0,0,75,25), 0, TESTID, L"TEST");
button->setDrawBorder(false);
button->setImage(driver->getTexture("data/my.png"));
button->setPressedImage(driver->getTexture("data/my.png"));
button->setUseAlphaChannel(true);
Code: Select all
// this works
button->setImage(driver->getTexture("data/my.png"));
button->setPressedImage(driver->getTexture("data/my2.png"));