Minor fixes
This commit is contained in:
parent
e4ee4c507d
commit
4a5e5c6c9d
@ -396,8 +396,8 @@ of LS without completing missions"))
|
|||||||
|
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
|
|
||||||
if (Ui::CheckboxWithHint("Hard mode", &hard_mode::state, "Makes the game more challanging to play. "
|
if (Ui::CheckboxWithHint("Hard mode", &hard_mode::state, "Makes the game more challanging to play. \n\
|
||||||
"Lowers\narmour, health, stamina etc."))
|
Lowers armour, health, stamina etc."))
|
||||||
{
|
{
|
||||||
CPlayerPed *player = FindPlayerPed();
|
CPlayerPed *player = FindPlayerPed();
|
||||||
|
|
||||||
|
@ -19,10 +19,10 @@ LRESULT Hook::WndProc(const HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||||||
if (Hook::show_mouse)
|
if (Hook::show_mouse)
|
||||||
{
|
{
|
||||||
patch::Nop(0x4EB9F4, 5); // disable radio scroll
|
patch::Nop(0x4EB9F4, 5); // disable radio scroll
|
||||||
Call<0x541BD0>(); // CPad::ClearMouseHistory
|
CPad::ClearMouseHistory();
|
||||||
|
|
||||||
if (uMsg == WM_MOUSEWHEEL)
|
if (uMsg == WM_MOUSEWHEEL)
|
||||||
CallWindowProc(oWndProc, hWnd, uMsg, 1.0, lParam);
|
return 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
patch::SetRaw(0x4EB9F4, (void*)"\xE8\x67\xFC\xFF\xFF", 5); // enable radio scroll
|
patch::SetRaw(0x4EB9F4, (void*)"\xE8\x67\xFC\xFF\xFF", 5); // enable radio scroll
|
||||||
@ -165,9 +165,8 @@ void Hook::ShowMouse(bool state)
|
|||||||
|
|
||||||
if (mouse_visibility != show_mouse)
|
if (mouse_visibility != show_mouse)
|
||||||
{
|
{
|
||||||
// Broken in psdk
|
CPad::ClearMouseHistory();
|
||||||
Call<0x541BD0>(); // CPad::ClearMouseHistory
|
CPad::UpdatePads();
|
||||||
Call<0x541DD0>(); // CPad::UpdatePads
|
|
||||||
|
|
||||||
ImGui::GetIO().MouseDrawCursor = state;
|
ImGui::GetIO().MouseDrawCursor = state;
|
||||||
CPad::NewMouseControllerState.X = 0;
|
CPad::NewMouseControllerState.X = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user