Fix for the changing ProgressBar.. The only thing now needed for properties GUI is making it fancy, and change the way it's placed with multiple players
This commit is contained in:
parent
9b89868320
commit
43971c1e79
@ -40,7 +40,6 @@ using namespace irr;
|
||||
SkillLevelWidget::SkillLevelWidget(core::recti area, const int player_id,
|
||||
const int value, const stringw& label) : Widget(WTYPE_DIV)
|
||||
{
|
||||
m_bar_value = value;
|
||||
m_player_id = player_id;
|
||||
|
||||
setSize(area.UpperLeftCorner.X, area.UpperLeftCorner.Y,
|
||||
@ -95,7 +94,6 @@ void SkillLevelWidget::move(int x, int y, int w, int h)
|
||||
m_bar_y,
|
||||
m_bar_w,
|
||||
m_bar_h );
|
||||
m_bar->setValue(m_bar_value);
|
||||
}
|
||||
if (m_label != NULL)
|
||||
{
|
||||
@ -140,7 +138,8 @@ void SkillLevelWidget::setSize(const int x, const int y, const int w, const int
|
||||
|
||||
void SkillLevelWidget::setValue(int value)
|
||||
{
|
||||
m_bar_value = value;
|
||||
m_bar->setValue(value);
|
||||
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
@ -51,7 +51,6 @@ class SkillLevelWidget : public Widget
|
||||
int m_bar_x, m_bar_y, m_bar_h, m_bar_w;
|
||||
int m_label_x, m_label_y, m_label_h, m_label_w;
|
||||
|
||||
int m_bar_value;
|
||||
std::string m_label_name;
|
||||
|
||||
int m_player_id;
|
||||
@ -85,7 +84,7 @@ class SkillLevelWidget : public Widget
|
||||
void setValue(int value);
|
||||
|
||||
/** Get the current values of the widget. */
|
||||
int getValue() {return m_bar_value; };
|
||||
int getValue() {return m_bar->getValue(); };
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user