Exemplo n.º 1
0
        public TPMonitorController(ACTTabpageControl actTab)
        {
            this.actPlugin = ActGlobals.oFormActMain.PluginGetSelfData(actTab);
            this.actTab = actTab;
            this.actTab.ChangeLocation += new ACTTabpageControl.ChangeLocationEventHandler(this.ChangeLocation);
            this.actTab.ChangeScale += new ACTTabpageControl.ChangeScaleEventHandler(this.ChangeScale);

            HideJob = new SynchronizedCollection<JOB>();

            ActGlobals.oFormActMain.OnLogLineRead += act_OnLogLineRead;

            isExited = false;

            PartyMemberInfo = new SynchronizedCollection<Combatant>();
            for (int i = 0; i < 8; i++)
            {
                PartyMemberInfo.Add(new Combatant());
            }

            normalStyle = new TPViewer(this);
            normalStyle.Show();
            normalStyle.Hide();

            allianceStyle = new AllianceStyleViewer(this);
            allianceStyle.Show();
            allianceStyle.Hide();

            if (this.IsAllianceStyle)
                viewer = allianceStyle;
            else
                viewer = normalStyle;
            
            checkStatus = new Thread(new ThreadStart(CheckProcess));
            checkStatus.Name = "Check Status Thread";
            checkStatus.Start();

            getTP = new Thread(new ThreadStart(GetMemberTP));
            getTP.Name = "Get TP Thread";
            getTP.Start();
        }
Exemplo n.º 2
0
 private void ChangeScale(object sender, ACTTabpageControl.ChangeScaleEventArgs e)
 {
     if (this.IsAllianceStyle)
         allianceStyle.Adjust();
     else
         normalStyle.Adjust(Util.GetPartyListLocation(this.CharFolder, this.IsUserScale ? e.Scale : 0f));
 }
Exemplo n.º 3
0
 private void ChangeLocation(object sender, ACTTabpageControl.ChangeLocationEventArgs e)
 {
     if (viewer.Visible)
     {
         if (viewer.GetType().Name == "TPViewer" && this.IsAllianceStyle)
         {
             viewer.Hide();
             viewer = allianceStyle;
             viewer.Show();
         }
         else if (viewer.GetType().Name == "AllianceStyleViewer" && !this.IsAllianceStyle)
         {
             viewer.Hide();
             viewer = normalStyle;
             viewer.Show();
         }
     }
     viewer.Location = e.Location;
 }