WoW Krowi’s World Map Buttons addon Shadowlands/Burning Crusade Classic 2021
logo
wow addon Krowi’s World Map Buttons

Krowi’s World Map Buttons

Game Version: 9.1.0
Total Downloads: 9
Updated: Jun 28, 2021
Created: Jun 27, 2021
download Krowi’s World Map ButtonsDownload Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
Krowi_WorldMapButtons-1.0 release 3.13 KB Jun 28, 2021 9.1.0 0 download Krowi’s World Map Buttons Krowi_WorldMapButtons-1.0 releaseDownload
Krowi_WorldMapButtons-1.0 beta 3.17 KB Jun 28, 2021 9.1.0 3 download Krowi’s World Map Buttons Krowi_WorldMapButtons-1.0 betaDownload

Description

Share this:

This library was created to make it easier to add buttons to the top right corner of the world map.

 

Using this library requires you to know how to add buttons. This library is simply a tool to make it easier.

 

Old way of adding buttons to the world map:

 

local worldMapButton = WorldMapFrame:AddOverlayFrame(
    ADDON_NAME.."WorldMapOptionsButtonTemplate",
    "DROPDOWNTOGGLEBUTTON", "TOPRIGHT",
    WorldMapFrame:GetCanvasContainer(), "TOPRIGHT", -68, -2
    );

 

This has the drawback that all buttons are in a hard coded location. Gaps will occur when certain buttons are hidden.

 

New way of adding buttons to the world map:

 

local worldMapButton = LibStub("KrowiWorldMapButtons-1.0"):Add(ADDON_NAME.."WorldMapOptionsButtonTemplate", "DROPDOWNTOGGLEBUTTON");

 

This has the benefit that all buttons are ordered automatically, even if some buttons are hidden.

Comments

Add a comment