diff options
Diffstat (limited to 'aocharbutton.cpp')
| -rw-r--r-- | aocharbutton.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/aocharbutton.cpp b/aocharbutton.cpp index d2190b2e..4c0273f9 100644 --- a/aocharbutton.cpp +++ b/aocharbutton.cpp @@ -4,12 +4,14 @@ #include <QFile> -AOCharButton::AOCharButton(QWidget *parent, AOApplication *p_ao_app, int x_pos, int y_pos) : QPushButton(parent) +AOCharButton::AOCharButton(QWidget *parent, AOApplication *p_ao_app, int x_pos, int y_pos, bool is_taken) : QPushButton(parent) { m_parent = parent; ao_app = p_ao_app; + taken = is_taken; + this->resize(60, 60); this->move(x_pos, y_pos); @@ -42,7 +44,11 @@ void AOCharButton::reset() void AOCharButton::set_taken() { - ui_taken->show(); + if (taken) + { + ui_taken->move(0,0); + ui_taken->show(); + } } void AOCharButton::set_passworded() |
