Expand description
UI Component (UIC) files for Total War games.
UIC files define the layout, appearance, and behaviour of UI elements in the game. They contain hierarchical component definitions with states, images, animations, and callback bindings.
§Format History
- Pre-Three Kingdoms: Binary format (not yet implemented)
- Three Kingdoms onwards: XML format (partially implemented)
§Status
This module is incomplete and experimental. Only XML parsing for version 138 is partially implemented. Binary format support is not yet available.
Structs§
- Animation
- An animation definition with keyframes.
- Callback
With Context - An event callback binding with optional context.
- Component
- A UI component definition with all its properties and sub-elements.
- Component
Image - An image resource reference for a UI component.
- Frame
- A single keyframe in an animation.
- Hierarchy
Item - A node in the UI component hierarchy tree.
- Image
- Image display properties within a UI state.
- Layout
Engine - Layout engine configuration for arranging child components.
- Property
- A key-value property pair.
- State
- A visual state definition for a UI component.
- UIC
- In-memory representation of a decoded UI Component file.
Constants§
- BASE_
PATH - Path where all uics are in.
- EXTENSIONS
- Extension of UIC files in some games (they don’t have extensions in some games).