If you save the path of the selected icon, coming from the value parameter of the setFunc of the icon picker, to
AuraMastery.svars.auraData[AuraMastery.activeAura].iconPath
you can use the getfunc to get the icon's path that was saved
return AuraMastery.svars.auraData[AuraMastery.activeAura].iconPath
And the same for the default icon path, if you have a default specified somewhere.
The controls are not inside a LAM panel as it seems (correct?) and thus won't get updated automatically via the getFunc I guess. Maybe you need to set the texture manually to the iconpicker by using the reference of the LAM control and use something like
WINDOW_MANAGER:GetControlByName(reference, "").icon:SetTexture(AuraMastery.svars.auraData[AuraMastery.activeAura].iconPath)
?
|