Commit 6e5697ea authored by Ivaria's avatar Ivaria
Browse files

Minimap icon profile and key layout dropdown menus are now sorted

parent 553a4324
## Interface: 80100
## Title: VuhDo ['vu:du:]
## Author: Iza@Gilneas, humfras, Ivaria@Hyjal
## Version: 3.100
## Version: 3.101
## Notes: Raid Frames providing click-heal functionality, buff and debuff control, main tank management and much more
## SavedVariablesPerCharacter: VUHDO_CONFIG, VUHDO_PANEL_SETUP, VUHDO_SPELL_ASSIGNMENTS, VUHDO_HOSTILE_SPELL_ASSIGNMENTS, VUHDO_MM_SETTINGS, VUHDO_PLAYER_TARGETS, VUHDO_MAINTANK_NAMES, VUHDO_BUFF_SETTINGS, VUHDO_POWER_TYPE_COLORS, VUHDO_SPELLS_KEYBOARD, VUHDO_SPELL_CONFIG, VUHDO_BUFF_ORDER, VUHDO_SPEC_LAYOUTS, VUHDO_GROUP_SIZE, VUHDO_RAID, VUHDO_INDICATOR_CONFIG
## SavedVariables: VUHDO_DEFAULT_LAYOUT, VUHDO_DEFAULT_PROFILE, VUHDO_PROFILES, VUHDO_MANUAL_ROLES, VUHDO_SPELL_LAYOUTS, VUHDO_USER_CLASS_COLORS, VUHDO_DEBUFF_BLACKLIST, VUHDO_BOUQUETS, VUHDO_COMBAT_LOG_TRACE, VUHDO_GLOBAL_CONFIG, VUHDO_DEBUG
......
......@@ -280,23 +280,53 @@ function VUHDO_miniMapDropDown_Initialize(aFrame, aLevel)
if aLevel > 1 then
if "S" == UIDROPDOWNMENU_MENU_VALUE then
for _, tSetup in ipairs(VUHDO_PROFILES) do
local tSortedProfileNames = { };
for tProfileIndex, tProfile in ipairs(VUHDO_PROFILES) do
tinsert(tSortedProfileNames, { tProfileIndex, tProfile["NAME"] });
end
table.sort(tSortedProfileNames,
function(anInfo, anotherInfo)
return anInfo[2] < anotherInfo[2];
end
);
for _, tSortedProfile in ipairs(tSortedProfileNames) do
local tSetup = VUHDO_PROFILES[tSortedProfile[1]];
tInfo = UIDropDownMenu_CreateInfo();
tInfo["text"] = tSetup["NAME"];
tInfo["arg1"] = tSetup["NAME"];
tInfo["func"] = function(_, aName) VUHDO_loadProfile(aName) end;
tInfo["checked"] = tSetup["NAME"] == VUHDO_CONFIG["CURRENT_PROFILE"];
tInfo["level"] = 2;
UIDropDownMenu_AddButton(tInfo, 2);
end
elseif "K" == UIDROPDOWNMENU_MENU_VALUE then
for tName, _ in pairs(VUHDO_SPELL_LAYOUTS) do
local tSortedKeyLayoutNames = { };
for tKeyLayoutName, _ in pairs(VUHDO_SPELL_LAYOUTS) do
tinsert(tSortedKeyLayoutNames, { tKeyLayoutName, tKeyLayoutName });
end
table.sort(tSortedKeyLayoutNames,
function(anInfo, anotherInfo)
return anInfo[1] < anotherInfo[1];
end
);
for _, tSortedKeyLayout in ipairs(tSortedKeyLayoutNames) do
local tName = tSortedKeyLayout[1];
tInfo = UIDropDownMenu_CreateInfo();
tInfo["text"] = tName;
tInfo["arg1"] = tName;
tInfo["func"] = function(_, aName) VUHDO_activateLayout(aName) end;
tInfo["checked"] = tName == VUHDO_SPEC_LAYOUTS["selected"];
tInfo["level"] = 2;
UIDropDownMenu_AddButton(tInfo, 2);
end
end
......
## Interface: 80100
## Title: VuhDo ['vu:du:] - Options
## Author: Iza@Gilneas, humfras, Ivaria@Hyjal
## Version: 3.100
## Version: 3.101
## Notes: VuhDo Options
## SavedVariables: VUHDO_OPTIONS_SETTINGS
## SavedVariablesPerCharacter: VUHDO_GLOBAL_ICONS, VUHDO_GI_SCAN_IDX
......
Version 3.101
Known issues:
-- BfA 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:
Improvements:
-- Minimap icon profile and key layout dropdown menus are now sorted
--------------------------------------------------------------
Version 3.100
......
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