Open main menu

Changes

Documentation/Engine/Units/accessory addon int ui data

1,300 bytes added, 15:28, 8 November 2022
Created page with "{{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''' u..."
{{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 [[Documentation/Engine/Game_data/Player_trucks_definitions|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 [[Documentation/Engine/Units/accessory_addon_data|'''accessory_addon_data''']].
{|class="wikitable"
!Name
![[Documentation/Engine/Units#Attribute_types|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].
|}