C_ClassTalents .GetLastSelectedSavedConfigID
Jump to navigation
Jump to search
Flavors |
---|
Links |
Info |
Added in 10.0.0 |
Returns your selected talent loadout, if any
configID = C_ClassTalents.GetLastSelectedSavedConfigID(specID)
Arguments
- specID
- number - SpecializationID e.g.
PlayerUtil.GetCurrentSpecID()
Returns
- configID
- number?
Details
This will return whatever was set with C_ClassTalents.UpdateLastSelectedSavedConfigID. Which means that if a badly written addon applies a loadout (through C_ClassTalents.LoadConfig), this value might not accurately reflect the current loadout.
If you're currently in a starter build, the configID is -2 (as per Constants.TraitConsts.STARTER_BUILD_TRAIT_CONFIG_ID
)
See Also
- C_ClassTalents.UpdateLastSelectedSavedConfigID which sets the value retrieved with this API
- C_Traits.GetConfigInfo to retrieve the loadout name
- C_ClassTalents.GetConfigIDsBySpecID to list talent loadouts
|