Space Engineers

Space Engineers

Not enough ratings
Easy Access Programmable Block Controls
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Block, Script, Other
File Size
Posted
108.841 KB
6 Oct, 2022 @ 2:06pm
1 Change Note ( view )

Subscribe to download
Easy Access Programmable Block Controls

Description
This is a simple mod That moves the buttons and fields to the top of the terminal that see heavy use when you are creating an in-game script with the Programmable block.

There are other mods out there like this one but this one is mine.

Feel free to peek inside this mod with Visual studio to see how it works, I have a method in there that can create a text file with a list of control.Id's for the programmable blocks terminal controls. You just need to set the relevant bool to True to have it create the text file. This was vital in figuring out how to access the controls to move them. Big thanks to Digi for his help with this.

This text file will likely be created in C:\Users\YOUR_USER_NAME\AppData\Roaming\SpaceEngineers\Storage\Script Controls to Top_Script Controls to Top

if you want to find the file to edit it will likely be in
C:\Program Files (x86)\Steam\steamapps\workshop\content\244850\2872094732\Data\Scripts\Easy Access Programmable Block Controls
It will be the "Script Controls to Top.sln" file.

In Visual Studio:
If you want to play around with where the controls are located yourself all you have to do is put the name of the control you wish to move into the ControlsToMove list located at the top of the MovePBControlsSession class.
The last item in the ControlsToMove list will be moved to the top of the Terminal going down to the first in the list. This means that you can reorder where a control is displayed in the Terminal based on its relative location in the ControlsToMove list.

The name of the control will need to be from the text file that this mod generates when you set writePBControlsList to true. This text file has the control that is at the bottom of the terminal ("Recompile") at the top of the text file. each item going down in the text file is for the controls going from the bottom to the top of the Terminal.

Also take a look at these other mods that I used as references for creating this one.

"Easy Programmable Block Buttons" by Vantablack Pyro
https://steamproxy.net/sharedfiles/filedetails/?id=2821462932

"Programmable Block UI Controls Reorder" by Whiplash141
https://steamproxy.net/sharedfiles/filedetails/?id=2821484703

A big thanks to them as well !
4 Comments
REALRACE 25 May @ 9:31am 
maybe simple ... but very helpful! thx
Пиро 11 Oct, 2022 @ 11:01am 
Hi Coren, add me as a friend to add you as colaborator of my workshop item, from there I think you can update and the changes will appear in the Plugin Loader list.
Thank you so much for your collaboration!
Coren  [author] 7 Oct, 2022 @ 2:36am 
@Vantablak Pyro
That is fine with me.
Пиро 6 Oct, 2022 @ 7:21pm 
Hi Coren, good job on implementing this, I want to use your code and add you as contributor of my mod because mine is used in Plugin Loader, a mod that lets you load this and a lot of client side mods in any world and server in the game, tell me what do you think, thanks in advance.