12 Days Ago
TTT: Close player volume slider along with scoreboard (#2221) * Close player volume slider along with scoreboard * Re-use HideVolume function * tie volume panel to player row Co-Authored-By: Malivil <Malivil@users.noreply.github.com> * Fix everything * Fixes Lua errors when a target player dies/respawns with a voice slider open (causing the row to be re-created), and then trying to modify the volume * Fixes players dying/respawning while the voice panel is open not closing the associated voice panel when the scoreboard closes * Close all other voice slider panels when opening a new one. There isn't a good reason to allow multiple panels to exist at the same time for different players * This also prevents opening a voice slider for the same player multiple times, which again, there's no point in allowing this. --------- Co-authored-by: Malivil <Malivil@users.noreply.github.com> Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com>