private void UpdateDisplay() { var ds = ShieldComp.DefenseShields; if (_imagesDetected && Set.Settings.Report == 2) { if (Display.ShowText) { Display.ShowTextureOnScreen(); } var image = UtilsStatic.GetShieldThyaFromFloat(ds.DsState.State.ShieldPercent, 0); var oldImage = Display.CurrentlyShownImage; if (oldImage != image) { Display.RemoveImageFromSelection(oldImage, true); Display.AddImageToSelection(image); Display.NeedsUpdate &= ~MyEntityUpdateEnum.BEFORE_NEXT_FRAME; } } else { if (!Display.ShowText) { Display.ShowPublicTextOnScreen(); if (Display.FontSize <= 1) { Display.FontSize = 1.30f; } } if (Tick - ds.LastCustomInfoUpdate >= 99) { ds.Shield.RefreshCustomInfo(); } Display.WritePublicText(ds.Shield.CustomInfo); } }