Visual disability question: Add-on to alter map background?

Does anyone know of an add-on that allows you to change or mask the color of the map background? I have some damage to my vision that makes it very hard for me to consistently notice things like TomTom waypoints and even some quest and other markers on the default gold/brown background in most areas.

I’ve tried sizing the map icons up with another add-on but that creates other problems. I’ve also tried Carbonite, and while that makes the maps look amazing it still has the same background color.

I’m not colorblind but the Tritanopia filte in the accessibility options actually makes the map VASTLY easier to use for me, but it makes the actual game world very difficult to look at. If I could just apply that filter to the map only, or create a macro or keybind to toggle it off and on when opening and closing the map it would address most of the problem.

I don’t think there’s a solution but figured it would be worth asking.

This works on BfA and Shadowlands clients only (not Classic):

-- this changes the background world map textures to be a monochrome color tinted
-- to the color specified here:
local red,green,blue = 0.9375,0.7578,0.5781

-- some colors to try:
-- 0.9375,0.7578,0.5781 -- light sepia
-- 0.4375,0.2578,0.0781 -- dark sepia
-- 1,1,1 -- bright black and white
-- 0.5,0.5,0.5 -- dark black and white
-- 1,0.75,1 -- light purple tint (similar to tritanopia setting)

hooksecurefunc(WorldMapFrame,"OnMapChanged",function()
    for k,v in pairs({WorldMapFrame.ScrollContainer.Child:GetChildren()}) do
        if v:GetWidth()>128 then -- assume anything wider than 128 is a map texture
            for i,j in pairs({v:GetRegions()}) do
                if j:GetObjectType()=="Texture" then
                    j:SetDesaturated(true)
                    j:SetVertexColor(red,green,blue)
                end
            end
        end
    end
end)

To turn it into an addon, paste it into https://addon.bool.no/

2 Likes

THANK YOU!

All of these, even the light sepia, are significant improvements over the default background.

The best improvement by far is the tritanopia-like option (and in fact is far better than the tritanopia accessibility filter itself). With it I can make out every icon type, shape, color, and location almost at a glance, and I can even make out the locations and geography on the map itself.

The difference is just unreal. I’ve been struggling with the map for years and years trying to find icons and waypoints and locations, missing things repeatedly. Extremely frustrating and saddening. Now I keep opening it up just to look at it.

I sincerely cannot thank you enough for this.

Glad to hear it’s working well for you!

If you or anyone would like to zip it up and post it on curse or wowinterface or whereever to help others who may have a hard time with the map, you’re welcome to it.

It could probably use a little bit of optimization (the method of finding textures could be more refined) and a color swatch button on the map could let someone pick a tint without editing the lua.

2 Likes