Removed more unnecessary '//' in paths.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12434 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
d7518e7800
commit
52cc6a5271
@ -378,7 +378,7 @@ void ParticleEmitter::setParticleType(const ParticleKind* type)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_node->setMaterialTexture(0, irr_driver->getTexture((file_manager->getDataDir() + "/gui/main_help.png").c_str()));
|
m_node->setMaterialTexture(0, irr_driver->getTexture((file_manager->getDataDir() + "gui/main_help.png").c_str()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -2160,7 +2160,7 @@ ITexture* Skin::getImage(const char* name)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
return irr_driver->getTexture(
|
return irr_driver->getTexture(
|
||||||
file_manager->getDataDir() + "/gui/main_help.png");
|
file_manager->getDataDir() + "gui/main_help.png");
|
||||||
}
|
}
|
||||||
} // getImage
|
} // getImage
|
||||||
|
|
||||||
|
@ -231,7 +231,7 @@ void RibbonWidget::add()
|
|||||||
GUIEngine::getGUIEnv()->addButton(icon_part, subbtn,
|
GUIEngine::getGUIEnv()->addButton(icon_part, subbtn,
|
||||||
same_id, L"");
|
same_id, L"");
|
||||||
icon->setScaleImage(true);
|
icon->setScaleImage(true);
|
||||||
std::string filename = file_manager->getDataDir() + "/"
|
std::string filename = file_manager->getDataDir()
|
||||||
+ m_children[i].m_properties[PROP_ICON];
|
+ m_children[i].m_properties[PROP_ICON];
|
||||||
icon->setImage( irr_driver->getTexture(filename.c_str()) );
|
icon->setImage( irr_driver->getTexture(filename.c_str()) );
|
||||||
icon->setUseAlphaChannel(true);
|
icon->setUseAlphaChannel(true);
|
||||||
@ -294,7 +294,7 @@ void RibbonWidget::add()
|
|||||||
(float)m_children[i].m_w / (float)m_children[i].m_h;
|
(float)m_children[i].m_w / (float)m_children[i].m_h;
|
||||||
|
|
||||||
// calculate the size of the image
|
// calculate the size of the image
|
||||||
std::string filename = file_manager->getDataDir()+"/"
|
std::string filename = file_manager->getDataDir()
|
||||||
+ m_children[i].m_properties[PROP_ICON];
|
+ m_children[i].m_properties[PROP_ICON];
|
||||||
video::ITexture* image =
|
video::ITexture* image =
|
||||||
irr_driver->getTexture((filename).c_str());
|
irr_driver->getTexture((filename).c_str());
|
||||||
|
@ -196,7 +196,7 @@ ITexture* SpinnerWidget::getTexture()
|
|||||||
{
|
{
|
||||||
assert(m_graphical);
|
assert(m_graphical);
|
||||||
std::ostringstream icon_stream;
|
std::ostringstream icon_stream;
|
||||||
icon_stream << file_manager->getDataDir() << "/" << m_properties[PROP_ICON];
|
icon_stream << file_manager->getDataDir() << m_properties[PROP_ICON];
|
||||||
std::string imagefile = StringUtils::insertValues(icon_stream.str(), m_value);
|
std::string imagefile = StringUtils::insertValues(icon_stream.str(), m_value);
|
||||||
ITexture* texture = irr_driver->getTexture(imagefile);
|
ITexture* texture = irr_driver->getTexture(imagefile);
|
||||||
return texture;
|
return texture;
|
||||||
@ -338,7 +338,7 @@ void SpinnerWidget::setValue(const int new_value)
|
|||||||
if (m_graphical)
|
if (m_graphical)
|
||||||
{
|
{
|
||||||
std::ostringstream icon;
|
std::ostringstream icon;
|
||||||
icon << file_manager->getDataDir() << "/" << m_properties[PROP_ICON];
|
icon << file_manager->getDataDir() << m_properties[PROP_ICON];
|
||||||
std::string imagefile = StringUtils::insertValues(icon.str(), m_value);
|
std::string imagefile = StringUtils::insertValues(icon.str(), m_value);
|
||||||
((IGUIImage*)(m_children[1].m_element))->setImage(irr_driver->getTexture(imagefile));
|
((IGUIImage*)(m_children[1].m_element))->setImage(irr_driver->getTexture(imagefile));
|
||||||
}
|
}
|
||||||
|
@ -715,7 +715,7 @@ void FeatureUnlockedCutScene::addUnlockedThings(const std::vector<const Challeng
|
|||||||
{
|
{
|
||||||
const RaceManager::MinorRaceModeType mode =
|
const RaceManager::MinorRaceModeType mode =
|
||||||
RaceManager::getModeIDFromInternalName(unlockedFeatures[i].m_name);
|
RaceManager::getModeIDFromInternalName(unlockedFeatures[i].m_name);
|
||||||
const std::string icon = file_manager->getDataDir() + "/" + RaceManager::getIconOf(mode);
|
const std::string icon = file_manager->getDataDir() + RaceManager::getIconOf(mode);
|
||||||
addUnlockedPicture( irr_driver->getTexture(icon.c_str()), 0.8f, 0.8f,
|
addUnlockedPicture( irr_driver->getTexture(icon.c_str()), 0.8f, 0.8f,
|
||||||
unlockedFeatures[i].getUnlockedMessage() );
|
unlockedFeatures[i].getUnlockedMessage() );
|
||||||
break;
|
break;
|
||||||
@ -830,4 +830,3 @@ MusicInformation* FeatureUnlockedCutScene::getInGameMenuMusic() const
|
|||||||
MusicInformation* mi = music_manager->getMusicInformation("win_theme.music");
|
MusicInformation* mi = music_manager->getMusicInformation("win_theme.music");
|
||||||
return mi;
|
return mi;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user