Exemple #1
0
        // 순위, 클래스, 이름, dps, 총데, 딜시간, 최대데미지,
        // 공격횟수, 스킬비율, 평타비율, 치명타비율
        public void UpdataListView()
        {
            if (ListItem.SubItems[1].Text == "")
            {
                ListItem.SubItems[1].Text = SkillDictionary.GetClassString(Class);
            }

            ListItem.SubItems[3].Text = DPS + "";
            ListItem.SubItems[4].Text = TotalDamage + "";
            ListItem.SubItems[5].Text = TotalDealTime + "초";
            ListItem.SubItems[6].Text = HPRecover + "";
            ListItem.SubItems[7].Text = HealAmount + "";

            ListItem.SubItems[8].Text  = MaxDamage + "";
            ListItem.SubItems[9].Text  = TotalDealCount + "회";
            ListItem.SubItems[10].Text = percentSkill + "%";
            ListItem.SubItems[11].Text = percentNormal + "%";
            ListItem.SubItems[12].Text = percentCritical + "%";

            ListItem.SubItems[13].Text = NewTotalNormalDealCount + "회";
            ListItem.SubItems[14].Text = NewTotalSkillDealCount + "회";
            ListItem.SubItems[15].Text = NewTotalDealCount + "회";
            ListItem.SubItems[16].Text = TotalNormalCancelCount + "회";
            ListItem.SubItems[17].Text = PercentNormalCancel + "%";
            ListItem.SubItems[18].Text = MaxNormalCancelCount + "회";
            ListItem.SubItems[19].Text = CurrentNormalCancelCount + "회";
            ListItem.SubItems[20].Text = (NewTotalNormalDealCount == 0) ? "0" : (NewTotalNormalDamage / NewTotalNormalDealCount) + "";
            ListItem.SubItems[21].Text = (NewTotalSkillDealCount == 0) ? "0" : (NewTotalSkillDamage / NewTotalSkillDealCount) + "";
            ListItem.SubItems[22].Text = (NewTotalDealCount == 0) ? "0" : (TotalDamage / NewTotalDealCount) + "";

            ListItem.SubItems[23].Text = MPRecover + "";
        }
Exemple #2
0
        public override String GetQuery()
        {
            String        url = "";
            StringBuilder sb  = new StringBuilder(url);

            sb.Append("?" + "starttime" + "=" + EventList[0].Time);
            sb.Append("&" + "endtime" + "=" + EventList[3].Time);
            sb.Append("&" + "cleartime" + "=" + ClearTime);
            sb.Append("&" + "totaldamage" + "=" + TotalDamage);

            // 2013-05-08 최대 유저수는 7을 안넘는다
            int tmp = UserList.Count;

            if (tmp > 7)
            {
                tmp = 7;
            }
            sb.Append("&" + "usercount" + "=" + tmp);
            sb.Append("&" + "userinfo" + "=");
            int    count      = 0;
            String userName   = "";
            String userServer = "";

            foreach (User u in UserList)
            {
                sb.Append(SkillDictionary.GetClassString(u.Class));
                String   playerName = u.Name;
                String[] temp       = playerName.Split('-');
                if (temp.Length == 1)
                {
                    // 통합서버가 아니다.
                    userName   = playerName;
                    userServer = (String)this.main.GetServer();
                }
                else
                {
                    // 통합서버다.
                    userName   = temp[0];
                    userServer = temp[1];
                }
                sb.Append(":" + userServer);
                sb.Append(":" + userName);
                sb.Append(":" + u.TotalDamage);
                sb.Append(":" + ((u.Name == LogParser.Myname) ? 1 : 0));
                sb.Append(":" + u.DPS);
                sb.Append(":" + u.PercentNormalCancel);
                sb.Append(":" + u.HPRecover);
                sb.Append(":" + u.HealAmount);
                sb.Append("|");
                count++;
                if (count == 7)
                {
                    break;
                }
            }
            sb.Append("&" + "version" + "=" + this.main.Version);
            return(sb.ToString());
        }
