Thread Tools Display Modes
09-05-16, 03:36 PM   #1
Kalamir
A Murloc Raider
 
Kalamir's Avatar
Join Date: Sep 2012
Posts: 6
Prevent Worldmap Toggle

I run my worldmap in "small" mode and often when I go to close it I accidentally toggle it into "large" mode which then blinds me from the game world. How can I disable the button to enlarge the worldmap?
  Reply With Quote
09-05-16, 06:55 PM   #2
jeffy162
A Pyroguard Emberseer
 
jeffy162's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 2,364
I don't know if you can do away with the button to close the world map, but you can open and close the wold map by simply hitting "M". That is as long as you didn't re-bind it of course.
__________________
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!
  Reply With Quote
09-05-16, 07:51 PM   #3
Kalamir
A Murloc Raider
 
Kalamir's Avatar
Join Date: Sep 2012
Posts: 6
I feel like this should be really easy so let me clarify what I want. When I open "WorldMapFrame.xml" I can see that the "WorldMapFrameSizeUpButton" calls a function "WorldMapFrame_ToggleWindowSize" and when I go to that function inside "WorldMapFrame.lua" it executes "WorldMap_ToggleSizeUp()". I would basically like to change the function to do nothing at all, so clicking the button executes an empty function thereby preventing the toggle up to fullscreen.
  Reply With Quote
09-05-16, 07:57 PM   #4
Kalamir
A Murloc Raider
 
Kalamir's Avatar
Join Date: Sep 2012
Posts: 6
Code:
function WorldMap_ToggleSizeUp() SetCVar("miniWorldMap", 1) end
Got it working with this code. Without setting the CVar in the function the map wouldn't close with a keyboard press. Everything seems smooth now.

Last edited by Kalamir : 09-05-16 at 08:26 PM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Prevent Worldmap Toggle


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