-- // rMinimap
-- // zork - 2012 | Retail-Anpassungen fuer Interface 120001

-----------------------------
-- INIT
-----------------------------

--get the addon namespace
local addon, ns = ...
local cfg = CreateFrame("Frame")
ns.cfg = cfg

-----------------------------
-- CONFIG
-----------------------------
-- r1.0.1: Release-Defaults (Cluster unten-rechts, Uhr y=24+Offset-DB, Infotext oben, Ring/Portal/Cog,
-- LibSharedMedia-Zonenschrift „Enchanted Land“, frameDragLocked Standard an). Siehe core.lua SetDefault().

-- SHIFT: gruenes Overlay = Cluster verschieben. ALT: rotes Overlay = auf der Karte ALT+Ziehen skaliert den ganzen Cluster (rMinimapDB.clusterScale).
cfg.mapcluster = {
  pos             = { a1 = "BOTTOMRIGHT", af = UIParent, a2 = "BOTTOMRIGHT", x = -19, y = 16 },
  userplaced      = true,
  scale           = 0.88,
}

cfg.map = {
  pos             = { a1 = "TOP", x = 10, y = -20 },
}

-- Uhr: feste Position am Minimap (kein Kreis-Drag). pos wie bei Blizzard-Ankern.
cfg.clock = {
  pos             = { a1 = "BOTTOM", af = Minimap, a2 = "BOTTOM", x = -4, y = 24 },
  font            = { size = 14, family = STANDARD_TEXT_FONT, outline = "THINOUTLINE" },
}

cfg.calendar = {
  size            = 25,
  pos             = { a1 = "CENTER", af = Minimap, a2 = "CENTER", x = 80, y = 70 },
  font            = { size = 12, family = STANDARD_TEXT_FONT, outline = "THINOUTLINE" },
}

cfg.mail = {
  size            = 25,
  pos             = { a1 = "CENTER", af = Minimap, a2 = "CENTER", x = 75, y = 0 },
}

cfg.tracking = {
  size            = 20,
  pos             = { a1 = "CENTER", af = Minimap, a2 = "CENTER", x = 90, y = 30 },
}

-- Blizzard Addon Compartment: Styling + Position am Ring. LibDBIcon-Broker erscheinen nur im Fach, nicht auf der Minimap.
cfg.compartment = {
  pos             = { a1 = "CENTER", af = Minimap, a2 = "CENTER", x = 88, y = 8 },
}

-- Minimap-Icons auf Kreisbahn: radius = nil -> halber Minimap-Durchmesser + inset
-- Linksklick+Ziehen = Winkel; ALT+Linksklick+Ziehen = Skalierung (wie rOrbs: diffY/100, 0.5–3.0), Speicher: rMinimapDB.ringIconScales
cfg.iconRing = {
  inset           = 10,
}

cfg.info = {
  pos             = { a1 = "TOP", af = Minimap, a2 = "BOTTOM", x = 0, y = -60 },
  --- Standard-Y wenn Infotext oberhalb der Minimap (BOTTOM der Zone an TOP der Minimap; groesser = weiter weg vom Rand).
  posAboveY       = 48,
  spacing         = -3,
  zoneFont        = { size = 35, family = STANDARD_TEXT_FONT, outline = "THINOUTLINE", scale = 0.8, color = { 217/255, 184/255, 106/255 } },
  perfFont        = { size = 28, family = STANDARD_TEXT_FONT, outline = "THINOUTLINE", scale = 0.45, color = { 142/255, 135/255, 127/255 } }, -- #8e877f
}

cfg.queue = {
  size            = 16,
  pos             = { a1 = "CENTER", af = Minimap, a2 = "CENTER", x = -52, y = -52 },
}
