diff --git a/Attorney_Online_remake.pro b/Attorney_Online_remake.pro index 62a7dc9..2e8a5f8 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 0000000..7a432af Binary files /dev/null and b/base/themes/default/addevidence.png differ diff --git a/base/themes/default/arrow_left.png b/base/themes/default/arrow_left.png index b44504e..f1098c4 100644 Binary files a/base/themes/default/arrow_left.png and b/base/themes/default/arrow_left.png differ diff --git a/base/themes/default/arrow_right.png b/base/themes/default/arrow_right.png index 8dd6d3a..2b5ad70 100644 Binary files a/base/themes/default/arrow_right.png and b/base/themes/default/arrow_right.png differ diff --git a/base/themes/default/char_selector.png b/base/themes/default/char_selector.png index 566d96f..e868cdb 100644 Binary files a/base/themes/default/char_selector.png and b/base/themes/default/char_selector.png differ diff --git a/base/themes/default/char_taken.png b/base/themes/default/char_taken.png index 6230c83..efad48d 100644 Binary files a/base/themes/default/char_taken.png and b/base/themes/default/char_taken.png differ diff --git a/base/themes/default/courtroom_design.ini b/base/themes/default/courtroom_design.ini index 16e5f47..7301b23 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 0000000..abc8f7a --- /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 0000000..b24e2ce --- /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 b34ccfb..b58d162 100644 Binary files a/base/themes/default/custom.png and b/base/themes/default/custom.png differ diff --git a/base/themes/default/custom_selected.png b/base/themes/default/custom_selected.png index 68b4160..d8dc525 100644 Binary files a/base/themes/default/custom_selected.png and b/base/themes/default/custom_selected.png differ diff --git a/base/themes/default/defensebar0.png b/base/themes/default/defensebar0.png index 44ffa2c..25b9879 100644 Binary files a/base/themes/default/defensebar0.png and b/base/themes/default/defensebar0.png differ diff --git a/base/themes/default/defensebar1.png b/base/themes/default/defensebar1.png index 7b929a1..535ea4a 100644 Binary files a/base/themes/default/defensebar1.png and b/base/themes/default/defensebar1.png differ diff --git a/base/themes/default/defensebar10.png b/base/themes/default/defensebar10.png index 9dfbc6f..ca98d27 100644 Binary files a/base/themes/default/defensebar10.png and b/base/themes/default/defensebar10.png differ diff --git a/base/themes/default/defensebar2.png b/base/themes/default/defensebar2.png index 440783c..671dd7c 100644 Binary files a/base/themes/default/defensebar2.png and b/base/themes/default/defensebar2.png differ diff --git a/base/themes/default/defensebar3.png b/base/themes/default/defensebar3.png index 93ef86f..c9df8f9 100644 Binary files a/base/themes/default/defensebar3.png and b/base/themes/default/defensebar3.png differ diff --git a/base/themes/default/defensebar4.png b/base/themes/default/defensebar4.png index a36fec7..5383c43 100644 Binary files a/base/themes/default/defensebar4.png and b/base/themes/default/defensebar4.png differ diff --git a/base/themes/default/defensebar5.png b/base/themes/default/defensebar5.png index 321c4f3..94ee901 100644 Binary files a/base/themes/default/defensebar5.png and b/base/themes/default/defensebar5.png differ diff --git a/base/themes/default/defensebar6.png b/base/themes/default/defensebar6.png index c8e7029..ae23ae4 100644 Binary files a/base/themes/default/defensebar6.png and b/base/themes/default/defensebar6.png differ diff --git a/base/themes/default/defensebar7.png b/base/themes/default/defensebar7.png index c3af2a2..cb72177 100644 Binary files a/base/themes/default/defensebar7.png and b/base/themes/default/defensebar7.png differ diff --git a/base/themes/default/defensebar8.png b/base/themes/default/defensebar8.png index e1176f6..9324db5 100644 Binary files a/base/themes/default/defensebar8.png and b/base/themes/default/defensebar8.png differ diff --git a/base/themes/default/defensebar9.png b/base/themes/default/defensebar9.png index 171e648..6d6197c 100644 Binary files a/base/themes/default/defensebar9.png and b/base/themes/default/defensebar9.png differ diff --git a/base/themes/default/deleteevidence.png b/base/themes/default/deleteevidence.png new file mode 100644 index 0000000..396d990 Binary files /dev/null and b/base/themes/default/deleteevidence.png differ diff --git a/base/themes/default/evidence_appear_left.gif b/base/themes/default/evidence_appear_left.gif new file mode 100644 index 0000000..352a7f1 Binary files /dev/null and b/base/themes/default/evidence_appear_left.gif differ diff --git a/base/themes/default/evidence_appear_right.gif b/base/themes/default/evidence_appear_right.gif new file mode 100644 index 0000000..bc45e52 Binary files /dev/null and b/base/themes/default/evidence_appear_right.gif differ diff --git a/base/themes/default/evidence_selected.png b/base/themes/default/evidence_selected.png new file mode 100644 index 0000000..6230c83 Binary files /dev/null and b/base/themes/default/evidence_selected.png differ diff --git a/base/themes/default/evidence_selector.png b/base/themes/default/evidence_selector.png new file mode 100644 index 0000000..266493d Binary files /dev/null and b/base/themes/default/evidence_selector.png differ diff --git a/base/themes/default/evidencebackground.png b/base/themes/default/evidencebackground.png new file mode 100644 index 0000000..2282e3b Binary files /dev/null and b/base/themes/default/evidencebackground.png differ diff --git a/base/themes/default/evidencebutton.png b/base/themes/default/evidencebutton.png new file mode 100644 index 0000000..2c395ec Binary files /dev/null and b/base/themes/default/evidencebutton.png differ diff --git a/base/themes/default/evidenceoverlay.png b/base/themes/default/evidenceoverlay.png new file mode 100644 index 0000000..d409cc5 Binary files /dev/null and b/base/themes/default/evidenceoverlay.png differ diff --git a/base/themes/default/evidencex.png b/base/themes/default/evidencex.png new file mode 100644 index 0000000..6a6be36 Binary files /dev/null and b/base/themes/default/evidencex.png differ diff --git a/base/themes/default/guilty.gif b/base/themes/default/guilty.gif new file mode 100644 index 0000000..3dd95d5 Binary files /dev/null and b/base/themes/default/guilty.gif differ diff --git a/base/themes/default/guilty.png b/base/themes/default/guilty.png new file mode 100644 index 0000000..efe68f7 Binary files /dev/null and b/base/themes/default/guilty.png differ diff --git a/base/themes/default/holdit.png b/base/themes/default/holdit.png index d7112e2..09d1d37 100644 Binary files a/base/themes/default/holdit.png and b/base/themes/default/holdit.png differ diff --git a/base/themes/default/holdit_selected.png b/base/themes/default/holdit_selected.png index 6887676..51586e7 100644 Binary files a/base/themes/default/holdit_selected.png and b/base/themes/default/holdit_selected.png differ diff --git a/base/themes/default/lobby_design.ini b/base/themes/default/lobby_design.ini index 4806b86..ef64114 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 6de496c..a184cbf 100644 Binary files a/base/themes/default/mute.png and b/base/themes/default/mute.png differ diff --git a/base/themes/default/mute_pressed.png b/base/themes/default/mute_pressed.png index 548f804..e9793ce 100644 Binary files a/base/themes/default/mute_pressed.png and b/base/themes/default/mute_pressed.png differ diff --git a/base/themes/default/notguilty.gif b/base/themes/default/notguilty.gif new file mode 100644 index 0000000..d057715 Binary files /dev/null and b/base/themes/default/notguilty.gif differ diff --git a/base/themes/default/notguilty.png b/base/themes/default/notguilty.png new file mode 100644 index 0000000..b9cfe31 Binary files /dev/null and b/base/themes/default/notguilty.png differ diff --git a/base/themes/default/objection.png b/base/themes/default/objection.png index 655a724..6fbcbc2 100644 Binary files a/base/themes/default/objection.png and b/base/themes/default/objection.png differ diff --git a/base/themes/default/objection_selected.png b/base/themes/default/objection_selected.png index 3254263..384e4e9 100644 Binary files a/base/themes/default/objection_selected.png and b/base/themes/default/objection_selected.png differ diff --git a/base/themes/default/pair_button.png b/base/themes/default/pair_button.png new file mode 100644 index 0000000..19f6f22 Binary files /dev/null and b/base/themes/default/pair_button.png differ diff --git a/base/themes/default/pair_button_pressed.png b/base/themes/default/pair_button_pressed.png new file mode 100644 index 0000000..aaf53fb Binary files /dev/null and b/base/themes/default/pair_button_pressed.png differ diff --git a/base/themes/default/prosecutionbar0.png b/base/themes/default/prosecutionbar0.png index 44ffa2c..2e33e53 100644 Binary files a/base/themes/default/prosecutionbar0.png and b/base/themes/default/prosecutionbar0.png differ diff --git a/base/themes/default/prosecutionbar1.png b/base/themes/default/prosecutionbar1.png index bba1ec8..e638b43 100644 Binary files a/base/themes/default/prosecutionbar1.png and b/base/themes/default/prosecutionbar1.png differ diff --git a/base/themes/default/prosecutionbar10.png b/base/themes/default/prosecutionbar10.png index 318f0d7..12517b5 100644 Binary files a/base/themes/default/prosecutionbar10.png and b/base/themes/default/prosecutionbar10.png differ diff --git a/base/themes/default/prosecutionbar2.png b/base/themes/default/prosecutionbar2.png index ceb6e06..51e2acb 100644 Binary files a/base/themes/default/prosecutionbar2.png and b/base/themes/default/prosecutionbar2.png differ diff --git a/base/themes/default/prosecutionbar3.png b/base/themes/default/prosecutionbar3.png index 44e87f1..6bfc744 100644 Binary files a/base/themes/default/prosecutionbar3.png and b/base/themes/default/prosecutionbar3.png differ diff --git a/base/themes/default/prosecutionbar4.png b/base/themes/default/prosecutionbar4.png index a48e67e..78db83e 100644 Binary files a/base/themes/default/prosecutionbar4.png and b/base/themes/default/prosecutionbar4.png differ diff --git a/base/themes/default/prosecutionbar5.png b/base/themes/default/prosecutionbar5.png index e67ca1b..15f759b 100644 Binary files a/base/themes/default/prosecutionbar5.png and b/base/themes/default/prosecutionbar5.png differ diff --git a/base/themes/default/prosecutionbar6.png b/base/themes/default/prosecutionbar6.png index 14a3b77..d1e5ee8 100644 Binary files a/base/themes/default/prosecutionbar6.png and b/base/themes/default/prosecutionbar6.png differ diff --git a/base/themes/default/prosecutionbar7.png b/base/themes/default/prosecutionbar7.png index 1d0ac1f..94d852c 100644 Binary files a/base/themes/default/prosecutionbar7.png and b/base/themes/default/prosecutionbar7.png differ diff --git a/base/themes/default/prosecutionbar8.png b/base/themes/default/prosecutionbar8.png index 1edc893..4824565 100644 Binary files a/base/themes/default/prosecutionbar8.png and b/base/themes/default/prosecutionbar8.png differ diff --git a/base/themes/default/prosecutionbar9.png b/base/themes/default/prosecutionbar9.png index ad3a245..9fda13f 100644 Binary files a/base/themes/default/prosecutionbar9.png and b/base/themes/default/prosecutionbar9.png differ diff --git a/base/themes/default/realization.png b/base/themes/default/realization.png index e171813..f791d29 100644 Binary files a/base/themes/default/realization.png and b/base/themes/default/realization.png differ diff --git a/base/themes/default/realization_pressed.png b/base/themes/default/realization_pressed.png index be029d7..9a72ed3 100644 Binary files a/base/themes/default/realization_pressed.png and b/base/themes/default/realization_pressed.png differ diff --git a/base/themes/default/takethat.png b/base/themes/default/takethat.png index 3c87805..8ff2bef 100644 Binary files a/base/themes/default/takethat.png and b/base/themes/default/takethat.png differ diff --git a/base/themes/default/takethat_selected.png b/base/themes/default/takethat_selected.png index 06581a0..3fe0a8c 100644 Binary files a/base/themes/default/takethat_selected.png and b/base/themes/default/takethat_selected.png differ diff --git a/base/themes/default/testimony.png b/base/themes/default/testimony.png new file mode 100644 index 0000000..7b81fc8 Binary files /dev/null and b/base/themes/default/testimony.png differ diff --git a/charselect.cpp b/charselect.cpp index ce37f85..01b6ae7 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 92b9030..66e29ca 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 0254064..954062e 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 9390978..ff40c9c 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 == "") {