Skip to main content

Module uic

Module uic 

Source
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.
CallbackWithContext
An event callback binding with optional context.
Component
A UI component definition with all its properties and sub-elements.
ComponentImage
An image resource reference for a UI component.
Frame
A single keyframe in an animation.
HierarchyItem
A node in the UI component hierarchy tree.
Image
Image display properties within a UI state.
LayoutEngine
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).