0 of 0

File information

Last updated

Original upload

Created by

Cosmin G

Uploaded by

CozmiNU

Virus scan

Safe to use

16 comments

  1. kaiserau92
    kaiserau92
    • supporter
    • 0 kudos
    This mod is making me drop items instead of equipping them - seems as if shift or control is being held down? Disabled it for now, it was actually working well.
  2. Maureeseeo
    Maureeseeo
    • premium
    • 1 kudos
    Brother, we need this function for every menu keybind that opens and doesn't close, like I for inventory as well. 
    1. sdjfgwsehnfjsfajn
      sdjfgwsehnfjsfajn
      • member
      • 1 kudos
      +
  3. vegaswanderer
    vegaswanderer
    • supporter
    • 123 kudos
    It works perfectly. Thank you!

    Would it be possible to have "Z" function as "Escape"? It would be much more comfortable to use Z to close menus instead of having to reach for Esc every time.
    1. nate1232
      nate1232
      • supporter
      • 1 kudos
      If you open the .lua file with notepad++ you should be able to change the key yourself
  4. EnoHlaalu
    EnoHlaalu
    • supporter
    • 0 kudos
    Yo, the thumbnail perfectly captures my reaction too to default behaviour XD. Thank you!
  5. eleventeen
    eleventeen
    • premium
    • 2 kudos
    By default both F4 and M open the map, so both should close it. IIRC thats how it works in the original game. I asked grok to mod your code for this, not sure if it did it optimally:

    print("MToCloseMap: Loading main.lua")
    local ELegacyPlayerMenuPage = {
        Stats = 0,
        Inventory = 1,
        Magic = 2,
        Map = 3,
        Quest = 4,
        Codex = 5,
        Settings = 6,
        MAX = 7,
    }
    bOpenedMap = false
    local function GetPlayerMenu()
        return FindFirstOf("VLegacyPlayerMenu")
    end
    local function IsOnMapPage(playerMenu)
        local playerMenuViewModel = playerMenu:GetViewModelRef()
        if not playerMenuViewModel then
            return false
        end
        if not playerMenuViewModel:IsVisible() then
            return false
        end
        local currentPage = playerMenuViewModel:GetCurrentPage()
        return currentPage == ELegacyPlayerMenuPage.Map
    end
    local function CloseMap()
        local playerMenu = GetPlayerMenu()
        if not playerMenu then
            return
        end
        if not IsOnMapPage(playerMenu) then
            return
        end
        playerMenu:CloseMenu()
    end
    RegisterKeyBind(Key.M, function()
        ExecuteInGameThread(function()
            CloseMap()
        end)
    end)
    RegisterKeyBind(Key.F4, function()
        ExecuteInGameThread(function()
            CloseMap()
        end)
    end)
    1. CozmiNU
      CozmiNU
      • premium
      • 42 kudos
      Yeah, that should work.
  6. Dispensation
    Dispensation
    • premium
    • 426 kudos
    Works great, thank you. Have you considered making T close the wait menu too?
  7. Swampfox92
    Swampfox92
    • supporter
    • 28 kudos
    YES THIS IS THE ONE
  8. GachikoiGaijin
    GachikoiGaijin
    • supporter
    • 0 kudos
    The picture is a work of art, amazing
  9. GrafVonFalkenstein
    GrafVonFalkenstein
    • supporter
    • 2 kudos
    Just to be sure; this is compatible with Auto Local Map, right?
    1. Taruken
      Taruken
      • premium
      • 0 kudos
      It is
    2. GrafVonFalkenstein
      GrafVonFalkenstein
      • supporter
      • 2 kudos
      Great 
  10. Agirlnamedmichael
    Agirlnamedmichael
    • supporter
    • 1 kudos
    It seems a silly thing but it's annoying when you don't have it- thanks for this!