bool OgreSample13App::handleSliders(const CEGUI::EventArgs & args)
{
	CEGUI::Slider * cb = static_cast<CEGUI::Slider *>(static_cast<const CEGUI::WindowEventArgs&>(args).window);
	if (cb->getName() == CEGUI::String("OgreSample13/slider1"))
	{
		destroyCurrentGeomOpt();
		mNumMeshes = cb->getCurrentValue() * 1000.0f;
		CEGUI::WindowManager::getSingleton().getWindow("OgreSample13/num1")->setText(CEGUI::PropertyHelper::intToString(mNumMeshes));
		createCurrentGeomOpt();
	}
	else
	{
		mBurnAmount = cb->getCurrentValue() * 16.67;
		CEGUI::WindowManager::getSingleton().getWindow("OgreSample13/num2")->setText(CEGUI::PropertyHelper::floatToString(mBurnAmount));
	}

	return true;
}