From 70e01a1aeefe8c5d2abad94dcfb6063647182ac4 Mon Sep 17 00:00:00 2001 From: Firq Date: Tue, 4 Apr 2023 20:29:25 +0200 Subject: [PATCH] Optimized SE script for Ice --- Space Engineers/iceMonitoringScript.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Space Engineers/iceMonitoringScript.cs b/Space Engineers/iceMonitoringScript.cs index 953aec7..5562df7 100644 --- a/Space Engineers/iceMonitoringScript.cs +++ b/Space Engineers/iceMonitoringScript.cs @@ -36,6 +36,12 @@ public void Main(string args) { toggleCollectors(true); Echo($"Collectors are ON"); } + + var msg = string.Format("\n\nIce Manager by Firq\n----------------------------\nCollectors are {0}\n----------------------------\nIce Amount: {1}M\n----------------------------", collectorState, Math.Round((iceamount / 1000000.0), 2)); + var screen = Me.GetSurface(0); + screen.ContentType = ContentType.TEXT_AND_IMAGE; + screen.Alignment = TextAlignment.CENTER; + screen.WriteText(msg, false); } public int getCurrentIceAmount() {