Exemple #3
0
        protected void AppendUser()
        {
            int i = 0;

            foreach (User u in UserList)
            {
                sb.AppendLine("  " + (++i) + ". " + SkillDictionary.GetClassString(u.Class) + " " + u.Name + "(" + u.TotalDamage + " " + (100 * u.TotalDamage / TotalDamage) + "%)");
            }
        }
Exemple #4
0
        public int SendDealRecord(bool my, String userserver, String username, User user, int dealtime, int recerdType)
        {
            String url = "";

            try
            {
                StringBuilder sb = new StringBuilder(url);
                sb.Append("?" + "programuser" + "=" + ((my) ? 1 : 0));
                sb.Append("&" + "userserver" + "=" + userserver);
                sb.Append("&" + "username" + "=" + username);
                sb.Append("&" + "userclass" + "=" + SkillDictionary.GetClassString(user.Class));
                sb.Append("&" + "dealtime" + "=" + dealtime);
                sb.Append("&" + "dps" + "=" + user.DPS);
                sb.Append("&" + "totaldamage" + "=" + user.TotalDamage);
                sb.Append("&" + "dealcount" + "=" + user.TotalDealCount);
                sb.Append("&" + "skillrate" + "=" + user.percentSkill);
                sb.Append("&" + "normalrate" + "=" + user.percentNormal);
                sb.Append("&" + "criticalrate" + "=" + user.percentCritical);
                sb.Append("&" + "type" + "=" + recerdType);
                sb.Append("&" + "target" + "=" + user.LastTarget);
                sb.Append("&" + "normalcancel" + "=" + user.PercentNormalCancel);
                sb.Append("&" + "version" + "=" + this.mainForm.Version);


                WebRequest   myWebRequest  = WebRequest.Create(sb.ToString());
                WebResponse  myWebResponse = myWebRequest.GetResponse();
                StreamReader reader        = new StreamReader(myWebResponse.GetResponseStream());
                string       temp          = reader.ReadToEnd();

                int ret = -1;
                try
                {
                    ret = Int32.Parse(temp);
                }
                catch { }
                return(ret);
            }
            catch (Exception ee)
            {
                ee.ToString();
                return(-1);
            }
        }
