How wot-public-mods/branded-tanks works
Branded Tank Styles is a World of Tanks mod for choosing and applying team-specific camouflage, logos, and advertisements in the hangar and in-game. The main workflow is: a player or operator opens the appropriate UI, selects presets, the processor records settings and builds customization outfits, and the vehicle controller applies them according to team or own-tank rules. Runtime hooks connect those outfits to vehicle appearance and register customization items. The README documents the two-team styling capabilities; sampled source supports the UI, outfit, persistence, and hook relationships shown here. Asset/configuration links reflect the tree; their full runtime loading flow was not sampled.
Main entry points: vehicle.py Vehicle controller · data.py Config and cache · playerView.py Player view · operatorView.py Operator view
Components 19
User interface
- UI events
python/gui/branding/events.py - View registration
python/gui/branding/views/__init__.py - Player view
python/gui/branding/views/playerView.py - Operator view
python/gui/branding/views/operatorView.py - Localization
python/gui/branding/lang.py
Style customization
- Config and cache
python/gui/branding/data.py - Saved settings
python/gui/branding/_constants.py - Outfit processor
python/gui/branding/controllers/processor.py
Game runtime
- Mod entry
python/gui/mods/mod_branding.py - Vehicle controller
python/gui/branding/controllers/vehicle.py - Appearance hooks
python/gui/branding/hooks.py - Vehicle appearance
- Customization registry
Mod resources
- Language files
resources/in/mods/net.wargaming.branding/text - Preset configuration
resources/in/mods/net.wargaming.branding/config.json - Team style assets
resources/in/mods/net.wargaming.branding
Other components
- Player
- Operator
- Mods List mod
Connections 27
- Mod entry → UI events: imports lifecycle
- Mod entry → Appearance hooks: loads hooks
- Player → Mods List mod: opens mod UI
- Mods List mod → UI events: invokes UI callback
- Operator → UI events: opens UI
- UI events → View registration: dispatches show
- View registration → Player view: loads player view
- View registration → Operator view: loads operator view
- Player view → Config and cache: reads presets
- Operator view → Config and cache: reads presets
- Player view → Outfit processor: submits settings
- Operator view → Outfit processor: submits settings
- Player view → Vehicle controller: previews preset
- Operator view → Vehicle controller: previews preset
- Outfit processor → Config and cache: updates cache
- Config and cache → Preset configuration: loads config
- Config and cache → Saved settings: loads and saves
- Localization → Language files: reads strings
- Player view → Localization: requests labels
- Operator view → Localization: requests labels
- Vehicle controller → Outfit processor: builds outfit
- Vehicle controller → Config and cache: reads team settings
- Vehicle controller → Vehicle appearance: updates customization
- Appearance hooks → Vehicle controller: selects outfit
- Appearance hooks → Vehicle appearance: overrides appearance
- Appearance hooks → Customization registry: registers style items
- Team style assets → Customization registry: supplies style files