Merge pull request #1 from AttorneyOnline/master
bring master up to date with upstream
This commit is contained in:
commit
ba17334fb8
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,6 +4,7 @@
|
|||||||
*.dll
|
*.dll
|
||||||
*.so
|
*.so
|
||||||
*.pro.autosave
|
*.pro.autosave
|
||||||
|
*.pro.user
|
||||||
base_override.h
|
base_override.h
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ void AOBlipPlayer::set_blips(QString p_sfx)
|
|||||||
|
|
||||||
void AOBlipPlayer::blip_tick()
|
void AOBlipPlayer::blip_tick()
|
||||||
{
|
{
|
||||||
int f_cycle = m_cycle++;
|
m_cycle++;
|
||||||
|
|
||||||
if (m_cycle == 5)
|
if (m_cycle == 5)
|
||||||
m_cycle = 0;
|
m_cycle = 0;
|
||||||
|
@ -21,6 +21,7 @@ void AOCharMovie::play(QString p_char, QString p_emote, QString emote_prefix)
|
|||||||
apng = false;
|
apng = false;
|
||||||
QString original_path = ao_app->get_character_path(p_char, emote_prefix + p_emote + ".gif");
|
QString original_path = ao_app->get_character_path(p_char, emote_prefix + p_emote + ".gif");
|
||||||
QString alt_path = ao_app->get_character_path(p_char, emote_prefix + p_emote + ".png");
|
QString alt_path = ao_app->get_character_path(p_char, emote_prefix + p_emote + ".png");
|
||||||
|
QString alt_path_still = ao_app->get_character_path(p_char, p_emote + ".png");
|
||||||
QString apng_path = ao_app->get_character_path(p_char, emote_prefix + p_emote + ".apng");
|
QString apng_path = ao_app->get_character_path(p_char, emote_prefix + p_emote + ".apng");
|
||||||
QString placeholder_path = ao_app->get_theme_path("placeholder.gif");
|
QString placeholder_path = ao_app->get_theme_path("placeholder.gif");
|
||||||
QString placeholder_default_path = ao_app->get_default_theme_path("placeholder.gif");
|
QString placeholder_default_path = ao_app->get_default_theme_path("placeholder.gif");
|
||||||
@ -36,6 +37,8 @@ void AOCharMovie::play(QString p_char, QString p_emote, QString emote_prefix)
|
|||||||
gif_path = original_path;
|
gif_path = original_path;
|
||||||
else if (file_exists(alt_path))
|
else if (file_exists(alt_path))
|
||||||
gif_path = alt_path;
|
gif_path = alt_path;
|
||||||
|
else if (file_exists(alt_path_still))
|
||||||
|
gif_path = alt_path_still;
|
||||||
else if (file_exists(placeholder_path))
|
else if (file_exists(placeholder_path))
|
||||||
gif_path = placeholder_path;
|
gif_path = placeholder_path;
|
||||||
else
|
else
|
||||||
@ -205,7 +208,6 @@ void AOCharMovie::play_pre(QString p_char, QString p_emote, int duration)
|
|||||||
m_movie->stop();
|
m_movie->stop();
|
||||||
m_movie->setFileName(gif_path);
|
m_movie->setFileName(gif_path);
|
||||||
m_movie->jumpToFrame(0);
|
m_movie->jumpToFrame(0);
|
||||||
int real_duration = 0;
|
|
||||||
play_once = true;
|
play_once = true;
|
||||||
play(p_char, p_emote, "");
|
play(p_char, p_emote, "");
|
||||||
}
|
}
|
||||||
|
@ -244,7 +244,6 @@ AOOptionsDialog::AOOptionsDialog(QWidget *parent, AOApplication *p_ao_app) : QDi
|
|||||||
ui_audio_device_combobox = new QComboBox(ui_audio_widget);
|
ui_audio_device_combobox = new QComboBox(ui_audio_widget);
|
||||||
|
|
||||||
// Let's fill out the combobox with the available audio devices. Or don't if there is no audio
|
// Let's fill out the combobox with the available audio devices. Or don't if there is no audio
|
||||||
int a = 0;
|
|
||||||
if (needs_default_audiodev())
|
if (needs_default_audiodev())
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -253,6 +252,7 @@ AOOptionsDialog::AOOptionsDialog(QWidget *parent, AOApplication *p_ao_app) : QDi
|
|||||||
}
|
}
|
||||||
#ifdef BASSAUDIO
|
#ifdef BASSAUDIO
|
||||||
BASS_DEVICEINFO info;
|
BASS_DEVICEINFO info;
|
||||||
|
int a = 0;
|
||||||
for (a = 0; BASS_GetDeviceInfo(a, &info); a++)
|
for (a = 0; BASS_GetDeviceInfo(a, &info); a++)
|
||||||
{
|
{
|
||||||
ui_audio_device_combobox->addItem(info.name);
|
ui_audio_device_combobox->addItem(info.name);
|
||||||
|
@ -134,9 +134,9 @@ void NetworkManager::on_srv_lookup()
|
|||||||
|
|
||||||
for (const QDnsServiceRecord &record : srv_records)
|
for (const QDnsServiceRecord &record : srv_records)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG_NETWORK
|
#ifdef DEBUG_NETWORK
|
||||||
qDebug() << "Connecting to " << record.target() << ":" << record.port();
|
qDebug() << "Connecting to " << record.target() << ":" << record.port();
|
||||||
#endif
|
#endif
|
||||||
ms_socket->connectToHost(record.target(), record.port());
|
ms_socket->connectToHost(record.target(), record.port());
|
||||||
QTime timer;
|
QTime timer;
|
||||||
timer.start();
|
timer.start();
|
||||||
|
@ -564,11 +564,11 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
|
|||||||
{
|
{
|
||||||
if (courtroom_constructed)
|
if (courtroom_constructed)
|
||||||
w_courtroom->reset_music_list();
|
w_courtroom->reset_music_list();
|
||||||
for (int n_element = 0 ; n_element < f_contents.size() ; ++n_element)
|
for (int n_element = 0 ; n_element < f_contents.size() ; ++n_element)
|
||||||
{
|
{
|
||||||
w_courtroom->append_music(f_contents.at(n_element));
|
w_courtroom->append_music(f_contents.at(n_element));
|
||||||
}
|
}
|
||||||
w_courtroom->list_music();
|
w_courtroom->list_music();
|
||||||
}
|
}
|
||||||
else if (header == "BN")
|
else if (header == "BN")
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user