View Single Post
04-15-24, 01:56 AM   #24
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,950
That I don't know as I never really used the minimap icon.

bugsack uses it but it doesn't save anything to it apart from whether it shows it on the minimap or not.


Okay, looking at a few query posts about the icon .. and a look in the libdbicon source file itself I can see that they have set aside a table of values for saving the minimap values if the minimap icon addon chooses to do so.

Lua Code:
  1. minimapIcon = {
  2.             hide = false,
  3.             lock = false,
  4.             minimapPos = 205,
  5.             radius = 80
  6.         }

Now looking at
Lua Code:
  1. ## SavedVariables: TestingAddonSettingsData
Lua Code:
  1. icon:Register(addonName, minimapIcon, TestingAddonSettingsData.minimapIcon)

Would be the better set up allowing your addon to have other settings for the rest of the addon and the minimapIcon section for the minimap icon part.
In theory the libdbicon stuff should handle the saving of it, as long as you set it up.
So, lets give that a whirl on my test example I made before to see if my theory works out.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote