aboutsummaryrefslogtreecommitdiff
path: root/courtroom.cpp
diff options
context:
space:
mode:
authorDavid Skoland <davidskoland@gmail.com>2017-01-31 19:02:31 +0100
committerDavid Skoland <davidskoland@gmail.com>2017-01-31 19:02:31 +0100
commitab4de962e0bc8b2e8435af83dc568db99e1e303c (patch)
tree1d4e3e62a16a1944e00e67137a9291f776125676 /courtroom.cpp
parent295ea74b7c652ee98ed865fdbc572ecd65478bc4 (diff)
started program flow with objection handler
Diffstat (limited to 'courtroom.cpp')
-rw-r--r--courtroom.cpp19
1 files changed, 18 insertions, 1 deletions
diff --git a/courtroom.cpp b/courtroom.cpp
index 2c941b85..ce616ad8 100644
--- a/courtroom.cpp
+++ b/courtroom.cpp
@@ -606,9 +606,26 @@ void Courtroom::handle_chatmessage(QStringList *p_contents)
ui_ic_chatlog->verticalScrollBar()->setValue(ui_ic_chatlog->verticalScrollBar()->minimum());
}
+ int objection_mod = p_contents->at(OBJECTION_MOD);
+ switch (objection_mod)
+ {
+ case 1:
+ ui_vp_objection->play("holdit");
+ break;
+ case 2:
+ ui_vp_objection->play("objection");
+ break;
+ case 3:
+ ui_vp_objection->play("takethat");
+ break;
+ //AO2 only
+ case 4:
+ //T0D0: add custom.gif here
+ default:
+ //T0D0: continue program flow
- //T0D0: play objection gif->preanimation if there is any
+ }
//D3BUG START