aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/macos_post_build.sh1
-rw-r--r--src/courtroom.cpp21
-rw-r--r--src/packet_distribution.cpp15
3 files changed, 35 insertions, 2 deletions
diff --git a/scripts/macos_post_build.sh b/scripts/macos_post_build.sh
index cdf7514..2ed7364 100755
--- a/scripts/macos_post_build.sh
+++ b/scripts/macos_post_build.sh
@@ -20,5 +20,6 @@ cp ../lib/* ../bin/Attorney_Online.app/Contents/Frameworks
# libbass has a funny path for some reason, just use rpath
install_name_tool -change @loader_path/libbass.dylib @rpath/libbass.dylib ../bin/Attorney_Online.app/Contents/MacOS/Attorney_Online
+install_name_tool -change @loader_path/libbassopus.dylib @rpath/libbassopus.dylib ../bin/Attorney_Online.app/Contents/MacOS/Attorney_Online
zip -r -9 ../bin/Attorney_Online_macOS.zip ../bin/ \ No newline at end of file
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index b5a4fb5..2d22b5a 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -84,7 +84,7 @@ Courtroom::Courtroom(AOApplication *p_ao_app) : QMainWindow()
ui_vp_chatbox = new AOImage(this, ao_app);
ui_vp_showname = new QLabel(ui_vp_chatbox);
- ui_vp_showname->setAlignment(Qt::AlignHCenter);
+ ui_vp_showname->setAlignment(Qt::AlignLeft);
ui_vp_chat_arrow = new AOMovie(ui_vp_chatbox, ao_app);
ui_vp_chat_arrow->set_play_once(false);
@@ -1873,7 +1873,7 @@ void Courtroom::handle_chatmessage_2()
{
ui_vp_chatbox->set_image("chatblank");
}
- else // Aw yeah dude do some showname resizing magic
+ else // Aw yeah dude do some showname magic
{
if (!ui_vp_chatbox->set_image("chat"))
ui_vp_chatbox->set_image("chatbox");
@@ -1913,6 +1913,19 @@ void Courtroom::handle_chatmessage_2()
->get_design_element("showname_extra_width", "courtroom_design.ini",
customchar)
.toInt();
+ QString align =
+ ao_app
+ ->get_design_element("showname_align", "courtroom_design.ini",
+ customchar)
+ .toLower();
+ if (align == "right")
+ ui_vp_showname->setAlignment(Qt::AlignRight);
+ else if (align == "center")
+ ui_vp_showname->setAlignment(Qt::AlignHCenter);
+ else if (align == "justify")
+ ui_vp_showname->setAlignment(Qt::AlignHCenter);
+ else
+ ui_vp_showname->setAlignment(Qt::AlignLeft);
if (extra_width > 0) {
if (fm_width > default_width.width &&
@@ -1934,6 +1947,10 @@ void Courtroom::handle_chatmessage_2()
else
ui_vp_showname->resize(default_width.width, ui_vp_showname->height());
}
+ else
+ {
+ ui_vp_showname->resize(default_width.width, ui_vp_showname->height());
+ }
}
ui_vp_message->hide();
diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp
index 670dab4..669b954 100644
--- a/src/packet_distribution.cpp
+++ b/src/packet_distribution.cpp
@@ -176,6 +176,21 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
}
}
else if (header == "FL") {
+// encryption_needed = true;
+ yellow_text_enabled = false;
+ prezoom_enabled = false;
+ flipping_enabled = false;
+ custom_objection_enabled = false;
+ improved_loading_enabled = false;
+ desk_mod_enabled = false;
+ evidence_enabled = false;
+ cccc_ic_support_enabled = false;
+ arup_enabled = false;
+ casing_alerts_enabled = false;
+ modcall_reason_enabled = false;
+ looping_sfx_support_enabled = false;
+ additive_enabled = false;
+ effects_enabled = false;
if (f_packet.contains("yellowtext", Qt::CaseInsensitive))
yellow_text_enabled = true;
if (f_packet.contains("prezoom", Qt::CaseInsensitive))