aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Attorney_Online_remake.pro19
-rw-r--r--base/themes/default/addevidence.pngbin0 -> 403 bytes
-rw-r--r--base/themes/default/arrow_left.pngbin1027 -> 742 bytes
-rw-r--r--base/themes/default/arrow_right.pngbin1039 -> 730 bytes
-rw-r--r--base/themes/default/char_selector.pngbin344 -> 285 bytes
-rw-r--r--base/themes/default/char_taken.pngbin291 -> 215 bytes
-rw-r--r--base/themes/default/courtroom_design.ini258
-rw-r--r--base/themes/default/courtroom_fonts.ini6
-rw-r--r--base/themes/default/courtroom_sounds.ini8
-rw-r--r--base/themes/default/custom.pngbin3421 -> 2505 bytes
-rw-r--r--base/themes/default/custom_selected.pngbin3468 -> 2212 bytes
-rw-r--r--base/themes/default/defensebar0.pngbin286 -> 15459 bytes
-rw-r--r--base/themes/default/defensebar1.pngbin2949 -> 227 bytes
-rw-r--r--base/themes/default/defensebar10.pngbin315 -> 203 bytes
-rw-r--r--base/themes/default/defensebar2.pngbin3032 -> 228 bytes
-rw-r--r--base/themes/default/defensebar3.pngbin3033 -> 230 bytes
-rw-r--r--base/themes/default/defensebar4.pngbin3030 -> 230 bytes
-rw-r--r--base/themes/default/defensebar5.pngbin3033 -> 229 bytes
-rw-r--r--base/themes/default/defensebar6.pngbin3031 -> 231 bytes
-rw-r--r--base/themes/default/defensebar7.pngbin3035 -> 230 bytes
-rw-r--r--base/themes/default/defensebar8.pngbin3034 -> 227 bytes
-rw-r--r--base/themes/default/defensebar9.pngbin3035 -> 227 bytes
-rw-r--r--base/themes/default/deleteevidence.pngbin0 -> 3280 bytes
-rw-r--r--base/themes/default/evidence_appear_left.gifbin0 -> 2008 bytes
-rw-r--r--base/themes/default/evidence_appear_right.gifbin0 -> 2225 bytes
-rw-r--r--base/themes/default/evidence_selected.pngbin0 -> 291 bytes
-rw-r--r--base/themes/default/evidence_selector.pngbin0 -> 931 bytes
-rw-r--r--base/themes/default/evidencebackground.pngbin0 -> 16476 bytes
-rw-r--r--base/themes/default/evidencebutton.pngbin0 -> 577 bytes
-rw-r--r--base/themes/default/evidenceoverlay.pngbin0 -> 2187 bytes
-rw-r--r--base/themes/default/evidencex.pngbin0 -> 637 bytes
-rw-r--r--base/themes/default/guilty.gifbin0 -> 43263 bytes
-rw-r--r--base/themes/default/guilty.pngbin0 -> 2851 bytes
-rw-r--r--base/themes/default/holdit.pngbin1316 -> 1983 bytes
-rw-r--r--base/themes/default/holdit_selected.pngbin1211 -> 1835 bytes
-rw-r--r--base/themes/default/lobby_design.ini3
-rw-r--r--base/themes/default/mute.pngbin652 -> 5037 bytes
-rw-r--r--base/themes/default/mute_pressed.pngbin608 -> 4978 bytes
-rw-r--r--base/themes/default/notguilty.gifbin0 -> 34911 bytes
-rw-r--r--base/themes/default/notguilty.pngbin0 -> 3269 bytes
-rw-r--r--base/themes/default/objection.pngbin1383 -> 2147 bytes
-rw-r--r--base/themes/default/objection_selected.pngbin1280 -> 1988 bytes
-rw-r--r--base/themes/default/pair_button.pngbin0 -> 4677 bytes
-rw-r--r--base/themes/default/pair_button_pressed.pngbin0 -> 4619 bytes
-rw-r--r--base/themes/default/prosecutionbar0.pngbin286 -> 15458 bytes
-rw-r--r--base/themes/default/prosecutionbar1.pngbin2951 -> 245 bytes
-rw-r--r--base/themes/default/prosecutionbar10.pngbin3026 -> 208 bytes
-rw-r--r--base/themes/default/prosecutionbar2.pngbin3041 -> 249 bytes
-rw-r--r--base/themes/default/prosecutionbar3.pngbin3041 -> 252 bytes
-rw-r--r--base/themes/default/prosecutionbar4.pngbin3039 -> 251 bytes
-rw-r--r--base/themes/default/prosecutionbar5.pngbin3041 -> 245 bytes
-rw-r--r--base/themes/default/prosecutionbar6.pngbin3038 -> 252 bytes
-rw-r--r--base/themes/default/prosecutionbar7.pngbin3041 -> 251 bytes
-rw-r--r--base/themes/default/prosecutionbar8.pngbin3041 -> 253 bytes
-rw-r--r--base/themes/default/prosecutionbar9.pngbin3044 -> 247 bytes
-rw-r--r--base/themes/default/realization.pngbin1352 -> 4259 bytes
-rw-r--r--base/themes/default/realization_pressed.pngbin1108 -> 4225 bytes
-rw-r--r--base/themes/default/takethat.pngbin1340 -> 2057 bytes
-rw-r--r--base/themes/default/takethat_selected.pngbin1254 -> 1932 bytes
-rw-r--r--base/themes/default/testimony.pngbin0 -> 579 bytes
-rw-r--r--charselect.cpp10
-rw-r--r--courtroom.cpp30
-rw-r--r--packet_distribution.cpp2
-rw-r--r--text_file_functions.cpp2
64 files changed, 276 insertions, 62 deletions
diff --git a/Attorney_Online_remake.pro b/Attorney_Online_remake.pro
index 62a7dc98..2e8a5f82 100644
--- a/Attorney_Online_remake.pro
+++ b/Attorney_Online_remake.pro
@@ -87,13 +87,26 @@ HEADERS += lobby.h \
aocaseannouncerdialog.h
# 1. You need to get BASS and put the x86 bass DLL/headers in the project root folder
-# AND the compilation output folder. If you want a static link, you'll probably
-# need the .lib file too. MinGW-GCC is really finicky finding BASS, it seems.
+# AND the compilation output folder. If you are compiling statically, you'll probably
+# need the .lib file too. MinGW-GCC is really finicky finding BASS, it seems. However,
+# even with the .lib file, you still need the DLL in the final output.
# 2. You need to compile the Discord Rich Presence SDK separately and add the lib/headers
# in the same way as BASS. Discord RPC uses CMake, which does not play nicely with
-# QMake, so this step must be manual.
+# QMake, so this step must be manual. If you are compiling dynamically, it's fine to
+# use the prebuilt libraries.
+# 3. You also need to build QtApng (https://github.com/Skycoder42/QtApng).
+# Optionally, you may install it in /usr/share/qt5/plugins/imageformats, but if you do
+# so, then you must patch qapng.pri, qapngd.pri, png.pri, pngd.pri, z.pri, and zd.pri
+# such that they no longer point to the builds in the original project directory
+# (by removing those respective entries in QMAKE_PRL_LIBS and replacing them with
+# something like `-L$$[QT_INSTALL_LIBS] -lpng -lz`).
+#
+# Naturally, the build process becomes significantly less convoluted if you simply
+# compile dynamically. If your primary distribution method is via the launcher, then
+# a simple dynamic compilation is recommended.
unix:LIBS += -L$$PWD -lbass -ldiscord-rpc
win32:LIBS += -L$$PWD "$$PWD/bass.dll" -ldiscord-rpc
+INCLUDEPATH += $$PWD/include
CONFIG += c++11
diff --git a/base/themes/default/addevidence.png b/base/themes/default/addevidence.png
new file mode 100644
index 00000000..7a432af2
--- /dev/null
+++ b/base/themes/default/addevidence.png
Binary files differ
diff --git a/base/themes/default/arrow_left.png b/base/themes/default/arrow_left.png
index b44504ed..f1098c49 100644
--- a/base/themes/default/arrow_left.png
+++ b/base/themes/default/arrow_left.png
Binary files differ
diff --git a/base/themes/default/arrow_right.png b/base/themes/default/arrow_right.png
index 8dd6d3ae..2b5ad70d 100644
--- a/base/themes/default/arrow_right.png
+++ b/base/themes/default/arrow_right.png
Binary files differ
diff --git a/base/themes/default/char_selector.png b/base/themes/default/char_selector.png
index 566d96f0..e868cdb9 100644
--- a/base/themes/default/char_selector.png
+++ b/base/themes/default/char_selector.png
Binary files differ
diff --git a/base/themes/default/char_taken.png b/base/themes/default/char_taken.png
index 6230c836..efad48dc 100644
--- a/base/themes/default/char_taken.png
+++ b/base/themes/default/char_taken.png
Binary files differ
diff --git a/base/themes/default/courtroom_design.ini b/base/themes/default/courtroom_design.ini
index 16e5f474..7301b231 100644
--- a/base/themes/default/courtroom_design.ini
+++ b/base/themes/default/courtroom_design.ini
@@ -1,52 +1,228 @@
+; Client size. Changing it to something other than 714, 668 will stretch or
+; compress courtroombackground.png accordingly.
courtroom = 0, 0, 714, 668
+
+; IC Area. Changing 256, 192 will stretch or compress character gifs and the
+; /bgs being used accordingly
viewport = 0, 0, 256, 192
-chatbox = 0, 96, 256, 78
-ao2_chatbox = 0, 114, 256, 78
-showname = 6, 113, 80, 15
-message = 3, 132, 250, 60
+
+; IC chatbox
+chatbox = 0, 174, 256, 108
+
+; IC chatbox if the current background's folder contains stand.png,
+; defensedesk.png and prosecutiondesk.png
+ao2_chatbox = 0, 174, 256, 108
+
+; Textbox for custom IC name (the "showname")
+showname = 6, 1, 256, 15
+
+; IC message, positioned within the chatbox. Changing 250 affects how
+; long text goes on before going onto the next line. Changing 89 affects
+; how many lines you can see before the message starts scrolling, based on
+; the formula of n = 25+(n-1)*16, where n is the number of lines to be
+; displayed. (ie, set it to 25 for 1 line, 41 for 2, 57 for 3, 73 for 4,
+; 89 for 5, 105 for 6... Less than 25 displays nothing)
+message = 3, 18, 250, 89
+
+; Where you type to make an IC chat message
+ic_chat_message = 2, 283, 250, 23
+
+; IC chat message if the current background's folder contains stand.png,
+; defensedesk.png and prosecutiondesk.png
+ao2_ic_chat_message = 2, 283, 250, 23
+
+; IC chatlog
ic_chatlog = 260, 0, 231, 319
+
+; Master server chatlog
ms_chatlog = 490, 1, 224, 277
+
+; OOC Chatlog
server_chatlog = 490, 1, 224, 277
-mute_list = 260, 160, 231, 159
-area_list = 266, 494, 224, 174
-music_list = 490, 342, 224, 326
-ic_chat_message = 0, 174, 256, 23
-ao2_ic_chat_message = 0, 192, 256, 23
+
+; Where you type to make an OOC chat message
+; NOTE: THIS DOES NOT HAVE ANY VISUAL APPEARANCE
ooc_chat_message = 492, 281, 222, 19
+
+; Where you enter your OOC name, and also where it shows up
ooc_chat_name = 492, 300, 85, 19
-area_password = 266, 471, 224, 23
-music_search = 490, 319, 226, 23
-emote_left = 0, 253, 20, 20
-emote_right = 236, 253, 20, 20
-defense_bar = 393, 323, 84, 14
-prosecution_bar = 393, 340, 84, 14
-music_label = 260, 390, 41, 16
-sfx_label = 260, 410, 21, 16
-blip_label = 260, 430, 31, 16
-hold_it = 10, 312, 76, 28
-objection = 90, 312, 76, 28
-take_that = 170, 312, 76, 28
+
+; Toggle between Server and Master OOC chats
ooc_toggle = 580, 300, 133, 19
-witness_testimony = 5, 345, 85, 42
-cross_examination = 95, 345, 85, 42
-change_character = 5, 390, 121, 23
-reload_theme = 5, 415, 101, 23
-call_mod = 5, 440, 71, 23
-pre = 187, 345, 51, 21
-flip = 187, 362, 51, 21
-guard = 187, 379, 61, 21
-custom_objection = 250, 325, 40, 40
-realization = 295, 325, 40, 40
-mute_button = 340, 325, 40, 40
-defense_plus = 477, 325, 9, 9
-defense_minus = 385, 325, 9, 9
-prosecution_plus = 477, 342, 9, 9
-prosecution_minus = 385, 342, 9, 9
-text_color = 390, 360, 79, 23
-music_slider = 310, 392, 160, 16
-sfx_slider = 310, 412, 160, 16
-blip_slider = 310, 432, 160, 16
+
+; Where the jukebox is
+music_list = 490, 342, 224, 326
+
+; Jukebox search bar
+music_search = 490, 319, 100, 23
+
+found_song_color = 100, 255, 100
+missing_song_color = 255, 100, 100
+
+; Labels and sliders for music/sfx/blips
+music_label = 286, 607, 41, 16
+sfx_label = 286, 627, 21, 16
+blip_label = 286, 647, 31, 16
+music_slider = 326, 608, 140, 16
+sfx_slider = 326, 628, 140, 16
+blip_slider = 326, 648, 140, 16
+
+; Emote buttons - [490, 98] determines how many columns and rows of buttons are
+; displayed per page. 49, 49 is the ABSOLUTE MINIMUM, and displays 1 button per
+; page. Having either number lower than 49 crashes the client when you try to
+; pick a character. If you want X columns and Y rows, you would change it to
+; 49X, 49Y (ie. 490, 147 if you want 10 columns and 3 rows)
+emotes = 10, 342, 490, 147
+
+; Page togglers for emotes
+emote_left = 373, 475, 17, 17
+emote_right = 392, 475, 17, 17
+
+; Emote dropdown/emote names - Change '125' to make it longer/shorter and
+; display the full emote name or truncate it based on length
+emote_dropdown = 5, 470, 105, 20
+
+; Hold it/Take That/Objection and the "BLING!" buttons
+hold_it = 10, 310, 76, 28
+objection = 90, 310, 76, 28
+take_that = 170, 310, 76, 28
+realization = 5, 515, 42, 42
+
+; If the server supports it (AOV does not currently) - if a character has a
+; custom.gif and custom.wav in their folder, this button acts as another
+; Objection/Take That/Hold It for that character that uses the custom animation
+; and sfx. (Think Satorah! Such Insolence!, Gotcha!)
+custom_objection = 340, 565, 76, 28
+
+; Text color dropdown menu
+text_color = 115, 470, 80, 20
+
+; Preanimation toggle
+pre = 5, 490, 60, 21
+
+; Flip button
+flip = 104, 490, 51, 21
+
+; Guard button
+guard = 200, 470, 61, 21
+
+pre_no_interrupt = 200, 490, 80, 21
+
+; Penalty bars and judge's buttons for penalizing. Other than the bars, these
+; ONLY show up on a character with /pos jud
+defense_bar = 15, 566, 170, 9
+prosecution_bar = 15, 582, 170, 9
+defense_plus = 183, 566, 9, 9
+defense_minus = 6, 566, 9, 9
+prosecution_plus = 183, 582, 9, 9
+prosecution_minus = 6, 582, 9, 9
+
+; Judge's buttons for WT and CE. /pos jud
+witness_testimony = 290, 470, 85, 42
+cross_examination = 290, 515, 85, 42
+
+; Buttons to change character/Reload theme/Call Mod
+change_character = 5, 610, 110, 23
+reload_theme = 5, 637, 90, 23
+call_mod = 100, 637, 60, 23
+
+; Mute button
+mute_button = 150, 515, 42, 42
+
+; Where the Mute list pops up when you click Mute
+mute_list = 280, 469, 210, 198
+
+; ???? - if there was an Area button, where the area list would show up?
+; area_list = 270, 494, 224, 174
+
+; ???? - where a password box appears if an area is password locked?
+; area_password = 266, 471, 224, 23
+
+; >Evidence meme
+evidence_button = 625, 322, 85, 18
+evidence_background = 0, 385, 490, 284
+evidence_name = 112, 4, 264, 19
+evidence_overlay = 24, 24, 439, 222
+evidence_x = 341, 8, 20, 20
+evidence_description = 78, 28, 281, 166
+evidence_left = 2, 114, 20, 20
+evidence_right = 465, 114, 20, 20
+
+; Character select widgets
char_select = 0, 0, 714, 668
back_to_lobby = 5, 5, 91, 23
char_password = 297, 7, 120, 22
-spectator = 317, 640, 80, 23
+char_buttons = 25, 36, 663, 596
+char_button_spacing = 7, 7
+char_select_left = 2, 325, 20, 20
+char_select_right = 691, 325, 20, 20
+
+; -------------------------
+; New in 2.6.0
+; -------------------------
+
+; The log limiter explaining label. This is simply a piece of text that
+; explains what the spin box is for.
+; log_limit_label = 190, 612, 50, 30
+
+; The spinbox allows you to set the log limit ingame inbetween 1 and 10000,
+; with the option to set it to 0 as well (which is considered 'infinite' by
+; the log limiter).
+; log_limit_spinbox = 168, 636, 70, 25
+
+; This is an input field that allows you to change your in-character showname.
+ic_chat_name = 200, 534, 78, 23
+
+; I am sure there are some differences between the 'ao2_' versions and the
+; 'ao2_'-less versions of the IC text display and input, but I do not know
+; what. Still, here you go!
+ao2_ic_chat_name = 200, 534, 78, 23
+
+; An in-game tickbox that allows you to set whether your client should show
+; custom shownames where possible, or always keep to character names.
+; This is useful if you suspect someone is impersonating others, for example,
+; and they are using this in combination with ini-swapping to 'duplicate' a
+; character.
+showname_enable = 200, 510, 80, 21
+
+; A simple button that opens up the settings menu.
+; Equivalent to typing /settings in the OOC chat.
+settings = 120, 610, 60, 23
+
+; The character search text input in the character selecton screen.
+; The moment you enter some text, it immediately starts filtering.
+char_search = 420, 7, 120, 22
+
+; A tickbox that filters based on if a character requires password to access or not.
+; Note that this is actually only partially implemented in AO.
+; The interface exists for it, but no way to actually password the characters.
+char_passworded = 545, 7, 100, 22
+
+; A tickbox that filters characters based on if they are taken.
+char_taken = 635, 7, 80, 22
+
+; These buttons are similar to the CE / WT buttons, except they show a
+; Not Guilty or Guilty animation instead.
+not_guilty = 380, 470, 85, 42
+guilty = 380, 515, 85, 42
+
+; These are responsible for the pairing stuff.
+; These work much like muting, actually.
+pair_button = 104, 515, 42, 42
+pair_list = 280, 490, 210, 177
+pair_offset_spinbox = 280, 470, 210, 20
+
+; This button allows switching between music and areas.
+switch_area_music = 590, 319, 35, 23
+
+; These are colours for the various statuses an area can be in.
+area_free_color = 54, 198, 68
+area_lfp_color = 255, 255 0
+area_casing_color = 255, 166, 0
+area_recess_color = 255, 190, 30
+area_rp_color = 200, 52, 252
+area_gaming_color = 55, 255, 255
+area_locked_color = 165, 43, 43
+
+; Color for all labels and checkboxes
+label_color = 255, 255, 255
diff --git a/base/themes/default/courtroom_fonts.ini b/base/themes/default/courtroom_fonts.ini
new file mode 100644
index 00000000..abc8f7a5
--- /dev/null
+++ b/base/themes/default/courtroom_fonts.ini
@@ -0,0 +1,6 @@
+showname = 8
+message = 10
+ic_chatlog = 10
+ms_chatlog = 10
+server_chatlog = 9
+music_list = 8 \ No newline at end of file
diff --git a/base/themes/default/courtroom_sounds.ini b/base/themes/default/courtroom_sounds.ini
new file mode 100644
index 00000000..b24e2ce9
--- /dev/null
+++ b/base/themes/default/courtroom_sounds.ini
@@ -0,0 +1,8 @@
+realization = sfx-realization.wav
+witness_testimony = sfx-testimony2.wav
+cross_examination = sfx-testimony.wav
+evidence_present = sfx-evidenceshoop.wav
+word_call = sfx-gaspen-yeah!.wav
+mod_call = sfx-gallery.wav
+not_guilty = sfx-notguilty.wav
+guilty = sfx-guilty.wav \ No newline at end of file
diff --git a/base/themes/default/custom.png b/base/themes/default/custom.png
index b34ccfbb..b58d1620 100644
--- a/base/themes/default/custom.png
+++ b/base/themes/default/custom.png
Binary files differ
diff --git a/base/themes/default/custom_selected.png b/base/themes/default/custom_selected.png
index 68b41601..d8dc5253 100644
--- a/base/themes/default/custom_selected.png
+++ b/base/themes/default/custom_selected.png
Binary files differ
diff --git a/base/themes/default/defensebar0.png b/base/themes/default/defensebar0.png
index 44ffa2c2..25b98797 100644
--- a/base/themes/default/defensebar0.png
+++ b/base/themes/default/defensebar0.png
Binary files differ
diff --git a/base/themes/default/defensebar1.png b/base/themes/default/defensebar1.png
index 7b929a19..535ea4a6 100644
--- a/base/themes/default/defensebar1.png
+++ b/base/themes/default/defensebar1.png
Binary files differ
diff --git a/base/themes/default/defensebar10.png b/base/themes/default/defensebar10.png
index 9dfbc6fd..ca98d271 100644
--- a/base/themes/default/defensebar10.png
+++ b/base/themes/default/defensebar10.png
Binary files differ
diff --git a/base/themes/default/defensebar2.png b/base/themes/default/defensebar2.png
index 440783c9..671dd7c2 100644
--- a/base/themes/default/defensebar2.png
+++ b/base/themes/default/defensebar2.png
Binary files differ
diff --git a/base/themes/default/defensebar3.png b/base/themes/default/defensebar3.png
index 93ef86f2..c9df8f95 100644
--- a/base/themes/default/defensebar3.png
+++ b/base/themes/default/defensebar3.png
Binary files differ
diff --git a/base/themes/default/defensebar4.png b/base/themes/default/defensebar4.png
index a36fec7d..5383c435 100644
--- a/base/themes/default/defensebar4.png
+++ b/base/themes/default/defensebar4.png
Binary files differ
diff --git a/base/themes/default/defensebar5.png b/base/themes/default/defensebar5.png
index 321c4f3b..94ee9013 100644
--- a/base/themes/default/defensebar5.png
+++ b/base/themes/default/defensebar5.png
Binary files differ
diff --git a/base/themes/default/defensebar6.png b/base/themes/default/defensebar6.png
index c8e70295..ae23ae42 100644
--- a/base/themes/default/defensebar6.png
+++ b/base/themes/default/defensebar6.png
Binary files differ
diff --git a/base/themes/default/defensebar7.png b/base/themes/default/defensebar7.png
index c3af2a2f..cb721777 100644
--- a/base/themes/default/defensebar7.png
+++ b/base/themes/default/defensebar7.png
Binary files differ
diff --git a/base/themes/default/defensebar8.png b/base/themes/default/defensebar8.png
index e1176f62..9324db59 100644
--- a/base/themes/default/defensebar8.png
+++ b/base/themes/default/defensebar8.png
Binary files differ
diff --git a/base/themes/default/defensebar9.png b/base/themes/default/defensebar9.png
index 171e6485..6d6197c5 100644
--- a/base/themes/default/defensebar9.png
+++ b/base/themes/default/defensebar9.png
Binary files differ
diff --git a/base/themes/default/deleteevidence.png b/base/themes/default/deleteevidence.png
new file mode 100644
index 00000000..396d9902
--- /dev/null
+++ b/base/themes/default/deleteevidence.png
Binary files differ
diff --git a/base/themes/default/evidence_appear_left.gif b/base/themes/default/evidence_appear_left.gif
new file mode 100644
index 00000000..352a7f19
--- /dev/null
+++ b/base/themes/default/evidence_appear_left.gif
Binary files differ
diff --git a/base/themes/default/evidence_appear_right.gif b/base/themes/default/evidence_appear_right.gif
new file mode 100644
index 00000000..bc45e528
--- /dev/null
+++ b/base/themes/default/evidence_appear_right.gif
Binary files differ
diff --git a/base/themes/default/evidence_selected.png b/base/themes/default/evidence_selected.png
new file mode 100644
index 00000000..6230c836
--- /dev/null
+++ b/base/themes/default/evidence_selected.png
Binary files differ
diff --git a/base/themes/default/evidence_selector.png b/base/themes/default/evidence_selector.png
new file mode 100644
index 00000000..266493dd
--- /dev/null
+++ b/base/themes/default/evidence_selector.png
Binary files differ
diff --git a/base/themes/default/evidencebackground.png b/base/themes/default/evidencebackground.png
new file mode 100644
index 00000000..2282e3b2
--- /dev/null
+++ b/base/themes/default/evidencebackground.png
Binary files differ
diff --git a/base/themes/default/evidencebutton.png b/base/themes/default/evidencebutton.png
new file mode 100644
index 00000000..2c395ec0
--- /dev/null
+++ b/base/themes/default/evidencebutton.png
Binary files differ
diff --git a/base/themes/default/evidenceoverlay.png b/base/themes/default/evidenceoverlay.png
new file mode 100644
index 00000000..d409cc58
--- /dev/null
+++ b/base/themes/default/evidenceoverlay.png
Binary files differ
diff --git a/base/themes/default/evidencex.png b/base/themes/default/evidencex.png
new file mode 100644
index 00000000..6a6be36f
--- /dev/null
+++ b/base/themes/default/evidencex.png
Binary files differ
diff --git a/base/themes/default/guilty.gif b/base/themes/default/guilty.gif
new file mode 100644
index 00000000..3dd95d55
--- /dev/null
+++ b/base/themes/default/guilty.gif
Binary files differ
diff --git a/base/themes/default/guilty.png b/base/themes/default/guilty.png
new file mode 100644
index 00000000..efe68f70
--- /dev/null
+++ b/base/themes/default/guilty.png
Binary files differ
diff --git a/base/themes/default/holdit.png b/base/themes/default/holdit.png
index d7112e29..09d1d370 100644
--- a/base/themes/default/holdit.png
+++ b/base/themes/default/holdit.png
Binary files differ
diff --git a/base/themes/default/holdit_selected.png b/base/themes/default/holdit_selected.png
index 68876762..51586e74 100644
--- a/base/themes/default/holdit_selected.png
+++ b/base/themes/default/holdit_selected.png
Binary files differ
diff --git a/base/themes/default/lobby_design.ini b/base/themes/default/lobby_design.ini
index 4806b86a..ef64114f 100644
--- a/base/themes/default/lobby_design.ini
+++ b/base/themes/default/lobby_design.ini
@@ -1,9 +1,10 @@
lobby = 0, 0, 517, 666
-publi_servers = 46, 88, 114, 30
+public_servers = 46, 88, 114, 30
favorites = 164, 88, 114, 30
refresh = 56, 381, 132, 28
add_to_fav = 194, 381, 132, 28
connect = 332, 381, 132, 28
+version = 170, 1, 300, 21
about = 428, 1, 88, 21
server_list = 20, 125, 286, 240
player_count = 336, 91, 173, 16
diff --git a/base/themes/default/mute.png b/base/themes/default/mute.png
index 6de496c3..a184cbf8 100644
--- a/base/themes/default/mute.png
+++ b/base/themes/default/mute.png
Binary files differ
diff --git a/base/themes/default/mute_pressed.png b/base/themes/default/mute_pressed.png
index 548f804b..e9793cec 100644
--- a/base/themes/default/mute_pressed.png
+++ b/base/themes/default/mute_pressed.png
Binary files differ
diff --git a/base/themes/default/notguilty.gif b/base/themes/default/notguilty.gif
new file mode 100644
index 00000000..d057715d
--- /dev/null
+++ b/base/themes/default/notguilty.gif
Binary files differ
diff --git a/base/themes/default/notguilty.png b/base/themes/default/notguilty.png
new file mode 100644
index 00000000..b9cfe318
--- /dev/null
+++ b/base/themes/default/notguilty.png
Binary files differ
diff --git a/base/themes/default/objection.png b/base/themes/default/objection.png
index 655a724d..6fbcbc2f 100644
--- a/base/themes/default/objection.png
+++ b/base/themes/default/objection.png
Binary files differ
diff --git a/base/themes/default/objection_selected.png b/base/themes/default/objection_selected.png
index 32542638..384e4e9b 100644
--- a/base/themes/default/objection_selected.png
+++ b/base/themes/default/objection_selected.png
Binary files differ
diff --git a/base/themes/default/pair_button.png b/base/themes/default/pair_button.png
new file mode 100644
index 00000000..19f6f22a
--- /dev/null
+++ b/base/themes/default/pair_button.png
Binary files differ
diff --git a/base/themes/default/pair_button_pressed.png b/base/themes/default/pair_button_pressed.png
new file mode 100644
index 00000000..aaf53fb6
--- /dev/null
+++ b/base/themes/default/pair_button_pressed.png
Binary files differ
diff --git a/base/themes/default/prosecutionbar0.png b/base/themes/default/prosecutionbar0.png
index 44ffa2c2..2e33e539 100644
--- a/base/themes/default/prosecutionbar0.png
+++ b/base/themes/default/prosecutionbar0.png
Binary files differ
diff --git a/base/themes/default/prosecutionbar1.png b/base/themes/default/prosecutionbar1.png
index bba1ec8a..e638b43a 100644
--- a/base/themes/default/prosecutionbar1.png
+++ b/base/themes/default/prosecutionbar1.png
Binary files differ
diff --git a/base/themes/default/prosecutionbar10.png b/base/themes/default/prosecutionbar10.png
index 318f0d7e..12517b5f 100644
--- a/base/themes/default/prosecutionbar10.png
+++ b/base/themes/default/prosecutionbar10.png
Binary files differ
diff --git a/base/themes/default/prosecutionbar2.png b/base/themes/default/prosecutionbar2.png
index ceb6e065..51e2acb3 100644
--- a/base/themes/default/prosecutionbar2.png
+++ b/base/themes/default/prosecutionbar2.png
Binary files differ
diff --git a/base/themes/default/prosecutionbar3.png b/base/themes/default/prosecutionbar3.png
index 44e87f15..6bfc7440 100644
--- a/base/themes/default/prosecutionbar3.png
+++ b/base/themes/default/prosecutionbar3.png
Binary files differ
diff --git a/base/themes/default/prosecutionbar4.png b/base/themes/default/prosecutionbar4.png
index a48e67e8..78db83ec 100644
--- a/base/themes/default/prosecutionbar4.png
+++ b/base/themes/default/prosecutionbar4.png
Binary files differ
diff --git a/base/themes/default/prosecutionbar5.png b/base/themes/default/prosecutionbar5.png
index e67ca1be..15f759be 100644
--- a/base/themes/default/prosecutionbar5.png
+++ b/base/themes/default/prosecutionbar5.png
Binary files differ
diff --git a/base/themes/default/prosecutionbar6.png b/base/themes/default/prosecutionbar6.png
index 14a3b774..d1e5ee8b 100644
--- a/base/themes/default/prosecutionbar6.png
+++ b/base/themes/default/prosecutionbar6.png
Binary files differ
diff --git a/base/themes/default/prosecutionbar7.png b/base/themes/default/prosecutionbar7.png
index 1d0ac1f8..94d852c2 100644
--- a/base/themes/default/prosecutionbar7.png
+++ b/base/themes/default/prosecutionbar7.png
Binary files differ
diff --git a/base/themes/default/prosecutionbar8.png b/base/themes/default/prosecutionbar8.png
index 1edc8934..48245655 100644
--- a/base/themes/default/prosecutionbar8.png
+++ b/base/themes/default/prosecutionbar8.png
Binary files differ
diff --git a/base/themes/default/prosecutionbar9.png b/base/themes/default/prosecutionbar9.png
index ad3a2452..9fda13fa 100644
--- a/base/themes/default/prosecutionbar9.png
+++ b/base/themes/default/prosecutionbar9.png
Binary files differ
diff --git a/base/themes/default/realization.png b/base/themes/default/realization.png
index e1718136..f791d29b 100644
--- a/base/themes/default/realization.png
+++ b/base/themes/default/realization.png
Binary files differ
diff --git a/base/themes/default/realization_pressed.png b/base/themes/default/realization_pressed.png
index be029d7c..9a72ed3a 100644
--- a/base/themes/default/realization_pressed.png
+++ b/base/themes/default/realization_pressed.png
Binary files differ
diff --git a/base/themes/default/takethat.png b/base/themes/default/takethat.png
index 3c878056..8ff2befe 100644
--- a/base/themes/default/takethat.png
+++ b/base/themes/default/takethat.png
Binary files differ
diff --git a/base/themes/default/takethat_selected.png b/base/themes/default/takethat_selected.png
index 06581a0f..3fe0a8cd 100644
--- a/base/themes/default/takethat_selected.png
+++ b/base/themes/default/takethat_selected.png
Binary files differ
diff --git a/base/themes/default/testimony.png b/base/themes/default/testimony.png
new file mode 100644
index 00000000..7b81fc8e
--- /dev/null
+++ b/base/themes/default/testimony.png
Binary files differ
diff --git a/charselect.cpp b/charselect.cpp
index ce37f85d..01b6ae73 100644
--- a/charselect.cpp
+++ b/charselect.cpp
@@ -18,25 +18,25 @@ void Courtroom::construct_char_select()
ui_back_to_lobby = new AOButton(ui_char_select_background, ao_app);
ui_char_password = new QLineEdit(ui_char_select_background);
- ui_char_password->setPlaceholderText("Password");
+ ui_char_password->setPlaceholderText(tr("Password"));
ui_char_select_left = new AOButton(ui_char_select_background, ao_app);
ui_char_select_right = new AOButton(ui_char_select_background, ao_app);
ui_spectator = new AOButton(ui_char_select_background, ao_app);
- ui_spectator->setText("Spectator");
+ ui_spectator->setText(tr("Spectator"));
ui_char_search = new QLineEdit(ui_char_select_background);
- ui_char_search->setPlaceholderText("Search");
+ ui_char_search->setPlaceholderText(tr("Search"));
ui_char_search->setFocus();
set_size_and_pos(ui_char_search, "char_search");
ui_char_passworded = new QCheckBox(ui_char_select_background);
- ui_char_passworded->setText("Passworded");
+ ui_char_passworded->setText(tr("Passworded"));
set_size_and_pos(ui_char_passworded, "char_passworded");
ui_char_taken = new QCheckBox(ui_char_select_background);
- ui_char_taken->setText("Taken");
+ ui_char_taken->setText(tr("Taken"));
set_size_and_pos(ui_char_taken, "char_taken");
ui_char_taken->setChecked(true);
diff --git a/courtroom.cpp b/courtroom.cpp
index 92b9030e..66e29caf 100644
--- a/courtroom.cpp
+++ b/courtroom.cpp
@@ -105,17 +105,10 @@ Courtroom::Courtroom(AOApplication *p_ao_app) : QMainWindow()
ui_server_chatlog->setReadOnly(true);
ui_server_chatlog->setOpenExternalLinks(true);
- ui_mute_list = new QListWidget(this);
ui_area_list = new QListWidget(this);
ui_area_list->hide();
ui_music_list = new QListWidget(this);
- ui_pair_list = new QListWidget(this);
- ui_pair_offset_spinbox = new QSpinBox(this);
- ui_pair_offset_spinbox->setRange(-100,100);
- ui_pair_offset_spinbox->setSuffix("% offset");
- ui_pair_button = new AOButton(this, ao_app);
-
ui_ic_chat_name = new QLineEdit(this);
ui_ic_chat_name->setFrame(false);
ui_ic_chat_name->setPlaceholderText(tr("Showname"));
@@ -140,6 +133,7 @@ Courtroom::Courtroom(AOApplication *p_ao_app) : QMainWindow()
//ui_area_password->setFrame(false);
ui_music_search = new QLineEdit(this);
ui_music_search->setFrame(false);
+ ui_music_search->setPlaceholderText(tr("Search"));
construct_emotes();
@@ -201,7 +195,7 @@ Courtroom::Courtroom(AOApplication *p_ao_app) : QMainWindow()
ui_showname_enable->setText(tr("Shownames"));
ui_pre_non_interrupt = new QCheckBox(this);
- ui_pre_non_interrupt->setText(tr("No Intrpt"));
+ ui_pre_non_interrupt->setText(tr("No Interrupt"));
ui_pre_non_interrupt->hide();
ui_custom_objection = new AOButton(this, ao_app);
@@ -241,6 +235,13 @@ Courtroom::Courtroom(AOApplication *p_ao_app) : QMainWindow()
ui_log_limit_spinbox->setRange(0, 10000);
ui_log_limit_spinbox->setValue(ao_app->get_max_log_size());
+ ui_mute_list = new QListWidget(this);
+ ui_pair_list = new QListWidget(this);
+ ui_pair_offset_spinbox = new QSpinBox(this);
+ ui_pair_offset_spinbox->setRange(-100,100);
+ ui_pair_offset_spinbox->setSuffix("% offset");
+ ui_pair_button = new AOButton(this, ao_app);
+
ui_evidence_button = new AOButton(this, ao_app);
construct_evidence();
@@ -604,7 +605,7 @@ void Courtroom::set_widgets()
ui_switch_area_music->setText("A/M");
set_size_and_pos(ui_pre, "pre");
- ui_pre->setText("Pre");
+ ui_pre->setText("Preanim");
set_size_and_pos(ui_pre_non_interrupt, "pre_no_interrupt");
set_size_and_pos(ui_flip, "flip");
@@ -706,6 +707,17 @@ void Courtroom::set_fonts()
set_font(ui_server_chatlog, "server_chatlog");
set_font(ui_music_list, "music_list");
set_font(ui_area_list, "music_list");
+
+ // Set color of labels and checkboxes
+ const QString design_file = "courtroom_fonts.ini";
+ QColor f_color = ao_app->get_color("label_color", design_file);
+ QString color_string = "color: rgba(" +
+ QString::number(f_color.red()) + ", " +
+ QString::number(f_color.green()) + ", " +
+ QString::number(f_color.blue()) + ", 255); }";
+ QString style_sheet_string = "QLabel {" + color_string + "}"
+ "QCheckBox {" + color_string + "}";
+ setStyleSheet(style_sheet_string);
}
void Courtroom::set_font(QWidget *widget, QString p_identifier)
diff --git a/packet_distribution.cpp b/packet_distribution.cpp
index 0254064e..954062e8 100644
--- a/packet_distribution.cpp
+++ b/packet_distribution.cpp
@@ -484,8 +484,6 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
w_lobby->set_loading_text("Loading music:\n" + QString::number(loaded_music) + "/" + QString::number(music_list_size));
- w_courtroom->append_music(f_contents.at(n_element));
-
if (musics_time)
{
w_courtroom->append_music(f_contents.at(n_element));
diff --git a/text_file_functions.cpp b/text_file_functions.cpp
index 93909786..ff40c9c4 100644
--- a/text_file_functions.cpp
+++ b/text_file_functions.cpp
@@ -244,7 +244,7 @@ QColor AOApplication::get_color(QString p_identifier, QString p_file)
QString default_path = get_default_theme_path(p_file);
QString f_result = read_design_ini(p_identifier, design_ini_path);
- QColor return_color(255, 255, 255);
+ QColor return_color(0, 0, 0);
if (f_result == "")
{