public Ball(UiSettings uiSettings, RectangleF bounds, Color color) : base(uiSettings, bounds, color) { this.x = uiSettings.Width / 2; this.y = uiSettings.Height / 4; uiSettings.SendMessage(UiSettingsEventArgs.EventType.SettingChangeEvent, "hello new ball"); this.uiSettings = uiSettings; }
private void InitUI(UiSettings info, string[] args) { uiRenderer = new Renderer(uiSettings); string[] paths = args.Where(s => File.Exists(s)).ToArray(); if (paths?.Length > 0) { uiSettings.SendMessage(UiSettingsEventArgs.EventType.WindowEvent, new object[] { Global.LoadPathsEvent, paths }, UiSettingsEventArgs.FLAGS_UI); } uiLastFrameTime = DateTime.Now; uiTimer = new Timer(); uiTimer.Interval = (1000 / info.FPS); uiTimer.Tick += UiScreenRefresh; uiTimer.Start(); bgColour = Color.DimGray; NetworkManagerLSTM.BaseColour = bgColour; NetworkManagerLSTM.BaseTextColour = Color.White; }