feat(menu): add additional open key for keyboards without a numpad

This commit is contained in:
maybegreat48
2025-06-04 19:32:09 -04:00
parent 6e2bad3c69
commit 8aadf51311
4 changed files with 8 additions and 3 deletions
+4
View File
@@ -10,6 +10,10 @@ Experimental menu for GTA 5: Enhanced
4. Open Rockstar Launcher, select Grand Theft Auto V Enhanced, go to settings, and disable BattlEye. If you are using Steam or Epic Games, you may have to pass the -nobattleye command line parameter as well
5. Launch GTA V, then use your injector to inject YimMenuV2.dll at the main menu
## How to open the menu?
Press the `INSERT` key or `Ctrl+\` to open the menu
## Common issues
### I keep getting desynced from public sessions every five minutes
+2 -1
View File
@@ -59,7 +59,8 @@ namespace YimMenu
void GUI::WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
{
if (msg == WM_KEYUP && wparam == VK_INSERT)
if (msg == WM_KEYUP
&& (wparam == VK_INSERT || (wparam == VK_OEM_5 && (GetKeyState(VK_CONTROL) & 0x8000) != 0)))
{
// Persist and restore the cursor position between menu instances
static POINT CursorCoords{};
+1 -1
View File
@@ -30,7 +30,7 @@ namespace YimMenu
if (ImGui::BeginPopupModal("IMPORTANT! PLEASE READ!", nullptr, ImGuiWindowFlags_NoSavedSettings))
{
ImGui::TextWrapped("%s",
"Welcome to YimMenuV2! With the introduction of BattlEye, the ability to join and stay in public sessions has been severely limited. "
"Welcome to YimMenuV2! You can press INSERT or Ctrl+\\ to open the menu. With the introduction of BattlEye, the ability to join and stay in public sessions has been severely limited. "
"You have an option to play only with other YimMenu users, or you can choose to connect to regular BattlEye-protected sessions. "
"You will automatically be kicked out of regular sessions in under three minutes, and you may be temporarily blacklisted from "
"joining for up to two days, even after re-enabling BattlEye"
@@ -311,7 +311,7 @@ namespace YimMenu::Submenus
return hash == "CATEGORY_PRICE_MODIFIER"_J || hash == "CATEGORY_PRICE_OVERRIDE"_J;
}
bool ShouldSwapItemParams(std::uint32_t hash) // Position - 0x3815F (229727)
bool ShouldSwapItemParams(std::uint32_t hash)
{
switch (hash)
{