View Single Post
05/08/17, 02:32 PM   #7
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
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)

?
  Reply With Quote