-
Notifications
You must be signed in to change notification settings - Fork 0
Setup
On your rover, place a prgrammable block, and copy the script into it using the Edit button. Make sure that the programmable block is enabled; it should display the version number in the output area on the right. It's a good idea to name the Programmable Block so that you can find it; you will need to find it again later on this page.
To use the script, you will need at least one screen, and one set of inputs. These can be any sort of screen that you prefer For example:
Cockpit controls
Button controls
To set a screen up, find its block in the K menu, and click Custom Data. Insert the following (placing it after the end if there is already other data there):
[trailer]
display=0
This tells Trailer Manager that you wish to display its menu on the first screen on this block. Many blocks have just one screen, like all the text panels and LCDs. Some have more than one, such as programmable blocks, cockpits and projector consoles. The screens are always numbered starting from 0, and the order is the same as the order that the screens appear in that block's menu. For example, in this cockpit, the screens are numbered as follows:
- Top Center Screen
- Top Left Screen
- Top Right Screen
- Keyboard
Depending on the screen you have chosen, the text might be too large. The script was written for the scaling on transparent LCDs and large text panels, and some screens have a much lower resolution. To correct this, you can add a scale
value to the Custom Data:
[trailer]
display=2
scale=0.67
This would set the menu up on the third screen of a cockpit, and reduce the text size by a third. The scale is a multiplier, which sizes of the elements on the screen are multiplied by.
You can also change the colour of the orange highlights on the display, by setting color
to an HTML style hexadecimal value.
[trailer]
display=0
color=006700
This would set the screen's highlight colour to a deep green.
Your inputs can either be cockpit toolbars or buttons. Both are set up the same way, and to use the script you will need as a bare minimum three buttons or three toolbar slots to be configured.
To configure a toolbar slot, use the G menu, and search for the Programmable Block on which you installed Trailer Manager. Click the programmable block to install an action in the next available slot, or drag it to the desired slot. A menu will pop up; select Run
as shown:
It should prompt you to type in an argument. On the first, type up
. Set up a second slot, and this time type down
. A third one, and type apply
.
You can now use these keys to move the highlighted selection bar up and down the screen, and to choose the highlighted menu item, which will either open a sub-menu or operate a function. If you don't wish to use the up key many times to return to a previous menu screen, you can configure a fourth run action, with the argument back
. This will take you back to the previous menu, or if you are at the first menu, to the top of the menu list.