aboutsummaryrefslogtreecommitdiff
path: root/courtroom.h
diff options
context:
space:
mode:
authorCerapter <cerap@protonmail.com>2018-08-13 18:08:43 +0200
committerCerapter <cerap@protonmail.com>2018-08-13 18:08:43 +0200
commitb8dc30a822c57a3e3ee1995423b161e0fec0a3e4 (patch)
treebd9b72f2936b9ed0a7e3df0c5bd191e28f14a46a /courtroom.h
parent3712526ff0e4a715ea9548f331edfc43d1502eb9 (diff)
The game now keeps every character's icon in memory for a fast character sceen.
Additionally, the loading at the beginning is smoother.
Diffstat (limited to 'courtroom.h')
-rw-r--r--courtroom.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/courtroom.h b/courtroom.h
index 22d25868..eb8943e2 100644
--- a/courtroom.h
+++ b/courtroom.h
@@ -47,6 +47,8 @@ public:
void append_evidence(evi_type p_evi){evidence_list.append(p_evi);}
void append_music(QString f_music){music_list.append(f_music);}
+ void character_loading_finished();
+
//sets position of widgets based on theme ini files
void set_widgets();
//sets font size based on theme ini files
@@ -272,6 +274,9 @@ private:
int char_rows = 9;
int max_chars_on_page = 90;
+ const int button_width = 60;
+ const int button_height = 60;
+
int current_emote_page = 0;
int current_emote = 0;
int emote_columns = 5;
@@ -427,6 +432,7 @@ private:
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 construct_emotes();
void set_emote_page();