Sort duty German
Clickthru native method
This commit is contained in:
parent
18a47a9bb6
commit
590749621c
5 changed files with 1840 additions and 1846 deletions
File diff suppressed because it is too large
Load diff
|
@ -73,11 +73,11 @@ LANG=한국어
|
|||
334=그래프 보기
|
||||
335=클라이언트의 접속이 없을때 사용할 DC 선택
|
||||
|
||||
10001="{0}" 발생했어요!
|
||||
10002=찾습니다: {0}
|
||||
10003=매칭됐어요: {0}
|
||||
10004=들어가요: {0}
|
||||
10005={0} 발생했어요!
|
||||
10001="{0}" 떠스요!
|
||||
10002=찾아요: {0}
|
||||
10003=매칭: {0}
|
||||
10004=들감미: {0}
|
||||
10005={0} 떠쓰요!
|
||||
10006=대기 갯수: {0}
|
||||
10007=시작
|
||||
10008=취소
|
|
@ -186,7 +186,7 @@
|
|||
<Resource Include="Data\ServerList.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Data\DcLang-Korean.txt" />
|
||||
<Resource Include="Data\DcLang-Korean%28Test%29.txt" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
|
|
|
@ -35,12 +35,6 @@ namespace DutyContent.Tab
|
|||
_overlay = new Overlay.DutyOvForm();
|
||||
}
|
||||
|
||||
// Used for click-through function
|
||||
[DllImport("user32.dll", SetLastError = true)]
|
||||
static extern int GetWindowLong(IntPtr hWnd, int nIndex);
|
||||
[DllImport("user32.dll")]
|
||||
static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);
|
||||
|
||||
private void DutyTabForm_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
|
||||
|
@ -1143,7 +1137,7 @@ namespace DutyContent.Tab
|
|||
|
||||
private static readonly short[] _packet_target_fates =
|
||||
{
|
||||
// moddle la noscea
|
||||
// middle la noscea
|
||||
553, 649, 687, 688, 693, 717,
|
||||
220, 221, 222, 223, 225, 226, 227, 229, 231, 233, 235, 237, 238, 239, 240,
|
||||
1387,
|
||||
|
@ -1330,27 +1324,27 @@ namespace DutyContent.Tab
|
|||
|
||||
void EnableOverlayClickThru()
|
||||
{
|
||||
int initialStyle = GetWindowLong(_overlay.Handle, -20);
|
||||
long initialStyle = (long)ThirdParty.NativeMethods.GetWindowLong(_overlay.Handle, -20);
|
||||
if (DcConfig.Duty.OverlayClickThru)
|
||||
{
|
||||
SetWindowLong(_overlay.Handle, -20, initialStyle | 0x80000 | 0x20);
|
||||
ThirdParty.NativeMethods.SetWindowLong(_overlay.Handle, -20, (IntPtr)(initialStyle | 0x80000 | 0x20));
|
||||
}
|
||||
else
|
||||
{
|
||||
SetWindowLong(_overlay.Handle, -20, (0x00000 | 0x80000));
|
||||
ThirdParty.NativeMethods.SetWindowLong(_overlay.Handle, -20, (IntPtr)(0x00000 | 0x80000));
|
||||
}
|
||||
}
|
||||
|
||||
void DisableOverlayClickThru()
|
||||
{
|
||||
int initialStyle = GetWindowLong(_overlay.Handle, -20);
|
||||
long initialStyle = (long)ThirdParty.NativeMethods.GetWindowLong(_overlay.Handle, -20);
|
||||
if (DcConfig.Duty.OverlayClickThru)
|
||||
{
|
||||
SetWindowLong(_overlay.Handle, -20, initialStyle | 0x80000 | 0x20);
|
||||
ThirdParty.NativeMethods.SetWindowLong(_overlay.Handle, -20, (IntPtr)(initialStyle | 0x80000 | 0x20));
|
||||
}
|
||||
else
|
||||
{
|
||||
SetWindowLong(_overlay.Handle, -20, (0x00000 | 0x80000));
|
||||
ThirdParty.NativeMethods.SetWindowLong(_overlay.Handle, -20, (IntPtr)(0x00000 | 0x80000));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
2
ThirdParty/NativeMethods.cs
vendored
2
ThirdParty/NativeMethods.cs
vendored
|
@ -19,7 +19,7 @@ namespace DutyContent.ThirdParty
|
|||
richTextBox.SelectionStart = richTextBox.Text.Length;
|
||||
}
|
||||
|
||||
[DllImport("user32.dll")]
|
||||
[DllImport("user32.dll", SetLastError = true)]
|
||||
public static extern IntPtr GetWindowLong(IntPtr hwnd, int index);
|
||||
|
||||
[DllImport("user32.dll")]
|
||||
|
|
Loading…
Reference in a new issue