Fixed a few warnings and a TODO

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4049 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2009-09-27 18:04:33 +00:00
parent 4284d97abb
commit 64958b0edf
4 changed files with 12 additions and 4 deletions

View File

@@ -200,6 +200,11 @@ bool SpinnerWidget::transmitEvent(Widget* w, std::string& originator, const int
return true;
}
// -----------------------------------------------------------------------------
void SpinnerWidget::clearLabels()
{
m_labels.clear();
}
// -----------------------------------------------------------------------------
void SpinnerWidget::addLabel(std::string label)
{
m_labels.push_back(label);

View File

@@ -46,10 +46,13 @@ namespace GUIEngine
SpinnerWidget(const bool gauge=false);
virtual ~SpinnerWidget() {}
virtual void move(const int x, const int y, const int w, const int h);
void setValue(const int new_value);
void addLabel(std::string label);
void clearLabels();
void add();
void setValue(const int new_value);
bool isGauge() const { return m_gauge; }
int getValue() const { return m_value; }
int getMax() const { return m_max; }

View File

@@ -224,7 +224,7 @@ namespace KartSelectionScreen
modelView->update(0);
// TODO : only fill list on first add
playerName->clearLabels();
const int playerAmount = UserConfigParams::m_all_players.size();
for(int n=0; n<playerAmount; n++)
{

View File

@@ -115,4 +115,4 @@ void CheckStructure::trigger(unsigned int kart_index)
}
default: break;
} // switch m_check_type
} // trigger
} // trigger