Show clients' country flags beside their names, and optionally in the tree

The server places each client in a country (client_country, from its GeoIP
database); a client's details now show that country's flag left of their
name, as TeamSpeak's info frame does, on both clients. "Show country flags
in the channel tree" (off by default, as TeamSpeak's EnableCountryFlags)
also puts it last on client rows.

The flags are TeamSpeak's countries.zip, which now ships with the icon
packs; core's CountryFlags reads it, else a TeamSpeak 3 install's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-30 23:40:44 +00:00
parent 4ca5534ef4
commit e799218444
20 changed files with 256 additions and 19 deletions

View File

@@ -39,7 +39,7 @@
<resource>
<directory>src/main/resources</directory>
</resource>
<!-- TeamSpeak's own icon packs, proprietary and so taken from an install, not the repository. -->
<!-- TeamSpeak's own icon packs and country flags, proprietary and so taken from an install, not the repository. -->
<resource>
<directory>${ts3.client.dir}/gfx</directory>
<targetPath>gfx/teamspeak</targetPath>
@@ -47,6 +47,7 @@
<include>default.zip</include>
<include>default_colored_2014.zip</include>
<include>default_mono_2014.zip</include>
<include>countries.zip</include>
</includes>
</resource>
</resources>