Documentation/Engine/Units/accessory addon int ui data

From SCS Modding Wiki
Jump to navigation Jump to search

Note: This article is a work in progress and has yet to be reviewed by SCS staff. Some information may be incomplete or inaccurate.

The accessory_addon_int_ui_data unit class is used for vehicle accessories which add a visible component to a vehicle with dynamic UI screen components. This is used for customization of the player's vehicle, most commonly for additional GPS navigation screens or phones with clocks etc.

UI script of this accessory can access the same ID elements as dashboard or gps interior scripts, more info: Documentation/Engine/Truck_Interior_Animations_and_IDs#Dashboards_IDs.

Attributes

Many common attributes are inherited from accessory_addon_data.

Name Type Default Value Description
ui_path string <empty> Path to the UI script of this accessory that should be drawn into drawable.
ui_drawable_texture_path string <empty> Path to the texture TOBJ that UI will drawn into and should be then used in the model and serve as a display.
ui_drawable_size int2 (0, 0) Size of the drawable texture, needs to be a power of two between [4, 4096].