fixed some minor bugs
This commit is contained in:
parent
8428939fd3
commit
79bf77c925
@ -719,6 +719,9 @@ void Courtroom::on_chat_return_pressed()
|
|||||||
if (ui_ic_chat_message->text() == "" || is_muted)
|
if (ui_ic_chat_message->text() == "" || is_muted)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (anim_state < 3 || text_state < 2)
|
||||||
|
return;
|
||||||
|
|
||||||
//MS#chat#
|
//MS#chat#
|
||||||
//pre-emote#
|
//pre-emote#
|
||||||
//character#
|
//character#
|
||||||
@ -826,7 +829,12 @@ void Courtroom::handle_chatmessage(QStringList *p_contents)
|
|||||||
m_chatmessage[n_string] = p_contents->at(n_string);
|
m_chatmessage[n_string] = p_contents->at(n_string);
|
||||||
}
|
}
|
||||||
|
|
||||||
QString f_message = m_chatmessage[CHAR_NAME] + ": " + m_chatmessage[MESSAGE] + '\n';
|
QString f_showname = ao_app->get_showname(m_chatmessage[CHAR_NAME]);
|
||||||
|
|
||||||
|
if (f_showname == "")
|
||||||
|
f_showname = m_chatmessage[CHAR_NAME];
|
||||||
|
|
||||||
|
QString f_message = f_showname + ": " + m_chatmessage[MESSAGE] + '\n';
|
||||||
|
|
||||||
if (f_message == previous_ic_message)
|
if (f_message == previous_ic_message)
|
||||||
return;
|
return;
|
||||||
@ -953,8 +961,8 @@ void Courtroom::handle_chatmessage_3()
|
|||||||
|
|
||||||
int emote_mod = m_chatmessage[EMOTE_MOD].toInt();
|
int emote_mod = m_chatmessage[EMOTE_MOD].toInt();
|
||||||
|
|
||||||
if (emote_mod == 4 ||
|
if (emote_mod == 5 ||
|
||||||
emote_mod == 5)
|
emote_mod == 6)
|
||||||
{
|
{
|
||||||
QString side = m_chatmessage[SIDE];
|
QString side = m_chatmessage[SIDE];
|
||||||
ui_vp_desk->hide();
|
ui_vp_desk->hide();
|
||||||
|
@ -128,10 +128,10 @@ private:
|
|||||||
bool is_muted = false;
|
bool is_muted = false;
|
||||||
|
|
||||||
//state of animation, 0 = objecting, 1 = preanim, 2 = talking, 3 = idle
|
//state of animation, 0 = objecting, 1 = preanim, 2 = talking, 3 = idle
|
||||||
int anim_state = 0;
|
int anim_state = 3;
|
||||||
|
|
||||||
//state of text ticking, 0 = not yet ticking, 1 = ticking in progress, 2 = ticking done
|
//state of text ticking, 0 = not yet ticking, 1 = ticking in progress, 2 = ticking done
|
||||||
int text_state = 0;
|
int text_state = 2;
|
||||||
|
|
||||||
int current_char_page = 0;
|
int current_char_page = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user