Space Engineers

Space Engineers

71 个评价
Terminal Cleaner
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
1.756 KB
2017 年 11 月 1 日 上午 11:16
2018 年 4 月 26 日 下午 12:11
8 项改动说明 ( 查看 )

订阅以下载
Terminal Cleaner

描述
Prepends the name of every terminal block with {Grid Name}

e.g. "... Timer Block 3 ..." becomes "{Grid Name} ... Timer Block 3 ..."

where Grid Name is the name set in the terminal Info panel

will also detect when the name of a grid is different from the header {...} of its terminal blocks, and adjust the block names accordingly.

11-12-17 - Now hides grouped blocks and selected other blocks.
The following is a list of the blocks that are automatically hidden from the terminal and the toolbar config panel:
Efficiency Upgrade Module
Effectiveness Upgrade Module (Yield)
Productivity Upgrade Module (Speed)
All cargo containers
All artificial mass blocks
Spaceballs
Control panels
Solar panels

02-04-18 - Adding [TC:NoHide] anywhere after the main {} header will prevent auto-hiding on a given block. It must be exactly as typed here, with no spaces.

04-26-18 - Added Arguments parsing to support grid renaming and disabling of auto-hide feature.

Arguments (Command-Line only);
Reset -- Resets the names of all blocks on the grid to default. Use with caution.
DoHiding = bool -- sets an internal flag to disable or enable autohiding. default: true.
GridName = String -- sets the name of the grid running the program.

Note: for the GridName argument to work, the owner of the PB running the script must own the grid.

This script is a work in progress, more features may be added in the future.
21 条留言
MiggyMan 2018 年 5 月 5 日 上午 9:38 
Well, that is working marvelously :D

But i've had another idea, how about including a named text panel on each subgrid with the name of that subgrid on it so that when you run the script while docked it renames all subgrids to a set name as well ? :D
MiggyMan 2018 年 4 月 27 日 上午 8:24 
Nice :D
lblackthorne  [作者] 2018 年 4 月 26 日 下午 12:13 
Update!

Note: for the GridName argument to work, the owner of the PB running the script must own the grid.
lblackthorne  [作者] 2018 年 4 月 26 日 上午 9:13 
It's not a bad idea. I've been trying to think of a way to handle merge blocks intelligently.
MiggyMan 2018 年 4 月 26 日 上午 6:57 
Could you add the option to also rename the grid to a given value first, it would make this script insanely handy in situations where your using merge blocks.
lblackthorne  [作者] 2018 年 2 月 4 日 下午 8:33 
Update!
lblackthorne  [作者] 2018 年 2 月 4 日 下午 7:57 
Turning off the cargo hiding is simple enough though. Just comment out the following lines in the HideableBlocks list at the top.

"LargeBlockLargeContainer"
"LargeBlockSmallContainer"
"SmallBlockLargeContainer"
"SmallBlockSmallContainer"
"MediumContainer"

so they'll look like this:

// "LargeBlockLargeContainer"
// "LargeBlockSmallContainer"
// "SmallBlockLargeContainer"
// "SmallBlockSmallContainer"
// "MediumContainer"

I'll see about adding a tag that it checks before hiding blocks.
FortressButress 2018 年 2 月 4 日 上午 9:36 
I would also like to add support for a toggle in hiding blocks. I use Taleden's Inventory Manager, so having cargo blocks be automatically hidden with this mod is quite annoying. In addition I always group my batteries to make buttons from them on my toolbar, but I still frequently check their status/power levels and this is also annoying to have them hidden from view.

I typically only hide blocks that I never really touch - such as thrusters - or have no modification options like assember modules. Would love to see a toggle for auto-hiding blocks in the future :)
lblackthorne  [作者] 2017 年 12 月 9 日 下午 1:22 
The only blocks it hides are those that are already grouped, and those that are pointless in either the terminal or the toolbar config. The feature vetted well, but I'll consider adding a configuration option when I have time.
aikiwolfie 2017 年 12 月 9 日 下午 12:59 
Auto hiding blocks really should be something the user needs to request via an argument. It's actually quite annoying as a default.