Open main menu

Changes

Games/ETS2/Modding guides/1.46

431 bytes added, 12:58, 18 November 2022
Interior UI addon accessory data
= Changes & New Features =
== Interior UI improvements ==Truck interior now has unified handling of UI scripts for dashboard, infotainment and accessories. Now supporting all the truck IDs in all three types of drawables. Additionally infotainement/gps scripts being able to define multiple screen pages same as dashboard script. === Interior UI addon accessory data ===There is a new type of interior accessory specialized for using usage of custom screen displays trough via UIscript (similarly as truck dashboards do). They are utilizing same mechanisms as we use for dashboard and GPS. More info about unit: [[Documentation/Engine/Units/accessory_addon_int_ui_data|here]]
To create working working custom UI accessory (like custom GPS) one needs the following:
SiiNunit
{
accessory_addon_int_ui_data : my_gps.<brand>.<model>.set_lglass<acc_type>
{
name: "My GPS"
part_type: aftermarket
interior_model: "/path/to/my_gps_modelmy_gps_model_int.pmd" exterior_model: "/path/to/my_gps_model_ext.pmd"
# path to the UI script, either use custom or any existing e.g.: /ui/gps.sii