aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorin1tiate <32779090+in1tiate@users.noreply.github.com>2021-01-18 14:10:45 -0600
committerGitHub <noreply@github.com>2021-01-18 23:10:45 +0300
commitd41ec17fe72dbcf1b5277ab7b33b6374a9fb9e60 (patch)
treeb3f39b340886d98acc7925cda0c0db7535df19ed /include
parentd8dd429c201100c743a52224cb7f36e73d164e11 (diff)
Add a new "char_list" QTreeWidget that allows for categorizing characters (#399)
* initial commit * use a "category" value instead * add filtering and taken indicator * hide serverlist header * set the items to disabled in place of the [X] text Co-authored-by: stonedDiscord <10584181+stonedDiscord@users.noreply.github.com>
Diffstat (limited to 'include')
-rw-r--r--include/aoapplication.h3
-rw-r--r--include/courtroom.h4
2 files changed, 7 insertions, 0 deletions
diff --git a/include/aoapplication.h b/include/aoapplication.h
index 5a02c3b4..4607fa62 100644
--- a/include/aoapplication.h
+++ b/include/aoapplication.h
@@ -342,6 +342,9 @@ public:
// Returns the showname from the ini of p_char
QString get_showname(QString p_char);
+ // Returns the category of this character
+ QString get_category(QString p_char);
+
// Returns the value of chat image from the specific p_char's ini file
QString get_chat(QString p_char);
diff --git a/include/courtroom.h b/include/courtroom.h
index 31b90c90..e86330e6 100644
--- a/include/courtroom.h
+++ b/include/courtroom.h
@@ -715,6 +715,9 @@ private:
AOImage *ui_char_select_background;
+ // pretty list of characters
+ QTreeWidget *ui_char_list;
+
// abstract widget to hold char buttons
QWidget *ui_char_buttons;
@@ -908,6 +911,7 @@ private slots:
void on_back_to_lobby_clicked();
+ void on_char_list_double_clicked(QTreeWidgetItem *p_item, int column);
void on_char_select_left_clicked();
void on_char_select_right_clicked();
void on_char_search_changed();