diff --git a/DcConfig.cs b/DcConfig.cs index 6880c55..b09cb85 100644 --- a/DcConfig.cs +++ b/DcConfig.cs @@ -95,12 +95,12 @@ namespace DutyContent public class PacketConfig { // Packet - public string Version { get; set; } = "5.5"; - public ushort OpFate { get; set; } = 960; - public ushort OpDuty { get; set; } = 181; - public ushort OpMatch { get; set; } = 372; - public ushort OpInstance { get; set; } = 724; - public ushort OpSouthernBozja { get; set; } = 743; + public string Version { get; set; } = "5.5 HotFix"; + public ushort OpFate { get; set; } = 574; + public ushort OpDuty { get; set; } = 509; + public ushort OpMatch { get; set; } = 399; + public ushort OpInstance { get; set; } = 316; + public ushort OpSouthernBozja { get; set; } = 352; // public void Save(string filename = null) diff --git a/Overlay/DutyOvForm.cs b/Overlay/DutyOvForm.cs index 28d3841..3f016f7 100644 --- a/Overlay/DutyOvForm.cs +++ b/Overlay/DutyOvForm.cs @@ -161,9 +161,10 @@ namespace DutyContent.Overlay if (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.ForeColor = Color.FromArgb(255 - color.R, 255 - color.G, 255 - color.B); })); } } diff --git a/ThirdParty/NativeMethods.cs b/ThirdParty/NativeMethods.cs index 1b1f277..98593e7 100644 --- a/ThirdParty/NativeMethods.cs +++ b/ThirdParty/NativeMethods.cs @@ -19,6 +19,12 @@ namespace DutyContent.ThirdParty 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")] public static extern IntPtr OpenProcess(uint access_flag, bool inherit_handle, int process_id);