Skip to content

Commit

Permalink
Hide chatbox element when objecting
Browse files Browse the repository at this point in the history
  • Loading branch information
in1tiate committed Feb 10, 2024
1 parent ff57725 commit 11041fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/courtroom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2404,6 +2404,10 @@ bool Courtroom::handle_objection()

// if an objection is used
if (objection_mod <= 4 && objection_mod >= 1) {
ui_vp_chatbox->setVisible(chatbox_always_show);
ui_vp_message->setVisible(chatbox_always_show);
ui_vp_chat_arrow->setVisible(chatbox_always_show);
ui_vp_showname->setVisible(chatbox_always_show);
ui_vp_objection->set_static_duration(shout_static_time);
ui_vp_objection->set_max_duration(shout_max_time);
QString filename;
Expand Down Expand Up @@ -2839,6 +2843,7 @@ void Courtroom::initialize_chatbox()
}
else // Aw yeah dude do some showname magic
{
ui_vp_showname->setVisible(true);
if (!ui_vp_chatbox->set_image("chat", p_misc))
ui_vp_chatbox->set_image("chatbox", p_misc);

Expand Down

0 comments on commit 11041fb

Please sign in to comment.