aboutsummaryrefslogtreecommitdiff
path: root/src/courtroom.cpp
AgeCommit message (Collapse)Author
2026-03-29Add authentication dialogOsmium Sorcerer
Introduce start_auth_flow, a function invoked by typing `/auth username` in OOC. It sends an public-key authentication request to the server, starting the entire flow. The flow invoves two dialogs: to select the key, and to enter the passphrase to unlock the key. For convenience, each successful unlock also remembers the key for that username on the server, storing this in `saved_auth.json` (I chose JSON because I wanted it to stay human-editable; INI would be better, but it suffers from bad platform quirks in Qt).
2026-03-29Remove IL packetOsmium Sorcerer
IL packet is a relic from pre-IPID days when moderators used it to get the "IP list" of connected users. Its function is to display a list of strings in the OOC chat box. That's it. Not even some obscure feature that can be revived. Everything IL can do, CT can do (the "OOC message" packet).
2026-03-29Remove clientside /pos command behaviorOsmium Sorcerer
We have SP and JD to precisely handle positions and judge buttons.
2026-03-29Fix warnings and deprecated functionsOsmium Sorcerer
- For QCheckBox: stateChanged -> checkStateChanged - QChar(PREANIM) -> QLatin1Char(PREANIM) - Unused result on demo_file.open() - QPointer include was missing from lobby.h - Missing const and override qualifiers
2026-03-29Reset IC message text input on sendOsmium Sorcerer
Instead of waiting for the incoming message and checking that you've sent it by comparing character IDs, reset it right away after pressing Enter. From the network standpoint, there's no reason to wait and acknowledge the IC message this way because TCP already ensures reliabile delivery. Removing this avoids sending duplicate messages during lag spikes. It also subjectively improves responsiveness. We lose a bit of convenience. The text box will be cleared even if your message was never broadcast (due to serverside mute, for example), but Ctrl+Z fixes that, and that's how OOC chat has always worked.
2026-03-29Remove redundant authentication success messageOsmium Sorcerer
Server already gives the response to our authentication atttempt, there's no need for CLIENT to tell us about the "Disable Modcalls" button (which is actually labeled "Guard").
2026-03-29Show area list by default instead of musicOsmium Sorcerer
2026-03-29Allow saving character side in update_characterOsmium Sorcerer
This fixes "Reload theme" button resetting position.
2026-03-29Support passworded characters in character listOsmium Sorcerer
This obscure feature has been present for years, from sending passwords to the server to showing `char_passworded` image over character icons. Servers could already exploit clients sending `PW` with a password every time they select a character to implement passworded characters. The clients had no way of knowing which ones were passworded, however, and couldn't filter them despite "Passworded" checkbox being here all along. The approach used by this commit is a hack. During loading, server sends SC which is a list of characters, each one having name, description, and evidence. In practice, only names were used. Descriptions were stored in memory but unused, and evidence was ignored altogether. By adding a magic value "P" in this "character evidence" field, server can mark passworded characters without breaking Vanilla compatibility.
2026-03-29Stop setting volume on evidence showOsmium Sorcerer
Presenting evidence took volume as a parameter which it also set. It's unnecessary as the evidence uses the same SFX player, the volume of which is controlled by the player with a slider.
2026-03-29Force HTTPS scheme in music streaming URIsOsmium Sorcerer
Additionally, fix the path construction for music tracks that are requested via asset URI.
2026-03-29Rewrite audio engine: replace BASS with miniaudioOsmium Sorcerer
SFX and blip players largely remain the same. For the music player, we now have to implement network streaming natively, we no longer have a convenient function that did everything for us. I introduced QNetworkRequest to download the stream in memory and signal when it's ready to be decoded and played back. The size is guarded to prevent the client from accidentally downloading terabytes of audio. Delete QFutureWatcher, we no longer need it for concurrency. miniaudio uses a separate audio thread. Network donwloads and communication with the track name display are handled by Qt signals. Also, delete an odd "music.txt" feature. Its purpose was specifying offsets for loops in a text file per track, but it remained obscure and unused in practice. Unsupported: - Large streams, including unbounded ones (radio). We'll need a ring buffer for that, and a mechanism to write to it from the network and feed it to the audio thread. - Effect flags: fade in, fade out, sync pos. Ignored. - Audio device selection.
2025-05-08Close punishment dialog when the user leaves (#1097)Salanto
* Close punishment dialog when the user leaves Prevents silly moments where the wrong person gets banned/kicked * Fix formatting --------- Co-authored-by: stonedDiscord <Tukz@gmx.de>
2025-05-08Explicitly set app icon on widgets (#1098)Salanto
2025-03-14Fix crashes related to music list context menu (#1088)in1tiate
2025-03-09Remember category expansion state when regenerating music list (#1083)in1tiate
* remember category expansion state when regenerating musiclist * don't do file i/o here actually --------- Co-authored-by: stonedDiscord <Tukz@gmx.de>
2025-02-09Fix shownames toggle not being respected in several places, clean up ↵in1tiate
implementation (#1080) * Move showname switch to settings and fix it * let the append function handle shownames
2025-01-23Use global evidence instead of local for display (#1073)in1tiate
2025-01-23Fix legacy position population (#1069)in1tiate
* Reworked legacy position population - Changed data structure to a static list of pairs to avoid unnecessary deep copies - Fixed oversight which caused iteration over the value and not the key of the previous QMap * clang-format pass :rolling_eyes: * disambiguate pair order further
2025-01-13Merge branch 'master' into cleanupin1tiate
2025-01-13Add the ability to "favorite" songs and pin them to the the top of the ↵in1tiate
songlist (#1066) * add song favoriting * remove incorrectly placed sort() * store as qstringlist instead of using keys
2025-01-11avoid loop container detachin1tiate
2025-01-11clazy cleanupin1tiate
2025-01-11use std::as_const instead of qAsConstin1tiate
2024-09-08Fix evidence not being consistently presentable (#1048)Salanto
* Fixup evidence presentation code, methink * Bump RC, because I can
2024-08-31[Bugfix] move effects box reset to reset_ui (#1045)in1tiate
2024-08-31[Refactor] Update font outline code to account for offsetsin1tiate
2024-08-28Fix PlayerList and Slide button not showing up (#1041)Salanto
2024-08-25Explicitly show widgets when positioning them (#1040)in1tiate
2024-08-24[Bugfix] Fix slides not applying the X offset during slide position ↵Salanto
calculaiton (#1038) * Make slides correctly respect X offset * Bump to RC4 cause I am cute like that
2024-07-21Attorney Online 2.11 Release Candidate 1 (#1026)Salanto
* Version bump and minor fixes * Remove unecessary headers Thanks QtCreator
2024-07-13Resize mode patch (#1019)Leifa
* Fix transformation mode for layers Resolve #997 * always use smooth transform resampling for stretched images * Used fixed frame size * Implemented resize mode changes Resolve #999 * Added alias to pixel resize mode * Added user option --------- Co-authored-by: in1tiate <32779090+in1tiate@users.noreply.github.com>
2024-07-12Merge pull request #1016 from AttorneyOnline/restore-window-positionLeifa
[Feature] Add support for windows position restore
2024-07-12Restore position in AOApplicationSalanto
2024-07-12Add playerlist widget element (#996)Salanto
* Commit * Boyfailure code commit * Cooking code spaghetti * Accidental overwrite recursive function call hell * Implemented player list * Add partial moderator widget Sleepy time! Hee-Hoo! * Moderator Dialog - Step 1 - WIP * Appease the clang gods * Clang appeasement policy * *sacrifices goat to clang* * Added player report, reworked implementation, ... * Added player-specific report * Reworked implementation * No longer uses JSON. * Removed preset loader. --------- Co-authored-by: TrickyLeifa <date.epoch@gmail.com> Co-authored-by: Leifa <26681464+TrickyLeifa@users.noreply.github.com>
2024-07-12Harden screen position check against missing monitorsSalanto
2024-07-11Merge branch 'master' into restore-window-positionSalanto
2024-07-11QApplication less! (#1017)Leifa
2024-07-11*blood sacrifice for clang*Salanto
2024-07-11Add Courtroom position restoreSalanto
2024-07-09Remove editable side dropdown (#1009)Leifa
Resolve #985 Co-authored-by: stonedDiscord <Tukz@gmx.de>
2024-06-25Merge branch 'master' into fix-areaswitch-bsSalanto
2024-06-25Fix color-related UI not honoring chatbox setting (#984)in1tiate
Co-authored-by: Salanto <62221668+Salanto@users.noreply.github.com>
2024-06-25Merge branch 'master' into fix-areaswitch-bsSalanto
2024-06-23Fix positions not being listed (#990)Leifa
2024-06-21Fix background scaling and centering (#982)Leifa
Fix #978
2024-06-18Explicitly set sane line spacing (#981)in1tiate
* Explicitly set sane line spacing * Update naming to reflect setting set by Format + fix memory leak Address memory leak --------- Co-authored-by: Salanto <62221668+Salanto@users.noreply.github.com>
2024-06-11remove accidentally included debug callsin1tiate
2024-06-11hide charlayers on area switch background changesin1tiate
only applicable on servers which send displayable background updates on area switch
2024-06-03Added screen slide timerTrickyLeifa
* Added screen slide timer * Added so that the animation becomes interruptible.