How kiadtikun/mjxclothtool works
grzyClothTool is a WPF application for creating and managing GTA V addon clothing packs. Users bring in drawable and texture assets, organize and inspect them in a project, preview clothing and props, then build pack resources; the README also documents automatic splitting when an addon exceeds the item limit. The graph preserves those product stages and CodeWalker-based previewing. Some capabilities are documented but their implementation was not sampled, so those relationships cite the README; unsampled details are not inferred.
Main entry points: AddonManager.cs Addon manager · GDrawable.cs Drawable model · Texture.cs Texture resources · BuildWindow.xaml.cs Build window
Components 19
Project workflow
- Project editor
grzyClothTool/Views/ProjectWindow.xaml.cs - Addon manager
grzyClothTool/Models/AddonManager.cs
Clothing assets
- Asset files
grzyClothTool/Helpers/FileHelper.cs - Drawable model
grzyClothTool/Models/Drawable/GDrawable.cs - Texture model
grzyClothTool/Models/Texture/GTexture.cs - Duplicate detection
grzyClothTool/Helpers/DuplicateDetector.cs - Drawable resources
CodeWalker/CodeWalker.Core/GameFiles/Resources/Drawable.cs - Texture resources
CodeWalker/CodeWalker.Core/GameFiles/Resources/Texture.cs - Texture dictionary
CodeWalker/CodeWalker.Core/GameFiles/FileTypes/YtdFile.cs - RPF archives
CodeWalker/CodeWalker.Core/GameFiles/RpfFile.cs - Binary data I/O
CodeWalker/CodeWalker.Core/GameFiles/Utils/Data.cs
3D preview
- Preview host
grzyClothTool/Controls/PreviewWindowHost.xaml.cs - 3D renderer
CodeWalker/CodeWalker/Rendering/Renderer.cs - Shader manager
CodeWalker/CodeWalker/Rendering/ShaderManager.cs - Drawable bounds
CodeWalker/CodeWalker.Core/GameFiles/Resources/Bounds.cs
Pack output
- Build window
grzyClothTool/Views/BuildWindow.xaml.cs - Build resources
grzyClothTool/Helpers/BuildResourceHelper.cs - XML utilities
CodeWalker/CodeWalker.Core/Utils/Xml.cs
Other components
- Clothing creator
Connections 18
- Clothing creator → Project editor: manages packs
- Project editor → Addon manager: edits project
grzyClothTool/Views/ProjectWindow.xaml.cs - Addon manager → Drawable model: loads drawables
grzyClothTool/Models/AddonManager.cs - Addon manager → Duplicate detection: checks duplicates
grzyClothTool/Models/AddonManager.cs - Addon manager → Asset files: resolves files
grzyClothTool/Models/AddonManager.cs - Drawable model → Drawable resources: loads drawable data
grzyClothTool/Models/Drawable/GDrawable.cs - Drawable model → Texture model: loads textures
grzyClothTool/Models/Drawable/GDrawable.cs - Texture model → Texture resources: reads texture data
grzyClothTool/Models/Texture/GTexture.cs - Texture resources → Binary data I/O: reads binary data
CodeWalker/CodeWalker.Core/GameFiles/Resources/Texture.cs - Texture dictionary → Texture resources: contains textures
- RPF archives → Binary data I/O: uses binary I/O
- Clothing creator → Preview host: previews assets
- Preview host → 3D renderer: hosts preview
grzyClothTool/Controls/PreviewWindowHost.xaml.cs - 3D renderer → Shader manager: uses shaders
- Clothing creator → Build window: builds packs
- Build window → Build resources: creates resources
- Build resources → XML utilities: writes metadata
- Addon manager → Build window: splits oversized packs