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:
@@ -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);
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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++)
|
||||
{
|
||||
|
||||
@@ -115,4 +115,4 @@ void CheckStructure::trigger(unsigned int kart_index)
|
||||
}
|
||||
default: break;
|
||||
} // switch m_check_type
|
||||
} // trigger
|
||||
} // trigger
|
||||
|
||||
Reference in New Issue
Block a user