diff options
| author | Cerapter <cerap@protonmail.com> | 2018-12-12 19:22:34 +0100 |
|---|---|---|
| committer | Cerapter <cerap@protonmail.com> | 2018-12-12 19:22:34 +0100 |
| commit | f217c68f85156e5ea816c10a7c4723a6c55c0b77 (patch) | |
| tree | 867c710cc3e01c10e9f45c7210d90e83cb84eec5 /aocharbutton.cpp | |
| parent | 941a32d99caf4406d86b9fc85440c875d4ca5207 (diff) | |
The charselect's "shadows" correctly update based on what chars are taken.
This was purely a graphical bug. The characters were correctly
recognised as taken by the client, but there was no way to update the
"taken-shadow" over their icons.
Which meant that they were locked into the way they were when the user
first joined the server.
As a result of this, a `CharsCheck` package from the server will
correctly display the taken characters to the client in the character
selection.
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() |
