Beispiel #1
0
        /// <summary>
        /// This is called when the plugin is started up. This happens only once.
        /// </summary>
        protected override void Startup()
        {
            try
            {
                // This initializes our static Globals class with references to the key objects your plugin will use, Host and Core.
                // The OOP way would be to pass Host and Core to your objects, but this is easier.
                Globals.Init("QuestHelper", Host, Core);

                //Initialize the view.
                MVWireupHelper.WireupStart(this, Host);
                var views = HudView.GetAllViews();
                foreach (var view in views)
                {
                    if (view.Title == "Quest Helper")
                    {
                        qt        = new QuestFlagRepository(Core, view);
                        questView = view;
                    }
                }
            }
            catch (Exception ex) { Util.LogError(ex); }
        }