aboutsummaryrefslogtreecommitdiff
path: root/courtroom.h
diff options
context:
space:
mode:
authorCerapter <cerap@protonmail.com>2018-08-13 21:56:02 +0200
committerCerapter <cerap@protonmail.com>2018-08-13 21:56:02 +0200
commit2aec9710e5c83fe45d643307bad0f6dcbdf2f831 (patch)
treec81471f84bf4329c974a7ce76ff5f3198be0514b /courtroom.h
parentb8dc30a822c57a3e3ee1995423b161e0fec0a3e4 (diff)
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).
Diffstat (limited to 'courtroom.h')
-rw-r--r--courtroom.h9
1 files changed, 9 insertions, 0 deletions
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<AOCharButton*> ui_char_button_list;
+ QVector<AOCharButton*> 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();