Commit 463ecb27 authored by Ivaria's avatar Ivaria

Fixed minimap icon visibility toggle

parent bbfea940
......@@ -2,7 +2,7 @@
## Title: VuhDo ['vu:du:]
## Author: Iza@Gilneas, humfras, Ivaria@Hyjal
## Version: 3.124
## Version: 3.125
## Notes: Raid Frames providing click-heal functionality, buff and debuff control, main tank management and much more
## X-Curse-Project-ID: 7950
......
local _;
-- For initializing the minimap
VUHDO_MM_SETTINGS = { };
VUHDO_MM_SETTINGS = VUHDO_MM_SETTINGS or { };
VUHDO_LibSharedMedia = LibStub("LibSharedMedia-3.0");
VUHDO_LibDataBroker = LibStub("LibDataBroker-1.1", true);
......@@ -102,6 +102,12 @@ function VUHDO_initFuBar()
-- Minimap icon provided by LibDBIcon
if VUHDO_LibDBIcon then
-- if the old configuration still exists, migrate to the LibDBIcon database
if VUHDO_CONFIG["SHOW_MINIMAP"] ~= nil then
VUHDO_MM_SETTINGS["hide"] = not VUHDO_forceBooleanValue(VUHDO_CONFIG["SHOW_MINIMAP"]);
VUHDO_CONFIG["SHOW_MINIMAP"] = nil;
end
VUHDO_LibDBIcon:Register("VuhDo", minimapObject, VUHDO_MM_SETTINGS);
VUHDO_initMinimap();
......@@ -230,7 +236,7 @@ end
function VUHDO_initShowMinimap()
if VUHDO_LibDataBroker and VUHDO_LibDBIcon then
if VUHDO_CONFIG["SHOW_MINIMAP"] then
if not VUHDO_MM_SETTINGS["hide"] then
VUHDO_LibDBIcon:Show("VuhDo");
else
VUHDO_LibDBIcon:Hide("VuhDo");
......
......@@ -529,7 +529,6 @@ local VUHDO_DEFAULT_CONFIG = {
["LOCK_PANELS"] = false,
["LOCK_CLICKS_THROUGH"] = false,
["LOCK_IN_FIGHT"] = true,
["SHOW_MINIMAP"] = true,
["PARSE_COMBAT_LOG"] = true,
["HIDE_EMPTY_BUTTONS"] = false,
......
......@@ -390,7 +390,7 @@ function VUHDO_miniMapDropDown_Initialize(aFrame, aLevel)
VUHDO_createMinimapToggle(VUHDO_I18N_LOCK_PANELS, "LOCK", VUHDO_CONFIG["LOCK_PANELS"]);
VUHDO_createMinimapToggle(VUHDO_I18N_SHOW_PANELS, "SHOW", VUHDO_CONFIG["SHOW_PANELS"]);
VUHDO_createMinimapToggle(VUHDO_I18N_SHOW_BUFF_WATCH, "BUFF", VUHDO_BUFF_SETTINGS["CONFIG"]["SHOW"]);
VUHDO_createMinimapToggle(VUHDO_I18N_MM_BUTTON, "MINIMAP", VUHDO_CONFIG["SHOW_MINIMAP"]);
VUHDO_createMinimapToggle(VUHDO_I18N_MM_BUTTON, "MINIMAP", not VUHDO_MM_SETTINGS["hide"]);
VUHDO_createEmptyLine();
......
......@@ -843,10 +843,12 @@ function VUHDO_slashCmd(aCommand)
end
elseif strfind(tCommandWord, "mm")
or strfind(tCommandWord, "map") then
VUHDO_CONFIG["SHOW_MINIMAP"] = VUHDO_forceBooleanValue(VUHDO_CONFIG["SHOW_MINIMAP"]);
VUHDO_CONFIG["SHOW_MINIMAP"] = not VUHDO_CONFIG["SHOW_MINIMAP"];
VUHDO_MM_SETTINGS["hide"] = VUHDO_forceBooleanValue(VUHDO_MM_SETTINGS["hide"]);
VUHDO_MM_SETTINGS["hide"] = not VUHDO_MM_SETTINGS["hide"];
VUHDO_initShowMinimap();
VUHDO_Msg(VUHDO_I18N_MM_ICON .. (VUHDO_CONFIG["SHOW_MINIMAP"] and VUHDO_I18N_CHAT_SHOWN or VUHDO_I18N_CHAT_HIDDEN));
VUHDO_Msg(VUHDO_I18N_MM_ICON .. (VUHDO_MM_SETTINGS["hide"] and VUHDO_I18N_CHAT_HIDDEN or VUHDO_I18N_CHAT_SHOWN));
elseif tCommandWord == "ui" then
VUHDO_reloadUI(false);
elseif strfind(tCommandWord, "role") then
......
......@@ -2,7 +2,7 @@
## Title: VuhDo ['vu:du:] - Options
## Author: Iza@Gilneas, humfras, Ivaria@Hyjal
## Version: 3.124
## Version: 3.125
## Notes: VuhDo Options
## X-Curse-Project-ID: 7950
......
Version 3.125
Known issues:
-- Shadowlands stat squish cleanup still a work in progress
-- AOE Advice spell equations need complete overhaul
-- Some text providers need changes to better display small numbers
-- Debuff tooltips are currently bugged when using ElvUI
-- Deselect 'VuhDo Options > Panels > Tooltips > Tooltips > Debuffs'
Bugfixes:
-- Fixed minimap icon visibility toggle
Improvements:
--------------------------------------------------------------
Version 3.124
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment