/// <summary> /// Constructor /// </summary> /// <param name="window">Window</param> public NightSkyRenderer(Window window) { this.window = window; background = window.AddControl <ColoredTextField>(RectInt.zero); background.AllowTransparency = true; lastHorizontalPosition = HorizontalPosition; lastHorizonStart = HorizonStart; lastWindowSize = window.Size; UpdateNightSky(); }
/// <summary> /// Constructor /// </summary> /// <param name="window">Window</param> public GroundRenderer(Window window) { this.window = window; background = window.AddControl <ColoredTextField>(0, 0, window.Width, (int)GroundHeight); background.TextAlignment = ETextAlignment.BottomLeft; lastPatternBodyLength = PatternBodyLength; lastPatternLineLength = PatternLineLength; lastTopGroundColor = TopGroundColor; lastBottomGroundColor = BottomGroundColor; lastTopLineColor = TopLineColor; lastBottomLineColor = BottomLineColor; lastGroundHeight = GroundHeight; lastHorizontalPosition = HorizontalPosition; lastWindowWidth = window.Width; UpdateGroundPattern(); }