5.5 HotFix

This commit is contained in:
kshman 2021-04-28 13:46:03 +09:00
parent 8ea384426b
commit 27c41df64e
3 changed files with 15 additions and 8 deletions

View file

@ -95,12 +95,12 @@ namespace DutyContent
public class PacketConfig public class PacketConfig
{ {
// Packet // Packet
public string Version { get; set; } = "5.5"; public string Version { get; set; } = "5.5 HotFix";
public ushort OpFate { get; set; } = 960; public ushort OpFate { get; set; } = 574;
public ushort OpDuty { get; set; } = 181; public ushort OpDuty { get; set; } = 509;
public ushort OpMatch { get; set; } = 372; public ushort OpMatch { get; set; } = 399;
public ushort OpInstance { get; set; } = 724; public ushort OpInstance { get; set; } = 316;
public ushort OpSouthernBozja { get; set; } = 743; public ushort OpSouthernBozja { get; set; } = 352;
// //
public void Save(string filename = null) public void Save(string filename = null)

View file

@ -161,9 +161,10 @@ namespace DutyContent.Overlay
if (rtt > 999) if (rtt > 999)
rtt = 999; rtt = 999;
lblStat.Text = string.Format("{0}{1}{2:0.#}%", rtt, Environment.NewLine, loss); lblStat.Text = (Math.Abs(loss) < 0.0001)
? string.Format("{0}", rtt)
: string.Format("{0}{1}{2:0.#}%", rtt, Environment.NewLine, loss);
lblStat.BackColor = color; lblStat.BackColor = color;
//lblStat.ForeColor = Color.FromArgb(255 - color.R, 255 - color.G, 255 - color.B);
})); }));
} }
} }

View file

@ -19,6 +19,12 @@ namespace DutyContent.ThirdParty
richTextBox.SelectionStart = richTextBox.Text.Length; richTextBox.SelectionStart = richTextBox.Text.Length;
} }
[DllImport("user32.dll")]
public static extern IntPtr GetWindowLong(IntPtr hwnd, int index);
[DllImport("user32.dll")]
public static extern IntPtr SetWindowLong(IntPtr hwnd, int index, IntPtr dwNewLong);
[DllImport("kernel32.dll")] [DllImport("kernel32.dll")]
public static extern IntPtr OpenProcess(uint access_flag, bool inherit_handle, int process_id); public static extern IntPtr OpenProcess(uint access_flag, bool inherit_handle, int process_id);