I figured I would make this post, considering I couldn't find anything on it, and well, it might be useful for others!
I can't get my minimap shape to save. It doesn't save when I log in or out. I got everything else to save, but the shape, and I don't know what to tell it to do in order for it to save...
What would I put into my db?
Example of my db:
Code:
local defaults = {
align = "TOPRIGHT",
x = -25,
y = -25,
scale = 0.8,
locked = true,
shape = "SQUARE"
}
Minimap:SetPoint(defaults.align, UIParent, db.align, db.x, db.y)
Minimap:SetScale(defaults.scale)
What would I put for the shape for it to save?
Code:
function GetMinimapShape() return (defaults.shape) end
Also in my slash command, example
Code:
if msg == "round" then
Minimap:SetMaskTexture"Interface\\AddOns\\MidgetMap\\media\\circlemask"
function GetMinimapShape() return "ROUND" end
db.shape = GetMinimapShape()
end
Would I put in above db.shape = GetMinimapShape()?
I know alot of questions
So far I have above but its not saving. I tried to use reference, but I am unable to find reference for shape. Any help is appreciated!
Thanks