Exemple #5
0
        private void InitializeComponentManually()
        {
            this.topMostCheckbox           = new HostedCheckbox();
            this.statusToolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
            this.opacityTrackBar           = new ToolStripTrackBar();
            this.statusToolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
            this.oneClassCheckbox          = new HostedCheckbox();
            this.statusToolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
            this.autoSortCheckbox          = new HostedCheckbox();

            //
            // topMostCheckbox
            //
            this.topMostCheckbox.Checked = true;
            this.topMostCheckbox.Name    = "topMostCheckbox";
            this.topMostCheckbox.Size    = new System.Drawing.Size(66, 22);
            this.topMostCheckbox.Text    = "항상 위";
            this.topMostCheckbox.Checked = this.TopMost;
            this.topMostCheckbox.Click  += new System.EventHandler(this.topMostCheckbox_Click);
            //
            // statusToolStripSeparator1
            //
            this.statusToolStripSeparator1.Name = "toolStripSeparator1";
            this.statusToolStripSeparator1.Size = new System.Drawing.Size(6, 25);
            //
            // opacityTrackBar
            //
            this.opacityTrackBar.AutoSize      = false;
            this.opacityTrackBar.Name          = "opacityTrackBar";
            this.opacityTrackBar.Size          = new System.Drawing.Size(100, 20);
            this.opacityTrackBar.Value         = 0;
            this.opacityTrackBar.ValueChanged += new System.EventHandler(this.opacityTrackBar_ValueChanged);
            //
            // statusToolStripSeparator2
            //
            this.statusToolStripSeparator2.Name = "toolStripSeparator1";
            this.statusToolStripSeparator2.Size = new System.Drawing.Size(6, 25);
            //
            // oneClassCheckbox
            //
            this.oneClassCheckbox.Checked = LogParser.OneClassFlag;
            this.oneClassCheckbox.Size    = new System.Drawing.Size(66, 22);
            this.oneClassCheckbox.Text    = "클래스별 1인";
            this.oneClassCheckbox.Click  += new System.EventHandler(this.oneClassCheckbox_Click);
            //
            // statusToolStripSeparator3
            //
            this.statusToolStripSeparator3.Size = new System.Drawing.Size(6, 25);
            //
            // autoSortCheckbox
            //
            this.autoSortCheckbox.Checked = LogParser.AutoSortFlag;
            this.autoSortCheckbox.Size    = new System.Drawing.Size(66, 22);
            this.autoSortCheckbox.Text    = "자동정렬";
            this.autoSortCheckbox.Click  += new System.EventHandler(this.autoSortCheckbox_Click);


            this.statusToolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.topMostCheckbox,
                this.statusToolStripSeparator1,
                this.opacityTrackBar,
                this.statusToolStripSeparator2,
                this.oneClassCheckbox,
                this.statusToolStripSeparator3,
                this.autoSortCheckbox
            });

            //2013-04-30
            this.labelVersion.Text += Version;
            //this.panelInformaion.Controls.Remove(this.panelUpdate);
            //this.panelUpdate.Controls.Clear();
            this.panelUpdate.Controls.Remove(this.progressBar1);


            toolStripClassViewItems            = new ToolStripMenuItem[12];
            toolStripClassViewItems[0]         = new ToolStripMenuItem("전체");
            toolStripClassViewItems[0].Checked = true;

            toolStripClassViewItems[1]  = new ToolStripMenuItem(SkillDictionary.GetClassString(ClassType.검성));
            toolStripClassViewItems[2]  = new ToolStripMenuItem(SkillDictionary.GetClassString(ClassType.수호성));
            toolStripClassViewItems[3]  = new ToolStripMenuItem(SkillDictionary.GetClassString(ClassType.살성));
            toolStripClassViewItems[4]  = new ToolStripMenuItem(SkillDictionary.GetClassString(ClassType.궁성));
            toolStripClassViewItems[5]  = new ToolStripMenuItem(SkillDictionary.GetClassString(ClassType.마도성));
            toolStripClassViewItems[6]  = new ToolStripMenuItem(SkillDictionary.GetClassString(ClassType.정령성));
            toolStripClassViewItems[7]  = new ToolStripMenuItem(SkillDictionary.GetClassString(ClassType.치유성));
            toolStripClassViewItems[8]  = new ToolStripMenuItem(SkillDictionary.GetClassString(ClassType.호법성));
            toolStripClassViewItems[9]  = new ToolStripMenuItem(SkillDictionary.GetClassString(ClassType.사격성));
            toolStripClassViewItems[10] = new ToolStripMenuItem(SkillDictionary.GetClassString(ClassType.음유성));
            toolStripClassViewItems[11] = new ToolStripMenuItem(SkillDictionary.GetClassString(ClassType.기갑성));
            foreach (ToolStripMenuItem item in toolStripClassViewItems)
            {
                item.Click += new EventHandler(item_Click);
            }
            this.toolStripClassView.DropDownItems.AddRange(toolStripClassViewItems);

            comboBoxSelectServer.Items.Add("");
            comboBoxSelectServer.Items.AddRange(ServerList.ServerName);

            this.panelPopup.Controls.Remove(this.progressBarBoss);
            HidePopup();

            //2013-09-30 분간측정 메뉴로 이동
            for (int i = 0; i < 10; i++)
            {
                ToolStripMenuItem ii = new ToolStripMenuItem((i + 1) + "분");
                this.분간측정ToolStripMenuItem.DropDownItems.Add(ii);
                ii.Click += new EventHandler(ii_Click);
            }

            if (this.tabControl1.Controls.Contains(hiddenTabPage))
            {
                this.tabControl1.Controls.Remove(this.hiddenTabPage);
            }
        }