From 2aec9710e5c83fe45d643307bad0f6dcbdf2f831 Mon Sep 17 00:00:00 2001 From: Cerapter Date: Mon, 13 Aug 2018 21:56:02 +0200 Subject: Added character filtering options to the char. select. screen. - Filtering by name. - Filtering by availability. - Filtering by being passworded (though this is unimplemented in AO). --- courtroom.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'courtroom.h') diff --git a/courtroom.h b/courtroom.h index eb8943e2..1cc2ed4a 100644 --- a/courtroom.h +++ b/courtroom.h @@ -418,6 +418,7 @@ private: QWidget *ui_char_buttons; QVector ui_char_button_list; + QVector ui_char_button_list_filtered; AOImage *ui_selector; AOButton *ui_back_to_lobby; @@ -429,10 +430,15 @@ private: AOButton *ui_spectator; + QLineEdit *ui_char_search; + QCheckBox *ui_char_passworded; + QCheckBox *ui_char_taken; + void construct_char_select(); void set_char_select(); void set_char_select_page(); void put_button_in_place(int starting, int chars_on_this_page); + void filter_character_list(); void construct_emotes(); void set_emote_page(); @@ -538,6 +544,9 @@ private slots: void on_char_select_left_clicked(); void on_char_select_right_clicked(); + void on_char_search_changed(const QString& newtext); + void on_char_taken_clicked(int newstate); + void on_char_passworded_clicked(int newstate); void on_spectator_clicked(); -- cgit