From f217c68f85156e5ea816c10a7c4723a6c55c0b77 Mon Sep 17 00:00:00 2001 From: Cerapter Date: Wed, 12 Dec 2018 19:22:34 +0100 Subject: 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. --- aocharbutton.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'aocharbutton.h') diff --git a/aocharbutton.h b/aocharbutton.h index 6e5e50e1..f372cdf8 100644 --- a/aocharbutton.h +++ b/aocharbutton.h @@ -20,9 +20,11 @@ public: void refresh(); void reset(); - void set_taken(); + void set_taken(bool is_taken); void set_passworded(); + void apply_taken_image(); + void set_image(QString p_character); private: -- cgit