diff options
| author | oldmud0 <oldmud0@users.noreply.github.com> | 2018-12-12 13:05:27 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-12 13:05:27 -0600 |
| commit | d09269122408ee83c4fa20dfb90ed5aedd9fe85a (patch) | |
| tree | 57bb4ac47202158ac5062488151d3c83305ce424 /aocharbutton.cpp | |
| parent | 9270069e726d1f260e3c08ee5722f6d07067b770 (diff) | |
| parent | 171196885d88360c8c06def67ae398c8187dfd89 (diff) | |
Merge pull request #38 from Cerapter/mega-merge-fixes
CC-original related feature fixes.
Diffstat (limited to 'aocharbutton.cpp')
| -rw-r--r-- | aocharbutton.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/aocharbutton.cpp b/aocharbutton.cpp index 23fd0c68..76610270 100644 --- a/aocharbutton.cpp +++ b/aocharbutton.cpp @@ -40,13 +40,22 @@ void AOCharButton::reset() ui_selector->hide(); } -void AOCharButton::set_taken() +void AOCharButton::set_taken(bool is_taken) +{ + taken = is_taken; +} + +void AOCharButton::apply_taken_image() { if (taken) { ui_taken->move(0,0); ui_taken->show(); } + else + { + ui_taken->hide(); + } } void AOCharButton::set_passworded() |
