From fb64ca386c51cc3942e1f38cfd76132b1b50e9db Mon Sep 17 00:00:00 2001 From: Salanto <62221668+Salanto@users.noreply.github.com> Date: Fri, 12 Jul 2024 11:48:01 +0200 Subject: Add playerlist widget element (#996) * 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 Co-authored-by: Leifa <26681464+TrickyLeifa@users.noreply.github.com> --- src/aoapplication.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/aoapplication.cpp') diff --git a/src/aoapplication.cpp b/src/aoapplication.cpp index 0b73575b..20eaaa30 100644 --- a/src/aoapplication.cpp +++ b/src/aoapplication.cpp @@ -193,6 +193,16 @@ void AOApplication::doBASSreset() load_bass_plugins(); } +void AOApplication::server_connected() +{ + qInfo() << "Established connection to server."; + + destruct_courtroom(); + construct_courtroom(); + + courtroom_loaded = false; +} + void AOApplication::initBASS() { BASS_SetConfig(BASS_CONFIG_DEV_DEFAULT, 1); -- cgit