View Single Post
10-05-12, 10:22 AM   #1
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 758
Map size/scale and move

1. I tryed to set different scales for map and other windows with nibWindowSize. It was not working so i copyed the addon only used what was needed BUT if you make the map big and small again the map will loose its size

2. Then I tryed to make the map moveable with DragEmAll by adding

Lua Code:
  1. ["WorldMapTitleButton"] = true,
  2. ["WorldMapPositioningGuide"] = true,
  3. ["WorldMapFrame"] = true,
  4. ["WorldMapBlobFrame"] = true,

BUT the BlobFrame won't move if I move the map the Quest blobs stay ;(

3. I also tryed out AlleyMap but is not realy up to date and addons buttons like MozzFullWorldMap don't stick to the map if i move it also I don't loke the cords of this addon woud love to use MapCoords so I can see player and cursor in white font at the bottom (but MapCoords won't stick too AlleyMap).


(code for 1.)
Lua Code:
  1. local Opts = MapSize_Cfg
  2. local mS = CreateFrame("Frame")
  3. local StandardFrames = {
  4.     "WorldMapFrame",
  5. }
  6. -- Resize Frame table
  7. local ResizeFrames = StandardFrames
  8. -- Adjust Map Size
  9. function mS.ResizeWindows()
  10.     for i,v in pairs(ResizeFrames) do
  11.         local f = _G[v]
  12.         if f then
  13.                 f:SetScale(Opts.scale)
  14.             end
  15.         end
  16.     end
  17. ----
  18. local function EventHandler(self, event, ...)
  19.     mS.ResizeWindows()
  20. end
  21. mS:RegisterEvent("PLAYER_LOGIN")
  22. mS:RegisterEvent("ADDON_LOADED")
  23. mS:SetScript("OnEvent", EventHandler)

and
Lua Code:
  1. MapSize_Cfg = {
  2. -- Window Size
  3. scale = 2.25,       -- 1 = Normal
  4. }
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________
  Reply With Quote