Das Kapitel „Gold Road“ (inklusive des Schriftlehre-Systems) und Update 42 können jetzt auf dem öffentlichen Testserver getestet werden! Hier könnt ihr die aktuellen Patchnotizen lesen: https://forums.elderscrollsonline.com/en/discussion/656454/
Wartungsarbeiten in der Woche vom 22. April:
• PC/Mac: EU und NA Megaserver für einen neuen Patch – 22. April, 10:00 – 15:00 MESZ
• Xbox: EU und NA Megaserver für einen neuen Patch – 24. April, 12:00 – 18:00 MESZ
• PlayStation®: EU und NA Megaserver für einen neuen Patch – 24. April, 12:00 – 18:00 MESZ

Add-On gesucht: Toggle Mount Upgrade Sichtbarkeit per Keybind

offshade
offshade
✭✭✭
Hallo zusammen, lang ist's her...
Heute bin ich auf der Suche nach einer Möglichkeit, die Sichtbarkeit der Mount Upgrades per Keybind an- und auszuschalten.
Kennt Ihr da was?
LG!
May you walk on warm sands...
  • Baertram
    Baertram
    ✭✭✭✭✭
    @offshade Ich hoffe du sprichst English. Ich hatte das hier unten bereits geschrieben bis ich bemerkt habe, dass wir ja im Deutschen Forum sind :-)
    Falls nicht melde dich oder übersetze es bitte mit translate.google.de von Englisch nach Deutsch.


    Try to add this to any of your addon's callback function of EVENT_ADD_ON_LOADED (this means: Search in any of your addons for EVENT_ADD_ON_LOADED. There should be something like
    EVENT_MANAGER:RegisterForEvent("name of addon here", EVENT_ADD_ON_LOADED, callbackFunctionNameHere)

    Search for the callbackFunctionNameHere string in the files and there should be somethng like
    function callbackFunctionNameHere(eventid, addOnName)
    if addOnName ~= "name of addon here" then return end
    ...
    end

    ... means other code lines
    After these code lines, before the end of that function insert this:
    local function onSlashHandlerMountUpgrade()
        local oldValue = GetSetting_Bool(SETTING_TYPE_IN_WORLD, IN_WORLD_UI_SETTING_HIDE_MOUNT_STAMINA_UPGRADE)
        local newValue = "true"
        if oldValue then
            newValue = "false"
        end
        SetSetting(SETTING_TYPE_IN_WORLD, IN_WORLD_UI_SETTING_HIDE_MOUNT_STAMINA_UPGRADE,   newValue)
        SetSetting(SETTING_TYPE_IN_WORLD, IN_WORLD_UI_SETTING_HIDE_MOUNT_SPEED_UPGRADE,     newValue)
        SetSetting(SETTING_TYPE_IN_WORLD, IN_WORLD_UI_SETTING_HIDE_MOUNT_INVENTORY_UPGRADE, newValue)
    end
    SLASH_COMMANDS["/changemountupgrade"] = onSlashHandlerMountUpgrade
    
    

    Via the slash command /changemountupgrade you should be able to switch the settings of the mount upgrade stuff visiblity now. It depends on the current setting of the "stamina upgrade"! Means if stamina upgrade is enabled all 2 will get disabled with that slash command, and vice versa.


    It's not keybind but should help for the moment
    Edited by Baertram on 25. Januar 2022 15:38
Anmelden oder Registrieren, um zu kommentieren.