Stanzilla / AdvancedInterfaceOptions

WoW Addon that restores access to removed interface options in Legion
https://www.curseforge.com/wow/addons/advancedinterfaceoptions
48 stars 11 forks source link

Missing CVars #38

Closed Justw8 closed 1 year ago

Justw8 commented 3 years ago

It looks like there are new CVARS that I could have used, which I could not find in the list.

e.g: SetCVar("AutoPushSpellToActionBar", 0)

I noticed the cvar files are quite old, can this be updated?

Ketho commented 3 years ago

The cvars are fed directly from C_Console.GetAllCommands() but it seems a bunch of them are not yet returned until after VARIABLES_LOADED or PLAYER_ENTERING_WORLD

local function GetCVars()
    local t = {}
    for _, v in pairs(C_Console.GetAllCommands()) do
        t[v.command] = true
    end
    return t
end

local fresh = GetCVars()
local f = CreateFrame("Frame")
f:RegisterEvent("PLAYER_ENTERING_WORLD")
f:SetScript("OnEvent", function()
    local pew = GetCVars()
    for k in pairs(pew) do
        if not fresh[k] then
            print(k)
        end
    end
end)

Unavailable on fresh login until PEW

"AutoPushSpellToActionBar"
"MaxObservedPetBattles"
"ObjectSelectionCircle"
"SplineOpt"
"bodyQuota"
"outlineMouseOverFadeDuration"
"outlineSelectionFadeDuration"
"persistMoveLogOnTransfer"
"showPlayer"
"smoothUnitPhasing"
"smoothUnitPhasingActorPurgatoryTimeMs"
"smoothUnitPhasingAliveTimeoutMs"
"smoothUnitPhasingDestroyedPurgatoryTimeMs"
"smoothUnitPhasingDistThreshold"
"smoothUnitPhasingEnableAlive"
"smoothUnitPhasingUnseenPurgatoryTimeMs"
"smoothUnitPhasingVehicleExtraTimeoutMs"
"whois"

Unavailable on /reload until PEW

"AutoPushSpellToActionBar"
"latestSplashScreen"
semlar commented 1 year ago

Cleaning up old issues; reopen if this is something that should be addressed.