How to achieve that ? Should I just restart the program to reload the new skin files? But I don't know how to restart it.
Can anybody give me an answer or a better solution?
Thank you!
Moderators: CEGUI MVP, CEGUI Team

Code: Select all
bool handleSkinSelection(const CEGUI::EventArgs& e)
{
const CEGUI::WindowEventArgs& windowEventArgs = static_cast<const CEGUI::WindowEventArgs&>(e);
CEGUI::ListboxItem* item = static_cast<CEGUI::Combobox*>(windowEventArgs.window)->getSelectedItem();
int skinId=item->getID();
switch(skinId)
{
case 0:
if(!CEGUI::SchemeManager::getSingleton().isSchemePresent((CEGUI::utf8*)"TaharezLookSkin.scheme"))
{
CEGUI::SchemeManager::getSingleton().loadScheme((CEGUI::utf8*)"TaharezLookSkin.scheme");
}
break;
case 1:
if(!CEGUI::SchemeManager::getSingleton().isSchemePresent((CEGUI::utf8*)"NewLookSkin.scheme"))
{
CEGUI::SchemeManager::getSingleton().getScheme((CEGUI::utf8*)"NewLookSkin.scheme");
}
break;
default:
break;
}
return true;
}
Users browsing this forum: No registered users and 10 guests