I did change the saved file in my toc to BEWdb, BokSettings is my main table that stores all my values so i had to create a new empty table to store the minimapIcon values
All the current code pertaining to this problem is here in this pasteybin link
Yeah, it's definitely the way you're initializing everything so early. I loaded your Lua, moved the button, reloaded UI, got a random position. Changed the Lua to delay initializing and registering stuff until later in the loading process, moved the button, reloaded, button stayed where I'd put it.
Thank you soooo much. Now i don't know how it handles hiding the minimap icon itself, so i made another function to make sure the icon is hidden/shown based on user preference. I use this same function to hide/show all my frames upon login and it works fine but im getting thrown an error, even though the function stills perfoorms properly.
[2009/02/02 23:53:19-704-x1]: LibDBIcon-1.0\LibDBIcon-1.0.lua:242: attempt to index field '?' (a nil value)
Boks_Easy_Warr-2.7.0\Boks_Easy_Warr.lua:589: in function `FramesVisi_OnLoad'
<string>:"*:OnEvent":1: in function <[string "*:OnEvent"]:1>
It seems like it cant index the object? The function performs fine but this error is annoying. I put this function high up in my Lua to make sure it wasn't a problem with the order. From reviewing it it also seems like the library might have a auto hide/show feature? And from what someone said earlier i think it does but its not doing anything about this. Must i provide some dummy value for the addon to use?
Also the function that the library uses to hide the icon seems to be a simple reference to the icon frame itself so i might just do that myself, it'll keep it the same as to how my addon handles all of its showing/hiding.
That doesn't matter, Xin, I passed it an empty table in my test, and it worked fine. LDBIcon will populate with default values if none exist.
Hellmonkey, please post the contents of your "FramesVisi_OnLoad" function and mark which line is #589. That's where the error is originating, but without seeing your code, I couldn't really say why the error is occuring.
Thank all you guys SOOOOOO much! With a little bit more tweaking i got everything the way i like and it works great, well great for my lack of programming skills anyway :P Thanks a ton, now for future reference i think ill be able to do this a lot easier. Woulda epic failed without you guys.
Just uploaded it to curse and wowinterface and awaiting approval, at least hope any downloaders of it are satisfied :P