bruh
This commit is contained in:
OmniTroid 2017-07-08 18:41:36 +02:00
commit eae7cc791b
3 changed files with 33 additions and 20 deletions

View File

@ -1,4 +1,13 @@
# Attorney-Online-Client-Remake
This is a remake of Attorney Online made by FanatSors. This project uses Qt 5.7.
This is a remake of Attorney Online made by FanatSors, licensed under GPLv3.
This project depends on the bass shared library, get it here: http://www.un4seen.com/
## Qt
This project uses Qt 5.7, which is licensed under the [GNU Lesser General Public License](https://www.gnu.org/licenses/lgpl-3.0.txt) with [certain licensing restrictions and exceptions](https://www.qt.io/qt-licensing-terms/). To comply with licensing requirements for static linking, object code is available if you would like to relink with an alternative version of Qt, and the source code for Qt may be found at https://github.com/qt/qtbase, http://code.qt.io/cgit/, or at https://qt.io.
Copyright (C) 2016 The Qt Company Ltd.
## BASS
This project depends on the BASS shared library. Get it here: http://www.un4seen.com/
Copyright (c) 1999-2016 Un4seen Developments Ltd. All rights reserved.

View File

@ -14,16 +14,20 @@ AOScene::AOScene(QWidget *parent, AOApplication *p_ao_app) : QLabel(parent)
void AOScene::set_image(QString p_image)
{
QString background_path = ao_app->get_background_path() + p_image;
QString background_path = ao_app->get_background_path() + p_image + ".png";
QString animated_background_path = ao_app->get_background_path() + p_image + ".gif";
QString default_path = ao_app->get_default_background_path() + p_image;
QPixmap background(background_path);
QPixmap animated_background(animated_background_path);
QPixmap default_bg(default_path);
int w = this->width();
int h = this->height();
if (file_exists(background_path))
if (file_exists(animated_background_path))
this->setPixmap(animated_background.scaled(w, h));
else if (file_exists(background_path))
this->setPixmap(background.scaled(w, h));
else
this->setPixmap(default_bg.scaled(w, h));

View File

@ -1353,48 +1353,48 @@ void Courtroom::set_scene()
show_testimony();
//witness is default if pos is invalid
QString f_background = "witnessempty.png";
QString f_desk_image = "stand.png";
QString f_background = "witnessempty";
QString f_desk_image = "stand";
QString f_desk_mod = m_chatmessage[DESK_MOD];
QString f_side = m_chatmessage[SIDE];
if (f_side == "def")
{
f_background = "defenseempty.png";
f_background = "defenseempty";
if (is_ao2_bg)
f_desk_image = "defensedesk.png";
f_desk_image = "defensedesk";
else
f_desk_image = "bancodefensa.png";
f_desk_image = "bancodefensa";
}
else if (f_side == "pro")
{
f_background = "prosecutorempty.png";
f_background = "prosecutorempty";
if (is_ao2_bg)
f_desk_image = "prosecutiondesk.png";
f_desk_image = "prosecutiondesk";
else
f_desk_image = "bancoacusacion.png";
f_desk_image = "bancoacusacion";
}
else if (f_side == "jud")
{
f_background = "judgestand.png";
f_desk_image = "judgedesk.png";
f_background = "judgestand";
f_desk_image = "judgedesk";
}
else if (f_side == "hld")
{
f_background = "helperstand.png";
f_desk_image = "helperdesk.png";
f_background = "helperstand";
f_desk_image = "helperdesk";
}
else if (f_side == "hlp")
{
f_background = "prohelperstand.png";
f_desk_image = "prohelperdesk.png";
f_background = "prohelperstand";
f_desk_image = "prohelperdesk";
}
else
{
if (is_ao2_bg)
f_desk_image = "stand.png";
f_desk_image = "stand";
else
f_desk_image = "estrado.png";
f_desk_image = "estrado";
}
ui_vp_background->set_image(f_background);