5.5 HotFix
This commit is contained in:
parent
8ea384426b
commit
27c41df64e
3 changed files with 15 additions and 8 deletions
12
DcConfig.cs
12
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)
|
||||
|
|
|
@ -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);
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
|
6
ThirdParty/NativeMethods.cs
vendored
6
ThirdParty/NativeMethods.cs
vendored
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue