Reply
Thread Tools Display Modes
Unread 07-25-12, 03:05 PM   #1
Rammoth
A Cliff Giant
 
Rammoth's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 73
Lightbulb Resizing Minimap ON THE FLY

Is this possible to do? If so, can I please request it?

I find it useful, and I'm surprised that I cannot find something like it yet.

If you need an example - in Guild Wars 2 the Minimap has 3 ridges on the top left corner in the screenshot below, it allows you to resize it accordingly:

Rammoth is offline   Reply With Quote
Unread 07-25-12, 03:20 PM   #2
Coote
A Scalebane Royal Guard
 
Coote's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 433
I've seen it done with the world map, but never the minimap before. It'd be interesting to see this done if it's possible, even though I may not use it.
__________________

"This is the fifteen-thousandth four hundredth and ninety-eighth occurence".
Coote is offline   Reply With Quote
Unread 07-25-12, 03:32 PM   #3
Barjack
A Black Drake
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 80
I know changing the scale on the fly works. This does scale up POI icons and other things which can look pretty bad at a very large scale though. I use the following extremely rudimentary code in my own UI which simply scales it straight up to 2x, 3x, etc. size for help when herbing or mining by using Alt+Mousewheel.

Lua Code:
  1. local function onMouseWheel(self, dir)
  2.     if IsAltKeyDown() then
  3.         if (dir < 0) then
  4.             local newscale = Minimap:GetScale() - 1
  5.             if (newscale < 1.5) then
  6.                 newscale = 1
  7.             end
  8.             Minimap:SetScale(newscale)
  9.         else
  10.             local newscale = Minimap:GetScale() + 1
  11.             Minimap:SetScale(newscale)
  12.         end
  13.     else
  14.         if (dir > 0) then
  15.             MinimapZoomIn:Click()
  16.         else
  17.             MinimapZoomOut:Click()
  18.         end
  19.     end
  20. end
  21.  
  22. --
  23.  
  24. Minimap:EnableMouseWheel()
  25. Minimap:SetScript('OnMouseWheel', onMouseWheel)

Obviously if you wanted it to have smooth transitions or draggable handles or smaller step sizes you'd need to do some more work there.
Barjack is offline   Reply With Quote
Unread 07-25-12, 03:34 PM   #4
Barjack
A Black Drake
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 80
Also I'm not sure how changing the scale via SetWidth/SetHeight works compared to scaling. That may or may not scale up the POIs, though I'm guessing it will. I also suspect non-square dimensions will simply result in map distortion but I'm not sure about that either.
Barjack is offline   Reply With Quote
Unread 07-25-12, 04:10 PM   #5
Haleth
This Space For Rent
 
Haleth's Avatar
WoWInterface Super Mod
Featured
Join Date: Sep 2008
Posts: 1,173
You can resize it, but the visible area on the map will never expand. The map texture will simple scale up as well and become blurred. This is the case both when you change the scale using Minimap:SetScale() as well as the dimensions using Minimap:SetSize().
Haleth is offline   Reply With Quote
Reply

Go BackWoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Resizing Minimap ON THE FLY

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off