I'm about 3 hours in to my first attempt at creating (err, finding one and building on to it) an addon. I found an addon that I thought was a good start, but lacked a lot of what I desired, so why not learn LUA and write my own eh?
What I've had a tough time doing is creating a toggle effect when using slash commands + Msg.
As you can see in the code, if Msg == "on" then I CreateFrame. If Msg == "off", essentially I would like to just undo the CreateFrame that I just created. I can't figure out how to do this without just applying a ReloadUI (as you see commented out), which, while effective, rather annoying.
Any help would be much appreciated!
--Tribute to Kip who's code I copied and altered... Consider this Kudos for your 'Bootstrap'
--define global vars (saved between sessions)
--define local module vars and defaults
local AddonVersion = GetAddOnMetadata("RyinnsCursorFinder", "Version")