Exemplo n.º 1
0
        public void InitPlugin(TabPage pluginScreenSpace, Label pluginStatusText)
        {
            AttackMissView         = new AttackMissView(this);
            ACTTabControl          = new ACTTabControl(this);
            pluginScreenSpace.Text = Assembly.GetExecutingAssembly().GetName().Name;
            pluginScreenSpace.Controls.Add(ACTTabControl);
            ACTTabControl.InitializeSettings();

            Settings = new DataManager(this);
            Settings.Load();

            ACTTabControl.Show();

            String path = ResourceLocator.findResourcePath("resources/wav/miss.wav");

            if (path != null)
            {
                soundPlayer = new SoundPlayer(path);
            }



            ActGlobals.oFormActMain.AfterCombatAction += AfterCombatAction;
            ActGlobals.oFormActMain.OnCombatStart     += CombatStarted;
            ActGlobals.oFormActMain.OnLogLineRead     += OnLogLineRead;
        }