vmread
MisterY52 4 years ago
parent 2d5f7d0da4
commit c42b1f1cce

@ -218,7 +218,7 @@ void DoActions(WinProcess& mem)
case 1:
if (spectators > 0)
{
if(!player_glow && Target.isGlowing())
if(Target.isGlowing())
{
Target.disableGlow(mem);
}
@ -228,7 +228,7 @@ void DoActions(WinProcess& mem)
case 2:
if (spectators+allied_spectators > 0)
{
if(!player_glow && Target.isGlowing())
if(Target.isGlowing())
{
Target.disableGlow(mem);
}

@ -28,7 +28,7 @@
#define OFFSET_BULLET_SPEED 0x1e0c
#define OFFSET_BULLET_SCALE 0x1e14
#define OFFSET_ITEM_GLOW 0x2A8
#define OFFSET_ITEM_GLOW 0x2A8 //m_highlightFunctionBits
#define OFFSET_GLOW_T1 0x262 //16256 = enabled, 0 = disabled
#define OFFSET_GLOW_T2 0x2c4 //1193322764 = enabled, 0 = disabled

@ -226,11 +226,13 @@ void Overlay::ClickThrough(bool v)
if (v)
{
nv_edit = nv_default_in_game | WS_VISIBLE;
if (GetWindowLong(overlayHWND, GWL_EXSTYLE) != nv_ex_edit)
SetWindowLong(overlayHWND, GWL_EXSTYLE, nv_ex_edit);
}
else
{
nv_edit = nv_default | WS_VISIBLE;
if (GetWindowLong(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)
SetWindowLong(overlayHWND, GWL_STYLE, nv_edit);
if (GetWindowLong(overlayHWND, GWL_EXSTYLE) != nv_ex_edit)
SetWindowLong(overlayHWND, GWL_EXSTYLE, nv_ex_edit);
if (show_menu)
{
ClickThrough(false);
}
else
{
if (GetWindowLong(overlayHWND, GWL_EXSTYLE) != nv_ex_edit)
SetWindowLong(overlayHWND, GWL_EXSTYLE, nv_ex_edit);
ClickThrough(true);
}
}

Loading…
Cancel
Save