--- /dev/null
+// Copyright (C) 2014 Kazuhiro Fujieda <fujieda@users.sourceforge.jp>\r
+// \r
+// This program is part of KancolleSniffer.\r
+//\r
+// KancolleSniffer is free software: you can redistribute it and/or modify\r
+// it under the terms of the GNU General Public License as published by\r
+// the Free Software Foundation, either version 3 of the License, or\r
+// (at your option) any later version.\r
+//\r
+// This program is distributed in the hope that it will be useful,\r
+// but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
+// GNU General Public License for more details.\r
+//\r
+// You should have received a copy of the GNU General Public License\r
+// along with this program; if not, see <http://www.gnu.org/licenses/>.\r
+\r
+namespace KancolleSniffer\r
+{\r
+ public class Achievement\r
+ {\r
+ private int _start;\r
+ private int _current;\r
+\r
+ public double Value { get { return (_current - _start) / 1428.0; } }\r
+\r
+ public void InspectBasic(dynamic json)\r
+ {\r
+ _current = (int)json.api_experience;\r
+ if (_start == 0)\r
+ _start = _current;\r
+ }\r
+ }\r
+}
\ No newline at end of file
this.labelFleet3 = new System.Windows.Forms.Label();\r
this.labelCheckFleet2 = new System.Windows.Forms.Label();\r
this.labelFleet2 = new System.Windows.Forms.Label();\r
+ this.label28 = new System.Windows.Forms.Label();\r
+ this.labelAchievement = new System.Windows.Forms.Label();\r
this.panelHeadquarters.SuspendLayout();\r
this.panelFleet1.SuspendLayout();\r
this.panelDock.SuspendLayout();\r
// \r
this.panelHeadquarters.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;\r
this.panelHeadquarters.Controls.Add(this.labelLogin);\r
+ this.panelHeadquarters.Controls.Add(this.labelAchievement);\r
+ this.panelHeadquarters.Controls.Add(this.label28);\r
this.panelHeadquarters.Controls.Add(this.labelNumOfBuckets);\r
this.panelHeadquarters.Controls.Add(this.label3);\r
this.panelHeadquarters.Controls.Add(this.labelNumOfEquips);\r
// \r
// labelNumOfBuckets\r
// \r
- this.labelNumOfBuckets.Location = new System.Drawing.Point(120, 19);\r
+ this.labelNumOfBuckets.Location = new System.Drawing.Point(118, 19);\r
this.labelNumOfBuckets.Name = "labelNumOfBuckets";\r
this.labelNumOfBuckets.Size = new System.Drawing.Size(29, 12);\r
this.labelNumOfBuckets.TabIndex = 5;\r
// label3\r
// \r
this.label3.AutoSize = true;\r
- this.label3.Location = new System.Drawing.Point(116, 4);\r
+ this.label3.Location = new System.Drawing.Point(114, 4);\r
this.label3.Name = "label3";\r
this.label3.Size = new System.Drawing.Size(33, 12);\r
this.label3.TabIndex = 4;\r
// \r
// labelNumOfEquips\r
// \r
- this.labelNumOfEquips.Location = new System.Drawing.Point(55, 19);\r
+ this.labelNumOfEquips.Location = new System.Drawing.Point(57, 19);\r
this.labelNumOfEquips.Name = "labelNumOfEquips";\r
this.labelNumOfEquips.Size = new System.Drawing.Size(47, 12);\r
this.labelNumOfEquips.TabIndex = 3;\r
// label2\r
// \r
this.label2.AutoSize = true;\r
- this.label2.Location = new System.Drawing.Point(61, 4);\r
+ this.label2.Location = new System.Drawing.Point(63, 4);\r
this.label2.Name = "label2";\r
this.label2.Size = new System.Drawing.Size(41, 12);\r
this.label2.TabIndex = 2;\r
// \r
// labelNumOfShips\r
// \r
- this.labelNumOfShips.Location = new System.Drawing.Point(0, 19);\r
+ this.labelNumOfShips.Location = new System.Drawing.Point(2, 19);\r
this.labelNumOfShips.Name = "labelNumOfShips";\r
this.labelNumOfShips.Size = new System.Drawing.Size(47, 12);\r
this.labelNumOfShips.TabIndex = 1;\r
// label1\r
// \r
this.label1.AutoSize = true;\r
- this.label1.Location = new System.Drawing.Point(6, 4);\r
+ this.label1.Location = new System.Drawing.Point(8, 4);\r
this.label1.Name = "label1";\r
this.label1.Size = new System.Drawing.Size(41, 12);\r
this.label1.TabIndex = 0;\r
this.labelFleet2.Text = "第二艦隊";\r
this.labelFleet2.Click += new System.EventHandler(this.labelFleet_Click);\r
// \r
+ // label28\r
+ // \r
+ this.label28.AutoSize = true;\r
+ this.label28.Location = new System.Drawing.Point(162, 4);\r
+ this.label28.Name = "label28";\r
+ this.label28.Size = new System.Drawing.Size(29, 12);\r
+ this.label28.TabIndex = 6;\r
+ this.label28.Text = "戦果";\r
+ // \r
+ // labelAchievement\r
+ // \r
+ this.labelAchievement.Location = new System.Drawing.Point(148, 19);\r
+ this.labelAchievement.Name = "labelAchievement";\r
+ this.labelAchievement.Size = new System.Drawing.Size(43, 12);\r
+ this.labelAchievement.TabIndex = 7;\r
+ this.labelAchievement.Text = "0.0";\r
+ this.labelAchievement.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\r
+ // \r
// MainForm\r
// \r
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);\r
private System.Windows.Forms.Label label27;\r
private System.Windows.Forms.Label labelLogin;\r
private System.Windows.Forms.Label labelAkashiTimer;\r
+ private System.Windows.Forms.Label labelAchievement;\r
+ private System.Windows.Forms.Label label28;\r
}\r
}\r
\r