Resizing Minimap ON THE FLY - WoWInterface
Thread Tools Display Modes
07-25-12, 03:05 PM   #1
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:

  Reply With Quote
07-25-12, 03:20 PM   #2
A Scalebane Royal Guard
Coote's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 440
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".
  Reply With Quote
07-25-12, 03:32 PM   #3
A Black Drake
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 89
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
  22. --
  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.
  Reply With Quote
07-25-12, 03:34 PM   #4
A Black Drake
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 89
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.
  Reply With Quote
07-25-12, 04:10 PM   #5
This Space For Rent
Haleth's Avatar
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().
  Reply With Quote
01-21-16, 01:47 AM   #6
A Kobold Labourer
Join Date: Jan 2016
Posts: 1
Sorry for the Necro, but I've been looking for an addon that fits this exactly but haven't had any luck. I see that Barjack has written some code, but for the life of me I can not find any details on how to use that.
  Reply With Quote
01-21-16, 09:20 AM   #7
A Pyroguard Emberseer
jeffy162's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 2,357
Carbonite. It is a modular questing addon. The link is to a search of WoWI for Carbonite. It has "adjustable" maps, and unless they are locked in place can be moved, or sized, at any time.
Ahhhh, the vagueries of the aging mind. Wait.... What was I saying?

Carbonite <----- GitHub main module (Maps ONLY) download link. The other modules are also available on GitHub.
Carbonite-CLASSIC<----- GitHub link to Carbonite Classic. Thanks to ircdirk for this!

Last edited by jeffy162 : 01-21-16 at 09:26 AM.
  Reply With Quote

WoWInterface » 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