aboutsummaryrefslogtreecommitdiff
path: root/evidence.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'evidence.cpp')
-rw-r--r--evidence.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/evidence.cpp b/evidence.cpp
new file mode 100644
index 00000000..ec598dfa
--- /dev/null
+++ b/evidence.cpp
@@ -0,0 +1,19 @@
+#include "courtroom.h"
+
+void Courtroom::construct_evidence()
+{
+ //constructing emote button grid
+ const int base_x_pos{10};
+ const int base_y_pos{0};
+
+ const int x_modifier{49};
+ int x_mod_count{0};
+
+ const int y_modifier{49};
+ int y_mod_count{0};
+
+ emote_columns = ui_emotes->width() / x_modifier;
+ emote_rows = ui_emotes->height() / y_modifier;
+
+ max_emotes_on_page = emote_columns * emote_rows;
+}