diff options
| author | David Skoland <davidskoland@gmail.com> | 2017-02-15 23:16:06 +0100 |
|---|---|---|
| committer | David Skoland <davidskoland@gmail.com> | 2017-02-15 23:16:06 +0100 |
| commit | b210f264a90f95aa8ca22cb03e313468767225a8 (patch) | |
| tree | aacbd06dac8ad4f64bb077307bc1426aa3c7a342 | |
| parent | 9ec69c2d2fbd19511b8d51e83fbe5b5e61909deb (diff) | |
| parent | 897e19546ae9dae3e4197d97739a14c05c07f4aa (diff) | |
Merge branch 'master' of https://github.com/Attorney-Online-Engineering-Task-Force/Attorney-Online-Client-Remake
| -rw-r--r-- | aoapplication.h | 2 | ||||
| -rw-r--r-- | courtroom.cpp | 18 | ||||
| -rw-r--r-- | courtroom.h | 1 | ||||
| -rw-r--r-- | path_functions.cpp | 7 | ||||
| -rw-r--r-- | text_file_functions.cpp | 2 |
5 files changed, 13 insertions, 17 deletions
diff --git a/aoapplication.h b/aoapplication.h index 776487ba..907a5228 100644 --- a/aoapplication.h +++ b/aoapplication.h @@ -120,7 +120,7 @@ public: private: const int RELEASE = 2; const int MAJOR_VERSION = 1; - const int MINOR_VERSION = 7; + const int MINOR_VERSION = 8; QString user_theme = "default"; diff --git a/courtroom.cpp b/courtroom.cpp index 02b5b169..8fd3138a 100644 --- a/courtroom.cpp +++ b/courtroom.cpp @@ -1010,6 +1010,7 @@ void Courtroom::handle_chatmessage(QStringList *p_contents) return; text_state = 0; + qDebug() << "anim_state set to 0 in handle_chatmessage"; anim_state = 0; chatmessage_is_empty = m_chatmessage[MESSAGE] == " " || m_chatmessage[MESSAGE] == ""; @@ -1075,6 +1076,7 @@ void Courtroom::objection_done() void Courtroom::handle_chatmessage_2() { + qDebug() << "handle_chatmessage_2 called"; ui_vp_speedlines->stop(); ui_vp_player_char->stop(); @@ -1102,14 +1104,13 @@ void Courtroom::handle_chatmessage_2() switch (emote_mod) { - case 1: case 2: case 3: case 4: case 6: + case 1: case 2: case 6: play_preanim(); break; default: qDebug() << "W: invalid emote mod: " << QString::number(emote_mod); //intentional fallthru case 0: case 5: - start_chat_ticking(); handle_chatmessage_3(); } } @@ -1229,6 +1230,7 @@ void Courtroom::play_preanim() void Courtroom::preanim_done() { + qDebug() << "preanim_done called"; handle_chatmessage_3(); } @@ -1275,11 +1277,8 @@ void Courtroom::chat_tick() { text_state = 2; chat_tick_timer->stop(); - if (anim_state == 2) - { - anim_state = 3; - ui_vp_player_char->play_idle(m_chatmessage[CHAR_NAME], m_chatmessage[EMOTE]); - } + anim_state = 3; + ui_vp_player_char->play_idle(m_chatmessage[CHAR_NAME], m_chatmessage[EMOTE]); } else @@ -1816,7 +1815,7 @@ void Courtroom::on_change_character_clicked() } void Courtroom::on_reload_theme_clicked() -{ +{ ao_app->set_user_theme(); set_widgets(); @@ -1824,7 +1823,8 @@ void Courtroom::on_reload_theme_clicked() set_background(current_background); enter_courtroom(m_cid); - + anim_state = 4; + text_state = 3; } void Courtroom::on_back_to_lobby_clicked() diff --git a/courtroom.h b/courtroom.h index 6e3d5f83..1c9f38fa 100644 --- a/courtroom.h +++ b/courtroom.h @@ -25,7 +25,6 @@ #include <QVector> #include <QCloseEvent> #include <QSignalMapper> -#include <QSoundEffect> #include <QMap> class AOApplication; diff --git a/path_functions.cpp b/path_functions.cpp index cab87523..a6c7b860 100644 --- a/path_functions.cpp +++ b/path_functions.cpp @@ -1,17 +1,16 @@ #include "aoapplication.h" #include "courtroom.h" -#ifndef OMNI_WIN_DEBUG -#define OMNI_WIN_DEBUG - #include <QDir> #include <QDebug> -#endif QString AOApplication::get_base_path() { + #ifdef OMNI_DEBUG return "/media/omnitroid/Data/winshare/AO/client/base/"; +#elif defined(OMNI_WIN_DEBUG) + return "E:/AO/client/base/"; #else return (QDir::currentPath() + "/base/"); #endif diff --git a/text_file_functions.cpp b/text_file_functions.cpp index bc8490da..6416781a 100644 --- a/text_file_functions.cpp +++ b/text_file_functions.cpp @@ -130,8 +130,6 @@ pos_size_type AOApplication::get_pos_and_size(QString p_identifier, QString p_de return return_value; } - - qDebug() << "W: Could not find proper " << p_identifier << " in " << p_design_path; //caller should deal with the result properly(check width and height of output for negatives) return_value.height = -1; return_value.width = -1; |
