public PhotospherePanel(PhotospherePlugin plugin) { InitializeComponent(); mPlugin = plugin; mConfig = plugin.Config as CoreConfig; folderAddress.Text = mConfig.PhotosphereFolder; folderDialog.RootFolder = Environment.SpecialFolder.MyDocuments; folderDialog.SelectedPath = mConfig.PhotosphereFolder; captureDelay.Value = mConfig.PhotosphereCaptureDelayMS; nameBox.Text = mConfig.PhotosphereName; widthBox.Value = mConfig.PhotosphereOutputWidth; detailsLabel.Text = "FoV: " + mPlugin.FoV + " Columns: " + mPlugin.Cols + " Rows: " + mPlugin.Rows + " YawIncrement: " + mPlugin.YawIncrement + " PitchIncrement:" + mPlugin.PitchIncrement; }
public ScreenshotSequencePanel(ScreenshotSequencePlugin plugin) { InitializeComponent(); mPlugin = plugin; mConfig = plugin.Config as CoreConfig; mPlugin.Started += () => { if (InvokeRequired) Invoke(new Action(() => startButton.Text = "Stop")); else startButton.Text = "Stop"; }; mPlugin.Stopped += () => { if (InvokeRequired) Invoke(new Action(() => startButton.Text = "Start")); else startButton.Text = "Start"; }; intervalS.Value = new Decimal(mConfig.IntervalMS / 1000); stopM.Value = new Decimal(mConfig.StopM); shutdownBox.Checked = mConfig.AutoShutdown; file.Text = mConfig.ScreenshotFile; folderBox.Text = mConfig.ScreenshotFolder; file.Text = mConfig.Key; }
public Stats(string line, ExperimentalConfig config) { string[] s = line.Split(','); int frames = new CoreConfig().Frames.Length; mConfig = config; TimeStamp = DateTime.ParseExact(line.Split(',')[0], mConfig.TimestampFormat, new DateTimeFormatInfo()); }
public ServerStats(string line, ExperimentalConfig config) : base(line, config) { string[] s = line.Split(','); int frames = new CoreConfig().Frames.Length; Dilation = 0f; SFPS = 0; Agents = 0; IncomingBPS = 0; OutgoingBPS = 0; ResentPackets = 0; ReceivedResends = 0; PhysicsFPS = 0f; AgentUpdates = 0f; Objects = 0; ScriptedObjects = 0; FrameTime = 0f; NetTime = 0f; ImageTime = 0f; PhysicsTime = 0f; ScriptTime = 0f; OtherTime = 0f; ChildAgents = 0; ActiveScripts = 0; for (int i = 0; i < mConfig.OutputKeys.Length; i++) { switch (mConfig.OutputKeys[i]) { case "FT": FrameTime = float.Parse(s[i + 2]); break; case "SFPS": SFPS = int.Parse(s[i + 2]); break; } } }
public ClientStats(string line, ExperimentalConfig config, DateTime timestamp) : base(timestamp, config) { string[] s = line.Split(','); int frames = new CoreConfig().Frames.Length; CFPS = new float[frames]; Polys = new float[frames]; Ping = new float[frames]; AddLine(line, 0); }
public ClientStats(string line, ExperimentalConfig config) : base(line, config) { string[] s = line.Split(','); int frames = new CoreConfig().Frames.Length; CFPS = new float[frames]; Polys = new float[frames]; Ping = new float[frames]; for (int i = 0; i < mConfig.OutputKeys.Length; i++) { switch (mConfig.OutputKeys[i]) { case "CFPS": CFPS = s.Skip(i + 2).Take(frames).Select(cfps => cfps != "-" ? float.Parse(cfps) : 0f).ToArray(); i += frames-1; break; case "Polygons": Polys = s.Skip(i + 2).Take(frames).Select(polys => polys != "-" ? float.Parse(polys) : 0f).ToArray(); i += frames-1; break; case "Ping": Polys = s.Skip(i + 2).Take(frames).Select(ping => ping != "-" ? float.Parse(ping) : 0f).ToArray(); i += frames-1; break; } } }