Suppress useless logging in add-ons screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9068 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -59,14 +59,17 @@ void AbstractTopLevelContainer::addWidgetsRecursively(PtrVector<Widget>& widgets
|
||||
// adjusts to its contents)
|
||||
if ((widgets[n].m_w < 1 || widgets[n].m_h < 1) &&
|
||||
widgets[n].getType() != WTYPE_RIBBON &&
|
||||
widgets[n].getType() != WTYPE_ICON_BUTTON)
|
||||
widgets[n].getType() != WTYPE_ICON_BUTTON &&
|
||||
widgets[n].getType() != WTYPE_SPACER)
|
||||
{
|
||||
std::cerr << "/!\\ Warning /!\\ : widget " << widgets[n].m_properties[PROP_ID].c_str() << " has no dimensions" << std::endl;
|
||||
std::cerr << "/!\\ Warning /!\\ : widget " << widgets[n].m_properties[PROP_ID].c_str()
|
||||
<< " of type " << widgets[n].getType() << " has no dimensions" << std::endl;
|
||||
}
|
||||
|
||||
if (widgets[n].m_x == -1 || widgets[n].m_y == -1)
|
||||
{
|
||||
std::cerr << "/!\\ Warning /!\\ : widget " << widgets[n].m_properties[PROP_ID].c_str() << " has no position" << std::endl;
|
||||
std::cerr << "/!\\ Warning /!\\ : widget " << widgets[n].m_properties[PROP_ID].c_str()
|
||||
<< " of type " << widgets[n].getType() << " has no position" << std::endl;
|
||||
}
|
||||
|
||||
widgets[n].add();
|
||||
|
||||
@@ -143,7 +143,7 @@ void Screen::parseScreenFileDiv(irr::io::IXMLReader* xml, PtrVector<Widget>& app
|
||||
}
|
||||
else if (wcscmp(L"spacer", xml->getNodeName()) == 0)
|
||||
{
|
||||
append_to.push_back(new Widget(WTYPE_NONE));
|
||||
append_to.push_back(new Widget(WTYPE_SPACER));
|
||||
}
|
||||
else if (wcscmp(L"ribbon_grid", xml->getNodeName()) == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user