|
|
@ -226,11 +226,13 @@ void Overlay::ClickThrough(bool v)
|
|
|
|
if (v)
|
|
|
|
if (v)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
nv_edit = nv_default_in_game | WS_VISIBLE;
|
|
|
|
nv_edit = nv_default_in_game | WS_VISIBLE;
|
|
|
|
|
|
|
|
if (GetWindowLong(overlayHWND, GWL_EXSTYLE) != nv_ex_edit)
|
|
|
|
SetWindowLong(overlayHWND, GWL_EXSTYLE, nv_ex_edit);
|
|
|
|
SetWindowLong(overlayHWND, GWL_EXSTYLE, nv_ex_edit);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
nv_edit = nv_default | WS_VISIBLE;
|
|
|
|
nv_edit = nv_default | WS_VISIBLE;
|
|
|
|
|
|
|
|
if (GetWindowLong(overlayHWND, GWL_EXSTYLE) != nv_ex_edit_menu)
|
|
|
|
SetWindowLong(overlayHWND, GWL_EXSTYLE, nv_ex_edit_menu);
|
|
|
|
SetWindowLong(overlayHWND, GWL_EXSTYLE, nv_ex_edit_menu);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -288,14 +290,14 @@ DWORD Overlay::CreateOverlay()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (GetWindowLong(overlayHWND, GWL_STYLE) != nv_edit)
|
|
|
|
if (GetWindowLong(overlayHWND, GWL_STYLE) != nv_edit)
|
|
|
|
SetWindowLong(overlayHWND, GWL_STYLE, nv_edit);
|
|
|
|
SetWindowLong(overlayHWND, GWL_STYLE, nv_edit);
|
|
|
|
if (GetWindowLong(overlayHWND, GWL_EXSTYLE) != nv_ex_edit)
|
|
|
|
|
|
|
|
SetWindowLong(overlayHWND, GWL_EXSTYLE, nv_ex_edit);
|
|
|
|
|
|
|
|
if (show_menu)
|
|
|
|
if (show_menu)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ClickThrough(false);
|
|
|
|
ClickThrough(false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (GetWindowLong(overlayHWND, GWL_EXSTYLE) != nv_ex_edit)
|
|
|
|
|
|
|
|
SetWindowLong(overlayHWND, GWL_EXSTYLE, nv_ex_edit);
|
|
|
|
ClickThrough(true);
|
|
|
|
ClickThrough(true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|