aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCrystalwarrior <varsash@gmail.com>2019-12-05 22:46:26 +0300
committerCrystalwarrior <varsash@gmail.com>2019-12-05 22:46:26 +0300
commiteb014a97785db4a196d41fb38ee61612a54e0f6e (patch)
tree5b4ffab854baa211e13a2a11f1587b8e69528f8d /include
parent07763c5ac0914d1255c4b28b29f14825ac810282 (diff)
Add a message delay modifier when punctuation is reached to simulate Ace Attorney 1 chat parsing (replicating the effect where characters would make a short pause, as if saying the line out loud)
TODO: Make this a configurable thing
Diffstat (limited to 'include')
-rw-r--r--include/courtroom.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/courtroom.h b/include/courtroom.h
index ea84122..6bca28e 100644
--- a/include/courtroom.h
+++ b/include/courtroom.h
@@ -332,6 +332,12 @@ private:
//the amount of time non-animated witness testimony/cross-examination images stay onscreen for in ms
const int wtce_stay_time = 1500;
+ //characters we consider punctuation
+ const QString punctuation_chars = ".,?!:;";
+
+ //amount by which we multiply the delay when we parse punctuation chars
+ const int punctuation_modifier = 3;
+
static const int chatmessage_size = 30;
QString m_chatmessage[chatmessage_size];
bool chatmessage_is_empty = false;