public void Init(Core core) { mCore = core; mMainController = mCore.GetPlugin <OpenSimController>(); mMainController.ClientLoginComplete += new EventHandler(mMainController_CLientLoginComplete); mCore.ControlMode = mConfig.Mode; if (mCore.HasPlugin <ClientRecorderPlugin>()) { mRecorder = mCore.GetPlugin <ClientRecorderPlugin>(); } if (!mConfig.SettingsLoaderEnabled || !mCore.HasPlugin <SettingLoaderPlugin>()) { Logger.Info("Setting Settings file: " + mConfig.SettingsFile + "."); } Logger.Info("Setting Region: " + mConfig.Region + "."); foreach (var frame in core.Frames) { ViewerConfig config = (frame.Output as OpenSimController).Config as ViewerConfig; if (!mConfig.SettingsLoaderEnabled || !mCore.HasPlugin <SettingLoaderPlugin>()) { SettingLoaderPlugin.ReplaceSettingsFile(config, mConfig.SettingsFile, mConfig, Logger); } config.ViewerArguments += " --set LoginLocation \"" + mConfig.Region + "\""; } LoadTargets(); }
public ClientRecorderControl(ClientRecorderPlugin plugin) { InitializeComponent(); mPlugin = plugin; mConfig = mPlugin.Config as ExperimentalConfig; statsList.Columns.Add("Timestamp"); foreach (var colName in mConfig.OutputKeys) { var col = statsList.Columns.Add(colName); col.Width = 30; } }
public void Init(Core core) { mCore = core; mMainController = mCore.GetPlugin<OpenSimController>(); mMainController.ClientLoginComplete += new EventHandler(mMainController_CLientLoginComplete); mCore.ControlMode = mConfig.Mode; if (mCore.HasPlugin<ClientRecorderPlugin>()) mRecorder = mCore.GetPlugin<ClientRecorderPlugin>(); if (!mConfig.SettingsLoaderEnabled || !mCore.HasPlugin<SettingLoaderPlugin>()) Logger.Info("Setting Settings file: " + mConfig.SettingsFile + "."); Logger.Info("Setting Region: " + mConfig.Region + "."); foreach (var frame in core.Frames) { ViewerConfig config = (frame.Output as OpenSimController).Config as ViewerConfig; if (!mConfig.SettingsLoaderEnabled || !mCore.HasPlugin<SettingLoaderPlugin>()) SettingLoaderPlugin.ReplaceSettingsFile(config, mConfig.SettingsFile, mConfig, Logger); config.ViewerArguments += " --set LoginLocation \"" + mConfig.Region + "\""; } LoadTargets(); }