public KeyPressFeature(OverlayPlugin plugin, XmlNode node)
 {
     mPlugin = plugin;
     keys = node.Attributes["Keys"].Value;
     ThisLogger.WarnFormat("Creating KeyPress with: {0}", keys);
     mFrame = GetManager(plugin, node, "Click Feature").Name;
     if (plugin.Core[mFrame].Output is OpenSimController)
         mController = plugin.Core[mFrame].Output as OpenSimController;
 }
Beispiel #2
0
 public OpenSimViewerFactory(IEnumerable <ISystemPlugin> plugins)
 {
     mPluginController = plugins.FirstOrDefault(p => p is OpenSimController) as OpenSimController;
 }
 public OpenSimViewerFactory(IEnumerable<ISystemPlugin> plugins)
 {
     mPluginController = plugins.FirstOrDefault(p => p is OpenSimController) as OpenSimController;
 }
        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 void Init(Core core)
        {
            Logger = LogManager.GetLogger("SettingsChanger");
            mCore = core;
            mConfig = ExperimentalConfig.Instance;
            mWasEnabled = mConfig.SettingsChangerEnabled;
            //mConfig = mCore.HasPlugin<ClientRecorderPlugin>() ? mCore.GetPlugin<ClientRecorderPlugin>().Config as ExperimentalConfig : new ExperimentalConfig();
            if (mConfig.SettingsChangerEnabled && mConfig.Setting != null) {
                OSOut = (core.Frames[0].Output as OpenSimController);
                OSOut.ClientLoginComplete += new EventHandler(SettingChangerPlugin_ClientLoginComplete);

                new Thread(() => {
                    Thread.Sleep(200);
                    mConfig.RunInfo += (mConfig.RunInfo.Length == 0 ? "" : "-") + mConfig.Value;
                }).Start();
            }
        }