Highlighted items glow in the dark, health bars are hidden when health is full, usernames and health bars are drawn at full brightness

This commit is contained in:
Regalis
2016-07-31 19:13:08 +03:00
parent 1a0451d0a8
commit 581a7d5d9f
6 changed files with 26 additions and 9 deletions

View File

@@ -181,7 +181,7 @@ namespace Barotrauma
backgroundColor = new Color(backgroundColor, 1.0f);
float avgValue = (backgroundColor.R + backgroundColor.G + backgroundColor.G) / 3;
GameMain.LightManager.AmbientLight = new Color(backgroundColor*(40.0f/avgValue), 1.0f);
GameMain.LightManager.AmbientLight = new Color(backgroundColor * (60.0f / avgValue), 1.0f);
float minWidth = Submarine.MainSub == null ? 0.0f : Math.Max(Submarine.MainSub.Borders.Width, Submarine.MainSub.Borders.Height);
minWidth = Math.Max(minWidth, 6500.0f);