Thread Tools Display Modes
10-04-16, 07:21 AM   #1
VincentSDSH
Non-Canadian Luzer!
 
VincentSDSH's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2006
Posts: 350
Hiding World Quest Icons

Before I go and do something OTT b/c I've missed something simple: Is there a straight-forward way to hide the world quest icons on the zone (or any) map?
__________________
AddonsExecutive Assistant User Configurable To-Do ListLegible Mail Choose the Font for Your Mail
  Reply With Quote
10-04-16, 10:39 AM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
I would try by hooking or replacing WorldMap_DoesWorldQuestInfoPassFilters().

Lua Code:
  1. local ShowWorldQuests=true;
  2. local OldFunc=WorldMap_DoesWorldQuestInfoPassFilters;
  3. function WorldMap_DoesWorldQuestInfoPassFilters(...) return ShowWorldQuests and OldFunc(...); end
  4. hooksecurefunc(WorldMapFrame.UIElementsFrame.BountyBoard,"Refresh",function(self) if not ShowWorldQuests then self:Clear(); end end);
This lets you toggle whether or not to show the icons by flipping a boolean variable and should handle the bounty board as well.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 10-04-16 at 10:52 AM.
  Reply With Quote
10-05-16, 07:38 AM   #3
VincentSDSH
Non-Canadian Luzer!
 
VincentSDSH's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2006
Posts: 350
Knew there had to be an easier way than what I was contemplating. Thanks.
__________________
AddonsExecutive Assistant User Configurable To-Do ListLegible Mail Choose the Font for Your Mail
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Hiding World Quest Icons


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