mirror of
https://gitlab.com/hashborgir/d2tweaks-rnd2k.git
synced 2024-12-02 13:45:58 +00:00
cleanup
This commit is contained in:
parent
69965f77d1
commit
9e57031fdd
@ -490,6 +490,7 @@ LRESULT d2_tweaks::ui::ui_manager::wnd_proc(HWND hWnd, UINT msg, WPARAM wParam,
|
|||||||
|
|
||||||
case WM_RBUTTONDOWN:
|
case WM_RBUTTONDOWN:
|
||||||
{
|
{
|
||||||
|
|
||||||
// Get the local player object from the Diablo 2 client
|
// Get the local player object from the Diablo 2 client
|
||||||
const auto player = diablo2::d2_client::get_local_player();
|
const auto player = diablo2::d2_client::get_local_player();
|
||||||
|
|
||||||
@ -825,6 +826,8 @@ LRESULT d2_tweaks::ui::ui_manager::wnd_proc(HWND hWnd, UINT msg, WPARAM wParam,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
case WM_RBUTTONUP:
|
case WM_RBUTTONUP:
|
||||||
{
|
{
|
||||||
block = instance.process_right_mouse(true);
|
block = instance.process_right_mouse(true);
|
||||||
@ -839,17 +842,11 @@ LRESULT d2_tweaks::ui::ui_manager::wnd_proc(HWND hWnd, UINT msg, WPARAM wParam,
|
|||||||
|
|
||||||
// Check if the wheel is scrolled upwards
|
// Check if the wheel is scrolled upwards
|
||||||
if (zDelta > 0) {
|
if (zDelta > 0) {
|
||||||
// Send a packet to activate the transmute button in the cube
|
|
||||||
diablo2::d2_client::send_to_server_7(0x4F, 0x18, 0, 0);
|
|
||||||
|
|
||||||
// Process the mouse wheel input by scrolling upwards
|
// Process the mouse wheel input by scrolling upwards
|
||||||
block = instance.process_mouse_wheel(true);
|
block = instance.process_mouse_wheel(true);
|
||||||
}
|
}
|
||||||
// Check if the wheel is scrolled downwards
|
// Check if the wheel is scrolled downwards
|
||||||
else if (zDelta < 0) {
|
else if (zDelta < 0) {
|
||||||
// Send a packet to activate the transmute button in the cube
|
|
||||||
diablo2::d2_client::send_to_server_7(0x4F, 0x18, 0, 0);
|
|
||||||
|
|
||||||
// Process the mouse wheel input by scrolling downwards
|
// Process the mouse wheel input by scrolling downwards
|
||||||
block = instance.process_mouse_wheel(false);
|
block = instance.process_mouse_wheel(false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user