Euro Truck Simulator 2

Euro Truck Simulator 2

Welcome to the Euro Truck Simulator 2 workshop!
Are you interested in driving custom trucks with custom cargo? Steam Workshop is where you can easily download fan-created mods, plug them right into the game, and keep them up to date!
Learn More
Moving an UI component
I'm again at a loss...
Trying to move the adjust seat frame as it make no sense that SCS placed it so it is obstructing the view.
The result of changing the steering wheel back/forth/up/down and adjusting the neck angle doesn't really show until you close the window.

In set_seat.sii I edited the values of
coords_l: coords_r: coords_t: coords_b: area_l: area_r: area_t: area_b:
for
ui::window : _nameless.012f3c741
ui::group : _nameless.012f3c742
As the others are just the text and buttons.
Also I guess it should only be the top window which would be moved as the other is a group(?) and has the top window as it's parent.

I know I'm editing the correct file because I changed the text @@seat_adj_t@@ to something completely different.

But the frame refuse to move.
I tried looking for similar mods, or even if this has been done before but to no avail.
Is it at all possible or how would I go about doing this?
Last edited by Erik Taurus; 1 Feb, 2022 @ 3:58pm
< >
Showing 1-2 of 2 comments
madman 8 1 Feb, 2022 @ 10:56pm 
You have to change the position of all the objects, not just ui::window and ui::group. Children objects has their own free position without inherit or bound to their parent. Parent object only responsible for clipping area of it's children and the way to control UI objects (i.e. show/hide as a group).
Erik Taurus 2 Feb, 2022 @ 7:04am 
Originally posted by madman:
You have to change the position of all the objects, not just ui::window and ui::group. Children objects has their own free position without inherit or bound to their parent. Parent object only responsible for clipping area of it's children and the way to control UI objects (i.e. show/hide as a group).
Thanks!
I'm sure you are right with moving the other windows as well but I screwed up royally.
https://abload.de/img/ets2moveadjustseatepif5jpt.jpg
I tried verifying my memory of on how to move these on the Internet, but...
This is how I progressed.
The idea is to move the window to the right by 400 units(whatever a unit is, not px from what I gather)
From what I remember
coords_l: (initial value)+400 coords_r: (initial value)-400
Since for some reason SCS coordinate space isn't like others and you also have to specify how far from the right an object is.
So if it is 800 to begin with, you move it 400 to the left, meaning the object is now 400 from the right.
But my memory fails me it seem.

I left the other values as they are since they seem to be adjusted by the internal position
ui::text : _nameless._.fov_sld_bcg2 { text: "<img src=/material/ui/set_seat2.mat top=p60>" coords_l: 1065 //665 -> 1065 coords_r: 277 //677 -> 277 coords_t: 340 //Left unchanged coords_b: 316 //Left unchanged area_l: 1 //Left unchanged area_r: 0 //Left unchanged area_t: 0 //Left unchanged area_b: 1 //Left unchanged id: 0 layer: 2 tab: -1 pointer: -1 my_parent: _nameless.012f3c742
Last edited by Erik Taurus; 2 Feb, 2022 @ 7:07am
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: 1 Feb, 2022 @ 3:55pm
Posts: 2